NSD feature is using tacker auth token to access target NFVI
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tacker |
Fix Released
|
Medium
|
bharaththiruveedula |
Bug Description
https:/
workflow = self._vim_
https:/
def prepare_
if not auth_token:
raise EnvironmentErro
Changed in tacker: | |
assignee: | nobody → bharaththiruveedula (bharath-ves) |
Changed in tacker: | |
milestone: | none → ocata-3 |
Changed in tacker: | |
status: | New → Triaged |
https:/ /github. com/openstack/ tacker/ blob/master/ tacker/ nfvo/drivers/ vim/openstack_ driver. py#L474: workflow( self, workflow, vim_auth, auth_token=None):
LOG. warning( _("auth token required to create mistral workflows")) r('auth token required for'
' mistral workflow driver')
mistral_ client = MistralClient(
self. keystone. initialize_ client( '2', **vim_auth),
auth_ token). get_client( ) client. executions. create(
workflow_ identifier= workflow[ 'id'],
workflow_ input=workflow[ 'input' ],
wf_ params= {})
def execute_
if not auth_token:
raise EnvironmentErro
return mistral_
class MistralClient( object) :
"""Mistral Client class for NSD"""
# we can see the workflowv2 is in VIM keystone session. get_endpoint(
service_ type='workflowv 2', region_name=None) client. client( auth_token= auth_token,
mistral_ url=endpoint)
def __init__(self, keystone, auth_token):
endpoint = keystone.
self.client = mistral_
def get_client(self):
return self.client