Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Cloud:OpenStack:Icehouse
openstack-nova-doc
bsc904389-multiple-security-groups.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File bsc904389-multiple-security-groups.patch of Package openstack-nova-doc
From ce1bfe191c479e46f8ac53c3ae61f12bb81245d9 Mon Sep 17 00:00:00 2001 From: Alberto Planas <aplanas@gmail.com> Date: Thu, 5 Mar 2015 17:34:31 +0100 Subject: [PATCH] VM launch fails with Neutron, same secgroup name Initially we were unable to boot a VM in admin tenant using secgroup name same as that in other tenant. Now, with this fix we are able to boot a VM with the same scenario. Closes-Bug : #1203413 Backported from: https://review.openstack.org/#/c/131727/1 --- nova/compute/api.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nova/compute/api.py b/nova/compute/api.py index 31cdcb2..563ed76 100644 --- a/nova/compute/api.py +++ b/nova/compute/api.py @@ -450,7 +450,8 @@ def _check_requested_secgroups(self, context, secgroups): # NOTE(sdague): default is handled special if secgroup == "default": continue - if not self.security_group_api.get(context, secgroup): + if not self.security_group_api.list(context, names=secgroup, + project=context.project_id): raise exception.SecurityGroupNotFoundForProject( project_id=context.project_id, security_group_id=secgroup)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor