VM launching fails when multiple --nic options with v4-fixed-ip are specified

Bug #1100646 reported by Akihiro Motoki
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Undecided
Akihiro Motoki

Bug Description

When multiple --nic options with v4-fixed-ip are specified, VM fails to launch.

$ nova boot --image tty-quantum --flavor 1 --nic net-id=7922b86e-f681-4e86-8932-72e14b8dd02e,v4-fixed-ip=10.0.0.100 --nic net-id=51b694a9-914e-4f6d-a02b-f49364600de9,v4-fixed-ip=192.168.20.100 s2
$ nova list
+--------------------------------------+------+--------+----------+
| ID | Name | Status | Networks |
+--------------------------------------+------+--------+----------+
| 15f3e032-c1be-499a-9381-20948855087b | s2 | ERROR | |
+--------------------------------------+------+--------+----------+

nova-compute got the following trackback:

Traceback (most recent call last):
  File "/opt/stack/nova/nova/compute/manager.py", line 926, in _allocate_network
    macs=macs)
  File "/opt/stack/nova/nova/network/quantumv2/api.py", line 177, in allocate_for_instance
    quantum.delete_port(port_id)
  File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__
    self.gen.next()
  File "/opt/stack/nova/nova/network/quantumv2/api.py", line 160, in allocate_for_instance
    fixed_ip}]
  File "/opt/stack/python-quantumclient/quantumclient/v2_0/client.py", line 103, in with_params
    ret = self.function(instance, *args, **kwargs)
  File "/opt/stack/python-quantumclient/quantumclient/v2_0/client.py", line 227, in create_port
    return self.post(self.ports_path, body=body)
  File "/opt/stack/python-quantumclient/quantumclient/v2_0/client.py", line 594, in post
    headers=headers, params=params)
  File "/opt/stack/python-quantumclient/quantumclient/v2_0/client.py", line 519, in do_request
    self._handle_fault_response(status_code, replybody)
  File "/opt/stack/python-quantumclient/quantumclient/v2_0/client.py", line 500, in _handle_fault_response
    exception_handler_v20(status_code, des_error_body)
  File "/opt/stack/python-quantumclient/quantumclient/v2_0/client.py", line 76, in exception_handler_v20
    raise exceptions.QuantumClientException(message=error_dict)
QuantumClientException: Invalid input for operation: IP address 192.168.20.100 is not a valid IP for the defined networks
 subnets.

Akihiro Motoki (amotoki)
Changed in nova:
assignee: nobody → Akihiro Motoki (amotoki)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/19903

Changed in nova:
status: New → In Progress
Revision history for this message
Jian Wen (wenjianhn) wrote :

fixed in bug 1154093

Changed in nova:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.