[Devstack/Openstack] Glance - The client is assumed to be in error. (HTTP 400)
Linux - Virtualization and CloudThis forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
[Devstack/Openstack] Glance - The client is assumed to be in error. (HTTP 400)
When I try to list images via glance command it goes in to an error.
However, it does work when I try the same via openstack command.
What can be wrong in my devstack configuration?
Code:
stack@vlab:~$ glance image-list
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-941b6122-830f-4813-931a-667200e35db6)
stack@vlab:~$ openstack image list
+--------------------------------------+--------------------------+--------+
| ID | Name | Status |
+--------------------------------------+--------------------------+--------+
| eae4193d-1dc9-4ac3-b8e1-b402c4ec88d4 | cirros-0.4.0-x86_64-disk | active |
+--------------------------------------+--------------------------+--------+
While im still digging in, I post here output in debug mode.
Code:
stack@vlab:~$ glance --debug image-list
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/glanceclient/shell.py", line 687, in main
OpenStackImagesShell().main(argv)
File "/usr/local/lib/python2.7/dist-packages/glanceclient/shell.py", line 544, in main
client = self._get_versioned_client('2', args)
File "/usr/local/lib/python2.7/dist-packages/glanceclient/shell.py", line 433, in _get_versioned_client
region_name=args.os_region_name)
File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/session.py", line 1113, in get_endpoint
return auth.get_endpoint(self, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/identity/base.py", line 380, in get_endpoint
allow_version_hack=allow_version_hack, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/identity/base.py", line 271, in get_endpoint_data
service_catalog = self.get_access(session).service_catalog
File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/identity/base.py", line 134, in get_access
self.auth_ref = self.get_auth_ref(session)
File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/identity/v3/base.py", line 178, in get_auth_ref
authenticated=False, log=False, **rkwargs)
File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/session.py", line 1019, in post
return self.request(url, 'POST', **kwargs)
File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/session.py", line 869, in request
raise exceptions.from_response(resp, method, url)
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-155614ae-3dda-4c04-96e7-e5fed3bb1c34)
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-155614ae-3dda-4c04-96e7-e5fed3bb1c34)
If that is the full debug output, I am totally at a loss. I don't see any HTTP request, yet there is one mentioned in the error message.
By the way, do you run both commands with the same shell environment? The error indicates lack of environment variable OS_PROJECT_DOMAIN_NAME or OS_PROJECT_DOMAIN_ID.
Last edited by berndbausch; 08-13-2019 at 10:56 AM.
When I try to list images via glance command it goes in to an error.
However, it does work when I try the same via openstack command.
What can be wrong in my devstack configuration?
Code:
stack@vlab:~$ glance image-list
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-941b6122-830f-4813-931a-667200e35db6)
stack@vlab:~$ openstack image list audacitytemp mailorigin
+--------------------------------------+--------------------------+--------+
| ID | Name | Status |
+--------------------------------------+--------------------------+--------+
| eae4193d-1dc9-4ac3-b8e1-b402c4ec88d4 | cirros-0.4.0-x86_64-disk | active |
+--------------------------------------+--------------------------+--------+
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.