F5Networks / f5-openstack-image-prep

Contains scripts to prepare an F5® BIG-IP® VE image file to boot in OpenStack.
Apache License 2.0
0 stars 13 forks source link

Prep script appears to succeed when mounting fails. #27

Open andrewjjenkins opened 8 years ago

andrewjjenkins commented 8 years ago

I ran patch_upload_ve_image.yaml like this:

$ openstack stack create -t patch_upload_ve_image.yaml --parameter "onboard_image=ubuntu-16.04-server-cloudimg-amd64-0160420.3;flavor=m1.large;private_network=default;f5_image_import_auth_url=http://10.190.20.22:5000/v2.0;f5_image_import_tenant=ajenkins;f5_image_import_user=ajenkins;f5_image_import_password=6NBQSyaz;f5_ve_image_url=http://10.190.4.241:8000/BIGIP-11.6.0.6.0.442.ALL.qcow2.zip;f5_ve_image_name=BIGIP-11.6.0.6.0.442.qcow2;image_prep_key=id_rsa_pdbld" bigip116-ajenkins-onboard

When I spin up servers created using the image produced, they don't appear to do any OpenStack-specific things. They don't honor my passwords or SSH keys or licenses, and they have the default login passwords for root and admin.

I grabbed the OpenStack log output. I clicked "Full Log" but it looks like it only gave me the last parts. I can see some interesting things; it looks like mounting the disk image fails but the script still thinks it was successful.

[  191.841674] cloud-init[1168]: ++ get_dev set.1._config
[  191.843248] cloud-init[1168]: ++ ls -l /dev/vg-db-hda
[  191.844720] cloud-init[1168]: ++ cut '-d>' -f2
[  191.845569] cloud-init[1168]: ++ cut -d/ -f2-
[  191.846392] cloud-init[1168]: ++ grep set.1._config
[  191.850690] cloud-init[1168]: ls: cannot access '/dev/vg-db-hda': No such file or directory
[  191.852908] cloud-init[1168]: + mount /dev/ /mnt/bigip-config
[  191.854820] cloud-init[1168]: mount:  /dev is not a block device

"Full" log below:

[  129.130184] cloud-init[1168]: 1382250K .......... .......... .......... .......... .......... 99% 82.1M 0s
[  129.130994] cloud-init[1168]: 1382300K .......... .......... .......... .......... .......... 99% 76.9M 0s
[  129.131745] cloud-init[1168]: 1382350K .......... .......... .......... .......... .......... 99% 38.8M 0s
[  129.132580] cloud-init[1168]: 1382400K .......... .......... .......... .......... .......... 99%  165M 0s
[  129.133519] cloud-init[1168]: 1382450K .......... .......... .......... .......... .......... 99%  204M 0s
[  129.134336] cloud-init[1168]: 1382500K .......... .......... .......... .......... .......... 99%  202M 0s
[  129.135172] cloud-init[1168]: 1382550K .......... .......... .......... .......... .......... 99%  185M 0s
[  129.135910] cloud-init[1168]: 1382600K .......... .......... .......... .......... .......... 99%  179M 0s
[  129.137007] cloud-init[1168]: 1382650K .......... .......... .......... .......... .......... 99% 84.7M 0s
[  129.137849] cloud-init[1168]: 1382700K .......... .......... .......... .......... .......... 99%  188M 0s
[  129.138869] cloud-init[1168]: 1382750K .......... .......... .......... .......... .......... 99% 65.3M 0s
[  129.139988] cloud-init[1168]: 1382800K .......... .......... .......... .......... .......... 99%  145M 0s
[  129.140982] cloud-init[1168]: 1382850K .......... .......... .......... .......... .......... 99%  196M 0s
[  129.141801] cloud-init[1168]: 1382900K .......... .......... .......... .......... .......... 99%  128M 0s
[  129.142626] cloud-init[1168]: 1382950K .......... .......... .......... .......... .......... 99%  201M 0s
[  129.143341] cloud-init[1168]: 1383000K .......... .......... .......... .......... .......... 99% 75.6M 0s
[  129.144183] cloud-init[1168]: 1383050K .......... .......... .......... .......... .......... 99%  196M 0s
[  129.145025] cloud-init[1168]: 1383100K .......... .......... .......... .......... .......... 99% 69.7M 0s
[  129.145764] cloud-init[1168]: 1383150K .......... .......... .......... .......... .......... 99%  174M 0s
[  129.146538] cloud-init[1168]: 1383200K .......... .......... .......... .......... .......... 99% 69.4M 0s
[  129.147325] cloud-init[1168]: 1383250K .......... .......... .......... .......... .......... 99%  158M 0s
[  129.148125] cloud-init[1168]: 1383300K .......... .......... .......... .......... .......... 99%  179M 0s
[  129.149150] cloud-init[1168]: 1383350K .......... .......... .......... .......... .......... 99% 97.5M 0s
[  129.149896] cloud-init[1168]: 1383400K .......... .......... .......... .......... .......... 99%  112M 0s
[  129.150729] cloud-init[1168]: 1383450K .......... .......... .......... .......... .......... 99% 78.8M 0s
[  129.151547] cloud-init[1168]: 1383500K .......... .......... .......... .......... .......... 99%  192M 0s
[  129.152456] cloud-init[1168]: 1383550K .......... .......... .......... .......... .......... 99% 75.0M 0s
[  129.153341] cloud-init[1168]: 1383600K .......... .......... .......... .......... .......... 99%  223M 0s
[  129.154103] cloud-init[1168]: 1383650K .......... .......... .......... .......... .......... 99% 81.2M 0s
[  129.154922] cloud-init[1168]: 1383700K .......... .......... .......... .......... .......... 99%  144M 0s
[  129.155866] cloud-init[1168]: 1383750K .......... .......... .......... .......... .......... 99% 86.3M 0s
[  129.156737] cloud-init[1168]: 1383800K .......... .......... .......... .......... .......... 99%  169M 0s
[  129.157492] cloud-init[1168]: 1383850K .......... .......... .......... .......... .......... 99% 64.8M 0s
[  129.158289] cloud-init[1168]: 1383900K .......... .......... .......... .......... .......... 99%  209M 0s
[  129.159109] cloud-init[1168]: 1383950K .......... .......... .......... .......... .......... 99%  155M 0s
[  129.159941] cloud-init[1168]: 1384000K .......... .......... .......... .......... .......... 99% 89.8M 0s
[  129.161346] cloud-init[1168]: 1384050K .......... .......... .......... .......... .......... 99%  168M 0s
[  129.162108] cloud-init[1168]: 1384100K .......... .......... .......... .......... .......... 99% 39.7M 0s
[  129.162987] cloud-init[1168]: 1384150K .......... .......... .......... .......... .......... 99%  209M 0s
[  129.163808] cloud-init[1168]: 1384200K .......... .......... .......... .......... .......... 99%  158M 0s
[  129.164679] cloud-init[1168]: 1384250K .......... .......... .......... .......... .......... 99%  198M 0s
[  129.165506] cloud-init[1168]: 1384300K .......... .......... .......... .......... .......... 99%  210M 0s
[  129.166250] cloud-init[1168]: 1384350K .......... .......... .......... .......... .......... 99%  108M 0s
[  129.167075] cloud-init[1168]: 1384400K .......... .......... .......... .......... .......... 99%  178M 0s
[  129.167975] cloud-init[1168]: 1384450K .......... .......... .......... .......... .......... 99% 77.1M 0s
[  129.168818] cloud-init[1168]: 1384500K .......... .......... .......... .......... .......... 99%  165M 0s
[  129.169567] cloud-init[1168]: 1384550K .......... .......... .......... .......... .......... 99% 46.5M 0s
[  129.170365] cloud-init[1168]: 1384600K .......... .......... .......... .......... .......... 99%  207M 0s
[  129.171161] cloud-init[1168]: 1384650K .......... .......... .......... .......... .......... 99%  183M 0s
[  129.171969] cloud-init[1168]: 1384700K .......... .......... .......... .......... .......... 99% 83.8M 0s
[  129.173328] cloud-init[1168]: 1384750K .......... .......... .......... .......... .......... 99%  185M 0s
[  129.174151] cloud-init[1168]: 1384800K .......... .......... .......... .......... .......... 99%  200M 0s
[  129.175064] cloud-init[1168]: 1384850K .......... .......... .......... .......... .......... 99%  121M 0s
[  129.175923] cloud-init[1168]: 1384900K .......... .......... .......... .......... .......... 99%  169M 0s
[  129.177014] cloud-init[1168]: 1384950K .......... .......... .......... .......... .......... 99% 73.3M 0s
[  129.177902] cloud-init[1168]: 1385000K .......... .......... .......... .......... .......... 99%  199M 0s
[  129.178861] cloud-init[1168]: 1385050K .......... .......... .......... .......... .......... 99% 81.3M 0s
[  129.179911] cloud-init[1168]: 1385100K .......... .......... .......... .......... .......... 99%  187M 0s
[  129.181392] cloud-init[1168]: 1385150K .......... .......... .......... .......... .......... 99% 75.7M 0s
[  129.182386] cloud-init[1168]: 1385200K .......... .......... .......... .......... .......... 99%  168M 0s
[  129.183209] cloud-init[1168]: 1385250K .......... .......... .......... .......... .......... 99% 82.3M 0s
[  129.184093] cloud-init[1168]: 1385300K .......... .......... .......... .......... .......... 99%  246M 0s
[  129.185327] cloud-init[1168]: 1385350K .......... .......... .......... .......... .......... 99% 73.2M 0s
[  129.186159] cloud-init[1168]: 1385400K .......... .......... .......... .......... .......... 99%  192M 0s
[  129.186919] cloud-init[1168]: 1385450K .......... .......... .......... .......... .......... 99% 76.2M 0s
[  129.187730] cloud-init[1168]: 1385500K .......... .......... .......... .......... .......... 99%  105M 0s
[  129.188546] cloud-init[1168]: 1385550K .......... .......... .......... .......... .......... 99% 91.8M 0s
[  129.189684] cloud-init[1168]: 1385600K .......... .......... .......... .......... .......... 99%  174M 0s
[  129.190507] cloud-init[1168]: 1385650K .......... .......... .......... .......... .......... 99%  206M 0s
[  129.191296] cloud-init[1168]: 1385700K .......... .......... .......... .......... .......... 99% 51.0M 0s
[  129.192061] cloud-init[1168]: 1385750K .......... .......... .......... .......... .......... 99%  243M 0s
[  129.193066] cloud-init[1168]: 1385800K .......... .......... .......... .......... .......... 99%  178M 0s
[  129.193918] cloud-init[1168]: 1385850K .......... .......... .......... .......... .......... 99%  189M 0s
[  129.194753] cloud-init[1168]: 1385900K .......... .......... .......... .......... .......... 99% 75.6M 0s
[  129.195586] cloud-init[1168]: 1385950K .......... .......... .......... .......... .......... 99% 63.3M 0s
[  129.196382] cloud-init[1168]: 1386000K .......... .......... .......... .......... .......... 99% 80.9M 0s
[  129.197532] cloud-init[1168]: 1386050K .......... .......... .......... .......... .......... 99%  206M 0s
[  129.198273] cloud-init[1168]: 1386100K .......... .......... .......... .......... .......... 99%  172M 0s
[  129.199066] cloud-init[1168]: 1386150K .......... .......... .......... .......... .......... 99%  130M 0s
[  129.199887] cloud-init[1168]: 1386200K .......... .......... .......... .......... .......... 99%  155M 0s
[  129.201005] cloud-init[1168]: 1386250K .......... .......... .......... .......... .......... 99% 78.9M 0s
[  129.201806] cloud-init[1168]: 1386300K .......... .......... .......... .......... .......... 99%  178M 0s
[  129.202712] cloud-init[1168]: 1386350K .......... .......... .......... .......... .......... 99% 73.3M 0s
[  129.203460] cloud-init[1168]: 1386400K .......... .......... .......... .......... .......... 99%  167M 0s
[  129.204271] cloud-init[1168]: 1386450K .......... .......... .......... .......... .......... 99%  220M 0s
[  129.205070] cloud-init[1168]: 1386500K .......... .......... .......... .......... .......... 99% 74.0M 0s
[  129.205858] cloud-init[1168]: 1386550K .......... .......... .......... .......... .......... 99%  202M 0s
[  129.206570] cloud-init[1168]: 1386600K .......... .......... .......... .......... .......... 99% 81.4M 0s
[  129.207340] cloud-init[1168]: 1386650K .......... .......... .......... .......... .......... 99%  212M 0s
[  129.208132] cloud-init[1168]: 1386700K .......... .......... .......... .......... .......... 99% 79.0M 0s
[  129.209263] cloud-init[1168]: 1386750K .......... .......... .......... .......... .......... 99%  178M 0s
[  129.209999] cloud-init[1168]: 1386800K .......... .......... .......... .......... .......... 99% 89.9M 0s
[  129.210749] cloud-init[1168]: 1386850K .......... .......... .......... .......... .......... 99%  182M 0s
[  129.211533] cloud-init[1168]: 1386900K .......... .......... .......... .......... .......... 99% 87.4M 0s
[  129.212383] cloud-init[1168]: 1386950K .......... .......... .......... .......... .......... 99%  194M 0s
[  129.213375] cloud-init[1168]: 1387000K .......... .......... .......... .......... .......... 99% 74.6M 0s
[  129.214207] cloud-init[1168]: 1387050K .......... .......... .......... .......... .......... 99%  154M 0s
[  129.214948] cloud-init[1168]: 1387100K .......... .......... .......... .......... .......... 99%  192M 0s
[  129.215754] cloud-init[1168]: 1387150K .......... .......... .......... .......... .......... 99% 95.8M 0s
[  129.216556] cloud-init[1168]: 1387200K .......... .......... .......... .......... .......... 99% 59.6M 0s
[  129.217559] cloud-init[1168]: 1387250K .......... .......... .......... .......... .......... 99%  264M 0s
[  129.218373] cloud-init[1168]: 1387300K .......... .......... .......... .......... .......... 99%  168M 0s
[  129.219277] cloud-init[1168]: 1387350K .......... .......... .......... .......... .......... 99% 51.4M 0s
[  129.220198] cloud-init[1168]: 1387400K .......... .......... .......... .......... .......... 99%  264M 0s
[  129.221513] cloud-init[1168]: 1387450K .......... .......... .......... .......... .......... 99%  306M 0s
[  129.222286] cloud-init[1168]: 1387500K .......... .......... .......... .......... .......... 99% 95.3M 0s
[  129.223314] cloud-init[1168]: 1387550K .......... .......... .......... .......... .......... 99% 38.7M 0s
[  129.224126] cloud-init[1168]: 1387600K .......... .......... .......... .......... .......... 99%  309M 0s
[  129.225184] cloud-init[1168]: 1387650K .......... .......... .......... .......... .......... 99%  275M 0s
[  129.225987] cloud-init[1168]: 1387700K .......... .......... .......... .......... .......... 99%  369M 0s
[  129.226804] cloud-init[1168]: 1387750K .......... .......... .......... .......... .......... 99%  127M 0s
[  129.227578] cloud-init[1168]: 1387800K .......... .......... .......... .......... .......... 99% 36.3M 0s
[  129.228350] cloud-init[1168]: 1387850K .......... .......... .......... .......... .......... 99%  320M 0s
[  129.229873] cloud-init[1168]: 1387900K .......... .......... .......... .......... .......... 99%  272M 0s
[  129.230710] cloud-init[1168]: 1387950K .......... .......... .......... .......... .......... 99%  165M 0s
[  129.231442] cloud-init[1168]: 1388000K .......... .......... .......... .......... .......... 99%  213M 0s
[  129.232285] cloud-init[1168]: 1388050K .......... .......... .......... .......... .......... 99% 42.0M 0s
[  129.233508] cloud-init[1168]: 1388100K .......... .......... .......... .......... .......... 99%  279M 0s
[  129.234305] cloud-init[1168]: 1388150K .......... .......... .......... .......... .......... 99%  279M 0s
[  129.235047] cloud-init[1168]: 1388200K .......... .......... .......... .......... .......... 99%  146M 0s
[  129.236059] cloud-init[1168]: 1388250K .......... .......... .......... .......... .......... 99% 64.7M 0s
[  129.237120] cloud-init[1168]: 1388300K .......... .......... .......... .......... .......... 99% 39.8M 0s
[  129.237939] cloud-init[1168]: 1388350K .......... .......... .......... .......... .......... 99%  143M 0s
[  129.238735] cloud-init[1168]: 1388400K .......... .......... .......... .......... .......... 99%  166M 0s
[  129.239537] cloud-init[1168]: 1388450K .......... .......... .......... .......... .......... 99%  208M 0s
[  129.240312] cloud-init[1168]: 1388500K .......... .......... .......... .......... .......... 99%  180M 0s
[  129.241114] cloud-init[1168]: 1388550K .......... .......... .......... .......... .......... 99% 71.2M 0s
[  129.241910] cloud-init[1168]: 1388600K .......... .......... .......... .......... .......... 99%  145M 0s
[  129.242701] cloud-init[1168]: 1388650K .......... .......... .......... .......... .......... 99% 61.8M 0s
[  129.243419] cloud-init[1168]: 1388700K .......... .......... .......... .......... .......... 99%  152M 0s
[  129.244254] cloud-init[1168]: 1388750K .......... .......... .......... .......... .......... 99%  142M 0s
[  129.245598] cloud-init[1168]: 1388800K .......... .......... .......... .......... .......... 99%  221M 0s
[  129.246386] cloud-init[1168]: 1388850K .......... .......... .......... .......... .......... 99%  215M 0s
[  129.247106] cloud-init[1168]: 1388900K .......... .......... .......... .......... .......... 99%  209M 0s
[  129.249130] cloud-init[1168]: 1388950K .......... .......... .......... .......... .......... 99% 52.7M 0s
[  129.250887] cloud-init[1168]: 1389000K .......... .......... .......... .......... .......... 99%  179M 0s
[  129.252552] cloud-init[1168]: 1389050K .......... .......... .......... .......... .......... 99%  258M 0s
[  129.254211] cloud-init[1168]: 1389100K .......... .......... .......... .......... .......... 99%  220M 0s
[  129.255925] cloud-init[1168]: 1389150K .......... .......... .......... .......... .......... 99% 76.0M 0s
[  129.257563] cloud-init[1168]: 1389200K .......... .......... .......... .......... .......... 99%  299M 0s
[  129.258367] cloud-init[1168]: 1389250K .......... .......... .......... .......... .......... 99% 69.8M 0s
[  129.259105] cloud-init[1168]: 1389300K .......... .......... .......... .......... .......... 99%  222M 0s
[  129.259886] cloud-init[1168]: 1389350K .......... .......... .......... .......... .......... 99% 66.5M 0s
[  129.260764] cloud-init[1168]: 1389400K .......... .......... .......... .......... .......... 99%  199M 0s
[  129.261549] cloud-init[1168]: 1389450K .......... .......... .......... .......... .......... 99%  215M 0s
[  129.262240] cloud-init[1168]: 1389500K .......... .......... .......... .......... .......... 99% 63.7M 0s
[  129.263035] cloud-init[1168]: 1389550K .......... .......... .......... .......... .......... 99%  203M 0s
[  129.263797] cloud-init[1168]: 1389600K .......... .......... .......... .......... .......... 99% 56.0M 0s
[  129.264611] cloud-init[1168]: 1389650K .......... .......... .......... .......... .......... 99%  207M 0s
[  129.265344] cloud-init[1168]: 1389700K .......... .......... .......... .......... .......... 99%  201M 0s
[  129.266095] cloud-init[1168]: 1389750K .......... .......... .......... .......... .......... 99% 77.5M 0s
[  129.266855] cloud-init[1168]: 1389800K .......... .......... .......... .........            100%  167M=25s
[  129.267652] cloud-init[1168]: 2016-06-09 19:39:10 (54.0 MB/s) - 'f5_ve_image.zip' saved [1423195218/1423195218]
[  129.268403] cloud-init[1168]: + unzip f5_ve_image.zip BIGIP-11.6.0.6.0.442.qcow2
[  129.269468] cloud-init[1168]: Archive:  f5_ve_image.zip
[  158.180113] cloud-init[1168]:   inflating: BIGIP-11.6.0.6.0.442.qcow2
[  158.181904] cloud-init[1168]: + python ve_image_sync.py -i BIGIP-11.6.0.6.0.442.qcow2
[  158.524723] cloud-init[1168]: sudo: unable to resolve host bi--ajenkins-onboard-image-prep-instance-aeeklei7v2am
[  158.609883] cloud-init[1168]: + '[' -n '' ']'
[  158.610764] cloud-init[1168]: + '[' -n '' ']'
[  158.611443] cloud-init[1168]: + check_oldfile_full_path
[  158.612077] cloud-init[1168]: + '[' -f BIGIP-11.6.0.6.0.442.qcow2 ']'
[  158.612825] cloud-init[1168]: ++ basename BIGIP-11.6.0.6.0.442.qcow2
[  158.613832] cloud-init[1168]: + ofname=BIGIP-11.6.0.6.0.442.qcow2
[  158.614959] cloud-init[1168]: + '[' -z os_ready-BIGIP-11.6.0.6.0.442.qcow2 ']'
[  158.616588] cloud-init[1168]: + cp BIGIP-11.6.0.6.0.442.qcow2 /home/imageprep/os_ready-BIGIP-11.6.0.6.0.442.qcow2
[  166.132374] cloud-init[1168]: + sleep 2
[  168.152493] cloud-init[1168]: + qemu-nbd -d /dev/nbd0
[  168.287949] cloud-init[1168]: + sleep 2
[  170.290635] cloud-init[1168]: + qemu-nbd --connect=/dev/nbd0 /home/imageprep/os_ready-BIGIP-11.6.0.6.0.442.qcow2
[  170.570951] cloud-init[1168]: + sleep 2
[  172.574365] cloud-init[1168]: + pvscan
[  172.785754] cloud-init[1168]: + sleep 2
[  174.788964] cloud-init[1168]: + echo 'The following command may cause '\''Can'\''t deactivate'\'' messages.'
[  174.790556] cloud-init[1168]: + echo 'These do not necessarily indicate a problem.'
[  174.790982] cloud-init[1168]: + vgchange -ay
[  174.801994] cloud-init[1168]: + sleep 2
[  176.803981] cloud-init[1168]: + mkdir -p /mnt/bigip-config
[  176.809516] cloud-init[1168]: + '[' -n '' ']'
[  176.811035] cloud-init[1168]: + echo 'Waiting 15 seconds'
[  176.812585] cloud-init[1168]: + sleep 15
[  191.814761] cloud-init[1168]: + umount /mnt/bigip-config
[  191.833532] cloud-init[1168]: umount: /mnt/bigip-config: not mounted
[  191.835151] cloud-init[1168]: + '[' 32 -eq 1 ']'
[  191.836742] cloud-init[1168]: + umount /mnt/bigip-shared
[  191.838255] cloud-init[1168]: umount: /mnt/bigip-shared: mountpoint not found
[  191.839694] cloud-init[1168]: + '[' 32 -eq 1 ']'
[  191.841674] cloud-init[1168]: ++ get_dev set.1._config
[  191.843248] cloud-init[1168]: ++ ls -l /dev/vg-db-hda
[  191.844720] cloud-init[1168]: ++ cut '-d>' -f2
[  191.845569] cloud-init[1168]: ++ cut -d/ -f2-
[  191.846392] cloud-init[1168]: ++ grep set.1._config
[  191.850690] cloud-init[1168]: ls: cannot access '/dev/vg-db-hda': No such file or directory
[  191.852908] cloud-init[1168]: + mount /dev/ /mnt/bigip-config
[  191.854820] cloud-init[1168]: mount:  /dev is not a block device
[  191.856535] cloud-init[1168]: + inject_files
[  191.857216] cloud-init[1168]: + '[' -f /home/imageprep/f5-openstack-image-prep/lib/f5_image_prep/startup.tar ']'
[  191.858188] cloud-init[1168]: + tar -xf /home/imageprep/f5-openstack-image-prep/lib/f5_image_prep/startup.tar -C /mnt/bigip-config/
[  191.885667] cloud-init[1168]: + true
[  191.886642] cloud-init[1168]: + touch /mnt/bigip-config/firstboot
[  191.887894] cloud-init[1168]: + '[' -f none ']'
[  191.889836] cloud-init[1168]: + '[' -n '' ']'
[  191.891096] cloud-init[1168]: + '[' -n '' ']'
[  191.892512] cloud-init[1168]: + sleep 2
[  193.894460] cloud-init[1168]: + umount /mnt/bigip-config
[  193.896850] cloud-init[1168]: umount: /mnt/bigip-config: not mounted
[  193.898420] cloud-init[1168]: + sleep 2
[  195.901956] cloud-init[1168]: + '[' -n '' ']'
[  195.903705] cloud-init[1168]: + sleep 2
[  197.904284] cloud-init[1168]: + vgchange -an
[  197.910719] cloud-init[1168]: + sleep 2
[  199.914336] cloud-init[1168]: + qemu-nbd -d /dev/nbd0
[  199.920998] block nbd0: Receive control failed (result -32)
[  199.925109] cloud-init[1168]: + echo 'Patched image located at /home/imageprep/os_ready-BIGIP-11.6.0.6.0.442.qcow2'
[  199.926044] cloud-init[1168]: + set +x
[  268.733177] cloud-init[1168]: Patching image...
[  268.737351] cloud-init[1168]: Uploading patched image to glance...
[  268.739262] cloud-init[1168]: Image Model:
[  268.740739] cloud-init[1168]: <Image {u'status': u'active', u'created_at': u'2016-06-09T19:40:23.000000', u'virtual_size': None, u'name': u'BIGIP-11.6.0.6.0.442', u'deleted': False, u'container_format': u'bare', u'min_ram': 0, u'disk_format': u'qcow2', u'updated_at': u'2016-06-09T19:41:31.000000', u'properties': {}, u'min_disk': 0, u'protected': False, u'checksum': u'29ca101fb53850d414dbead792cf6323', u'owner': u'97240854a40247e2ad6ae28341e1d3ba', u'is_public': False, u'deleted_at': None, u'id': u'c4be40e1-fa6d-40b3-8f04-2bdaef31cc91', u'size': 3477274624}>
[  268.783964] cloud-init[1168]: + curl -i -X POST -H 'X-Auth-Token: f44bee7cbf0842139e3c916641125dfd' -H 'Content-Type: application/json' -H 'Accept: application/json' http://10.190.20.22:8004/v1/a33418988e934e1b8d4f1bfc316e4436/stacks/bigip116-ajenkins-onboard/8a05b130-7b5a-4126-bb51-d2fa7731e3e8/resources/wait_handle/signal --data-binary '{"status": "SUCCESS"}'
[  268.823394] cloud-init[1168]:   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
[  268.824560] cloud-init[1168]:                                  Dload  Upload   Total   Spent    Left  Speed
[  268.918767] cloud-init[1168]:   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0100    25  100     4  100    21     41    220 --:--:-- --:--:-- --:--:--   221
[  268.919955] cloud-init[1168]: HTTP/1.1 200 OK
[  268.920883] cloud-init[1168]: Content-Type: application/json; charset=UTF-8
[  268.921774] cloud-init[1168]: Content-Length: 4
[  268.922631] cloud-init[1168]: X-Openstack-Request-Id: req-6ecccd9f-891e-40aa-9a5e-ca9afde68cc6
[  268.923207] cloud-init[1168]: Date: Thu, 09 Jun 2016 19:41:32 GMT
[  268.923840] cloud-init[1168]: 
ci-info: ++++++++++++++++++++++++Authorized keys from /home/ubuntu/.ssh/authorized_keys for user ubuntu++++++++++++++++++++++++
ci-info: +---------+-------------------------------------------------+---------+----------------------------------------------+
ci-info: | Keytype |                Fingerprint (md5)                | Options |                   Comment                    |
ci-info: +---------+-------------------------------------------------+---------+----------------------------------------------+
ci-info: | ssh-rsa | 0e:80:54:2d:27:e8:8b:a1:44:e8:a3:4e:e3:3d:b8:4b |    -    | andrew@andrews-mbp-5.int.lineratesystems.com |
ci-info: +---------+-------------------------------------------------+---------+----------------------------------------------+
<14>Jun  9 19:41:32 ec2: 
<14>Jun  9 19:41:32 ec2: #############################################################
<14>Jun  9 19:41:32 ec2: -----BEGIN SSH HOST KEY FINGERPRINTS-----
<14>Jun  9 19:41:32 ec2: 1024 SHA256:RsW/K1EDrBxs+zquX3dM9WQ3VC2qlSbR1WA5mUUZ+QY root@bi--ajenkins-onboard-image-prep-instance-aeeklei7v2am (DSA)
<14>Jun  9 19:41:32 ec2: 256 SHA256:xeXNgw902GI0onYnU77kx34AWb5Q+15yUVY/Upuvyyw root@bi--ajenkins-onboard-image-prep-instance-aeeklei7v2am (ECDSA)
<14>Jun  9 19:41:32 ec2: 256 SHA256:bBs2EBKT+2RJark9DPCHLAMsZFhHoJXB1kMZ+TEyf2g root@bi--ajenkins-onboard-image-prep-instance-aeeklei7v2am (ED25519)
<14>Jun  9 19:41:32 ec2: 2048 SHA256:oFiFcQrUxg/wnHLe+08fe7giGubdnbbrKPMD1SKajmo root@bi--ajenkins-onboard-image-prep-instance-aeeklei7v2am (RSA)
<14>Jun  9 19:41:32 ec2: -----END SSH HOST KEY FINGERPRINTS-----
<14>Jun  9 19:41:32 ec2: #############################################################
-----BEGIN SSH HOST KEY KEYS-----
ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBIMgX+B6jkw/WMpivbnLyXnE25mmeB/MSqoe/AO9hbLru3lFRcBalD3CEPhSRTsjqpQ7cTjZRnyp03GJBl8bWls= root@bi--ajenkins-onboard-image-prep-instance-aeeklei7v2am
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICaVujQMz/01z1Evh3UcOkXutzkcspyjNhw1XHg5aJ/O root@bi--ajenkins-onboard-image-prep-instance-aeeklei7v2am
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCual7cD77drFS2fLsNMIHf6HwP8+IpHfMKFlXjQ0M9bJRvHsFqPbJkEulVQQ49vjxqQKhlGeVqKeLQ3GmsjKULnhxaIXs7x/6eeNNTJCkg0ywx35QUkL4b1T4V8GuIdxUbgt/6L7KucxuHbw3+oJZtGEBWCV6u1RtL3h0Z7sDOlzTsB31ITR2i2dVQjm/D3Zvn0Vf3tjzTaQpm8bORf3TUhkvuRec7M1wrjl4Ov8IT+GUPALJSjoZXT3uOiQv1nddalENeEIFgxqs5IyDSpZatEH44y0YZ0ElLVsmmYArZEdMhKM/Z1Xj2FSUK5IfVd6ufN4WRd6cESNj1OSRGRbzX root@bi--ajenkins-onboard-image-prep-instance-aeeklei7v2am
-----END SSH HOST KEY KEYS-----
[  269.272624] cloud-init[1168]: nullCloud-init v. 0.7.7 running 'modules:final' at Thu, 09 Jun 2016 19:37:29 +0000. Up 27.31 seconds.
[  269.274129] cloud-init[1168]: Cloud-init v. 0.7.7 finished at Thu, 09 Jun 2016 19:41:32 +0000. Datasource DataSourceOpenStack [net,ver=2].  Up 269.24 seconds
andrewjjenkins commented 8 years ago

Welp, time to change that password... 😬

pjbreaux commented 8 years ago

Which release of ubuntu are you using to do the patching?

andrewjjenkins commented 8 years ago

16.04 LTS. I think I have a fix for this particular issue that I'm trying out. I talked with you & Rich earlier that maybe we want "set -e" in this script but I'll leave that up to you guys.

zeddicus76 commented 7 years ago

Is there a fix for this? I am running into the same thing, specifically

ls: cannot access '/dev/vg-db-hda': No such file or directory

And the image ends up unchanged after the patch runs.

Edit: I am actually seeing this, so maybe there is something else.

+ pvscan
  No matching physical volumes found