Ask Your Question

Security group in /nova/network/quantumv2/

asked 2013-05-28 13:03:38 -0500

graklaudia gravatar image

Hi, I installed grizzly . I wanna to launch instance, but i get problem , in nova/nova-scheduler.log I get this log:

2013-05-28 14:53:23.716 ERROR nova.scheduler.filter_scheduler [req-ec80ec3e-948c-4c29-bd20-3d38fe506a2e f6e3916e12ab40efb5562c260f737168 e9ee41924fd44b34aba820d9e7e7ebf5] [instance: 17927393-5a46-4657-a1f0-b67631343994] Error from last host: c01 (node c01): [u'Traceback (most recent call last):\n', u' File "/usr/lib/python2.7/dist-packages/nova/compute/", line 817, in _run_instance\n requested_networks, macs, security_groups)\n', u' File "/usr/lib/python2.7/dist-packages/nova/compute/", line 1061, in _allocate_network\n instance=instance)\n', u' File "/usr/lib/python2.7/", line 24, in __exit__\n\n', u' File "/usr/lib/python2.7/dist-packages/nova/compute/", line 1057, in _allocate_network\n security_groups=security_groups)\n', u' File "/usr/lib/python2.7/dist-packages/nova/network/", line 46, in wrapper\n res = f(self, context, args, *kwargs)\n', u' File "/usr/lib/python2.7/dist-packages/nova/network/quantumv2/", line 232, 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-05-28 14:53:23.729 WARNING nova.scheduler.driver [req-ec80ec3e-948c-4c29-bd20-3d38fe506a2e f6e3916e12ab40efb5562c260f737168 e9ee41924fd44b34aba820d9e7e7ebf5] [instance: 17927393-5a46-4657-a1f0-b67631343994] Setting instance to ERROR state.

I know the codee of security groups and verification is there: (

How i done security groups? I just added then on controlleer node (with cmd) using this command:

Define security rules

nova secgroup-add-rule default icmp -1 -1 nova secgroup-add-rule default tcp 22 22 nova secgroup-add-rule default tcp 80 80

Why my instance dont wanna launch?? any suggestion?

edit retag flag offensive close merge delete

4 answers

Sort by » oldest newest most voted

answered 2013-05-31 02:31:10 -0500


Can you tell me what was the correction done?

Thanks Ashok

edit flag offensive delete link more

answered 2013-05-28 13:55:17 -0500

graklaudia gravatar image

Ok. I manage to solve this. thanks :)

edit flag offensive delete link more

answered 2013-06-12 16:48:53 -0500

I just ran into this problem, and thought I would post what I found. In my case, the issue turned out to be sleep deprivation and a lack of caffeine!

If you create a network via Admin->Networks->Create Network in Horizon, it creates a network, but not an associated subnet. This should be obvious, since it doesn't query you for the subnet information. If you then try to deploy a VM instance attaching it to this network, then the VM instance will go into the "Scheduling" state and hang there. The above error can then be found in /var/log/nova/nova-scheduler.log.

You can tell if a subnet is associated with a network by going to Admin->Networks and looking in the "Subnets Associated" column.

All that said, it would be less confusing if the Create Network button resulted in the same dialog that Project->Networks->Create Network button brings up.

edit flag offensive delete link more

answered 2013-09-30 07:01:19 -0500

sngirame gravatar image

I am too facing the same problem while launching the instance on a 3 machine setup (controller+network+compute) on ubuntu 12.04 grizzly release. How should I fix this?

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2013-05-28 13:03:38 -0500

Seen: 80 times

Last updated: Sep 30 '13