Skip to content

Instantly share code, notes, and snippets.

@toanalien
Last active June 13, 2019 15:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save toanalien/434b5a64fa727b453de02f16f0b49fd6 to your computer and use it in GitHub Desktop.
Save toanalien/434b5a64fa727b453de02f16f0b49fd6 to your computer and use it in GitHub Desktop.
import image to glance
#!/bin/bash
export CB_LATEST_IMAGE=cb-hdp-26-1808062221.img
export CB_LATEST_IMAGE_NAME=cb-hdp-26-1808062221.img
export OS_USERNAME=admin
export OS_AUTH_URL=http://localhost/identity
export OS_TENANT_NAME=admin
export OS_PROJECT_DOMAIN_ID=default
export OS_USER_DOMAIN_ID=default
glance image-create --name "$CB_LATEST_IMAGE_NAME" --file "$CB_LATEST_IMAGE" --disk-format qcow2 --container-format bare --progress
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment