Ask Your Question
0

Authorization failed: Cannot authenticate without an auth_url

asked 2017-07-05 11:46:04 -0500

khandhedia gravatar image

I installed Docker and mistral version 3.1.0.

I am following https://www.youtube.com/watch?v=9kaac_AfNow (Mistral 0.1 Part 1 official video tutorial).

I created a workflow as below:

---

version: '2.0'

get_first_keystone_project:
  type: direct

  output:
    project:
      id: $.local_id
      name: $.local_name

  tasks:
    get_project:
      action: keystone.projects_list
      publish:
        local_id: $[0].id
        local_name: $[0].name

While creating the execution it fails. Here, is the error I get:

https://drive.google.com/open?id=0ByVK0AKX2_r9R2lfNWdUTlRnUjg (Mistral Keystone Authentication Error - Authorization failed: Cannot authenticate without an auth_url)

I tried running the action keystone.projects_list directly from mistral and thought of debugging it, but, it seems --debug option doesn't help much in this case.

root@d215630adf2d:/home/mistral# mistral run-action keystone.projects_list --debug
DEBUG (extension) found extension EntryPoint.parse('keystone = mistralclient.auth.keystone:KeystoneAuthHandler')
DEBUG (extension) found extension EntryPoint.parse('keycloak-oidc = mistralclient.auth.keycloak:KeycloakAuthHandler')
DEBUG (extension) found extension EntryPoint.parse('table = cliff.formatters.table:TableFormatter')
DEBUG (extension) found extension EntryPoint.parse('json = cliff.formatters.json_format:JSONFormatter')
DEBUG (extension) found extension EntryPoint.parse('shell = cliff.formatters.shell:ShellFormatter')
DEBUG (extension) found extension EntryPoint.parse('value = cliff.formatters.value:ValueFormatter')
DEBUG (extension) found extension EntryPoint.parse('yaml = cliff.formatters.yaml_format:YAMLFormatter')
DEBUG (command) run(Namespace(columns=[], formatter='table', input=None, max_width=0, name='keystone.projects_list', noindent=False, prefix='', print_empty=False, run_sync=False, save_result=False, target=None, variables=[]))
DEBUG (connectionpool) Starting new HTTP connection (1): localhost
DEBUG (connectionpool) http://localhost:8989 "POST /v2/action_executions HTTP/1.1" 201 617
DEBUG (httpclient) HTTP POST http://localhost:8989/v2/action_executions 201
{"result": "Failed to run action [action_ex_id=None, action_cls='<class 'mistral.actions.action_factory.KeystoneAction'>', attributes='{u'client_method_name': u'projects.list'}', params='{}']\n KeystoneAction.projects.list failed: <class 'keystoneauth1.exceptions.auth.AuthorizationFailure'>: Authorization failed: Cannot authenticate without an auth_url"}

I have OpenStack version 3.11.0 and it is installed at below location:

root@d215630adf2d:/home/mistral# which openstack
/usr/local/bin/openstack

I see following packages in openstack installation directory, where I don't find any keystone package as such. https://drive.google.com/open?id=0ByVK0AKX2_r9Y2NDMjMxSEhxYVE (Openstack Installation on Mistral)

Here is the https://drive.google.com/open?id=0ByVK0AKX2_r9bEZWVDdrUEtYazQ (mistral.conf).

Please advise if I am missing any configuration or I need to correct something.

Thank you very much.

edit retag flag offensive close merge delete

Comments

1

This video that you are following is very old and out dated. I would follow the guides in the Mistral documentation: https://docs.openstack.org/mistral/la...

d0ugal gravatar imaged0ugal ( 2017-07-24 02:49:09 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2018-02-27 03:52:43 -0500

andrask gravatar image

It is very probable that your configuration is not Ok. As @d0ugal pointed out, you should follow the https://docs.openstack.org/mistral/latest/ (official documentation) to perform this task.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2017-07-05 11:46:04 -0500

Seen: 452 times

Last updated: Jul 05 '17