Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
titleUpload image to glance
glanceopenstack image-create --name <image_name> create --file <image_location> --disk-format raw --container-format bare --visibility public --progress 
openstack image create --file <image_location> --disk-format raw --container-format bareprotected [--public|--private] <image_name>

...

Code Block
titleUpload image to glance
glanceopenstack image-create --name "Ubuntu Server 16.04 (Xenial) amd64" create --file xenial-server-cloudimg-amd64-disk1.img.raw --disk-format raw --container-format bare --is-public True --progress
openstack image create --file xenial-server-cloudimg-amd64-disk1.img.raw --disk-format raw --container-format bareprotected --public "Ubuntu Server 16.04 (Xenial) amd64"

The "–visibility public–publicflag is used to indicate that all projects should have access to this image, and the upload would then require admin credentials. In the case of an image upload which should only be accessible to the project uploading it, that flag can be omitted.

...