Tempest-RHOSP10: project-id extension needs to enable

Bug #1685954 reported by shajuvk
6
This bug affects 1 person
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://github.com/openstack/neutron/blob/master/neutron/tests/tempest/api/test_networks.py

Test case name : def test_show_networ

 56 def test_show_network_fields(self):
 57 # Verify specific fields of a network
 58 fields = ['id', 'name']
(Pdb) self.assertEqual(project_id, network['project_id'])
*** KeyError: 'project_id'
(Pdb) network['project_id']
*** KeyError: 'project_id'
(Pdb) network
{u'status': u'ACTIVE', u'router:external': False, u'subnets': [], u'name': u'test-network--240465407', u'admin_state_up': True, u'tenant_id': u'0c9a5ba7a8a74f3
led': True, u'shared': False, u'contrail:instance_count': 0, u'id': u'3395a181-c572-4abd-b8d4-45f3f1ebafcc', u'contrail:fq_name': [u'default-domain', u'tempest
work--240465407']}
[root@overcloud-controller-0 heat-admin]# neutron net-show test-network--240465407
+-------------------------+--------------------------------------+
| Field | Value |
+-------------------------+--------------------------------------+
| admin_state_up | True |
| contrail:fq_name | default-domain |
| | tempest-NetworksTestJSON-108051045 |
| | test-network--240465407 |
| contrail:instance_count | 0 |
| id | 3395a181-c572-4abd-b8d4-45f3f1ebafcc |
| name | test-network--240465407 |
| port_security_enabled | True |
| router:external | False |
| shared | False |
| status | ACTIVE |
| subnets | |
| tenant_id | 0c9a5ba7a8a74f3bac1c567904440532 |
+-------------------------+--------------------------------------+

/tmp/tmpBd5C80_tempest/tempest/tempest/test.py(172)is_extension_enabled()
-> if extension_name in config_dict[service]:
(Pdb) p extension_name
'project-id'
(Pdb) extension_name in config_dict[service]
True
(Pdb) config_dict
{'volume': ['OS-SCH-HNT', 'os-hosts', 'os-vol-tenant-attr', 'os-quota-sets', 'os-types-manage', 'os-volume-encryption-metadata', 'os-snapshot-actions', 'backup
nage', 'os-volume-type-access', 'consistencygroups', 'os-vol-host-attr', 'encryption', 'os-vol-image-meta', 'os-availability-zone', 'capabilities', 'cgsnapshot
its', 'os-vol-mig-status-attr', 'os-volume-unmanage', 'os-image-create', 'os-extended-services', 'os-extended-snapshot-attributes', 'os-snapshot-unmanage', 'qo
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-password', 'os-agents', 'os-aggregates', 'os-assisted-volume-snapshots', 'os-attach-interfaces', 'os-availability-zon
etal-nodes', 'os-block-device-mapping', 'os-block-device-mapping-v2-boot', 'os-cell-capacities', 'os-cells', 'os-certificates', 'os-cloudpipe', 'os-cloudpipe-u
uth-tokens', 'os-console-output', 'os-consoles', 'os-create-backup', 'os-create-server-ext', 'os-deferred-delete', 'os-evacuate', 'os-extended-evacuate-find-ho
ended-hypervisors', 'os-extended-networks', 'os-extended-quotas', 'os-extended-rescue-with-image', 'os-extended-services', 'os-extended-services-delete', 'os-e
'os-fixed-ips', 'os-flavor-access', 'os-flavor-extra-specs', 'os-flavor-manage', 'os-flavor-rxtx', 'os-flavor-swap', 'os-floating-ip-dns', 'os-floating-ip-pool
bulk', 'os-fping', 'os-hide-server-addresses', 'os-hosts', 'os-hypervisor-status', 'os-hypervisors', 'os-instance-actions', 'os-instance_usage_audit_log', 'os-
-server', 'os-migrations', 'os-multiple-create', 'os-networks', 'os-networks-associate', 'os-pause-server', 'os-personality', 'os-preserve-ephemeral-rebuild',
'os-rescue', 'os-security-group-default-rules', 'os-security-groups', 'os-server-diagnostics', 'os-server-external-events', 'os-server-group-quotas', 'os-serve
, 'os-server-password', 'os-server-sort-keys', 'os-server-start-stop', 'os-services', 'os-shelve', 'os-simple-tenant-usage', 'os-suspend-server', 'os-tenant-ne
ts-for-admin', 'os-user-data', 'os-user-quotas', 'os-virtual-interfaces', 'os-volume-attachment-update', 'os-volumes'], 'network': ['network-ip-availability',
opts', 'external-net', 'flavors', 'quotas', 'provider', 'policy', 'contrail', 'standard-attr-timestamp', 'route-table', 'service-type', 'router', 'extra_dhcp_o
', 'pagination', 'sorting', 'security-group', 'ipam', 'rbac-policies', 'standard-attr-description', 'port-security', 'allowed-address-pairs', 'project-id'], 'i
OS-REVOKE', 'OS-FEDERATION', 'OS-INHERIT', 'OS-KSCRUD', 'OS-SIMPLE-CERT', 'OS-TRUST', 'OS-PKI', 'OS-ENDPOINT-POLICY', 'OS-OAUTH1', 'OS-EC2']}
(Pdb) p service
'network'
(Pdb) config_dict[service]
['network-ip-availability', 'binding', 'agent', 'tag', 'extra_lbaas_opts', 'external-net', 'flavors', 'quotas', 'provider', 'policy', 'contrail', 'standard-att
pe', 'router', 'extra_dhcp_opt', 'standard-attr-revisions', 'lbaasv2', 'pagination', 'sorting', 'security-group', 'ipam', 'rbac-policies', 'standard-attr-descr
ss-pairs', 'project-id'] ==========================================> This project-id extension needs to enable
(Pdb)

shajuvk (shajuvk)
information type: Proprietary → Public
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/30901
Submitter: <email address hidden> (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.2

Review in progress for https://review.opencontrail.org/30907
Submitter: <email address hidden> (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.1

Review in progress for https://review.opencontrail.org/30909
Submitter: <email address hidden> (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.0

Review in progress for https://review.opencontrail.org/30910
Submitter: <email address hidden> (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/30910
Committed: http://github.com/Juniper/contrail-controller/commit/196b8d4d89029eb6231747180fdfe50f200d8432
Submitter: Zuul (<email address hidden>)
Branch: R3.0

commit 196b8d4d89029eb6231747180fdfe50f200d8432
Author: Sahil <email address hidden>
Date: Mon May 1 14:40:52 2017 -0700

[Config]: Fix VNC openstack

Change-Id: I5544d0f9998e3f3e031e783dba6d6b375b269f59
Closes-Bug: 1685954

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/30907
Committed: http://github.com/Juniper/contrail-controller/commit/8b17f44526cce8fe5361e92348928369cc83cdfc
Submitter: Zuul (<email address hidden>)
Branch: R3.2

commit 8b17f44526cce8fe5361e92348928369cc83cdfc
Author: Sahil <email address hidden>
Date: Mon May 1 13:15:22 2017 -0700

[Config]: Fix VNC openstack

Change-Id: Id519f13a37d2252255b7c2baa0fe103eeefe8ed4
Closes-Bug: 1685954
Closes-Bug: 1685040

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/30909
Committed: http://github.com/Juniper/contrail-controller/commit/654c0ea1223a5d38d2cd8c310dafc0e83c10ac95
Submitter: Zuul (<email address hidden>)
Branch: R3.1

commit 654c0ea1223a5d38d2cd8c310dafc0e83c10ac95
Author: Sahil <email address hidden>
Date: Mon May 1 13:15:22 2017 -0700

[Config]: Fix VNC openstack

Change-Id: Id519f13a37d2252255b7c2baa0fe103eeefe8ed4
Closes-Bug: 1685954
Closes-Bug: 1685040

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/30901
Committed: http://github.com/Juniper/contrail-controller/commit/7bb2dd78882bbbe61714452e2a852211f3390704
Submitter: Zuul (<email address hidden>)
Branch: master

commit 7bb2dd78882bbbe61714452e2a852211f3390704
Author: Sahil <email address hidden>
Date: Mon May 1 13:15:22 2017 -0700

[Config]: Fix VNC openstack

Change-Id: Id519f13a37d2252255b7c2baa0fe103eeefe8ed4
Closes-Bug: 1685954
Closes-Bug: 1685040

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.2.3.x

Review in progress for https://review.opencontrail.org/32562
Submitter: Vinay Vithal Mahuli (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/32562
Committed: http://github.com/Juniper/contrail-controller/commit/308b45be158135b6d326bd1c7f098da123aa25f8
Submitter: Zuul (<email address hidden>)
Branch: R3.2.3.x

commit 308b45be158135b6d326bd1c7f098da123aa25f8
Author: Sahil <email address hidden>
Date: Mon May 1 13:15:22 2017 -0700

[Config]: Fix VNC openstack

Change-Id: Id519f13a37d2252255b7c2baa0fe103eeefe8ed4
Closes-Bug: 1685954
Closes-Bug: 1685040

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.