yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #55069
[Bug 1612953] Re: fail to boot instance with port of specfic subnet (regression)
*** This bug is a duplicate of bug 1612812 ***
https://bugs.launchpad.net/bugs/1612812
** This bug has been marked a duplicate of bug 1612812
OS-VIF: Interface missing from Route Object. (OVS)
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1612953
Title:
fail to boot instance with port of specfic subnet (regression)
Status in OpenStack Compute (nova):
New
Bug description:
Environment: Devstack from master(12.08.2016) on Ubuntu 14.04.
services: nova, neutron, swift, glance, keystone, cinder, ec2-api
steps to reproduce:
use any credentials, find you project id
1) create network
neutron net-create --tenant-id {{PROJECT_ID}} pnet
2) create SPECIFIC subnet
neutron subnet-create --tenant-id {{PROJECT_ID}} --ip_version 4 --name psubnet --host-route destination=10.17.0.0/20,nexthop=10.17.0.1 --no-gateway {{NETWORK_ID}} 10.17.0.0/24
3) create port
neutron port-create {{NETWORK_ID}}
4) boot instance
nova boot --flavor 1 --image "cirros-0.3.4-x86_64-uec" --nic port-id={{PORT_ID}} ttt
-> instance boot fails.
nova compute logs:
[req-26223e37-ddec-4f82-937d-efb1bdce0936 admin admin] [instance: 65e82e51-cbdb-4b1f-9ed2-77789a92a90a] Instance failed to spawn
[instance: 65e82e51-cbdb-4b1f-9ed2-77789a92a90a] Traceback (most recent call last):
[instance: 65e82e51-cbdb-4b1f-9ed2-77789a92a90a] File "/opt/stack/nova/nova/compute/manager.py", line 2075, in _build_resources
[instance: 65e82e51-cbdb-4b1f-9ed2-77789a92a90a] yield resources
[instance: 65e82e51-cbdb-4b1f-9ed2-77789a92a90a] File "/opt/stack/nova/nova/compute/manager.py", line 1919, in _build_and_run_instance
[instance: 65e82e51-cbdb-4b1f-9ed2-77789a92a90a] block_device_info=block_device_info)
[instance: 65e82e51-cbdb-4b1f-9ed2-77789a92a90a] File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 2658, in spawn
[instance: 65e82e51-cbdb-4b1f-9ed2-77789a92a90a] write_to_disk=True)
[instance: 65e82e51-cbdb-4b1f-9ed2-77789a92a90a] File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 4693, in _get_guest_xml
[instance: 65e82e51-cbdb-4b1f-9ed2-77789a92a90a] context)
[instance: 65e82e51-cbdb-4b1f-9ed2-77789a92a90a] File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 4525, in _get_guest_config
[instance: 65e82e51-cbdb-4b1f-9ed2-77789a92a90a] flavor, virt_type, self._host)
[instance: 65e82e51-cbdb-4b1f-9ed2-77789a92a90a] File "/opt/stack/nova/nova/virt/libvirt/vif.py", line 507, in get_config
[instance: 65e82e51-cbdb-4b1f-9ed2-77789a92a90a] vif_obj = os_vif_util.nova_to_osvif_vif(vif)
[instance: 65e82e51-cbdb-4b1f-9ed2-77789a92a90a] File "/opt/stack/nova/nova/network/os_vif_util.py", line 371, in nova_to_osvif_vif
[instance: 65e82e51-cbdb-4b1f-9ed2-77789a92a90a] vifobj = func(vif)
[instance: 65e82e51-cbdb-4b1f-9ed2-77789a92a90a] File "/opt/stack/nova/nova/network/os_vif_util.py", line 269, in _nova_to_osvif_vif_ovs
[instance: 65e82e51-cbdb-4b1f-9ed2-77789a92a90a] bridge_name=_get_hybrid_bridge_name(vif))
[instance: 65e82e51-cbdb-4b1f-9ed2-77789a92a90a] File "/opt/stack/nova/nova/network/os_vif_util.py", line 239, in _get_vif_instance
[instance: 65e82e51-cbdb-4b1f-9ed2-77789a92a90a] network=_nova_to_osvif_network(vif['network']),
[instance: 65e82e51-cbdb-4b1f-9ed2-77789a92a90a] File "/opt/stack/nova/nova/network/os_vif_util.py", line 205, in _nova_to_osvif_network
[instance: 65e82e51-cbdb-4b1f-9ed2-77789a92a90a] subnets=_nova_to_osvif_subnets(network['subnets']))
[instance: 65e82e51-cbdb-4b1f-9ed2-77789a92a90a] File "/opt/stack/nova/nova/network/os_vif_util.py", line 191, in _nova_to_osvif_subnets
[instance: 65e82e51-cbdb-4b1f-9ed2-77789a92a90a] objects=[_nova_to_osvif_subnet(subnet) for subnet in subnets])
[instance: 65e82e51-cbdb-4b1f-9ed2-77789a92a90a] File "/opt/stack/nova/nova/network/os_vif_util.py", line 173, in _nova_to_osvif_subnet
[instance: 65e82e51-cbdb-4b1f-9ed2-77789a92a90a] routes=_nova_to_osvif_routes(subnet['routes']))
[instance: 65e82e51-cbdb-4b1f-9ed2-77789a92a90a] File "/opt/stack/nova/nova/network/os_vif_util.py", line 157, in _nova_to_osvif_routes
[instance: 65e82e51-cbdb-4b1f-9ed2-77789a92a90a] objects=[_nova_to_osvif_route(route) for route in routes])
[instance: 65e82e51-cbdb-4b1f-9ed2-77789a92a90a] File "/opt/stack/nova/nova/network/os_vif_util.py", line 139, in _nova_to_osvif_route
[instance: 65e82e51-cbdb-4b1f-9ed2-77789a92a90a] interface=route['interface'])
[instance: 65e82e51-cbdb-4b1f-9ed2-77789a92a90a] File "/usr/local/lib/python2.7/dist-packages/oslo_versionedobjects/base.py", line 307, in __init__
[instance: 65e82e51-cbdb-4b1f-9ed2-77789a92a90a] setattr(self, key, kwargs[key])
[instance: 65e82e51-cbdb-4b1f-9ed2-77789a92a90a] File "/usr/local/lib/python2.7/dist-packages/oslo_versionedobjects/base.py", line 72, in setter
[instance: 65e82e51-cbdb-4b1f-9ed2-77789a92a90a] field_value = field.coerce(self, name, value)
[instance: 65e82e51-cbdb-4b1f-9ed2-77789a92a90a] File "/usr/local/lib/python2.7/dist-packages/oslo_versionedobjects/fields.py", line 193, in coerce
[instance: 65e82e51-cbdb-4b1f-9ed2-77789a92a90a] return self._null(obj, attr)
[instance: 65e82e51-cbdb-4b1f-9ed2-77789a92a90a] File "/usr/local/lib/python2.7/dist-packages/oslo_versionedobjects/fields.py", line 171, in _null
[instance: 65e82e51-cbdb-4b1f-9ed2-77789a92a90a] raise ValueError(_("Field `%s' cannot be None") % attr)
[instance: 65e82e51-cbdb-4b1f-9ed2-77789a92a90a] ValueError: Field `interface' cannot be None
[instance: 65e82e51-cbdb-4b1f-9ed2-77789a92a90a]
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1612953/+subscriptions
References