LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This 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


Reply
  Search this Thread
Old 08-13-2019, 08:44 AM   #1
czezz
Member
 
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 797

Rep: Reputation: 39
[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 |
+--------------------------------------+--------------------------+--------+

Last edited by czezz; 08-13-2019 at 08:47 AM.
 
Old 08-13-2019, 09:07 AM   #2
berndbausch
Senior Member
 
Registered: Nov 2013
Location: Tokyo
Distribution: Redhat/Centos, Ubuntu, Raspbian, Fedora, Alpine, Cirros, OpenSuse/SLES
Posts: 3,281

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
Use the --debug option to see the API requests issued by the commands, then compare.

The reference to domain indicates it's an authentication problem. My guess is that the two commands do something different with Keystone.
 
Old 08-13-2019, 10:19 AM   #3
czezz
Member
 
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 797

Original Poster
Rep: Reputation: 39
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)

Last edited by czezz; 08-14-2019 at 02:32 AM.
 
Old 08-13-2019, 10:53 AM   #4
berndbausch
Senior Member
 
Registered: Nov 2013
Location: Tokyo
Distribution: Redhat/Centos, Ubuntu, Raspbian, Fedora, Alpine, Cirros, OpenSuse/SLES
Posts: 3,281

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
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.
 
Old 08-14-2019, 02:32 AM   #5
czezz
Member
 
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 797

Original Poster
Rep: Reputation: 39
Yes, the same shell.
This is "source" file I use.

Code:
stack@vlab:~$ cat source_admin
export OS_AUTH_URL="http://192.168.56.103/identity"
export OS_USERNAME="admin"
export OS_TENANT_NAME="admin"
export OS_PASSWORD="nomoresecret"
export OS_CACERT=/etc/ssl/certs/ca.crt
export LC_ALL=en_US.UTF-8
export OS_PROJECT_DOMAIN_NAME="Default"
export OS_IDENTITY_API_VERSION=3
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Openstack/Devstack: console "Error code explanation: 404 = Nothing matches the given URI" czezz Linux - Virtualization and Cloud 1 05-10-2019 10:38 PM
LXer: Essentials of OpenStack Administration Part 6: Installing DevStack (Lab) LXer Syndicated Linux News 0 01-12-2017 03:51 AM
LXer: Setup Nova-Docker driver && Openstack Kilo on Ubuntu 14.04 in devstack environment recoverable LXer Syndicated Linux News 0 04-28-2015 10:32 PM
LXer: DevStack Ceph, OpenStack Paris Summit voting, and more LXer Syndicated Linux News 0 08-04-2014 07:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 08:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration