Advertisement
TSU2

Devstack and Docker - Error launching nova boot

Dec 14th, 2015
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.75 KB | None | 0 0
  1. FYI - anyone reading this PASTE
  2. Problem partially resolved by passing "admin" as the username instead of "demo"
  3. Now, current problem being investigated is "No Project found" error.
  4. Unknown whether Devstack stack.sh was supposed to have set up a project name by default, but am currently testing passing the variable in local.conf (see the scripts I'm creating at https://en.opensuse.org/User:Tsu2/openstack-install)
  5.  
  6.  
  7.  
  8.  
  9. Unable to launch a docker container using "nova boot" command
  10. (OpenStack Wiki Docker) due to User permissions
  11.  
  12. Following instructions this reference
  13. https://wiki.openstack.org/wiki/Docker
  14.  
  15. Although I'm installing on openSUSE, I don't believe the problem I'm
  16. running into is distro-specific, it has to do with launching "nova
  17. boot' with proper security context.
  18.  
  19. Have installed Devstack and Docker following the instructions on this page.
  20. Based on this page, the install can be replicated on an openSUSE (I'm
  21. deploying on LEAP) following the instructions and using the scripts I
  22. created referenced on this page
  23. https://en.opensuse.org/User:Tsu2/openstack-install
  24.  
  25. The install is on LEAP 42.1
  26.  
  27. Now, am attempting to run the section in the Wiki "Testing Nova-Docker"
  28. The commands assume using openrc, but because openSUSE is systemd
  29. instead of openrc I am instead running the commands individually in a
  30. console
  31.  
  32. $ docker pull cirros
  33. $ docker save cirros | glance image-create --name cirros --visibility
  34. public --container-format docker --disk-format raw
  35. # nova boot image cirros --flavor ml.tiny dl
  36.  
  37. The above command results in an error
  38.  
  39. ERROR (Unauthorized): Invalid user / password (Disable debug mode to
  40. suppress these details.) (HTTP 401) (Request-ID:
  41. req-46cdb314-75ef-4049-b95b-b73c0818e3ab)
  42.  
  43. Note: although the following lists my attempts to resolve, even
  44. without further attempts it's already possible to log in through
  45. Horizon (dashboard) and see the cirros image downloaded by Docker
  46. although it seems that Horizon cannot use it (can't access the actual
  47. file location and possibly doesn't understand the docker format)
  48.  
  49. Have attempted the following to set user credentials:
  50. - specify in the command line os-username=demo and os-userpassword=password
  51. Result - No change
  52. - create a file containing the following environmental variables(These
  53. are same as was set in original Devstack setup) and sourcing it
  54.  
  55. export OS_USERNAME=demo
  56. export OS_TENANT_NAME=default
  57. export OS_PASSWORD=password
  58. export OS_AUTH_URL=http://10.88.88.129:5000/v2.0/
  59. export 0S_REGION_NAME=USA
  60.  
  61. Result: You can now verify successfully setting the values using echo,
  62. but the "nova boot" command still results in same error
  63.  
  64. TIA if anyone can provide insight if I'm not interpreting the error
  65. correctly or can resolve.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement