Tempest-RHOSP10: project-id extension needs to enable
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Juniper Openstack | Status tracked in Trunk | |||||
R3.0 |
Fix Committed
|
Medium
|
Sahil Sabharwal | |||
R3.1 |
Fix Committed
|
Medium
|
Sahil Sabharwal | |||
R3.2 |
Fix Committed
|
Medium
|
Sahil Sabharwal | |||
R3.2.3.x |
Fix Committed
|
Medium
|
Sahil Sabharwal | |||
Trunk |
Fix Committed
|
Medium
|
Sahil Sabharwal |
Bug Description
Test case is expecting project_id in network dict, but contrail neutron has only tenant_id parameter. If we enable project-id extension service, we get the project_id in network dict.
Test case: https:/
Test case name : def test_show_networ
56 def test_show_
57 # Verify specific fields of a network
58 fields = ['id', 'name']
(Pdb) self.assertEqua
*** KeyError: 'project_id'
(Pdb) network[
*** KeyError: 'project_id'
(Pdb) network
{u'status': u'ACTIVE', u'router:external': False, u'subnets': [], u'name': u'test-
led': True, u'shared': False, u'contrail:
work--240465407']}
[root@overcloud
+------
| Field | Value |
+------
| admin_state_up | True |
| contrail:fq_name | default-domain |
| | tempest-
| | test-network-
| contrail:
| id | 3395a181-
| name | test-network-
| port_security_
| router:external | False |
| shared | False |
| status | ACTIVE |
| subnets | |
| tenant_id | 0c9a5ba7a8a74f3
+------
/tmp/tmpBd5C80_
-> if extension_name in config_
(Pdb) p extension_name
'project-id'
(Pdb) extension_name in config_
True
(Pdb) config_dict
{'volume': ['OS-SCH-HNT', 'os-hosts', 'os-vol-
nage', 'os-volume-
its', 'os-vol-
ume-transfer', 'os-volume-manage', 'os-admin-actions', 'os-services', 'scheduler-stats'], 'object': ['formpost', 'bulk_delete', 'versioned_writes', 'tempurl',
, 'compute': ['NMN', 'OS-DCF', 'OS-EXT-AZ', 'OS-EXT-IMG-SIZE', 'OS-EXT-IPS', 'OS-EXT-IPS-MAC', 'OS-EXT-SRV-ATTR', 'OS-EXT-STS', 'OS-FLV-DISABLED', 'OS-FLV-EXT-
ccess-ips', 'os-admin-actions', 'os-admin-
etal-nodes', 'os-block-
uth-tokens', 'os-console-
ended-hypervisors', 'os-extended-
'os-fixed-ips', 'os-flavor-access', 'os-flavor-
bulk', 'os-fping', 'os-hide-
-server', 'os-migrations', 'os-multiple-
'os-rescue', 'os-security-
, 'os-server-
ts-for-admin', 'os-user-data', 'os-user-quotas', 'os-virtual-
opts', 'external-net', 'flavors', 'quotas', 'provider', 'policy', 'contrail', 'standard-
', 'pagination', 'sorting', 'security-group', 'ipam', 'rbac-policies', 'standard-
OS-REVOKE', 'OS-FEDERATION', 'OS-INHERIT', 'OS-KSCRUD', 'OS-SIMPLE-CERT', 'OS-TRUST', 'OS-PKI', 'OS-ENDPOINT-
(Pdb) p service
'network'
(Pdb) config_
['network-
pe', 'router', 'extra_dhcp_opt', 'standard-
ss-pairs', 'project-id'] =======
(Pdb)
information type: | Proprietary → Public |
Review in progress for https:/ /review. opencontrail. org/30901
Submitter: <email address hidden> (<email address hidden>)