security groups weren't created for some users
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Rally |
New
|
Undecided
|
Unassigned |
Bug Description
Hi,
I used "allow_
BadRequest: Unable to find security_group with name or id 'c_rally_
Traceback (most recent call last):
File "/usr/local/
getattr(
File "/home/
self.
File "/usr/local/
f = func(self, *args, **kwargs)
File "/usr/local/
server_name, image, flavor, **kwargs)
File "/usr/local/
**boot_kwargs)
File "/usr/local/
return_
File "/usr/local/
resp, body = self.api.
File "/usr/local/
return self.request(url, 'POST', **kwargs)
File "/usr/local/
raise exceptions.
BadRequest: Unable to find security_group with name or id 'c_rally_
Then I reviewed allow_ssh.py. It seems that it wants to create a security group for each user. But the neutron.
And when booting server, if the selected user is not the same one, it will trigger this bug.
neutron = osclients.
security_groups = neutron.
rally_open = [sg for sg in security_groups if sg["name"] == secgroup_name]
if not rally_open:
descr = "Allow ssh access to VMs created by Rally"
rally_open = neutron.
else:
rally_open = rally_open[0]
HI, thanks for your report, could you share your scenario ? neutron. list_security_ groups( ) should list security groups
to which the project has access.