Skip to content

Express Fails to Obtain Scoped Auth Token on Waiting for Convergence #259

Description

@mattroark
SUMMARY

In roles/wait-for-convergence/files/wait_for_agent_convergence.sh, the project name is not parameterized, and if the user does not have access to the default service tenant, a scoped token will fail to be obtained. In turn, the timeout for this task will be exceeded.

ISSUE TYPE
  • Bug Report
COMPONENT NAME
  • Bash
ANSIBLE VERSION
ansible 2.9.4
  config file = /home/ubuntu/express/ansible.cfg
  configured module search path = [u'/home/ubuntu/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python2.7/dist-packages/ansible
  executable location = /usr/bin/ansible
  python version = 2.7.12 (default, Oct  8 2019, 14:14:10) [GCC 5.4.0 20160609]
CONFIGURATION
ANSIBLE_NOCOWS(/home/ubuntu/express/ansible.cfg) = True
ANSIBLE_PIPELINING(/home/ubuntu/express/ansible.cfg) = True
COMMAND_WARNINGS(/home/ubuntu/express/ansible.cfg) = False
DEFAULT_CALLBACK_WHITELIST(/home/ubuntu/express/ansible.cfg) = [u'profile_roles']
DEFAULT_HOST_LIST(/home/ubuntu/express/ansible.cfg) = [u'/home/ubuntu/express/inventory/hosts']
DEPRECATION_WARNINGS(/home/ubuntu/express/ansible.cfg) = False
HOST_KEY_CHECKING(/home/ubuntu/express/ansible.cfg) = False
RETRY_FILES_ENABLED(/home/ubuntu/express/ansible.cfg) = False
OS / ENVIRONMENT
  • Ubuntu 16.04.6 LTS
STEPS TO REPRODUCE
  1. Populate Ansible inventory hosts file.
  2. Execute the pf9-express script, specifying to authorize the set of hosts being targeted.
# ./pf9-express -a <group>
EXPECTED RESULTS
  • Host(s) would be authorized.
ACTUAL RESULTS
  • Timeout is exceeded on waiting for convergence as the script fails to obtain a scoped Keystone token.
TASK [wait-for-convergence : wait for pf9-hostagent to converge] *******************************************************************************************************************************************************************************
Tuesday 04 February 2020  20:03:40 +0000 (0:00:00.103)       0:02:29.514 ******
fatal: [master-1]: FAILED! => {"changed": true, "msg": "non-zero return code", "rc": 1, "stderr": "Shared connection to 172.20.34.138 closed.\r\n", "stderr_lines": ["Shared connection to 172.20.34.138 closed."], "stdout": "[ waiting for pf9-hostagent to complete convergence ]\r\n--> TIMEOUT = 900 seconds\r\n--> flag_k8s=0\r\nASSERT: *** TIMEOUT EXCEEDED ***\r\n", "stdout_lines": ["[ waiting for pf9-hostagent to complete convergence ]", "--> TIMEOUT = 900 seconds", "--> flag_k8s=0", "ASSERT: *** TIMEOUT EXCEEDED ***"]}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions