The simultaneous launch of two or more VMs will fail

Bug #1352728 reported by Charlotte Han
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
High
Charlotte Han

Bug Description

Using dashboard launching VMs, the setting is that 'Instance Count : 2, Instance Boot Source : Boot from image'. After clicking the button of 'launch', the simultaneous launch of two VMs failed.

the nova-api.log shows as follows.
"/usr/lib/python2.7/site-packages/nova/compute/api.py", line 1356, in create
2014-08-05 21:47:46.117 25518 TRACE nova.api.openstack self._check_multiple_instances_neutron_ports(requested_networks)
2014-08-05 21:47:46.117 25518 TRACE nova.api.openstack File "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 1327, in _check_multiple_instances_neutron_ports
2014-08-05 21:47:46.117 25518 TRACE nova.api.openstack for net, ip, port in requested_networks:
2014-08-05 21:47:46.117 25518 TRACE nova.api.openstack ValueError: too many values to unpack

Tags: compute
Revision history for this message
Charlotte Han (hanrong) wrote :

beacause of the error log 'too many values to unpack', I modifed the code of 'for (net, ip, port) in requested_networks:' to 'for (net, ip, port, vnic_type) in requested_networks:' in nova/compute/api.py, and the simultaneous launch of two VMs successed.

Tracy Jones (tjones-i)
tags: added: compute
Changed in nova:
importance: Undecided → Medium
importance: Medium → High
status: New → Triaged
Changed in nova:
assignee: nobody → sahid (sahid-ferdjaoui)
Revision history for this message
Sahid Orentino (sahid-ferdjaoui) wrote :

Can you confirm that you are using Neutron?

Revision history for this message
Charlotte Han (hanrong) wrote :

Yes, I am using Neutron.

The path of assigning value to the parameter "requested_networks" is as follows:

Class : "nova.api.openstack.compute.servers.Controller"

Function : "def _get_requested_networks(self, requested_networks):"

Statement :
"if utils.is_neutron():
    networks.append((network_uuid, address, port_id, vnic_type))"

Charlotte Han (hanrong)
Changed in nova:
assignee: sahid (sahid-ferdjaoui) → Rong Han ZTE (spring068)
Revision history for this message
Robert Collins (lifeless) wrote :

I believe this is fixed in trunk, using attribute access rather than tuple unpacking.

Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote :

marking as fix committed per lifeless.

Changed in nova:
status: Triaged → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → kilo-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: kilo-3 → 2015.1.0
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.