ironic bind port neutron port

*************************** 3. row ***************************
           created_at: 2020-07-16 00:50:46
           updated_at: 2020-07-16 00:54:47
              version: 1.7
                   id: 126
                 uuid: 1648f009-af60-418c-9ec0-b9dbfa020bf0
              address: 1c:ae:cb:eb:91:e6
              node_id: 105
                extra: {}
local_link_connection: {"switch_info": "JG05-SA-01-CE8850", "port_id": "100GE1/0/14", "switch_id": "30:e9:8e:e0:0e:21"}
         portgroup_id: NULL
          pxe_enabled: 1
        internal_info: {"tenant_vif_port_id": "ccec5545-ff16-48d9-98d1-94bb3e670e4a", "provisioning_vif_port_id": "8a8738f1-567a-4526-8d2c-67548ce3fa04"}
     physical_network: physnet_vlan
3 rows in set (0.00 sec)
[root@bogon ironic]# neutron port-list | egrep 'ccec5545-ff16-48d9-98d1-94bb3e670e4a|8a8738f1-567a-4526-8d2c-67548ce3fa04'
neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
| 8a8738f1-567a-4526-8d2c-67548ce3fa04 |                   | 42272601916748e2ba64d8a1c5413ba4 | 1c:ae:cb:eb:91:e6 | {"subnet_id": "c25fbc7b-230c-41f5-8ffe-605c895e98ef", "ip_address": "172.16.100.103"} |
| ccec5545-ff16-48d9-98d1-94bb3e670e4a |                   | 46cc02c6fab04f7095c4bc687d397610 | fa:16:3e:cf:04:42 | {"subnet_id": "ac627712-e2b7-42fe-b61a-fdba9a2149cb", "ip_address": "172.16.103.8"}   |
[root@bogon ironic]#
[root@bogon ironic]# neutron port-show 8a8738f1-567a-4526-8d2c-67548ce3fa04
neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
+-----------------------+--------------------------------------------------------------------------------------------------------------------------------+
| Field                 | Value                                                                                                                          |
+-----------------------+--------------------------------------------------------------------------------------------------------------------------------+
| admin_state_up        | True                                                                                                                           |
| allowed_address_pairs |                                                                                                                                |
| binding:host_id       | 7cbeae82-cfc5-4ff3-bb0c-d3d9ac994a29                                                                                           |
| binding:profile       | {"local_link_information": [{"switch_info": "JG05-SA-01-CE8850", "port_id": "100GE1/0/14", "switch_id": "30:e9:8e:e0:0e:21"}]} |
| binding:vif_details   | {}                                                                                                                             |
| binding:vif_type      | other                                                                                                                          |
| binding:vnic_type     | baremetal                                                                                                                      |
| created_at            | 2020-07-16T00:54:26Z                                                                                                           |
| description           |                                                                                                                                |
| device_id             | b7182965-26de-4d01-ad71-b520db99c4dd                                                                                           |
| device_owner          | baremetal:none                                                                                                                 |
| extra_dhcp_opts       | {"opt_value": "172.16.100.99", "ip_version": 4, "opt_name": "150"}                                                             |
|                       | {"opt_value": "172.16.100.99", "ip_version": 4, "opt_name": "66"}                                                              |
|                       | {"opt_value": "172.16.100.99", "ip_version": 4, "opt_name": "server-ip-address"}                                               |
|                       | {"opt_value": "grubaa64.efi", "ip_version": 4, "opt_name": "67"}                                                               |
|                       | {"opt_value": "/tftpboot/", "ip_version": 4, "opt_name": "210"}                                                                |
| fixed_ips             | {"subnet_id": "c25fbc7b-230c-41f5-8ffe-605c895e98ef", "ip_address": "172.16.100.103"}                                          |
| id                    | 8a8738f1-567a-4526-8d2c-67548ce3fa04                                                                                           |
| mac_address           | 1c:ae:cb:eb:91:e6                                                                                                              |
| name                  |                                                                                                                                |
| network_id            | f1411bad-100e-46f8-91f1-639da9020801                                                                                           |
| port_security_enabled | True                                                                                                                           |
| project_id            | 42272601916748e2ba64d8a1c5413ba4                                                                                               |
| revision_number       | 14                                                                                                                             |
| security_groups       | 3d9150b8-1d58-4d16-8066-33908ec3b910                                                                                           |
| status                | ACTIVE                                                                                                                         |
| tags                  |                                                                                                                                |
| tenant_id             | 42272601916748e2ba64d8a1c5413ba4                                                                                               |
| updated_at            | 2020-07-16T00:54:49Z                                                                                                           |
+-----------------------+--------------------------------------------------------------------------------------------------------------------------------+
[root@bogon ironic]# neutron port-show ccec5545-ff16-48d9-98d1-94bb3e670e4a 
neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
+-----------------------+-------------------------------------------------------------------------------------+
| Field                 | Value                                                                               |
+-----------------------+-------------------------------------------------------------------------------------+
| admin_state_up        | True                                                                                |
| allowed_address_pairs |                                                                                     |
| binding:host_id       |                                                                                     |
| binding:profile       | {}      ----------------空                                                                            |
| binding:vif_details   | {}                                                                                  |
| binding:vif_type      | unbound                                                                             |
| binding:vnic_type     | normal    -----------------是不是baremetal                                                                          |
| created_at            | 2020-07-16T00:53:49Z                                                                |
| description           |                                                                                     |
| device_id             | b7182965-26de-4d01-ad71-b520db99c4dd                                                |
| device_owner          | compute:nova                                                                        |
| extra_dhcp_opts       | --------------------------空                                                                                    |
| fixed_ips             | {"subnet_id": "ac627712-e2b7-42fe-b61a-fdba9a2149cb", "ip_address": "172.16.103.8"} |
| id                    | ccec5545-ff16-48d9-98d1-94bb3e670e4a                                                |
| mac_address           | fa:16:3e:cf:04:42                                                                   |
| name                  |                                                                                     |
| network_id            | 38c0d85e-bdd1-4809-8c95-aeb9e62a8263                                                |
| port_security_enabled | True                                                                                |
| project_id            | 46cc02c6fab04f7095c4bc687d397610                                                    |
| revision_number       | 13                                                                                  |
| security_groups       | e70c2156-a68d-4343-a167-4caffee8c643                                                |
| status                | DOWN                                                                                |
| tags                  |                                                                                     |
| tenant_id             | 46cc02c6fab04f7095c4bc687d397610                                                    |
| updated_at            | 2020-07-16T00:54:20Z                                                                |
+-----------------------+-------------------------------------------------------------------------------------+
[root@bogon ironic]# 

裸金属创建失败,重新开始创建

 

启动nova boot之后,有一个了

 

 

[root@bogon ironic]# neutron port-show a92f804b-e043-410f-8993-035ac7d944cb
neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
+-----------------------+--------------------------------------------------------------------------------------+
| Field                 | Value                                                                                |
+-----------------------+--------------------------------------------------------------------------------------+
| admin_state_up        | True                                                                                 |
| allowed_address_pairs |                                                                                      |
| binding:host_id       |                                                                                      |
| binding:profile       | {}                                                                                   |
| binding:vif_details   | {}                                                                                   |
| binding:vif_type      | unbound                                                                              |
| binding:vnic_type     | normal                                                                               |
| created_at            | 2020-07-16T02:15:26Z                                                                 |
| description           |                                                                                      |
| device_id             | 7badbee4-6ea8-4e96-b80e-609fba888aa0                                                 |
| device_owner          | compute:nova                                                                         |
| extra_dhcp_opts       |                                                                                      |
| fixed_ips             | {"subnet_id": "ac627712-e2b7-42fe-b61a-fdba9a2149cb", "ip_address": "172.16.103.10"} |
| id                    | a92f804b-e043-410f-8993-035ac7d944cb                                                 |
| mac_address           | fa:16:3e:fb:0a:2b                                                                    |
| name                  |                                                                                      |
| network_id            | 38c0d85e-bdd1-4809-8c95-aeb9e62a8263                                                 |
| port_security_enabled | True                                                                                 |
| project_id            | 46cc02c6fab04f7095c4bc687d397610                                                     |
| revision_number       | 13                                                                                   |
| security_groups       | e70c2156-a68d-4343-a167-4caffee8c643                                                 |
| status                | DOWN                                                                                 |
| tags                  |                                                                                      |
| tenant_id             | 46cc02c6fab04f7095c4bc687d397610                                                     |
| updated_at            | 2020-07-16T02:15:58Z                                                                 |
+-----------------------+--------------------------------------------------------------------------------------+
[root@bogon ironic]# neutron port-show e3090bf1-a408-4355-8da2-e60bc17f6684
neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
+-----------------------+--------------------------------------------------------------------------------------------------------------------------------+
| Field                 | Value                                                                                                                          |
+-----------------------+--------------------------------------------------------------------------------------------------------------------------------+
| admin_state_up        | True                                                                                                                           |
| allowed_address_pairs |                                                                                                                                |
| binding:host_id       | 7cbeae82-cfc5-4ff3-bb0c-d3d9ac994a29                                                                                           |
| binding:profile       | {"local_link_information": [{"switch_info": "JG05-SA-01-CE8850", "port_id": "100GE1/0/14", "switch_id": "30:e9:8e:e0:0e:21"}]} |
| binding:vif_details   | {}                                                                                                                             |
| binding:vif_type      | other                                                                                                                          |
| binding:vnic_type     | baremetal                                                                                                                      |
| created_at            | 2020-07-16T02:16:04Z                                                                                                           |
| description           |                                                                                                                                |
| device_id             | 7badbee4-6ea8-4e96-b80e-609fba888aa0                                                                                           |
| device_owner          | baremetal:none                                                                                                                 |
| extra_dhcp_opts       | {"opt_value": "172.16.100.99", "ip_version": 4, "opt_name": "server-ip-address"}                                               |
|                       | {"opt_value": "/tftpboot/", "ip_version": 4, "opt_name": "210"}                                                                |
|                       | {"opt_value": "172.16.100.99", "ip_version": 4, "opt_name": "150"}                                                             |
|                       | {"opt_value": "grubaa64.efi", "ip_version": 4, "opt_name": "67"}                                                               |
|                       | {"opt_value": "172.16.100.99", "ip_version": 4, "opt_name": "66"}                                                              |
| fixed_ips             | {"subnet_id": "c25fbc7b-230c-41f5-8ffe-605c895e98ef", "ip_address": "172.16.100.101"}                                          |
| id                    | e3090bf1-a408-4355-8da2-e60bc17f6684                                                                                           |
| mac_address           | 1c:ae:cb:eb:91:e6                                                                                                              |
| name                  |                                                                                                                                |
| network_id            | f1411bad-100e-46f8-91f1-639da9020801                                                                                           |
| port_security_enabled | True                                                                                                                           |
| project_id            | 42272601916748e2ba64d8a1c5413ba4                                                                                               |
| revision_number       | 14                                                                                                                             |
| security_groups       | 3d9150b8-1d58-4d16-8066-33908ec3b910                                                                                           |
| status                | ACTIVE                                                                                                                         |
| tags                  |                                                                                                                                |
| tenant_id             | 42272601916748e2ba64d8a1c5413ba4                                                                                               |
| updated_at            | 2020-07-16T02:16:27Z                                                                                                           |
+-----------------------+--------------------------------------------------------------------------------------------------------------------------------+
[root@bogon ironic]# 

[root@bogon ironic]# neutron port-show a92f804b-e043-410f-8993-035ac7d944cb
neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
+-----------------------+--------------------------------------------------------------------------------------------------------------------------------+
| Field                 | Value                                                                                                                          |
+-----------------------+--------------------------------------------------------------------------------------------------------------------------------+
| admin_state_up        | True                                                                                                                           |
| allowed_address_pairs |                                                                                                                                |
| binding:host_id       | 7cbeae82-cfc5-4ff3-bb0c-d3d9ac994a29                                                                                           |
| binding:profile       | {"local_link_information": [{"switch_info": "JG05-SA-01-CE8850", "port_id": "100GE1/0/14", "switch_id": "30:e9:8e:e0:0e:21"}]} |
| binding:vif_details   | {}                                                                                                                             |
| binding:vif_type      | other                                                                                                                          |
| binding:vnic_type     | baremetal                                                                                                                      |
| created_at            | 2020-07-16T02:15:26Z                                                                                                           |
| description           |                                                                                                                                |
| device_id             | 7badbee4-6ea8-4e96-b80e-609fba888aa0                                                                                           |
| device_owner          | compute:nova                                                                                                                   |
| extra_dhcp_opts       |                                                                                                                                |
| fixed_ips             | {"subnet_id": "ac627712-e2b7-42fe-b61a-fdba9a2149cb", "ip_address": "172.16.103.10"}                                           |
| id                    | a92f804b-e043-410f-8993-035ac7d944cb                                                                                           |
| mac_address           | 1c:ae:cb:eb:91:e6                                                                                                              |
| name                  |                                                                                                                                |
| network_id            | 38c0d85e-bdd1-4809-8c95-aeb9e62a8263                                                                                           |
| port_security_enabled | True                                                                                                                           |
| project_id            | 46cc02c6fab04f7095c4bc687d397610                                                                                               |
| revision_number       | 17                                                                                                                             |
| security_groups       | e70c2156-a68d-4343-a167-4caffee8c643                                                                                           |
| status                | ACTIVE                                                                                                                         |
| tags                  |                                                                                                                                |
| tenant_id             | 46cc02c6fab04f7095c4bc687d397610                                                                                               |
| updated_at            | 2020-07-16T02:24:26Z                                                                                                           |
+-----------------------+--------------------------------------------------------------------------------------------------------------------------------+
[root@bogon ironic]# 

[root@bogon ironic]# neutron port-show a92f804b-e043-410f-8993-035ac7d944cb
neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
+-----------------------+--------------------------------------------------------------------------------------------------------------------------------+
| Field                 | Value                                                                                                                          |
+-----------------------+--------------------------------------------------------------------------------------------------------------------------------+
| admin_state_up        | True                                                                                                                           |
| allowed_address_pairs |                                                                                                                                |
| binding:host_id       | 7cbeae82-cfc5-4ff3-bb0c-d3d9ac994a29                                                                                           |
| binding:profile       | {"local_link_information": [{"switch_info": "JG05-SA-01-CE8850", "port_id": "100GE1/0/14", "switch_id": "30:e9:8e:e0:0e:21"}]} |
| binding:vif_details   | {}                                                                                                                             |
| binding:vif_type      | other                                                                                                                          |
| binding:vnic_type     | baremetal      ---- 更新                                                                                                                |
| created_at            | 2020-07-16T02:15:26Z                                                                                                           |
| description           |                                                                                                                                |
| device_id             | 7badbee4-6ea8-4e96-b80e-609fba888aa0                                                                                           |
| device_owner          | compute:nova      -------------更新                                                                                                             |
| extra_dhcp_opts       |                                                                                                                                |
| fixed_ips             | {"subnet_id": "ac627712-e2b7-42fe-b61a-fdba9a2149cb", "ip_address": "172.16.103.10"}                                           |
| id                    | a92f804b-e043-410f-8993-035ac7d944cb                                                                                           |
| mac_address           | 1c:ae:cb:eb:91:e6  -------------- 更新                                                                                                            |
| name                  |                                                                                                                                |
| network_id            | 38c0d85e-bdd1-4809-8c95-aeb9e62a8263                                                                                           |
| port_security_enabled | True                                                                                                                           |
| project_id            | 46cc02c6fab04f7095c4bc687d397610                                                                                               |
| revision_number       | 17                                                                                                                             |
| security_groups       | e70c2156-a68d-4343-a167-4caffee8c643                                                                                           |
| status                | ACTIVE                                                                                                                         |
| tags                  |                                                                                                                                |
| tenant_id             | 46cc02c6fab04f7095c4bc687d397610                                                                                               |
| updated_at            | 2020-07-16T02:24:26Z                                                                                                           |
+-----------------------+--------------------------------------------------------------------------------------------------------------------------------+
[root@bogon ironic]# 
原文地址:https://www.cnblogs.com/dream397/p/13320779.html