← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1594795] [NEW] AttributeError: 'unicode' object has no attribute 'get'

 

Public bug reported:

I'm getting this when running

  openstack flavor list

and many other commands. Running with --debug, I see:

  Making authentication request to http://control:35357/v3/auth/tokens
  "POST /v3/auth/tokens HTTP/1.1" 201 11701
  run(Namespace(all=False, columns=[], formatter='table', limit=None, long=False, marker=None, max_width=0, noindent=False, public=True, quote_mode='nonnumeric'))
  Instantiating compute client for VAPI Version Major: 2, Minor: 0
  Making authentication request to http://control:35357/v3/auth/tokens
  "POST /v3/auth/tokens HTTP/1.1" 201 11701
  REQ: curl -g -i -X GET http://10.0.4.1:8774/v2/1857a7b08b8046038005b98e8b238843/flavors/detail -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}226eb1000d0f69fb06823fefb599f559729e0969"
  Starting new HTTP connection (1): 10.0.4.1
  "GET /v2/1857a7b08b8046038005b98e8b238843/flavors/detail HTTP/1.1" 503 170
  RESP: [503] Content-Length: 170 Content-Type: application/json; charset=UTF-8 X-Compute-Request-Id: req-f296672e-afa4-455a-ab14-2d9749658521 Date: Tue, 21 Jun 2016 12:33:58 GMT Connection: keep-alive
  RESP BODY: {"message": "The server is currently unavailable. Please try again at a later time.<br /><br />\n\n\n", "code": "503 Service Unavailable", "title": "Service Unavailable"}

So it would be "nice" (!!) if it could actually SAY that - that it can't
connect to the service! Not just some descriptive Python code error.

** Affects: nova
     Importance: Undecided
         Status: New

** Description changed:

  I'm getting this when running
  
-   openstack flavor list
+   openstack flavor list
  
  and many other commands. Running with --debug, I see:
  
-   Making authentication request to http://openstack.bayour.com:35357/v3/auth/tokens
-   "POST /v3/auth/tokens HTTP/1.1" 201 11701
-   run(Namespace(all=False, columns=[], formatter='table', limit=None, long=False, marker=None, max_width=0, noindent=False, public=True, quote_mode='nonnumeric'))
-   Instantiating compute client for VAPI Version Major: 2, Minor: 0
-   Making authentication request to http://openstack.bayour.com:35357/v3/auth/tokens
-   "POST /v3/auth/tokens HTTP/1.1" 201 11701
-   REQ: curl -g -i -X GET http://10.0.4.1:8774/v2/1857a7b08b8046038005b98e8b238843/flavors/detail -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}226eb1000d0f69fb06823fefb599f559729e0969"
-   Starting new HTTP connection (1): 10.0.4.1
-   "GET /v2/1857a7b08b8046038005b98e8b238843/flavors/detail HTTP/1.1" 503 170
-   RESP: [503] Content-Length: 170 Content-Type: application/json; charset=UTF-8 X-Compute-Request-Id: req-f296672e-afa4-455a-ab14-2d9749658521 Date: Tue, 21 Jun 2016 12:33:58 GMT Connection: keep-alive
-   RESP BODY: {"message": "The server is currently unavailable. Please try again at a later time.<br /><br />\n\n\n", "code": "503 Service Unavailable", "title": "Service Unavailable"}
+   Making authentication request to http://control:35357/v3/auth/tokens
+   "POST /v3/auth/tokens HTTP/1.1" 201 11701
+   run(Namespace(all=False, columns=[], formatter='table', limit=None, long=False, marker=None, max_width=0, noindent=False, public=True, quote_mode='nonnumeric'))
+   Instantiating compute client for VAPI Version Major: 2, Minor: 0
+   Making authentication request to http://control:35357/v3/auth/tokens
+   "POST /v3/auth/tokens HTTP/1.1" 201 11701
+   REQ: curl -g -i -X GET http://10.0.4.1:8774/v2/1857a7b08b8046038005b98e8b238843/flavors/detail -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}226eb1000d0f69fb06823fefb599f559729e0969"
+   Starting new HTTP connection (1): 10.0.4.1
+   "GET /v2/1857a7b08b8046038005b98e8b238843/flavors/detail HTTP/1.1" 503 170
+   RESP: [503] Content-Length: 170 Content-Type: application/json; charset=UTF-8 X-Compute-Request-Id: req-f296672e-afa4-455a-ab14-2d9749658521 Date: Tue, 21 Jun 2016 12:33:58 GMT Connection: keep-alive
+   RESP BODY: {"message": "The server is currently unavailable. Please try again at a later time.<br /><br />\n\n\n", "code": "503 Service Unavailable", "title": "Service Unavailable"}
  
  So it would be "nice" (!!) if it could actually SAY that - that it can't
  connect to the service! Not just some descriptive Python code error.

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1594795

Title:
  AttributeError: 'unicode' object has no attribute 'get'

Status in OpenStack Compute (nova):
  New

Bug description:
  I'm getting this when running

    openstack flavor list

  and many other commands. Running with --debug, I see:

    Making authentication request to http://control:35357/v3/auth/tokens
    "POST /v3/auth/tokens HTTP/1.1" 201 11701
    run(Namespace(all=False, columns=[], formatter='table', limit=None, long=False, marker=None, max_width=0, noindent=False, public=True, quote_mode='nonnumeric'))
    Instantiating compute client for VAPI Version Major: 2, Minor: 0
    Making authentication request to http://control:35357/v3/auth/tokens
    "POST /v3/auth/tokens HTTP/1.1" 201 11701
    REQ: curl -g -i -X GET http://10.0.4.1:8774/v2/1857a7b08b8046038005b98e8b238843/flavors/detail -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}226eb1000d0f69fb06823fefb599f559729e0969"
    Starting new HTTP connection (1): 10.0.4.1
    "GET /v2/1857a7b08b8046038005b98e8b238843/flavors/detail HTTP/1.1" 503 170
    RESP: [503] Content-Length: 170 Content-Type: application/json; charset=UTF-8 X-Compute-Request-Id: req-f296672e-afa4-455a-ab14-2d9749658521 Date: Tue, 21 Jun 2016 12:33:58 GMT Connection: keep-alive
    RESP BODY: {"message": "The server is currently unavailable. Please try again at a later time.<br /><br />\n\n\n", "code": "503 Service Unavailable", "title": "Service Unavailable"}

  So it would be "nice" (!!) if it could actually SAY that - that it
  can't connect to the service! Not just some descriptive Python code
  error.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1594795/+subscriptions


Follow ups