Openstack nic not getting attached to vm switch
I'm using kolla-ansible rocky branch with source containers to deploy openstack. I'm running the controller as a vm on top of my hyper-v compute host. I have a vlan subnet created but the vm's nic does not get attached to a switch. I'm using windows 2016 server on the hyper-v side.
This is the relevent log from my hyperv-neutron agent.
2019-10-30 15:44:37.697 7276 DEBUG networking_hyperv.neutron.agent.layer2 [req-019bb2af-11d1-4346-8765-658f7e53d76a - - - - -] Agent loop has new devices! _work C:\Program Files\Cloudbase Solutions\OpenStack\Nova\Python\lib\site-packages\networking_hyperv\neutron\agent\layer2.py:427
2019-10-30 15:44:38.056 7276 INFO networking_hyperv.neutron.agent.layer2 [req-019bb2af-11d1-4346-8765-658f7e53d76a - - - - -] Adding port 27b64897-28b5-4177-af65-157f1f103d35
2019-10-30 15:44:38.056 7276 DEBUG networking_hyperv.neutron.agent.layer2 [req-019bb2af-11d1-4346-8765-658f7e53d76a - - - - -] Missing port_id from device details: 27b64897-28b5-4177-af65-157f1f103d35. Details: {'device': '27b64897-28b5-4177-af65-157f1f103d35', 'no_active_binding': True} _treat_devices_added C:\Program Files\Cloudbase Solutions\OpenStack\Nova\Python\lib\site-packages\networking_hyperv\neutron\agent\layer2.py:374
2019-10-30 15:44:38.072 7276 DEBUG networking_hyperv.neutron.agent.layer2 [req-019bb2af-11d1-4346-8765-658f7e53d76a - - - - -] Remove the port from added ports set, so it doesn't get reprocessed. _treat_devices_added C:\Program Files\Cloudbase Solutions\OpenStack\Nova\Python\lib\site-packages\networking_hyperv\neutron\agent\layer2.py:376
I read a bit and some suggest this is because the neutron-server does not have the networking-hyperv package. Well mine does and it's version 5.0.0 but the package on my hyperv server is 7.0.1.0rc1. I used this installer to install the openstack hyperv bits https://cloudbase.it/downloads/HyperV...Rocky1803.msi
Here are the neutron server logs in debug mode
2019-11-14 08:17:39.373 28 DEBUG neutron.db.db_base_plugin_common [req-ca3e8550-af53-4152-8999-530c3169ee77 8c5f2b9d28c6406f829719bc79fb6268 0e170d3f44bd48ebb9a93123452a2928 - default default] Allocated IP 192.168.205.209 (f247d20a-56e8-4ac5-be99-b3f6015032bc/208d961c-b476-4b19-842b-2746aaf717c9/9cc09af2-d7f1-4534-8cb8-e84a27cf7a77) _store_ip_allocation /var/lib/kolla/venv/lib/python2.7/site-packages/neutron/db/db_base_plugin_common.py:121
2019-11-14 08:17:39.619 28 DEBUG neutron.db.provisioning_blocks [req-ca3e8550-af53-4152-8999-530c3169ee77 8c5f2b9d28c6406f829719bc79fb6268 0e170d3f44bd48ebb9a93123452a2928 - default default] Transition to ACTIVE for port object 9cc09af2-d7f1-4534-8cb8-e84a27cf7a77 will not be triggered until provisioned by entity DHCP. add_provisioning_component /var/lib/kolla/venv/lib/python2.7/site-packages/neutron/db/provisioning_blocks.py:73
2019-11-14 08:17:39.830 28 DEBUG neutron.api.rpc.handlers.resources_rpc [req-ca3e8550-af53-4152-8999-530c3169ee77 8c5f2b9d28c6406f829719bc79fb6268 0e170d3f44bd48ebb9a93123452a2928 - - -] Pushing event updated for resources: {'Port': ['ID=9cc09af2-d7f1-4534-8cb8-e84a27cf7a77,revision_number=1']} push /var/lib/kolla/venv/lib/python2.7/site-packages/neutron/api/rpc/handlers/resources_rpc.py:241
2019-11-14 08:17:40.607 28 DEBUG neutron.notifiers.nova [req-9f1eecb8-7f1b-4aad-83ed-2ddf2b6dfaab efeb14094ce14997aafeaf9764a4f44e 9d09538f8c0e47be85843674bf7c3767 - default default] Ignoring state change previous_port_status: DOWN current_port_status: DOWN port_id 9cc09af2-d7f1-4534-8cb8-e84a27cf7a77 record_port_status_changed /var/lib/kolla/venv/lib/python2.7/site-packages/neutron/notifiers/nova.py:209
2019-11-14 08:17:40.633 28 DEBUG neutron.db.provisioning_blocks [req-9f1eecb8-7f1b-4aad-83ed-2ddf2b6dfaab efeb14094ce14997aafeaf9764a4f44e 9d09538f8c0e47be85843674bf7c3767 - default default] Transition to ACTIVE for port object 9cc09af2-d7f1-4534-8cb8-e84a27cf7a77 will not be triggered until provisioned by entity L2. add_provisioning_component /var/lib/kolla/venv/lib/python2.7/site-packages/neutron/db/provisioning_blocks.py:73
2019-11-14 08:17:40.778 28 DEBUG neutron.api.rpc.handlers.resources_rpc [req-9f1eecb8-7f1b-4aad-83ed-2ddf2b6dfaab efeb14094ce14997aafeaf9764a4f44e 9d09538f8c0e47be85843674bf7c3767 - - -] Pushing event updated for resources: {'Port': ['ID=9cc09af2-d7f1-4534-8cb8-e84a27cf7a77,revision_number=2']} push /var/lib/kolla ...