← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1237711] Re: Creating instance on network with no subnet: no error message

 

** Also affects: nova
   Importance: Undecided
       Status: New

** Also affects: neutron
   Importance: Undecided
       Status: New

-- 
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/1237711

Title:
  Creating instance on network with no subnet: no error message

Status in OpenStack Dashboard (Horizon):
  In Progress
Status in OpenStack Neutron (virtual network service):
  New
Status in OpenStack Compute (Nova):
  New

Bug description:
  When trying to launch an instance on a network without any subnet the
  creation fails. No error message is provided even though it is clear
  the issue is due to the lack of a subnet. No entry visible in the log
  for that instance.

  nova scheduler log:
  --------------------------
  l2013-10-09 15:14:35.249 INFO nova.scheduler.filter_scheduler [req-df928b03-ae40-4d34-ae6c-00160f59dc3c admin admin] Attempting to build 1 instance(s) uuids: [u'0d2a3866-23b0-4f85-9689-f4b37877e950']
  2013-10-09 15:14:35.279 INFO nova.scheduler.filter_scheduler [req-df928b03-ae40-4d34-ae6c-00160f59dc3c admin admin] Choosing host WeighedHost [host: kraken-vc1-ubuntu1, weight: 252733.0] for instance 0d2a3866-23b0-4f85-9689-f4b37877e950
  2013-10-09 15:14:38.028 INFO nova.scheduler.filter_scheduler [req-df928b03-ae40-4d34-ae6c-00160f59dc3c admin admin] Attempting to build 1 instance(s) uuids: [u'0d2a3866-23b0-4f85-9689-f4b37877e950']
  2013-10-09 15:14:38.030 ERROR nova.scheduler.filter_scheduler [req-df928b03-ae40-4d34-ae6c-00160f59dc3c admin admin] [instance: 0d2a3866-23b0-4f85-9689-f4b37877e950] Error from last host: kraken-vc1-ubuntu1 (node domain-c21(kraken-vc1)): [u'Traceback (most recent call last):\n', u'  File "/opt/stack/nova/nova/compute/manager.py", line 1039, in _build_instance\n    set_access_ip=set_access_ip)\n', u'  File "/opt/stack/nova/nova/compute/manager.py", line 1412, in _spawn\n    LOG.exception(_(\'Instance failed to spawn\'), instance=instance)\n', u'  File "/opt/stack/nova/nova/compute/manager.py", line 1409, in _spawn\n    block_device_info)\n', u'  File "/opt/stack/nova/nova/virt/vmwareapi/driver.py", line 623, in spawn\n    admin_password, network_info, block_device_info)\n', u'  File "/opt/stack/nova/nova/virt/vmwareapi/vmops.py", line 243, in spawn\n    vif_infos = _get_vif_infos()\n', u'  File "/opt/stack/nova/nova/virt/vmwareapi/vmops.py", line 227, in _get_vif_infos\n    for vif in network_info:\n', u'  File "/opt/stack/nova/nova/network/model.py", line 375, in __iter__\n    return self._sync_wrapper(fn, *args, **kwargs)\n', u'  File "/opt/stack/nova/nova/network/model.py", line 366, in _sync_wrapper\n    self.wait()\n', u'  File "/opt/stack/nova/nova/network/model.py", line 398, in wait\n    self[:] = self._gt.wait()\n', u'  File "/usr/local/lib/python2.7/dist-packages/eventlet/greenthread.py", line 168, in wait\n    return self._exit_event.wait()\n', u'  File "/usr/local/lib/python2.7/dist-packages/eventlet/event.py", line 120, in wait\n    current.throw(*self._exc)\n', u'  File "/usr/local/lib/python2.7/dist-packages/eventlet/greenthread.py", line 194, in main\n    result = function(*args, **kwargs)\n', u'  File "/opt/stack/nova/nova/compute/manager.py", line 1230, in _allocate_network_async\n    dhcp_options=dhcp_options)\n', u'  File "/opt/stack/nova/nova/network/api.py", line 49, in wrapper\n    res = f(self, context, *args, **kwargs)\n', u'  File "/opt/stack/nova/nova/network/neutronv2/api.py", line 315, in allocate_for_instance\n    raise exception.SecurityGroupCannotBeApplied()\n', u'SecurityGroupCannotBeApplied: Network requires port_security_enabled and subnet associated in order to apply security groups.\n']
  2013-10-09 15:14:38.055 WARNING nova.scheduler.driver [req-df928b03-ae40-4d34-ae6c-00160f59dc3c admin admin] [instance: 0d2a3866-23b0-4f85-9689-f4b37877e950] Setting instance to ERROR state

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1237711/+subscriptions