Merge "Update usage of glance client"
This commit is contained in:
commit
820274f566
@ -58,7 +58,7 @@ can be built and uploaded to glance as follows:
|
||||
|
||||
$ glance image-create --name ubuntu-mesos --visibility public \
|
||||
--disk-format=qcow2 --container-format=bare \
|
||||
--property os_distro=ubuntu --file=ubuntu-mesos.qcow2
|
||||
--os-distro=ubuntu --file=ubuntu-mesos.qcow2
|
||||
|
||||
Docker
|
||||
^^^^^^
|
||||
@ -76,9 +76,9 @@ as ``/tmp/ubuntu-mesos.qcow2``
|
||||
$ sudo docker run -v /tmp:/output --rm -ti --privileged magnum/mesos-builder
|
||||
...
|
||||
Image file /output/ubuntu-mesos.qcow2 created...
|
||||
$ glance image-create --name ubuntu-mesos --is-public True \
|
||||
$ glance image-create --name ubuntu-mesos --visibility public \
|
||||
--disk-format=qcow2 --container-format=bare \
|
||||
--property os_distro=ubuntu --file=/tmp/ubuntu-mesos.qcow2
|
||||
--os-distro=ubuntu --file=/tmp/ubuntu-mesos.qcow2
|
||||
|
||||
Creating the stack
|
||||
------------------
|
||||
|
@ -127,9 +127,9 @@ made Atomic images available at https://fedorapeople.org/groups/magnum)::
|
||||
cd ~
|
||||
wget https://fedorapeople.org/groups/magnum/fedora-21-atomic-5.qcow2
|
||||
glance image-create --name fedora-21-atomic-5 \
|
||||
--is-public True \
|
||||
--visibility public \
|
||||
--disk-format qcow2 \
|
||||
--property os_distro='fedora-atomic'\
|
||||
--os-distro fedora-atomic \
|
||||
--container-format bare < fedora-21-atomic-5.qcow2
|
||||
|
||||
Create a keypair for use with the baymodel::
|
||||
|
@ -24,6 +24,6 @@ An example fedora based image and uploaded to glance with the following:
|
||||
kubernetes \
|
||||
-o fedora-21-kubernetes.qcow2
|
||||
|
||||
KERNEL_ID=`glance image-create --name fedora-k8s-kernel --is-public True --disk-format=aki --container-format=aki --file=fedora-21-kubernetes.vmlinuz | grep id | tr -d '| ' | cut --bytes=3-57`
|
||||
RAMDISK_ID=`glance image-create --name fedora-k8s-ramdisk --is-public True --disk-format=ari --container-format=ari --file=fedora-21-kubernetes.initrd | grep id | tr -d '| ' | cut --bytes=3-57`
|
||||
BASE_ID=`glance image-create --name fedora-k8s --is-public True --disk-format=qcow2 --container-format=bare --property kernel_id=$KERNEL_ID --property ramdisk_id=$RAMDISK_ID --file=fedora-21-kubernetes.qcow2 | grep -v kernel | grep -v ramdisk | grep id | tr -d '| ' | cut --bytes=3-57`
|
||||
KERNEL_ID=`glance image-create --name fedora-k8s-kernel --visibility public --disk-format=aki --container-format=aki --file=fedora-21-kubernetes.vmlinuz | grep id | tr -d '| ' | cut --bytes=3-57`
|
||||
RAMDISK_ID=`glance image-create --name fedora-k8s-ramdisk --visibility public --disk-format=ari --container-format=ari --file=fedora-21-kubernetes.initrd | grep id | tr -d '| ' | cut --bytes=3-57`
|
||||
BASE_ID=`glance image-create --name fedora-k8s --visibility public --disk-format=qcow2 --container-format=bare --property kernel_id=$KERNEL_ID --property ramdisk_id=$RAMDISK_ID --file=fedora-21-kubernetes.qcow2 | grep -v kernel | grep -v ramdisk | grep id | tr -d '| ' | cut --bytes=3-57`
|
||||
|
Loading…
Reference in New Issue
Block a user