Guest User

juju metadata issues

a guest
Feb 25th, 2016
8
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. I am trying to bootstrap juju 2.0 on a private openstack cloud. I am using 14.04.3 images in glance, trying to generate my own metadata.
  2.  
  3. Running:
  4. juju metadata generate-image -a amd64 -i 0f719993-0ffa-4202-bc13-de2540f0e0bb -r RegionOne -s wily -d /home/ubuntu -u http://192.168.4.11:5000/v2.0
  5.  
  6. gives me the error that :
  7.  
  8. WARNING model could not be opened: model "" not found
  9. ERROR streams/v1/index2.sjson not accessed, actual error: invalid URL "file:///home/ubuntu/images/streams/v1/index2.sjson" not found
  10. ERROR streams/v1/index2.json not accessed, actual error: invalid URL "file:///home/ubuntu/images/streams/v1/index2.json" not found
  11.  
  12. Image metadata files have been written to:...
  13.  
  14. If I specify -m ~/environments.yaml on the juju metadata generate-image command, tells me:
  15.  
  16. WARNING model could not be opened: model "environments.yaml" not found
  17.  
  18. If I set JUJU_MODEL=dr, it tells me it can't find dr.
  19.  
  20. ## contents of /home/ubuntu/.local/share/juju/clouds.yaml
  21. clouds:
  22. dr:
  23. type: openstack
  24. auth-types: [userpass]
  25. regions:
  26. RegionOne:
  27. endpoint: http://192.168.4.11:5000/v2.0
  28.  
  29. ## contents of /home/ubuntu/.local/share/juju/environments.yaml
  30. environments:
  31. dr:
  32. type: openstack
  33. use-floating-ip: false
  34. use-default-secgroup: false
  35. network: admin_internal_net
  36. auth-url: http://192.168.4.11:5000/v2.0
  37. region: RegionOne
  38. auth-mode: userpass
  39. tenant-name: juju
  40. username: juju
  41. password: supersecretpassword
  42.  
  43.  
  44. ## output of juju list-clouds:
  45.  
  46. CLOUD TYPE REGIONS
  47. ...
  48. local:dr openstack RegionOne
RAW Paste Data