reproducer-quickstart.sh fails when using v3 openstack rc file

Bug #1788663 reported by Sorin Sbarnea
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Invalid
Undecided
Unassigned

Bug Description

Apparently if we source a v3 cloud credentials files, reproducer will fail to create the stack due to incorrect API usage. Same works when v2 credentials are loaded.

Expected behavior: to work with v3 credentials.

Alternative: fail fast if v3 API is detected with an error the informs the user to use alternative
cloud setup.

```
TASK [ovb-manage-stack : Deploy stack] *************************************************************************************************************************************************************************************************
task path: /tmp/reproduce-tmp.U8BXF/tripleo-quickstart-extras/roles/ovb-manage-stack/tasks/ovb-create-stack.yml:61
Thursday 23 August 2018 15:21:48 +0000 (0:00:00.325) 0:00:12.721 *******
fatal: [localhost]: FAILED! => {"changed": true, "cmd": "export OS_CLIENT_CONFIG_FILE=\"/tmp/reproduce-tmp.U8BXF/clouds.yaml\"; export OS_CLOUD=\"rdocloud\"; /tmp/reproduce-tmp.U8BXF/openstack-virtual-baremetal/bin/deploy.py --env /tmp/reproduce-tmp.U8BXF/env-1488.yaml --name baremetal_1488 --quintupleo", "delta": "0:00:01.288939", "end": "2018-08-23 15:21:50.000703", "msg": "non-zero return code", "rc": 1, "start": "2018-08-23 15:21:48.711764", "stderr": "Traceback (most recent call last):\n File \"/tmp/reproduce-tmp.U8BXF/openstack-virtual-baremetal/bin/deploy.py\", line 326, in <module>\n _deploy(stack_name, stack_template, env_paths, poll=poll)\n File \"/tmp/reproduce-tmp.U8BXF/openstack-virtual-baremetal/bin/deploy.py\", line 184, in _deploy\n hclient = _get_heat_client()\n File \"/tmp/reproduce-tmp.U8BXF/openstack-virtual-baremetal/bin/deploy.py\", line 181, in _get_heat_client\n cloud=auth.OS_CLOUD)\n File \"/tmp/reproduce-tmp.U8BXF/venv_ansible/lib/python2.7/site-packages/os_client_config/__init__.py\", line 87, in make_client\n return cloud.get_legacy_client(service_key, constructor)\n File \"/tmp/reproduce-tmp.U8BXF/venv_ansible/lib/python2.7/site-packages/os_client_config/cloud_config.py\", line 139, in get_legacy_client\n service_key, min_version=min_version, max_version=max_version)\n File \"/tmp/reproduce-tmp.U8BXF/venv_ansible/lib/python2.7/site-packages/openstack/config/cloud_region.py\", line 542, in get_session_endpoint\n **version_kwargs\n File \"/tmp/reproduce-tmp.U8BXF/venv_ansible/lib/python2.7/site-packages/keystoneauth1/session.py\", line 1113, in get_endpoint\n return auth.get_endpoint(self, **kwargs)\n File \"/tmp/reproduce-tmp.U8BXF/venv_ansible/lib/python2.7/site-packages/keystoneauth1/identity/base.py\", line 380, in get_endpoint\n allow_version_hack=allow_version_hack, **kwargs)\n File \"/tmp/reproduce-tmp.U8BXF/venv_ansible/lib/python2.7/site-packages/keystoneauth1/identity/base.py\", line 271, in get_endpoint_data\n service_catalog = self.get_access(session).service_catalog\n File \"/tmp/reproduce-tmp.U8BXF/venv_ansible/lib/python2.7/site-packages/keystoneauth1/identity/base.py\", line 134, in get_access\n self.auth_ref = self.get_auth_ref(session)\n File \"/tmp/reproduce-tmp.U8BXF/venv_ansible/lib/python2.7/site-packages/keystoneauth1/identity/generic/base.py\", line 208, in get_auth_ref\n return self._plugin.get_auth_ref(session, **kwargs)\n File \"/tmp/reproduce-tmp.U8BXF/venv_ansible/lib/python2.7/site-packages/keystoneauth1/identity/v3/base.py\", line 178, in get_auth_ref\n authenticated=False, log=False, **rkwargs)\n File \"/tmp/reproduce-tmp.U8BXF/venv_ansible/lib/python2.7/site-packages/keystoneauth1/session.py\", line 1019, in post\n return self.request(url, 'POST', **kwargs)\n File \"/tmp/reproduce-tmp.U8BXF/venv_ansible/lib/python2.7/site-packages/keystoneauth1/session.py\", line 869, in request\n raise exceptions.from_response(resp, method, url)\nkeystoneauth1.exceptions.http.BadRequest: Expecting to find domain in project. The server could not comply with the request since it iseither malformed or otherwise incorrect. The client is assumed to be in error. (HTTP 400) (Request-ID: req-58ae52ee-0197-4902-9eb8-f0b3441877b1)", "stderr_lines": ["Traceback (most recent call last):", " File \"/tmp/reproduce-tmp.U8BXF/openstack-virtual-baremetal/bin/deploy.py\", line 326, in <module>", " _deploy(stack_name, stack_template, env_paths, poll=poll)", " File \"/tmp/reproduce-tmp.U8BXF/openstack-virtual-baremetal/bin/deploy.py\", line 184, in _deploy", " hclient = _get_heat_client()", " File \"/tmp/reproduce-tmp.U8BXF/openstack-virtual-baremetal/bin/deploy.py\", line 181, in _get_heat_client", " cloud=auth.OS_CLOUD)", " File \"/tmp/reproduce-tmp.U8BXF/venv_ansible/lib/python2.7/site-packages/os_client_config/__init__.py\", line 87, in make_client", " return cloud.get_legacy_client(service_key, constructor)", " File \"/tmp/reproduce-tmp.U8BXF/venv_ansible/lib/python2.7/site-packages/os_client_config/cloud_config.py\", line 139, in get_legacy_client", " service_key, min_version=min_version, max_version=max_version)", " File \"/tmp/reproduce-tmp.U8BXF/venv_ansible/lib/python2.7/site-packages/openstack/config/cloud_region.py\", line 542, in get_session_endpoint", " **version_kwargs", " File \"/tmp/reproduce-tmp.U8BXF/venv_ansible/lib/python2.7/site-packages/keystoneauth1/session.py\", line 1113, in get_endpoint", " return auth.get_endpoint(self, **kwargs)", " File \"/tmp/reproduce-tmp.U8BXF/venv_ansible/lib/python2.7/site-packages/keystoneauth1/identity/base.py\", line 380, in get_endpoint", " allow_version_hack=allow_version_hack, **kwargs)", " File \"/tmp/reproduce-tmp.U8BXF/venv_ansible/lib/python2.7/site-packages/keystoneauth1/identity/base.py\", line 271, in get_endpoint_data", " service_catalog = self.get_access(session).service_catalog", " File \"/tmp/reproduce-tmp.U8BXF/venv_ansible/lib/python2.7/site-packages/keystoneauth1/identity/base.py\", line 134, in get_access", " self.auth_ref = self.get_auth_ref(session)", " File \"/tmp/reproduce-tmp.U8BXF/venv_ansible/lib/python2.7/site-packages/keystoneauth1/identity/generic/base.py\", line 208, in get_auth_ref", " return self._plugin.get_auth_ref(session, **kwargs)", " File \"/tmp/reproduce-tmp.U8BXF/venv_ansible/lib/python2.7/site-packages/keystoneauth1/identity/v3/base.py\", line 178, in get_auth_ref", " authenticated=False, log=False, **rkwargs)", " File \"/tmp/reproduce-tmp.U8BXF/venv_ansible/lib/python2.7/site-packages/keystoneauth1/session.py\", line 1019, in post", " return self.request(url, 'POST', **kwargs)", " File \"/tmp/reproduce-tmp.U8BXF/venv_ansible/lib/python2.7/site-packages/keystoneauth1/session.py\", line 869, in request", " raise exceptions.from_response(resp, method, url)", "keystoneauth1.exceptions.http.BadRequest: Expecting to find domain in project. The server could not comply with the request since it is either malformed or otherwise incorrect. The client is assumed to be in error. (HTTP 400) (Request-ID: req-58ae52ee-0197-4902-9eb8-f0b3441877b1)"], "stdout": "", "stdout_lines": []}
        to retry, use: --limit @/tmp/reproduce-tmp.U8BXF/tripleo-quickstart-extras/playbooks/ovb-create-stack.retry
```

Revision history for this message
Cédric Jeanneret (cjeanner) wrote :

Is it still an issue?

Revision history for this message
Juan Antonio Osorio Robles (juan-osorio-robles) wrote :

Moving to invalid since we no longer produce an overcloudrc.v3

Changed in tripleo:
status: New → Invalid
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.