Error:
keystoneauth1.exceptions.http.BadRequest: Expecting to find domain in user. 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-ea92e74e-2cf1-4524-9c78-a02f24a180a1)
Goal:
Getting auth into scope 'system'. I can not figure out how to do this.
-------------------------
Traceback (most recent call last):
File "/tmp/ansible-tmp-1573484557.4130447-82566091548974/AnsiballZ_os_keystone_service.py", line 114, in <module>
_ansiballz_main()
File "/tmp/ansible-tmp-1573484557.4130447-82566091548974/AnsiballZ_os_keystone_service.py", line 106, in _ansiballz_main
invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)
File "/tmp/ansible-tmp-1573484557.4130447-82566091548974/AnsiballZ_os_keystone_service.py", line 49, in invoke_module
imp.load_module('__main__', mod, module, MOD_DESC)
File "/opt/ansible/lib/python3.6/imp.py", line 235, in load_module
return load_source(name, filename, file)
File "/opt/ansible/lib/python3.6/imp.py", line 170, in load_source
module = _exec(spec, sys.modules[name])
File "<frozen importlib._bootstrap>", line 618, in _exec
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/tmp/ansible_os_keystone_service_payload_4370z2m9/__main__.py", line 194, in <module>
File "/tmp/ansible_os_keystone_service_payload_4370z2m9/__main__.py", line 153, in main
File "/opt/ansible/lib/python3.6/site-packages/openstack/cloud/_identity.py", line 510, in search_services
services = self.list_services()
File "/opt/ansible/lib/python3.6/site-packages/openstack/cloud/_identity.py", line 485, in list_services
if self._is_client_version('identity', 2):
File "/opt/ansible/lib/python3.6/site-packages/openstack/cloud/openstackcloud.py", line 459, in _is_client_version
client = getattr(self, client_name)
File "/opt/ansible/lib/python3.6/site-packages/openstack/cloud/_identity.py", line 32, in _identity_client
'identity', min_version=2, max_version='3.latest')
File "/opt/ansible/lib/python3.6/site-packages/openstack/cloud/openstackcloud.py", line 422, in _get_versioned_client
endpoint_override=self.config.get_endpoint(service_type))
File "/opt/ansible/lib/python3.6/site-packages/keystoneauth1/adapter.py", line 345, in get_api_major_version
return self.session.get_api_major_version(auth or self.auth, **kwargs)
File "/opt/ansible/lib/python3.6/site-packages/keystoneauth1/session.py", line 1233, in get_api_major_version
return auth.get_api_major_version(self, **kwargs)
File "/opt/ansible/lib/python3.6/site-packages/keystoneauth1/identity/base.py", line 500, in get_api_major_version
data = get_endpoint_data(discover_versions=discover_versions)
File "/opt/ansible/lib/python3.6/site-packages/keystoneauth1/identity/base.py", line 258, in get_endpoint_data
project_id = self.get_project_id(session)
File "/opt/ansible/lib/python3.6/site-packages/keystoneauth1/identity/base.py", line 568, in get_project_id
return self.get_access(session).project_id
File "/opt/ansible/lib/python3.6/site-packages/keystoneauth1/identity/base.py", line 134, in get_access
self.auth_ref = self.get_auth_ref(session)
File "/opt/ansible/lib/python3.6/site-packages/keystoneauth1/identity/generic/base.py", line 208, in get_auth_ref
return self._plugin.get_auth_ref(session, **kwargs)
File "/opt/ansible/lib/python3.6/site-packages/keystoneauth1/identity/v3/base.py", line 184, in get_auth_ref
authenticated=False, log=False, **rkwargs)
File "/opt/ansible/lib/python3.6/site-packages/keystoneauth1/session.py", line 1106, in post
return self.request(url, 'POST', **kwargs)
File "/opt/ansible/lib/python3.6/site-packages/keystoneauth1/session.py", line 943, in request
raise exceptions.from_response(resp, method, url)
keystoneauth1.exceptions.http.BadRequest: Expecting to find domain in user. 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-ea92e74e-2cf1-4524-9c78-a02f24a180a1)
Settings:
[oslo_policy]
enforce_scope = True
GET /v3/services list_services
identity:
"openstack_auth": { 192.0.2. 10:35357", gNzhXpRAosMAXBk IqSSmDYDwR3"
"auth_url": "http://
"username": "admin",
"password": "9PJVm6kJI1k00J
}
Error: exceptions. http.BadRequest : Expecting to find domain in user. 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-ea92e74e- 2cf1-4524- 9c78-a02f24a180 a1)
keystoneauth1.
Goal:
Getting auth into scope 'system'. I can not figure out how to do this.
------- ------- ------- ----
Traceback (most recent call last): tmp-1573484557. 4130447- 82566091548974/ AnsiballZ_ os_keystone_ service. py", line 114, in <module> main() tmp-1573484557. 4130447- 82566091548974/ AnsiballZ_ os_keystone_ service. py", line 106, in _ansiballz_main module( zipped_ mod, temp_path, ANSIBALLZ_PARAMS) tmp-1573484557. 4130447- 82566091548974/ AnsiballZ_ os_keystone_ service. py", line 49, in invoke_module load_module( '__main_ _', mod, module, MOD_DESC) lib/python3. 6/imp.py" , line 235, in load_module lib/python3. 6/imp.py" , line 170, in load_source _bootstrap> ", line 618, in _exec _bootstrap_ external> ", line 678, in exec_module _bootstrap> ", line 219, in _call_with_ frames_ removed os_keystone_ service_ payload_ 4370z2m9/ __main_ _.py", line 194, in <module> os_keystone_ service_ payload_ 4370z2m9/ __main_ _.py", line 153, in main lib/python3. 6/site- packages/ openstack/ cloud/_ identity. py", line 510, in search_services services( ) lib/python3. 6/site- packages/ openstack/ cloud/_ identity. py", line 485, in list_services client_ version( 'identity' , 2): lib/python3. 6/site- packages/ openstack/ cloud/openstack cloud.py" , line 459, in _is_client_version lib/python3. 6/site- packages/ openstack/ cloud/_ identity. py", line 32, in _identity_client '3.latest' ) lib/python3. 6/site- packages/ openstack/ cloud/openstack cloud.py" , line 422, in _get_versioned_ client override= self.config. get_endpoint( service_ type)) lib/python3. 6/site- packages/ keystoneauth1/ adapter. py", line 345, in get_api_ major_version get_api_ major_version( auth or self.auth, **kwargs) lib/python3. 6/site- packages/ keystoneauth1/ session. py", line 1233, in get_api_ major_version api_major_ version( self, **kwargs) lib/python3. 6/site- packages/ keystoneauth1/ identity/ base.py" , line 500, in get_api_ major_version data(discover_ versions= discover_ versions) lib/python3. 6/site- packages/ keystoneauth1/ identity/ base.py" , line 258, in get_endpoint_data project_ id(session) lib/python3. 6/site- packages/ keystoneauth1/ identity/ base.py" , line 568, in get_project_id access( session) .project_ id lib/python3. 6/site- packages/ keystoneauth1/ identity/ base.py" , line 134, in get_access auth_ref( session) lib/python3. 6/site- packages/ keystoneauth1/ identity/ generic/ base.py" , line 208, in get_auth_ref get_auth_ ref(session, **kwargs) lib/python3. 6/site- packages/ keystoneauth1/ identity/ v3/base. py", line 184, in get_auth_ref ed=False, log=False, **rkwargs) lib/python3. 6/site- packages/ keystoneauth1/ session. py", line 1106, in post lib/python3. 6/site- packages/ keystoneauth1/ session. py", line 943, in request from_response( resp, method, url) exceptions. http.BadRequest : Expecting to find domain in user. 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-ea92e74e- 2cf1-4524- 9c78-a02f24a180 a1)
File "/tmp/ansible-
_ansiballz_
File "/tmp/ansible-
invoke_
File "/tmp/ansible-
imp.
File "/opt/ansible/
return load_source(name, filename, file)
File "/opt/ansible/
module = _exec(spec, sys.modules[name])
File "<frozen importlib.
File "<frozen importlib.
File "<frozen importlib.
File "/tmp/ansible_
File "/tmp/ansible_
File "/opt/ansible/
services = self.list_
File "/opt/ansible/
if self._is_
File "/opt/ansible/
client = getattr(self, client_name)
File "/opt/ansible/
'identity', min_version=2, max_version=
File "/opt/ansible/
endpoint_
File "/opt/ansible/
return self.session.
File "/opt/ansible/
return auth.get_
File "/opt/ansible/
data = get_endpoint_
File "/opt/ansible/
project_id = self.get_
File "/opt/ansible/
return self.get_
File "/opt/ansible/
self.auth_ref = self.get_
File "/opt/ansible/
return self._plugin.
File "/opt/ansible/
authenticat
File "/opt/ansible/
return self.request(url, 'POST', **kwargs)
File "/opt/ansible/
raise exceptions.
keystoneauth1.