← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1895876] [NEW] When accounts.yaml is used Tempest fails with "Invalid input for tenant_id. Reason: 'None' is not a valid string."

 

You have been subscribed to a public bug:

When accounts.yaml is used Tempest fails with "Invalid input for
tenant_id. Reason: 'None' is not a valid string.". However the test
cases run fine when dynamic_credentials is set to true.

The test cases that fail are:
neutron_tempest_plugin.api.test_security_groups.SecGroupTest.test_list_security_group_rules_contains_all_rules
neutron_tempest_plugin.api.test_security_groups_negative.NegativeSecGroupQuotaTest.test_create_excess_sg
neutron_tempest_plugin.api.test_security_groups_negative.NegativeSecGroupRulesQuotaTest.test_sg_creation_with_insufficient_sg_rules_quota

In the last two test cases above, the tenant_id in the URL to update quota is set to None.
200 PUT https://network-test.mydevstack.com/v2.0/quotas/None


Here's the trace...
1. When dynamic_credentials=false and accounts.yaml is used
201 POST https://identity-test.mydevstack.com/v3/auth/tokens
	"user": {"id": "f7cfb79d7e3949bca57cdc0a5726fcf6", "name": "reddy-7026"}, "project": {"id": "69999036590244c5a6e7e22299179bfa", "name": "reddy-7026-DO-NOT-DELETE-tempest-proj"},
	
201 POST https://identity-test.mydevstack.com/v3/auth/tokens	
	{"user": "id": "64b91e81a61a4ff9a53921225ef5c688", "name": "reddy-7047"}, "project": {"id": "583b79fb166a49bda12ea53896e79ed6", "name": "reddy-7047-DO-NOT-DELETE-tempest-proj"}

201 POST https://identity-test.mydevstack.com/v3/auth/tokens
	"user": {"id": "64b91e81a61a4ff9a53921225ef5c688", "name": "reddy-7047"}, "project": {"id": "583b79fb166a49bda12ea53896e79ed6", "name": "reddy-7047-DO-NOT-DELETE-tempest-proj"}
	
Request (NegativeSecGroupQuotaTest:test_create_excess_sg): 200 GET https://network-test.mydevstack.com/v2.0/quotas/None
	Body: b'{"quota": {"network": 100, "subnet": 100, "subnetpool": -1, "port": 500, "router": 10, "floatingip": 50, "rbac_policy": 10, "security_group": 10, "security_group_rule": 100, "trunk": -1}}
		
200 PUT https://network-test.mydevstack.com/v2.0/quotas/None
	Body: {"quota": {"security_group": 0}}
	
	Body: b'{"quota": {"network": 100, "subnet": 100, "subnetpool": -1, "port": 500, "router": 10, "floatingip": 50, "rbac_policy": 10, "security_group": 0, "security_group_rule": 100, "trunk": -1}}'
	
201 POST https://identity-test.mydevstack.com/v3/auth/tokens
	"user": {"id": "f7cfb79d7e3949bca57cdc0a5726fcf6", "name": "reddy-7026"}, "project": {"id": "69999036590244c5a6e7e22299179bfa", "name": "reddy-7026-DO-NOT-DELETE-tempest-proj"}
	
201 POST https://network-test.mydevstack.com/v2.0/security-group
		Body: {"security_group": {"name": "tempest-NegativeSecGroupQuotaTest-709899598"}}

====
2. With dynamic_credentials=true
201 POST https://identity-test.mydevstack.com/v3/auth/tokens
	user": {"id": "c81d0a78edfd4c62a7baf28cc431ac71", "name": "admin"}, "project": {"id": "0d3df5dd5d794c41b7bde6d026f24fa2", "name": "admin"}
	
201 POST https://identity-test.mydevstack.com/v3/auth/tokens
	"user": {"id": "c81d0a78edfd4c62a7baf28cc431ac71", "name": "admin"}, "project": {"id": "0d3df5dd5d794c41b7bde6d026f24fa2", "name": "admin"}
	
200 GET https://identity-test.mydevstack.com/v3/domains?name=Default
	{"domains": [{"id": "default", "name": "Default", "description": "The default domain", "enabled": true, "tags": [], "options": {}, "links": {"self": "https://identity-test.mydevstack.com/v3/domains/default"}}], "links": {"next": null, "self": "https://identity-test.mydevstack.com/v3/domains?name=Default";, "previous": null}}

201 POST https://identity-test.mydevstack.com/v3/projects
	{"project": {"description": "tempest-NegativeSecGroupQuotaTest-1755512384-desc", "domain_id": "default", "name": "tempest-NegativeSecGroupQuotaTest-1755512384"}}
	{"project": {"id": "618161cd2c524aaba5ff107126941a89", "name": "tempest-NegativeSecGroupQuotaTest-1755512384", "domain_id": "default", "description": "tempest-NegativeSecGroupQuotaTest-1755512384-desc", "enabled": true, "parent_id": "default", "is_domain": false, "tags": [], "options": {}, "links": {"self": "https://identity-test.mydevstack.com/v3/projects/618161cd2c524aaba5ff107126941a89"}}}
	
201 POST https://identity-test.mydevstack.com/v3/users
	{"user": {"project_id": "618161cd2c524aaba5ff107126941a89", "email": "tempest-NegativeSecGroupQuotaTest-327004607@xxxxxxxxxxx", "id": "95db37d8c5a249eea0793d110b06e6a6", "name": "tempest-NegativeSecGroupQuotaTest-1755512384", "domain_id": "default", "enabled": true, "password_expires_at": null, "options": {}, "links": {"self": "https://identity-test.mydevstack.com/v3/users/95db37d8c5a249eea0793d110b06e6a6"}}}
	
200 GET https://identity-test.mydevstack.com/v3/roles

204 PUT https://identity-test.mydevstack.com/v3/projects/618161cd2c524aaba5ff107126941a89/users/95db37d8c5a249eea0793d110b06e6a6/roles/59912ab23ae64d109525ffb2486c1492	
	Acquired dynamic creds:
	{'domain_id': 'default', 'domain_name': 'Default', 'username': 'tempest-NegativeSecGroupQuotaTest-1755512384', 'project_domain_id': 'default', 'project_domain_name': 'Default', 'project_id': '618161cd2c524aaba5ff107126941a89', 'project_name': 'tempest-NegativeSecGroupQuotaTest-1755512384', 'tenant_id': '618161cd2c524aaba5ff107126941a89', 'tenant_name': 'tempest-NegativeSecGroupQuotaTest-1755512384', 'user_domain_id': 'default', 'user_domain_name': 'Default', 'user_id': '95db37d8c5a249eea0793d110b06e6a6'}, Network: None, Subnet: None, Router: None
	
	Created isolated network resources for:
	credentials: Credentials: {'domain_id': 'default', 'domain_name': 'Default', 'username': 'tempest-NegativeSecGroupQuotaTest-1755512384', 'project_domain_id': 'default', 'project_domain_name': 'Default', 'project_id': '618161cd2c524aaba5ff107126941a89', 'project_name': 'tempest-NegativeSecGroupQuotaTest-1755512384', 'tenant_id': '618161cd2c524aaba5ff107126941a89', 'tenant_name': 'tempest-NegativeSecGroupQuotaTest-1755512384', 'user_domain_id': 'default', 'user_domain_name': 'Default', 'user_id': '95db37d8c5a249eea0793d110b06e6a6'}, Network: None, Subnet: None, Router: None

201 POST https://identity-test.mydevstack.com/v3/auth/tokens
	"user": {"id": "95db37d8c5a249eea0793d110b06e6a6", "name": "tempest-NegativeSecGroupQuotaTest-1755512384"}, "project": {"id": "618161cd2c524aaba5ff107126941a89", "name": "tempest-NegativeSecGroupQuotaTest-1755512384"}

201 POST https://identity-test.mydevstack.com/v3/projects
	{"project": {"id": "9c0afd3eff3e465e89226cf4179cb4ec", "name": "tempest-NegativeSecGroupQuotaTest-1126709459", "domain_id": "default", "description": "tempest-NegativeSecGroupQuotaTest-1126709459-desc", "enabled": true, "parent_id": "default", "is_domain": false, "tags": [], "options": {}, "links": {"self": "https://identity-test.mydevstack.com/v3/projects/9c0afd3eff3e465e89226cf4179cb4ec"}}}
	
201 POST https://identity-test.mydevstack.com/v3/users
	'{"user": {"project_id": "9c0afd3eff3e465e89226cf4179cb4ec", "email": "tempest-NegativeSecGroupQuotaTest-2030201830@xxxxxxxxxxx", "id": "945e1f5da46e4d26b04888b423dd8853", "name": "tempest-NegativeSecGroupQuotaTest-1126709459", "domain_id": "default", "enabled": true, "password_expires_at": null, "options": {}, "links": {"self": "https://identity-test.mydevstack.com/v3/users/945e1f5da46e4d26b04888b423dd8853"}}}
	
200 GET https://identity-test.mydevstack.com/v3/roles	

204 PUT https://identity-
test.mydevstack.com/v3/projects/9c0afd3eff3e465e89226cf4179cb4ec/users/945e1f5da46e4d26b04888b423dd8853/roles/59912ab23ae64d109525ffb2486c1492

200 GET https://identity-test.mydevstack.com/v3/roles

204 PUT https://identity-
test.mydevstack.com/v3/projects/9c0afd3eff3e465e89226cf4179cb4ec/users/945e1f5da46e4d26b04888b423dd8853/roles/59912ab23ae64d109525ffb2486c1492

Acquired dynamic creds:
 credentials: Credentials: {'domain_id': 'default', 'domain_name': 'Default', 'username': 'tempest-NegativeSecGroupQuotaTest-1126709459', 'project_domain_id': 'default', 'project_domain_name': 'Default', 'project_id': '9c0afd3eff3e465e89226cf4179cb4ec', 'project_name': 'tempest-NegativeSecGroupQuotaTest-1126709459', 'tenant_id': '9c0afd3eff3e465e89226cf4179cb4ec', 'tenant_name': 'tempest-NegativeSecGroupQuotaTest-1126709459', 'user_domain_id': 'default', 'user_domain_name': 'Default', 'user_id': '945e1f5da46e4d26b04888b423dd8853'}, Network: None, Subnet: None, Router: None
2020-09-16 04:21:35.051 25626 INFO tempest.lib.common.dynamic_creds [-] Created isolated network resources for:
 credentials: Credentials: {'domain_id': 'default', 'domain_name': 'Default', 'username': 'tempest-NegativeSecGroupQuotaTest-1126709459', 'project_domain_id': 'default', 'project_domain_name': 'Default', 'project_id': '9c0afd3eff3e465e89226cf4179cb4ec', 'project_name': 'tempest-NegativeSecGroupQuotaTest-1126709459', 'tenant_id': '9c0afd3eff3e465e89226cf4179cb4ec', 'tenant_name': 'tempest-NegativeSecGroupQuotaTest-1126709459', 'user_domain_id': 'default', 'user_domain_name': 'Default', 'user_id': '945e1f5da46e4d26b04888b423dd8853'}, Network: None, Subnet: None, Router: None
 
201 POST https://identity-test.mydevstack.com/v3/auth/tokens
	user": {"id": "945e1f5da46e4d26b04888b423dd8853", "name": "tempest-NegativeSecGroupQuotaTest-1126709459"},"project": {"id": "9c0afd3eff3e465e89226cf4179cb4ec", "name": "tempest-NegativeSecGroupQuotaTest-1126709459"}
	
201 POST https://identity-test.mydevstack.com/v3/auth/tokens

** Affects: neutron
     Importance: Undecided
         Status: New

-- 
When accounts.yaml is used Tempest fails with "Invalid input for tenant_id. Reason: 'None' is not a valid string."
https://bugs.launchpad.net/bugs/1895876
You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to neutron.