How to upload images to Openstack¶
Preparatory steps¶
- Install the openstack client, e.g. by running
pip install python-openstackclient
in a fresh virtualenv. - Install gpg, and download signature keys for ubuntu When I was
downloading the images following fingerprint was used:
D2EB 4462 6FDD C30B 513D 5BB7 1A5D 6C4C 7DB8 7C81
, with following short ID:7DB87C81
- Download signing key:
gpg --keyserver keyserver.ubuntu.com --recv-keys 7DB87C81
Download the images¶
- Download the images from: https://cloud-images.ubuntu.com/. Example file to download: https://cloud-images.ubuntu.com/trusty/current/trusty-server-cloudimg-amd64-disk1.img
- Download
SHA256SUMS.txt
andSHA256SUMS.gpg
, verify these filesgpg --verify SHA256SUMS.gpg SHA256SUMS.txt
- Verify downloaded image:
sha256sum --check SHA256SUMS.txt
Upload the images¶
- Download the rc file: go to horizon console
Access ans Security
->API Access
->Download RC File
. - Source openstack rc file.
- Upload the image:
1 2
openstack image create --container-format=bare --disk-format=qcow2 \ --file trusty-server-cloudimg-amd64-disk1.img trusty-14.04-unmodified-`date +%Y%m%d`
Note image format is qcow2 despite different image extension. It should be possible to use the glance
client instead of the openstack
command-line tool, but we had problems with glance
ignoring the OpenStack
region in the past.