Skip to content

Commit

Permalink
Ensure project is synced to Tungsten Fabric
Browse files Browse the repository at this point in the history
This patch set ensures that projects are known to Tungsten Fabric
before project-specific resources (such as virtual networks) are
created.

Projects are not automatically synced from Keystone to TF.

The fqname-to-id call in resource_setup forces the synchronization.

Reference:
https: //bugs.launchpad.net/opencontrail/+bug/1685059
Change-Id: If3943572a5a05eab11c54ff4f4ad9350bce7cd23
  • Loading branch information
philsphicas committed Mar 18, 2019
1 parent 2927f64 commit 3dc0983
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tungsten_tempest_plugin/tests/api/contrail/rbac_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,9 @@ def setup_clients(cls):
@classmethod
def resource_setup(cls):
cls.tenant_name = cls.os_primary.credentials.tenant_name
cls.tenant_id = cls.fq_client.fqname_to_id(fq_name=['default-domain',
cls.tenant_name],
type='project')['uuid']

@classmethod
def _try_delete_resource(cls, delete_callable, *args, **kwargs):
Expand Down

0 comments on commit 3dc0983

Please sign in to comment.