scenario/manager.py create security_group failed for tenant other than the default admin and tenant
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tempest |
Fix Released
|
Undecided
|
Ghanshyam Mann |
Bug Description
instance of class NetworkScenario
<instance of NetworkScenario
[1] security group - self._create_
[2] loginable security group rule - self._create_
The problem is on [2] as it did not pass the client to create security rule, if the client is the <instance of NetworkScenario
The test will failed with:
BadRequest: Bad request
Details: {u'NeutronError': u"Specifying 'tenant_id' other than authenticated tenant in request requires admin privileges"}
we need to change:
rules = self._create_
to
rules = self._create_
so if I call self._create_
Correction: if the client is NOT either the NetworkScenario Test's admin or tenant project.