Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1661193

Summary: [OSP14] ovaException: Unsupported VIF type unbound convert '_nova_to_osvif_vif_unbound'
Product: Red Hat OpenStack Reporter: Stephen Finucane <stephenfin>
Component: openstack-novaAssignee: Stephen Finucane <stephenfin>
Status: CLOSED ERRATA QA Contact: OSP DFG:Compute <osp-dfg-compute>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 14.0 (Rocky)CC: dasmith, eglynn, jhakimra, kchamart, lyarwood, rheslop, sbauza, sgordon, vromanso
Target Milestone: z2Keywords: Triaged, ZStream
Target Release: 14.0 (Rocky)   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: openstack-nova-18.1.1-0.20190118044802.6e1120a.el7ost Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: 1578028
: 1661196 (view as bug list) Environment:
Last Closed: 2019-04-30 17:47:20 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1578028, 1661196    

Comment 4 Joe H. Rahme 2019-04-19 07:58:31 UTC
Verified using the following script[1]:

[1]: https://bugs.launchpad.net/nova/+bug/1751923/comments/10

-------------------------------------------
#!/usr/bin/env bash
set -x

IMAGE="cirros-0.3.5-x86_64-disk"
NETWORK="private"
FLAVOR="m1.nano"
TEMP_TOKEN=$(openstack token issue -c id -f value)
SERVER=$(openstack server create --image ${IMAGE} --flavor ${FLAVOR} --network ${NETWORK} -c id -f value --wait repro-bug)
openstack server show ${SERVER}
PORT_ID=$(openstack port list --device-id ${SERVER} -f value -c id)
openstack port show ${PORT_ID}

#wait for it to be fully up
sleep 10

NEUTRON_ENDPOINT=$(openstack endpoint list --service network -f value -c URL)
curl -X PUT -H "X-Auth-Token:${TEMP_TOKEN}" -d '{ "port":{"device_id":"","device_owner":"", "binding:host_id":"" }}' "${NEUTRON_ENDPOINT}v2.0/ports/${PORT_ID}" | python -mjson.tool
# after this curl command nova and neutron will diagree as to the state of the port.

openstack server reboot --hard --wait ${SERVER}
# after the vm is rebooted the vm will not have an interface attached
openstack server show ${SERVER}
openstack port show ${PORT_ID}

#try to fix the issue by attaching the port again
openstack server add port ${SERVER} ${PORT_ID}
# note this will result in fixing the port in neutron but it will be broken on the nova side
# as a result the vm will still not have an interface attach but nuetron will say it is.
openstack server show ${SERVER}
openstack port show ${PORT_ID}

# wait for nova to have time to try and attach the interface
sleep 30
openstack server reboot --hard --wait ${SERVER}

set +x
------------------------------------------------------

Result:

+ IMAGE=cirros-0.3.5-x86_64-disk.img
+ NETWORK=private
+ FLAVOR=m1.nano
++ openstack token issue -c id -f value
+ TEMP_TOKEN=gAAAAABcuXuASL42VdZMkOioizgYBptZuWF099g41n2xPHYYpU-mpGlaw_Z8J1sJ7pQI0q1ztf43w7-i1KEwhb18CnjqSbtbG1oa7Hytj8kW-evYKht7P05bPWjAIS_lAg6fOubKgU5kxLKLWpNJ44q5cAdM-XeV
-sWAdSKwIAHZVD-lASdCG44
++ openstack server create --image cirros-0.3.5-x86_64-disk.img --flavor m1.nano --network private -c id -f value --wait repro-bug
+ SERVER='
09bbba88-fc8f-407a-917f-7319d059bf14'
+ openstack server show 09bbba88-fc8f-407a-917f-7319d059bf14
+-------------------------------------+---------------------------------------------------------------------------------------------------+
| Field                               | Value                                                                                             |
+-------------------------------------+---------------------------------------------------------------------------------------------------+
| OS-DCF:diskConfig                   | MANUAL                                                                                            |
| OS-EXT-AZ:availability_zone         | nova                                                                                              |
| OS-EXT-SRV-ATTR:host                | compute-0.localdomain                                                                             |
| OS-EXT-SRV-ATTR:hostname            | repro-bug                                                                                         |
| OS-EXT-SRV-ATTR:hypervisor_hostname | compute-0.localdomain                                                                             |
| OS-EXT-SRV-ATTR:instance_name       | instance-00000032                                                                                 |
| 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-jejkf1hq                                                                                        |
| OS-EXT-SRV-ATTR:root_device_name    | /dev/vda                                                                                          |
| OS-EXT-SRV-ATTR:user_data           | None                                                                                              |
| OS-EXT-STS:power_state              | Running                                                                                           |
| OS-EXT-STS:task_state               | None                                                                                              |
| OS-EXT-STS:vm_state                 | active                                                                                            |
| OS-SRV-USG:launched_at              | 2019-04-19T07:41:13.000000                                                                        |
| OS-SRV-USG:terminated_at            | None                                                                                              |
| accessIPv4                          |                                                                                                   |
| accessIPv6                          |                                                                                                   |
| addresses                           | private=192.168.200.13                                                                            |
| config_drive                        |                                                                                                   |
| created                             | 2019-04-19T07:41:01Z                                                                              |
| description                         | None                                                                                              |
| flavor                              | disk='0', ephemeral='0', extra_specs='{}', original_name='m1.nano', ram='64', swap='0', vcpus='1' |
| hostId                              | b26c6721bb1fa10540ecb515748a9817dacebb65e3c441fc4d8231a4                                          |
| host_status                         | UP                                                                                                |
| id                                  | 09bbba88-fc8f-407a-917f-7319d059bf14                                                              |
| image                               | cirros-0.3.5-x86_64-disk.img (715a9f03-3b16-4cdf-952f-00810a43ca7d)                               |
| key_name                            | None                                                                                              |
| locked                              | False                                                                                             |                         [191/880]
| name                                | repro-bug                                                                                         |
| progress                            | 0                                                                                                 |
| project_id                          | 4fb97dfada084d90a68770d770a7acf8                                                                  |
| properties                          |                                                                                                   |
| security_groups                     | name='default'                                                                                    |
| status                              | ACTIVE                                                                                            |
| tags                                | []                                                                                                |
| updated                             | 2019-04-19T07:41:13Z                                                                              |
| user_id                             | ed580196c0a248ff88e6c4745902714f                                                                  |
| volumes_attached                    |                                                                                                   |
+-------------------------------------+---------------------------------------------------------------------------------------------------+
++ openstack port list --device-id 09bbba88-fc8f-407a-917f-7319d059bf14 -f value -c id
+ PORT_ID=661396cc-bccd-4fc1-ba65-52785383e153
+ openstack port show 661396cc-bccd-4fc1-ba65-52785383e153
+-----------------------+-------------------------------------------------------------------------------+
| Field                 | Value                                                                         |
+-----------------------+-------------------------------------------------------------------------------+
| admin_state_up        | UP                                                                            |
| allowed_address_pairs |                                                                               |
| binding_host_id       | compute-0.localdomain                                                         |
| binding_profile       |                                                                               |
| binding_vif_details   | datapath_type='system', ovs_hybrid_plug='True', port_filter='True'            |
| binding_vif_type      | ovs                                                                           |
| binding_vnic_type     | normal                                                                        |
| created_at            | 2019-04-19T07:41:05Z                                                          |
| data_plane_status     | None                                                                          |
| description           |                                                                               |
| device_id             | 09bbba88-fc8f-407a-917f-7319d059bf14                                          |
| device_owner          | compute:nova                                                                  |
| dns_assignment        | None                                                                          |
| dns_domain            | None                                                                          |
| dns_name              | None                                                                          |
| extra_dhcp_opts       |                                                                               |
| fixed_ips             | ip_address='192.168.200.13', subnet_id='b2137333-4d6c-4e9c-8aeb-8e541e12cfea' |
| id                    | 661396cc-bccd-4fc1-ba65-52785383e153                                          |
| mac_address           | fa:16:3e:59:c2:db                                                             |
| name                  |                                                                               |
| network_id            | 7de899a3-d16a-418f-85bd-f631f7371e32                                          |
| port_security_enabled | True                                                                          |
| project_id            | 4fb97dfada084d90a68770d770a7acf8                                              |
| qos_policy_id         | None                                                                          |
| revision_number       | 7                                                                             |
| security_group_ids    | 709a877c-2178-4ee6-93dc-d2cfced40153                                          |
| status                | ACTIVE                                                                        |
| tags                  |                                                                               |
| trunk_details         | None                                                                          |
| updated_at            | 2019-04-19T07:41:50Z                                                          |
+-----------------------+-------------------------------------------------------------------------------+
+ openstack server add port 09bbba88-fc8f-407a-917f-7319d059bf14 661396cc-bccd-4fc1-ba65-52785383e153
Port 661396cc-bccd-4fc1-ba65-52785383e153 is still in use. (HTTP 409) (Request-ID: req-563d88de-d850-4072-ab58-e7cfbca13150)
+ openstack server show 09bbba88-fc8f-407a-917f-7319d059bf14
+-------------------------------------+---------------------------------------------------------------------------------------------------+
| Field                               | Value                                                                                             |
+-------------------------------------+---------------------------------------------------------------------------------------------------+
| OS-DCF:diskConfig                   | MANUAL                                                                                            |
| OS-EXT-AZ:availability_zone         | nova                                                                                              |
| OS-EXT-SRV-ATTR:host                | compute-0.localdomain                                                                             |
| OS-EXT-SRV-ATTR:hostname            | repro-bug                                                                                         |
| OS-EXT-SRV-ATTR:hypervisor_hostname | compute-0.localdomain                                                                             |
| OS-EXT-SRV-ATTR:instance_name       | instance-00000032                                                                                 |
| 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-jejkf1hq                                                                                        |
| OS-EXT-SRV-ATTR:root_device_name    | /dev/vda                                                                                          |
| OS-EXT-SRV-ATTR:user_data           | None                                                                                              |
| OS-EXT-STS:power_state              | Running                                                                                           |
| OS-EXT-STS:task_state               | None                                                                                              |
| OS-EXT-STS:vm_state                 | active                                                                                            |
| OS-SRV-USG:launched_at              | 2019-04-19T07:41:13.000000                                                                        |
| OS-SRV-USG:terminated_at            | None                                                                                              |
| accessIPv4                          |                                                                                                   |
| accessIPv6                          |                                                                                                   |
| addresses                           | private=192.168.200.13                                                                            |
| config_drive                        |                                                                                                   |
| created                             | 2019-04-19T07:41:01Z                                                                              |
| description                         | None                                                                                              |
| flavor                              | disk='0', ephemeral='0', extra_specs='{}', original_name='m1.nano', ram='64', swap='0', vcpus='1' |
| hostId                              | b26c6721bb1fa10540ecb515748a9817dacebb65e3c441fc4d8231a4                                          |
| host_status                         | UP                                                                                                |
| id                                  | 09bbba88-fc8f-407a-917f-7319d059bf14                                                              |
| image                               | cirros-0.3.5-x86_64-disk.img (715a9f03-3b16-4cdf-952f-00810a43ca7d)                               |
| key_name                            | None                                                                                              |
| locked                              | False                                                                                             |
| name                                | repro-bug                                                                                         |
| progress                            | 0                                                                                                 |
| project_id                          | 4fb97dfada084d90a68770d770a7acf8                                                                  |
| properties                          |                                                                                                   |
| security_groups                     | name='default'                                                                                    |
| status                              | ACTIVE                                                                                            |
| tags                                | []                                                                                                |
| updated                             | 2019-04-19T07:41:50Z                                                                              |
| user_id                             | ed580196c0a248ff88e6c4745902714f                                                                  |
| volumes_attached                    |                                                                                                   |
+-------------------------------------+---------------------------------------------------------------------------------------------------+
+ openstack port show 661396cc-bccd-4fc1-ba65-52785383e153
+-----------------------+-------------------------------------------------------------------------------+
| Field                 | Value                                                                         |
+-----------------------+-------------------------------------------------------------------------------+
| admin_state_up        | UP                                                                            |
| allowed_address_pairs |                                                                               |
| binding_host_id       | compute-0.localdomain                                                         |
| binding_profile       |                                                                               |
| binding_vif_details   | datapath_type='system', ovs_hybrid_plug='True', port_filter='True'            |
| binding_vif_type      | ovs                                                                           |
| binding_vnic_type     | normal                                                                        |
| created_at            | 2019-04-19T07:41:05Z                                                          |
| data_plane_status     | None                                                                          |
| description           |                                                                               |
| device_id             | 09bbba88-fc8f-407a-917f-7319d059bf14                                          |
| device_owner          | compute:nova                                                                  |
| dns_assignment        | None                                                                          |
| dns_domain            | None                                                                          |
| dns_name              | None                                                                          |
| extra_dhcp_opts       |                                                                               |
| fixed_ips             | ip_address='192.168.200.13', subnet_id='b2137333-4d6c-4e9c-8aeb-8e541e12cfea' |
| id                    | 661396cc-bccd-4fc1-ba65-52785383e153                                          |
| mac_address           | fa:16:3e:59:c2:db                                                             |
| name                  |                                                                               |
| network_id            | 7de899a3-d16a-418f-85bd-f631f7371e32                                          |
| port_security_enabled | True                                                                          |
| project_id            | 4fb97dfada084d90a68770d770a7acf8                                              |
| qos_policy_id         | None                                                                          |
| revision_number       | 7                                                                             |
| security_group_ids    | 709a877c-2178-4ee6-93dc-d2cfced40153                                          |
| status                | ACTIVE                                                                        |
| tags                  |                                                                               |
| trunk_details         | None                                                                          |
| updated_at            | 2019-04-19T07:41:50Z                                                          |
+-----------------------+-------------------------------------------------------------------------------+
+ sleep 30
+ openstack server reboot --hard --wait 09bbba88-fc8f-407a-917f-7319d059bf14
Complete
+ set +x

real    2m14.722s
user    0m10.404s
sys     0m2.386s
(overcloud) [stack@undercloud-0 ~]$

Comment 6 errata-xmlrpc 2019-04-30 17:47:20 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2019:0941