Skip to content

Instantly share code, notes, and snippets.

@frizop
Created January 29, 2019 21:32
Show Gist options
  • Save frizop/bf2f8e4a149c65001acff80b94107dfb to your computer and use it in GitHub Desktop.
Save frizop/bf2f8e4a149c65001acff80b94107dfb to your computer and use it in GitHub Desktop.
missing something as a hint for nova scheduler?
(undercloud) [stack@lab-opst-01-b templates]$ for node in $(openstack baremetal node list --fields uuid -f value); do openstack baremetal node show $node --fit-width -c name
-c properties; done; openstack baremetal node list && openstack server list && openstack overcloud profiles list --all
+------------+-----------------------------------------------------------------------------------------------------------------------------------------------+
| Field | Value |
+------------+-----------------------------------------------------------------------------------------------------------------------------------------------+
| name | lab-opst-02-b |
| properties | {u'memory_mb': u'393216', u'cpu_arch': u'x86_64', u'local_gb': u'930', u'cpus': u'24', u'capabilities': u'profile:control,boot_option:local'} |
+------------+-----------------------------------------------------------------------------------------------------------------------------------------------+
+------------+-----------------------------------------------------------------------------------------------------------------------------------------------+
| Field | Value |
+------------+-----------------------------------------------------------------------------------------------------------------------------------------------+
| name | lab-opst-03-b |
| properties | {u'memory_mb': u'393216', u'cpu_arch': u'x86_64', u'local_gb': u'930', u'cpus': u'24', u'capabilities': u'profile:control,boot_option:local'} |
+------------+-----------------------------------------------------------------------------------------------------------------------------------------------+
+------------+-----------------------------------------------------------------------------------------------------------------------------------------------+
| Field | Value |
+------------+-----------------------------------------------------------------------------------------------------------------------------------------------+
| name | lab-opst-04-b |
| properties | {u'memory_mb': u'393216', u'cpu_arch': u'x86_64', u'local_gb': u'930', u'cpus': u'24', u'capabilities': u'profile:control,boot_option:local'} |
+------------+-----------------------------------------------------------------------------------------------------------------------------------------------+
+------------+-----------------------------------------------------------------------------------------------------------------------------------------------+
| Field | Value |
+------------+-----------------------------------------------------------------------------------------------------------------------------------------------+
| name | lab-opst-05-b |
| properties | {u'memory_mb': u'393216', u'cpu_arch': u'x86_64', u'local_gb': u'930', u'cpus': u'24', u'capabilities': u'profile:compute,boot_option:local'} |
+------------+-----------------------------------------------------------------------------------------------------------------------------------------------+
+------------+-----------------------------------------------------------------------------------------------------------------------------------------------+
| Field | Value |
+------------+-----------------------------------------------------------------------------------------------------------------------------------------------+
| name | lab-opst-06-b |
| properties | {u'memory_mb': u'393216', u'cpu_arch': u'x86_64', u'local_gb': u'930', u'cpus': u'24', u'capabilities': u'profile:compute,boot_option:local'} |
+------------+-----------------------------------------------------------------------------------------------------------------------------------------------+
+------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------$
| Field | Value $
+------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------$
| name | lab-opst-07-b $
| properties | {u'cpu_arch': u'x86_64', u'root_device': {u'serial': u'600508b1001c85b78f861c15a9b9a479'}, u'cpus': u'24', u'capabilities': u'profile:ceph- $
| | storage,boot_option:local', u'memory_mb': u'393216', u'local_gb': u'930'} $
+------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------$
+------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------$
| Field | Value $
+------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------$
| name | lab-opst-08-b $
| properties | {u'cpu_arch': u'x86_64', u'root_device': {u'serial': u'600508b1001c020724fc01eec319e350'}, u'cpus': u'24', u'capabilities': u'profile:ceph- $
| | storage,boot_option:local', u'memory_mb': u'393216', u'local_gb': u'930'} $
+------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------$
+------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------$
| Field | Value $
+------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------$
| name | lab-opst-09-b $
| properties | {u'cpu_arch': u'x86_64', u'root_device': {u'serial': u'600508b1001c15e974f0f7fe94f938f1'}, u'cpus': u'24', u'capabilities': u'profile:ceph- $
| | storage,boot_option:local', u'memory_mb': u'393216', u'local_gb': u'930'} $
+------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------$
+--------------------------------------+---------------+--------------------------------------+-------------+--------------------+-------------+
| UUID | Name | Instance UUID | Power State | Provisioning State | Maintenance |
+--------------------------------------+---------------+--------------------------------------+-------------+--------------------+-------------+
| 3922ad60-f60c-4a7e-bbd2-a2f9317e44d9 | lab-opst-02-b | dc35dd29-4c49-4316-890c-df549936fc73 | power on | active | False |
| 60488c93-fa90-449e-929d-9c0b8e7a8eb6 | lab-opst-03-b | 6d237fc2-630f-4777-b6bb-f911759c7382 | power on | active | False |
| aa6be55d-d2e0-464d-b86e-46789f31007f | lab-opst-04-b | 64177347-a1dd-4a8e-bc20-3762b238874b | power on | active | False |
| c73934d3-a486-4cb9-b69d-00833766735d | lab-opst-05-b | c95072e1-5d22-417e-9ed6-ce729c16cc3d | power on | active | False |
| 0cd63368-5986-4fa3-9cc5-7e7838f761bf | lab-opst-06-b | be96a389-7c95-4117-b1f5-639c2a98b367 | power on | active | False |
| bfa28d5f-8c21-4ca8-912e-0fe01d73f8c5 | lab-opst-07-b | bcfb3a1a-014c-4290-ae22-0e7affbfc73e | power on | active | False |
| 9d494a71-73b2-4595-8ce5-fd82f3a82d72 | lab-opst-08-b | 58ed1e3a-b88f-422c-83c7-f9e8190a95da | power on | active | False |
| 4eb78413-a946-47f8-974c-d520453770cf | lab-opst-09-b | d038e265-8c44-4f3a-9a6b-24e275d0cd22 | power on | active | False |
+--------------------------------------+---------------+--------------------------------------+-------------+--------------------+-------------+
+--------------------------------------+--------------------------------+--------+------------------------+----------------+-----------+
| ID | Name | Status | Networks | Image | Flavor |
+--------------------------------------+--------------------------------+--------+------------------------+----------------+-----------+
| be96a389-7c95-4117-b1f5-639c2a98b367 | overcloud-ceph-all-1 | ACTIVE | ctlplane=192.168.24.10 | overcloud-full | baremetal |
| 6d237fc2-630f-4777-b6bb-f911759c7382 | overcloud-controller-no-ceph-0 | ACTIVE | ctlplane=192.168.24.6 | overcloud-full | baremetal |
| d038e265-8c44-4f3a-9a6b-24e275d0cd22 | overcloud-ceph-all-0 | ACTIVE | ctlplane=192.168.24.14 | overcloud-full | baremetal |
| dc35dd29-4c49-4316-890c-df549936fc73 | overcloud-ceph-all-2 | ACTIVE | ctlplane=192.168.24.8 | overcloud-full | baremetal |
| 58ed1e3a-b88f-422c-83c7-f9e8190a95da | overcloud-controller-no-ceph-1 | ACTIVE | ctlplane=192.168.24.21 | overcloud-full | baremetal |
| 64177347-a1dd-4a8e-bc20-3762b238874b | overcloud-compute-1 | ACTIVE | ctlplane=192.168.24.7 | overcloud-full | baremetal |
| bcfb3a1a-014c-4290-ae22-0e7affbfc73e | overcloud-controller-no-ceph-2 | ACTIVE | ctlplane=192.168.24.9 | overcloud-full | baremetal |
| c95072e1-5d22-417e-9ed6-ce729c16cc3d | overcloud-compute-0 | ACTIVE | ctlplane=192.168.24.13 | overcloud-full | baremetal |
+--------------------------------------+--------------------------------+--------+------------------------+----------------+-----------+
+--------------------------------------+---------------+-----------------+-----------------+-------------------+-------+
| Node UUID | Node Name | Provision State | Current Profile | Possible Profiles | Error |
+--------------------------------------+---------------+-----------------+-----------------+-------------------+-------+
| 3922ad60-f60c-4a7e-bbd2-a2f9317e44d9 | lab-opst-02-b | active | control | | |
| 60488c93-fa90-449e-929d-9c0b8e7a8eb6 | lab-opst-03-b | active | control | | |
| aa6be55d-d2e0-464d-b86e-46789f31007f | lab-opst-04-b | active | control | | |
| c73934d3-a486-4cb9-b69d-00833766735d | lab-opst-05-b | active | compute | | |
| 0cd63368-5986-4fa3-9cc5-7e7838f761bf | lab-opst-06-b | active | compute | | |
| bfa28d5f-8c21-4ca8-912e-0fe01d73f8c5 | lab-opst-07-b | active | ceph-storage | | |
| 9d494a71-73b2-4595-8ce5-fd82f3a82d72 | lab-opst-08-b | active | ceph-storage | | |
| 4eb78413-a946-47f8-974c-d520453770cf | lab-opst-09-b | active | ceph-storage | | |
+--------------------------------------+---------------+-----------------+-----------------+-------------------+-------+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment