nova + ironic node
Posted dream397
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了nova + ironic node相关的知识,希望对你有一定的参考价值。
root@co:~# nova show f429b357-5372-4649-b4c3-522af5473c3a +--------------------------------------+-------------------------------------------------------------+ | Property | Value | +--------------------------------------+-------------------------------------------------------------+ | OS-DCF:diskConfig | AUTO | | OS-EXT-AZ:availability_zone | nova | | OS-EXT-SRV-ATTR:host | controller3-ironic | | OS-EXT-SRV-ATTR:hostname | centos7-7 | | OS-EXT-SRV-ATTR:hypervisor_hostname | 49e253f3-9bdc-4d41-bb8b-87d422fb2f76 | | OS-EXT-SRV-ATTR:instance_name | instance-00003a31 | | OS-EXT-SRV-ATTR:kernel_id | | | OS-EXT-SRV-ATTR:launch_index | 0 | | OS-EXT-SRV-ATTR:ramdisk_id | | | OS-EXT-SRV-ATTR:reservation_id | r-sayzill2 | | OS-EXT-SRV-ATTR:root_device_name | /dev/sda | | OS-EXT-SRV-ATTR:user_data | - | | OS-EXT-STS:power_state | 0 | | OS-EXT-STS:task_state | spawning | | OS-EXT-STS:vm_state | building | | OS-SRV-USG:launched_at | - | | OS-SRV-USG:terminated_at | - | | accessIPv4 | | | accessIPv6 | | | config_drive | | | created | 2020-07-16T09:42:29Z | | description | - | | flavor | huawei920_6426 (5d12a2b6-4507-411c-acd7-5a3a6b85b6f0) | | hostId | 2d5b7d4673a26ece5d6c6acbd79b8a2d3d5c76cc8b8bb25e2deafbea | | host_status | UP | | id | f429b357-5372-4649-b4c3-522af5473c3a | | image | centos-7.7-baremetal (8ba9d805-497d-4baf-a45c-b61611fc8ae5) | | ironic network | 10.10.19.224 | | key_name | soft_sshkey | | locked | False | | metadata | {} | | name | centos7-7 | | os-extended-volumes:volumes_attached | [] | | progress | 0 | | root_disk_size | 0 | | security_groups | default | | status | BUILD | | tenant_id | 5bf9cc4afb104c55b01ad9951369dbbc | | updated | 2020-07-16T09:42:31Z | | user_id | 8d5522dc65ad4669aebbc2c80de7d2e9 | +--------------------------------------+-------------------------------------------------------------+ root@c:~# nova hypervisor-show 49e253f3-9bdc-4d41-bb8b-87d422fb2f76 ERROR (CommandError): Multiple hypervisor matches found for ‘49e253f3-9bdc-4d41-bb8b-87d422fb2f76‘, use an ID to be more specific. root@controller1:~# nova hypervisor-list | rep 49e253f3-9bdc-4d41-bb8b-87d422fb2f76 -bash: rep: 未找到命令 ^C... terminating nova client root@controller1:~# nova hypervisor-list | grep 49e253f3-9bdc-4d41-bb8b-87d422fb2f76 | 1391 | 49e253f3-9bdc-4d41-bb8b-87d422fb2f76 | up | enabled | | 1394 | 49e253f3-9bdc-4d41-bb8b-87d422fb2f76 | up | enabled | | 1397 | 49e253f3-9bdc-4d41-bb8b-87d422fb2f76 | up | enabled | root@cx:~# nova hypervisor-show 1391 +-------------------------+--------------------------------------+ | Property | Value | +-------------------------+--------------------------------------+ | cpu_info | | | current_workload | 1 | | disk_available_least | 0 | | free_disk_gb | 0 | | free_ram_mb | -524288 | | host_ip | 10.10.xx.29 | | hypervisor_hostname | 49e253f3-9bdc-4d41-bb8b-87d422fb2f76 | | hypervisor_type | ironic | | hypervisor_version | 1 | | id | 1391 | | local_gb | 0 | | local_gb_used | 0 | | memory_mb | 0 | | memory_mb_used | 524288 | | running_vms | 1 | | service_disabled_reason | None | | service_host | controller3-ironic | | service_id | 419 | | state | up | | status | enabled | | vcpus | 0 | | vcpus_used | 128 | +-------------------------+--------------------------------------+ root@conx:~# nova hypervisor-show 1394 +-------------------------+--------------------------------------+ | Property | Value | +-------------------------+--------------------------------------+ | cpu_info | | | current_workload | 0 | | disk_available_least | 0 | | free_disk_gb | 0 | | free_ram_mb | 0 | | host_ip | 10.10.xx.17 | | hypervisor_hostname | 49e253f3-9bdc-4d41-bb8b-87d422fb2f76 | | hypervisor_type | ironic | | hypervisor_version | 1 | | id | 1394 | | local_gb | 0 | | local_gb_used | 0 | | memory_mb | 0 | | memory_mb_used | 0 | | running_vms | 0 | | service_disabled_reason | None | | service_host | controller2-ironic | | service_id | 422 | | state | up | | status | enabled | | vcpus | 0 | | vcpus_used | 0 | +-------------------------+--------------------------------------+ root@x1:~# nova hypervisor-show 1397 +-------------------------+--------------------------------------+ | Property | Value | +-------------------------+--------------------------------------+ | cpu_info | | | current_workload | 0 | | disk_available_least | 0 | | free_disk_gb | 0 | | free_ram_mb | 0 | | host_ip | 10.10.xx.5 | | hypervisor_hostname | 49e253f3-9bdc-4d41-bb8b-87d422fb2f76 | | hypervisor_type | ironic | | hypervisor_version | 1 | | id | 1397 | | local_gb | 0 | | local_gb_used | 0 | | memory_mb | 0 | | memory_mb_used | 0 | | running_vms | 0 | | service_disabled_reason | None | | service_host | controller1-ironic | | service_id | 413 | | state | up | | status | enabled | | vcpus | 0 | | vcpus_used | 0 | +-------------------------+--------------------------------------+ root@xr1:~# nova hypervisor-show 49e253f3-9bdc-4d41-bb8b-87d422fb2f76 ERROR (CommandError): Multiple hypervisor matches found for ‘49e253f3-9bdc-4d41-bb8b-87d422fb2f76‘, use an ID to be more specific. root@x1:~# nova show f429b357-5372-4649-b4c3-522af5473c3a +--------------------------------------+-------------------------------------------------------------+ | Property | Value | +--------------------------------------+-------------------------------------------------------------+ | OS-DCF:diskConfig | AUTO | | OS-EXT-AZ:availability_zone | nova | | OS-EXT-SRV-ATTR:host | controller3-ironic | | OS-EXT-SRV-ATTR:hostname | centos7-7 | | OS-EXT-SRV-ATTR:hypervisor_hostname | 49e253f3-9bdc-4d41-bb8b-87d422fb2f76 | | OS-EXT-SRV-ATTR:instance_name | instance-00003a31 | | OS-EXT-SRV-ATTR:kernel_id | | | OS-EXT-SRV-ATTR:launch_index | 0 | | OS-EXT-SRV-ATTR:ramdisk_id | | | OS-EXT-SRV-ATTR:reservation_id | r-sayzill2 | | OS-EXT-SRV-ATTR:root_device_name | /dev/sda | | OS-EXT-SRV-ATTR:user_data | - | | OS-EXT-STS:power_state | 0 | | OS-EXT-STS:task_state | spawning | | OS-EXT-STS:vm_state | building | | OS-SRV-USG:launched_at | - | | OS-SRV-USG:terminated_at | - | | accessIPv4 | | | accessIPv6 | | | config_drive | | | created | 2020-07-16T09:42:29Z | | description | - | | flavor | huawei920_6426 (5d12a2b6-4507-411c-acd7-5a3a6b85b6f0) | | hostId | 2d5b7d4673a26ece5d6c6acbd79b8a2d3d5c76cc8b8bb25e2deafbea | | host_status | UP | | id | f429b357-5372-4649-b4c3-522af5473c3a | | image | centos-7.7-baremetal (8ba9d805-497d-4baf-a45c-b61611fc8ae5) | | ironic network | 10.10.xx.224 | | key_name | soft_sshkey | | locked | False | | metadata | {} | | name | centos7-7 | | os-extended-volumes:volumes_attached | [] | | progress | 0 | | root_disk_size | 0 | | security_groups | default | | status | BUILD | | tenant_id | 5bf9cc4afb104c55b01ad9951369dbbc | | updated | 2020-07-16T09:42:31Z | | user_id | 8d5522dc65ad4669aebbc2c80de7d2e9 | +--------------------------------------+-------------------------------------------------------------+ root@xr1:~# nova show f429b357-5372-4649-b4c3-522af5473c3a | grep 49e253f3-9bdc-4d41-bb8b-87d422fb2f76 | OS-EXT-SRV-ATTR:hypervisor_hostname | 49e253f3-9bdc-4d41-bb8b-87d422fb2f76 | root@x1:~# ironic node-show 49e253f3-9bdc-4d41-bb8b-87d422fb2f76 +------------------------+--------------------------------------------------------------------------+ | Property | Value | +------------------------+--------------------------------------------------------------------------+ | chassis_uuid | None | | clean_step | {} | | console_enabled | False | | created_at | 2020-07-10T03:35:57+00:00 | | driver | ipmi | | driver_info | {u‘ipmi_port‘: 623, u‘ipmi_username‘: u‘Administrator‘, | | | u‘deploy_kernel‘: u‘1f14848e-5cf5-4d3d-99a2-eba12d50cd3a‘, | | | u‘ipmi_protocol_version‘: 1.5, u‘deploy_ramdisk‘: u‘f88336cb-fa24-45d8 | | | -823b-722f20633cfd‘, u‘ipmi_password‘: u‘******‘, u‘ipmi_address‘: | | | u‘10.10.17.223‘} | | driver_internal_info | {u‘agent_url‘: u‘http://10.10.xx.220:9999‘, u‘root_uuid_or_disk_id‘: | | | u‘0x00000000‘, u‘is_whole_disk_image‘: True, u‘agent_version‘: | | | u‘4.0.1.dev4‘} | | extra | {} | | inspection_finished_at | None | | inspection_started_at | None | | instance_info | {u‘root_gb‘: u‘0‘, u‘display_name‘: u‘centos7-7‘, u‘image_source‘: | | | u‘8ba9d805-497d-4baf-a45c-b61611fc8ae5‘, u‘memory_mb‘: u‘524288‘, | | | u‘vcpus‘: u‘128‘, u‘local_gb‘: u‘0‘, u‘swap_mb‘: u‘0‘} | | instance_uuid | f429b357-5372-4649-b4c3-522af5473c3a | | last_error | None | | maintenance | False | | maintenance_reason | None | | name | node223 | | power_state | power on | | properties | {u‘memory_mb‘: 524288, u‘cpu_arch‘: u‘aarch64‘, u‘root_device‘: | | | {u‘name‘: u‘/dev/sda‘}, u‘cpus‘: 64, u‘capabilities‘: u‘boot_mode:uefi‘} | | provision_state | wait call-back | | provision_updated_at | 2020-07-16T09:43:42+00:00 | | raid_config | | | reservation | None | | target_power_state | None | | target_provision_state | active | | target_raid_config | | | updated_at | 2020-07-16T09:45:53+00:00 | | uuid | 49e253f3-9bdc-4d41-bb8b-87d422fb2f76 | +------------------------+--------------------------------------------------------------------------+ root@x1:~#
root@controller1:~# nova host-list +--------------------+-------------+----------------+ | host_name | service | zone | +--------------------+-------------+----------------+ | controller1 | consoleauth | internal | | controller2 | consoleauth | internal | | controller3 | consoleauth | internal | | controller1 | scheduler | internal | | controller3 | scheduler | internal | | controller2 | scheduler | internal | | controller1 | conductor | internal | | controller2 | conductor | internal | | controller3 | conductor | internal | | compute02 | compute | peng | | compute01 | compute | peng | | controller1-ironic | compute | nova | | controller3-ironic | compute | nova | | controller2-ironic | compute | nova | root@r1:~# nova service-list +-----+------------------+--------------------+----------------+----------+-------+----------------------------+-----------------+ | Id | Binary | Host | Zone | Status | State | Updated_at | Disabled Reason | +-----+------------------+--------------------+----------------+----------+-------+----------------------------+-----------------+ | 78 | nova-consoleauth | controller1 | internal | enabled | up | 2020-07-16T09:53:13.000000 | - | | 96 | nova-consoleauth | controller2 | internal | enabled | up | 2020-07-16T09:53:18.000000 | - | | 99 | nova-consoleauth | controller3 | internal | enabled | up | 2020-07-16T09:53:11.000000 | - | | 102 | nova-scheduler | controller1 | internal | enabled | up | 2020-07-16T09:53:14.000000 | - | | 105 | nova-scheduler | controller3 | internal | enabled | up | 2020-07-16T09:53:15.000000 | - | | 108 | nova-scheduler | controller2 | internal | enabled | up | 2020-07-16T09:53:16.000000 | - | | 111 | nova-conductor | controller1 | internal | enabled | up | 2020-07-16T09:53:19.000000 | - | | 117 | nova-conductor | controller2 | internal | enabled | up | 2020-07-16T09:53:19.000000 | - | | 138 | nova-conductor | controller3 | internal | enabled | up | 2020-07-16T09:53:19.000000 | - | | 147 | nova-compute | compute02 | peng | enabled | up | 2020-07-16T09:53:10.000000 | - | | 150 | nova-compute | compute01 | peng | enabled | up | 2020-07-16T09:53:12.000000 | - | | 413 | nova-compute | controller1-ironic | nova | enabled | up | 2020-07-16T09:53:14.000000 | - | | 419 | nova-compute | controller3-ironic | nova | enabled | up | 2020-07-16T09:53:11.000000 | - | | 422 | nova-compute | controller2-ironic | nova | enabled | up | 2020-07-16T09:53:11.000000 | - |
以上是关于nova + ironic node的主要内容,如果未能解决你的问题,请参考以下文章
有了iron-node,高度Nodejs就是怎么so easy
ironic baremetal node rescue/unrescue mode
使用 Polymer Iron-ajax 和 Node.js 发出 CORS 请求