Skip to content

Instantly share code, notes, and snippets.

@cp16net
Created April 29, 2014 02:34
Show Gist options
  • Select an option

  • Save cp16net/11389442 to your computer and use it in GitHub Desktop.

Select an option

Save cp16net/11389442 to your computer and use it in GitHub Desktop.
+ [[ 0 -ne 0 ]]
+ IMAGE=/home/vagrant/devstack/files/cirros-0.3.1-x86_64-uec.tar.gz
+ [[ http://download.cirros-cloud.net/0.3.1/cirros-0.3.1-x86_64-uec.tar.gz =~ openvz ]]
+ [[ http://download.cirros-cloud.net/0.3.1/cirros-0.3.1-x86_64-uec.tar.gz =~ \.vmdk ]]
+ [[ http://download.cirros-cloud.net/0.3.1/cirros-0.3.1-x86_64-uec.tar.gz =~ \.vhd\.tgz ]]
+ [[ http://download.cirros-cloud.net/0.3.1/cirros-0.3.1-x86_64-uec.tar.gz =~ \.xen-raw\.tgz ]]
+ KERNEL=
+ RAMDISK=
+ DISK_FORMAT=
+ CONTAINER_FORMAT=
+ UNPACK=
+ case "$IMAGE_FNAME" in
+ '[' cirros-0.3.1-x86_64-uec '!=' cirros-0.3.1-x86_64-uec.tar.gz ']'
+ IMAGE_NAME=cirros-0.3.1-x86_64-uec
+ xdir=/home/vagrant/devstack/files/images/cirros-0.3.1-x86_64-uec
+ rm -Rf /home/vagrant/devstack/files/images/cirros-0.3.1-x86_64-uec
+ mkdir /home/vagrant/devstack/files/images/cirros-0.3.1-x86_64-uec
+ tar -zxf /home/vagrant/devstack/files/cirros-0.3.1-x86_64-uec.tar.gz -C /home/vagrant/devstack/files/images/cirros-0.3.1-x86_64-uec
++ for f in '"$xdir/"*-vmlinuz*' '"$xdir/"aki-*/image'
++ '[' -f /home/vagrant/devstack/files/images/cirros-0.3.1-x86_64-uec/cirros-0.3.1-x86_64-vmlinuz ']'
++ echo /home/vagrant/devstack/files/images/cirros-0.3.1-x86_64-uec/cirros-0.3.1-x86_64-vmlinuz
++ break
++ true
+ KERNEL=/home/vagrant/devstack/files/images/cirros-0.3.1-x86_64-uec/cirros-0.3.1-x86_64-vmlinuz
++ for f in '"$xdir/"*-initrd*' '"$xdir/"ari-*/image'
++ '[' -f /home/vagrant/devstack/files/images/cirros-0.3.1-x86_64-uec/cirros-0.3.1-x86_64-initrd ']'
++ echo /home/vagrant/devstack/files/images/cirros-0.3.1-x86_64-uec/cirros-0.3.1-x86_64-initrd
++ break
++ true
+ RAMDISK=/home/vagrant/devstack/files/images/cirros-0.3.1-x86_64-uec/cirros-0.3.1-x86_64-initrd
++ for f in '"$xdir/"*.img' '"$xdir/"ami-*/image'
++ '[' -f /home/vagrant/devstack/files/images/cirros-0.3.1-x86_64-uec/cirros-0.3.1-x86_64-blank.img ']'
++ echo /home/vagrant/devstack/files/images/cirros-0.3.1-x86_64-uec/cirros-0.3.1-x86_64-blank.img
++ break
++ true
+ IMAGE=/home/vagrant/devstack/files/images/cirros-0.3.1-x86_64-uec/cirros-0.3.1-x86_64-blank.img
+ [[ -z cirros-0.3.1-x86_64-uec ]]
+ is_arch ppc64
+ ARCH_TYPE=ppc64
++ uname -m
+ [[ x86_64 == \p\p\c\6\4 ]]
+ '[' '' = bare ']'
+ KERNEL_ID=
+ RAMDISK_ID=
+ '[' -n /home/vagrant/devstack/files/images/cirros-0.3.1-x86_64-uec/cirros-0.3.1-x86_64-vmlinuz ']'
++ get_field 2
++ read data
++ grep ' id '
++ glance --os-auth-token 8d1b082298b548a7826fbb4a205a1751 --os-image-url http://172.16.64.161:9292 image-create --name cirros-0.3.1-x86_64-uec-kernel --is-public True --container-format aki --disk-format aki
Invalid OpenStack Identity credentials.
+ KERNEL_ID=
+ '[' -n /home/vagrant/devstack/files/images/cirros-0.3.1-x86_64-uec/cirros-0.3.1-x86_64-initrd ']'
++ get_field 2
++ read data
++ grep ' id '
++ glance --os-auth-token 8d1b082298b548a7826fbb4a205a1751 --os-image-url http://172.16.64.161:9292 image-create --name cirros-0.3.1-x86_64-uec-ramdisk --is-public True --container-format ari --disk-format ari
Invalid OpenStack Identity credentials.
+ RAMDISK_ID=
+ glance --os-auth-token 8d1b082298b548a7826fbb4a205a1751 --os-image-url http://172.16.64.161:9292 image-create --name cirros-0.3.1-x86_64-uec --is-public True --container-format ami --disk-format ami
Invalid OpenStack Identity credentials.
+ exit_trap
+ local r=1
++ jobs -p
+ jobs=
+ [[ -n '' ]]
+ exit 1
vagrant@trove:~/trove-integration/scripts$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment