quantum allocate_for_instance() returns non-related subnet info for a port on a network without subnet
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
High
|
Akihiro Motoki |
Bug Description
When I try to launch an instance with a quantum network without subnet, allocate_
To reproduce this bug, we need to have at least one network with subnet and one network without subnet.
ubuntu@
+------
| admin_state_up | id | name | shared | status | subnets | tenant_id |
+------
| True | 210d15fe-
| True | 622a98dd-
+------
ubuntu@
+------
| allocation_pools | cidr | dns_nameservers | enable_dhcp | gateway_ip | host_routes | id | ip_version | name | network_id | tenant_id |
+------
| {"start": "10.0.0.2", "end": "10.0.0.254"} | 10.0.0.0/24 | [] | True | 10.0.0.1 | [] | 1f1b9f14-
+------
Then, launch an instance: nova boot --image c5b29b5f-
nova-compute log says:
Instance network_info: |[VIF({'network': Network({'bridge': '', 'subnets': [Subnet({'ips': [], 'version': 4, 'meta': {}, 'dns': [],
'routes': [], 'cidr': u'10.0.0.0/24', 'gateway': IP({'meta': {}, 'version': 4, 'type': 'gateway', 'address': u'10.0.0.1'})})], 'meta':
{'injected': False, 'tenant_id': u'c018797b92a44
'meta': {}, 'id': u'9db0c542-
The port is created on a network without subnet and no subnet is associated with the port.
If there is no subnet, network_info returned by allocate_
Instance network_info: |[VIF({'network': Network({'bridge': '', 'subnets': [], 'meta': {'injected': False, 'tenant_id': u'c018797b92a44
Changed in nova: | |
assignee: | nobody → Akihiro Motoki (amotoki) |
tags: | added: quantum |
Changed in nova: | |
status: | New → Confirmed |
milestone: | none → folsom-rc1 |
importance: | Undecided → High |
Changed in nova: | |
assignee: | Akihiro Motoki (amotoki) → Vish Ishaya (vishvananda) |
Changed in nova: | |
assignee: | Vish Ishaya (vishvananda) → Akihiro Motoki (amotoki) |
Changed in nova: | |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | folsom-rc1 → 2012.2 |
Fix proposed to branch: master /review. openstack. org/12195
Review: https:/