Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2014
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. Setting in /etc/nova/nova.conf
  2.  
  3. [cells]
  4. name = region
  5. cell_type = api
  6. enable = True
  7.  
  8.  
  9. When API call to get cells -
  10.  
  11. curl -i 'http://10.0.9.40:8774/v2/dcab4e3fc2734bad97c43d46bb77d076/os-cells' -X GET -H "X-Auth-Project-Id: demo" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token:<token>"
  12. HTTP/1.1 200 OK
  13. Content-Type: application/json
  14. Content-Length: 111
  15. X-Compute-Request-Id: req-e83c337a-a7d9-47e5-a472-72cd41126f21
  16. Date: Thu, 24 Apr 2014 04:12:34 GMT
  17.  
  18. {"cells": [{"username": "guest", "rpc_host": "10.0.9.40", "type": "child", "name": "child", "rpc_port": 5672}]}
  19.  
  20.  
  21.  
  22. During particular cell show (using cell name as "child")-
  23.  
  24. curl -i 'http://10.0.9.40:8774/v2/dcab4e3fc2734bad97c43d46bb77d076/os-cells/child' -X GET -H "X-Auth-Project-Id: demo" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: <token>"
  25.  
  26. HTTP/1.1 500 Internal Server Error
  27. Content-Length: 128
  28. Content-Type: application/json; charset=UTF-8
  29. X-Compute-Request-Id: req-ba2503bd-3948-4cce-8ee6-543aa597497b
  30. Date: Thu, 24 Apr 2014 04:10:33 GMT
  31.  
  32. {"computeFault": {"message": "The server has either erred or is incapable of performing the requested operation.", "code": 500}}
  33.  
  34. Note: when using cell name as "api"/"region" 404 is returned.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement