Reviewed:  https://review.openstack.org/257296
Committed: 
https://git.openstack.org/cgit/openstack/horizon/commit/?id=feb0ad027fbe105a9f291507dad0f84fff0ae13d
Submitter: Jenkins
Branch:    master

commit feb0ad027fbe105a9f291507dad0f84fff0ae13d
Author: Itxaka <[email protected]>
Date:   Mon Dec 14 12:55:57 2015 +0100

    Exclude networks with no subnets angular
    
    Nova doesnt allow to boot from a network which has
    no subnet, so we should not show those networks on the
    new instance launch angular panel.
    On the python launch instance this was solved in patch
    
https://github.com/openstack/horizon/commit/1b6807baf385d6e5768f149fa8e4d07bc24ebff1
    
    Change-Id: I8b94d45e95f8e22b579d04f6cec7345d947f8e12
    Closes-Bug: #1237711


** Changed in: horizon
       Status: In Progress => Fix Released

-- 
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):
  Fix Released
Status in OpenStack Compute (nova):
  Fix Released

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 "/o
 pt/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

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to