neutron-lbaas tempest v2 api negative test-cases with invalid tenant-id fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Expired
|
Undecided
|
venkata anil |
Bug Description
Tempest v2 api negative tests for invalid or empty tenantid fails as tenant id is not validated at plugin layer.
1. In Case of looging noop driver (no validation is done by driver ) ,
In test , create returns success whereas it excepts BadRequest.
0} neutron_
Captured traceback:
~~~~~~~~~~~~~~~~~~~
Traceback (most recent call last):
File "neutron_
File "/opt/stack/
File "/opt/stack/
raise mismatch_error
testtools.
2.In case of if Backend Driver (Say NetScaler) ,driver is raising BadRequest .
=======
return self._callable_
File "neutron_
member = cls.members_
File "neutron_
resp, body = self.post(url, post_body)
File "/opt/stack/
return self.request(
File "/opt/stack/
raise exceptions.
tempest.
Details: Got server fault
Details: An error happened in the driver
=======
Above behavior is observed as ,at plugin layer all Exceptions from Driver is raised as same Driver Exception.
plugin.y
def _call_driver_
try:
if old_db_entity:
else:
# catching and reraising agent issues
except (lbaas_
raise no_agent
except Exception:
raise loadbalancerv2.
Negative Testcases:-
test_create_
test_create_
test_create_
test_create_
Changed in neutron: | |
assignee: | nobody → venkata anil (anil-venkata) |
I don't think it makes sense to file bugs about tenant_id validation until OS-wide design decision is made about this.
To abuse API with incorrect tenant id one needs to be admin; so currently the issue brings low risks.