Hi Narinder Gupta, I now excute the 02-maasdeploy.sh using the default deployment.yaml, But it can't pass successfully, it appear "StopIteration",I don't know why? Could u tell me how to pass this script. Thanks, Yuanyou
The log: ubuntu@ubuntu:~/jujuatt/joid/ci$ ./02-maasdeploy.sh + echo '... Deployment of maas Started ....' ... Deployment of maas Started .... + '[' '!' -e /home/ubuntu/.ssh/id_rsa ']' + '[' '!' -e /var/lib/libvirt/images ']' + juju init -f A boilerplate environment configuration file has been written to /home/ubuntu/.juju/environments.yaml. Edit the file to configure your juju environment and run bootstrap. + cat /home/ubuntu/.ssh/id_rsa.pub + sudo maas-deployer -c deployment.yaml -d --force [sudo] password for ubuntu: 2015-12-09 18:53:18,806 DEBUG Starting MAAS deployer 2015-12-09 18:53:18,824 WARNING No MAAS cluster nodes configured 2015-12-09 18:53:18,824 DEBUG Creating Juju bootstrap vm. 2015-12-09 18:53:18,827 DEBUG Executing: 'virsh -c qemu:///system pool-list' stdin='' 2015-12-09 18:53:18,848 DEBUG Checking if domain 'bootstrap' exists 2015-12-09 18:53:18,848 DEBUG Executing: 'virsh -c qemu:///system list --all' stdin='' 2015-12-09 18:53:18,864 DEBUG Domain 'bootstrap' already exists 2015-12-09 18:53:18,865 INFO Deleting domain 'bootstrap' before define since force=True 2015-12-09 18:53:18,865 DEBUG Undefining domain 'bootstrap' 2015-12-09 18:53:18,865 DEBUG Executing: 'virsh -c qemu:///system destroy bootstrap' stdin='' 2015-12-09 18:53:18,880 DEBUG Executing: 'virsh -c qemu:///system undefine bootstrap' stdin='' 2015-12-09 18:53:18,899 DEBUG Base volume 'bootstrap.img' already exists 2015-12-09 18:53:18,899 INFO Deleting volume 'bootstrap.img' before create since force=True 2015-12-09 18:53:18,899 DEBUG Executing: 'virsh -c qemu:///system vol-delete --pool default bootstrap.img' stdin='' 2015-12-09 18:53:18,915 DEBUG Creating domain 'bootstrap' 2015-12-09 18:53:18,915 DEBUG Executing: 'virt-install --connect qemu:///system --name bootstrap --ram 2048 --vcpus 2 --disk size=20,format=qcow2,bus=virtio,io=native,pool=default --network bridge=virbr0,model=virtio --boot network,hd,menu=off --noautoconsole --vnc --print-xml' stdin='' 2015-12-09 18:53:18,918 DEBUG Executing: 'tee /tmp/tmp2iDJdj/bootstrap.xml' stdin='<type 'file'>' 2015-12-09 18:53:19,241 DEBUG Executing: 'virsh -c qemu:///system define --file /tmp/tmp2iDJdj/bootstrap.xml' stdin='' 2015-12-09 18:53:19,258 DEBUG Executing: 'virsh -c qemu:///system dumpxml bootstrap' stdin='' 2015-12-09 18:53:19,273 DEBUG Creating MAAS virtual machine. 2015-12-09 18:53:19,276 DEBUG Executing: 'virsh -c qemu:///system pool-list' stdin='' 2015-12-09 18:53:19,294 DEBUG Checking if domain 'opnfv-maas' exists 2015-12-09 18:53:19,295 DEBUG Executing: 'virsh -c qemu:///system list --all' stdin='' 2015-12-09 18:53:19,311 DEBUG Domain 'opnfv-maas' already exists 2015-12-09 18:53:19,311 INFO Deleting domain 'opnfv-maas' before create since force=True 2015-12-09 18:53:19,311 DEBUG Undefining domain 'opnfv-maas' 2015-12-09 18:53:19,311 DEBUG Executing: 'virsh -c qemu:///system destroy opnfv-maas' stdin='' 2015-12-09 18:53:19,792 DEBUG Executing: 'virsh -c qemu:///system undefine opnfv-maas' stdin='' 2015-12-09 18:53:19,810 DEBUG Creating domain 'opnfv-maas' 2015-12-09 18:53:19,812 DEBUG Base volume 'trusty-amd64-base' already exists 2015-12-09 18:53:19,812 INFO Deleting volume 'trusty-amd64-base' before create since force=True 2015-12-09 18:53:19,812 DEBUG Executing: 'virsh -c qemu:///system vol-delete --pool default trusty-amd64-base' stdin='' 2015-12-09 18:53:20,177 DEBUG Creating base volume 'trusty-amd64-base' 2015-12-09 18:53:20,178 DEBUG Executing: 'virsh -c qemu:///system vol-create-as --pool default trusty-amd64-base 3G' stdin='' 2015-12-09 18:53:20,224 DEBUG Uploading image 'trusty-server-cloudimg-amd64-disk1.img' to volume 2015-12-09 18:53:20,225 DEBUG Executing: 'virsh -c qemu:///system vol-upload --pool default --file trusty-server-cloudimg-amd64-disk1.img --vol trusty-amd64-base' stdin='' 2015-12-09 18:53:21,404 DEBUG Root volume 'opnfv-maas-root.img' already exists 2015-12-09 18:53:21,405 INFO Deleting volume 'opnfv-maas-root.img' before create since force=True 2015-12-09 18:53:21,405 DEBUG Executing: 'virsh -c qemu:///system vol-delete --pool default opnfv-maas-root.img' stdin='' 2015-12-09 18:53:21,530 DEBUG Cloning 'opnfv-maas-root.img' from base image 'trusty-amd64-base' 2015-12-09 18:53:21,530 DEBUG Executing: 'virsh -c qemu:///system vol-clone --pool default trusty-amd64-base opnfv-maas-root.img' stdin='' 2015-12-09 18:53:24,345 DEBUG Resizing volume 'opnfv-maas-root.img' to 60G 2015-12-09 18:53:24,346 DEBUG Executing: 'virsh -c qemu:///system vol-resize --pool default opnfv-maas-root.img 60G' stdin='' 2015-12-09 18:53:24,379 DEBUG Executing: 'virsh -c qemu:///system vol-info --pool default opnfv-maas-root.img' stdin='' 2015-12-09 18:53:24,396 DEBUG Name: opnfv-maas-root.img Type: file Capacity: 60.00 GiB Allocation: 3.00 GiB 2015-12-09 18:53:24,397 DEBUG Creating cloud-init seed image for MAAS... 2015-12-09 18:53:24,398 INFO Seed volume 'opnfv-maas-seed.img' already exists 2015-12-09 18:53:24,399 INFO Deleting volume 'opnfv-maas-seed.img' before create since force=True 2015-12-09 18:53:24,399 DEBUG Executing: 'virsh -c qemu:///system vol-delete --pool default opnfv-maas-seed.img' stdin='' 2015-12-09 18:53:24,426 DEBUG Generating mime-multipart user data file using: ['write-mime-multipart', '--output=/tmp/tmpGYRBit/user-data.txt', '/tmp/tmpGYRBit/cloud-init.cfg', '/tmp/tmpGYRBit/config-maas.sh:text/x-shellscript'] 2015-12-09 18:53:24,426 DEBUG Executing: 'write-mime-multipart --output=/tmp/tmpGYRBit/user-data.txt /tmp/tmpGYRBit/cloud-init.cfg /tmp/tmpGYRBit/config-maas.sh:text/x-shellscript' stdin='' 2015-12-09 18:53:24,473 DEBUG Creating local seed file 2015-12-09 18:53:24,473 DEBUG Executing: 'cloud-localds /tmp/tmpGYRBit/opnfv-maas-seed.img /tmp/tmpGYRBit/user-data.txt /tmp/tmpGYRBit/meta-data' stdin='' 2015-12-09 18:53:24,493 DEBUG Creating volume 2015-12-09 18:53:24,493 DEBUG Executing: 'virsh -c qemu:///system vol-create-as --pool default --name opnfv-maas-seed.img --capacity 376832 --format raw' stdin='' 2015-12-09 18:53:24,511 DEBUG Uploading seed /tmp/tmpGYRBit/opnfv-maas-seed.img to volume... 2015-12-09 18:53:24,511 DEBUG Executing: 'virsh -c qemu:///system vol-upload --pool default --file /tmp/tmpGYRBit/opnfv-maas-seed.img --vol opnfv-maas-seed.img' stdin='' 2015-12-09 18:53:24,535 DEBUG Executing: 'virt-install --connect qemu:///system --name opnfv-maas --ram 4096 --vcpus 2 --disk vol=default/opnfv-maas-root.img,format=qcow2,bus=virtio,io=native --disk vol=default/opnfv-maas-seed.img,format=raw,bus=virtio,io=native --network bridge=virbr0,model=virtio --noautoconsole --vnc --import' stdin='' 2015-12-09 18:53:25,441 DEBUG Executing: 'virsh -c qemu:///system autostart opnfv-maas' stdin='' 2015-12-09 18:53:25,458 DEBUG Waiting for MAAS vm to come up for ssh.. 2015-12-09 18:53:25,458 DEBUG Using ip address specified: 192.168.122.2 2015-12-09 18:53:25,458 DEBUG Executing: 'ssh -i /home/ubuntu/.ssh/id_maas -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no ubuntu@192.168.122.2<mailto:ubuntu@192.168.122.2> true' stdin='' 2015-12-09 18:53:28,462 DEBUG Waiting for MAAS vm to start. 2015-12-09 18:53:29,464 DEBUG Executing: 'ssh -i /home/ubuntu/.ssh/id_maas -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no ubuntu@192.168.122.2<mailto:ubuntu@192.168.122.2> true' stdin='' 2015-12-09 18:53:31,462 DEBUG Waiting for MAAS vm to start. 2015-12-09 18:53:32,464 DEBUG Executing: 'ssh -i /home/ubuntu/.ssh/id_maas -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no ubuntu@192.168.122.2<mailto:ubuntu@192.168.122.2> true' stdin='' 2015-12-09 18:53:34,470 DEBUG Waiting for MAAS vm to start. 2015-12-09 18:53:35,472 DEBUG Executing: 'ssh -i /home/ubuntu/.ssh/id_maas -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no ubuntu@192.168.122.2<mailto:ubuntu@192.168.122.2> true' stdin='' 2015-12-09 18:53:35,481 DEBUG Waiting for MAAS vm to start. 2015-12-09 18:53:36,482 DEBUG Executing: 'ssh -i /home/ubuntu/.ssh/id_maas -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no ubuntu@192.168.122.2<mailto:ubuntu@192.168.122.2> true' stdin='' 2015-12-09 18:53:39,701 DEBUG MAAS vm started. 2015-12-09 18:53:39,701 DEBUG Logging into maas host '192.168.122.2' 2015-12-09 18:53:39,702 DEBUG Executing: 'ssh -i /home/ubuntu/.ssh/id_maas -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no ubuntu@192.168.122.2<mailto:ubuntu@192.168.122.2> grep "MAAS controller is now configured" /var/log/cloud-init-output.log' stdin='' 2015-12-09 18:53:40,143 INFO Waiting for cloud-init to complete - this usually takes several minutes 2015-12-09 18:53:40,143 DEBUG Executing: 'ssh -i /home/ubuntu/.ssh/id_maas -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no ubuntu@192.168.122.2<mailto:ubuntu@192.168.122.2> grep -m 1 "MAAS controller is now configured" <(sudo tail -n 1 -F /var/log/cloud-init-output.log)' stdin='' 2015-12-09 19:44:08,952 INFO done. 2015-12-09 19:44:08,952 DEBUG Executing: 'ssh -i /home/ubuntu/.ssh/id_maas -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no ubuntu@192.168.122.2<mailto:ubuntu@192.168.122.2> grep "+ apikey=" /var/log/cloud-init-output.log| tail -n 1| sed -r "s/.+=(.+)/\1/"' stdin='' 2015-12-09 19:44:09,459 DEBUG Executing: 'ssh -i /home/ubuntu/.ssh/id_maas -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no ubuntu@192.168.122.2<mailto:ubuntu@192.168.122.2> mkdir virsh-keys' stdin='' 2015-12-09 19:44:09,939 DEBUG Executing: 'scp -i /home/ubuntu/.ssh/id_maas -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no /home/ubuntu/.ssh/id_rsa ubuntu@192.168.122.2:virsh-keys/id_rsa<mailto:ubuntu@192.168.122.2:virsh-keys/id_rsa>' stdin='' 2015-12-09 19:44:10,421 DEBUG Executing: 'scp -i /home/ubuntu/.ssh/id_maas -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no /home/ubuntu/.ssh/id_rsa.pub ubuntu@192.168.122.2:virsh-keys/id_rsa.pub<mailto:ubuntu@192.168.122.2:virsh-keys/id_rsa.pub>' stdin='' 2015-12-09 19:44:10,901 DEBUG Executing script on remote host '192.168.122.2' 2015-12-09 19:44:10,901 DEBUG Executing: 'ssh -i /home/ubuntu/.ssh/id_maas -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no ubuntu@192.168.122.2<mailto:ubuntu@192.168.122.2>' stdin='maas_home=...' 2015-12-09 19:44:11,435 DEBUG Fetching MAAS api key 2015-12-09 19:44:11,435 DEBUG Executing: 'ssh -i /home/ubuntu/.ssh/id_maas -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no ubuntu@192.168.122.2<mailto:ubuntu@192.168.122.2> sudo maas-region-admin apikey --username ubuntu' stdin='' 2015-12-09 19:44:12,714 DEBUG Executing: 'ssh -i /home/ubuntu/.ssh/id_maas -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o LogLevel=quiet ubuntu@192.168.122.2<mailto:ubuntu@192.168.122.2> maas login maas http://192.168.122.2/MAAS/api/1.0 3SpVLmd46fELPetYq7:2T2QZvtZpazeTEwLKZ:Dmczh6W43yxxHexGAjkbXKPPR3G4cPJe' stdin='LC_ALL=C' 2015-12-09 19:44:13,434 DEBUG Configuring MAAS settings... 2015-12-09 19:44:13,435 DEBUG Executing: 'ssh -i /home/ubuntu/.ssh/id_maas -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o LogLevel=quiet ubuntu@192.168.122.2<mailto:ubuntu@192.168.122.2> maas maas maas set-config name='main_archive' value='http://us.archive.ubuntu.com/ubuntu'' stdin='LC_ALL=C' 2015-12-09 19:44:14,225 DEBUG Command executed successfully: stdout='OK' 2015-12-09 19:44:14,226 DEBUG Executing: 'ssh -i /home/ubuntu/.ssh/id_maas -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o LogLevel=quiet ubuntu@192.168.122.2<mailto:ubuntu@192.168.122.2> maas maas maas set-config name='maas_name' value='automaas'' stdin='LC_ALL=C' 2015-12-09 19:44:15,013 DEBUG Command executed successfully: stdout='OK' 2015-12-09 19:44:15,013 DEBUG Executing: 'ssh -i /home/ubuntu/.ssh/id_maas -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o LogLevel=quiet ubuntu@192.168.122.2<mailto:ubuntu@192.168.122.2> maas maas maas set-config name='ntp_server' value='202.120.2.101'' stdin='LC_ALL=C' 2015-12-09 19:44:15,929 DEBUG Command executed successfully: stdout='OK' 2015-12-09 19:44:15,930 DEBUG Executing: 'ssh -i /home/ubuntu/.ssh/id_maas -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o LogLevel=quiet ubuntu@192.168.122.2<mailto:ubuntu@192.168.122.2> maas maas maas set-config name='upstream_dns' value='114.114.114.114'' stdin='LC_ALL=C' 2015-12-09 19:44:16,748 DEBUG Command executed successfully: stdout='OK' 2015-12-09 19:44:16,748 DEBUG Starting the import of boot resources 2015-12-09 19:44:16,748 DEBUG Executing: 'ssh -i /home/ubuntu/.ssh/id_maas -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o LogLevel=quiet ubuntu@192.168.122.2<mailto:ubuntu@192.168.122.2> maas maas boot-resources import' stdin='LC_ALL=C' 2015-12-09 19:44:17,536 DEBUG Command executed successfully: stdout='Import of boot resources started' 2015-12-09 19:44:17,536 DEBUG Logging into 192.168.122.2 Importing images ... Queued for download Importing images ... Downloading 5% ad Importing images ... Downloading 5% Importing images ... Downloading 5% Traceback (most recent call last): 97% File "/usr/bin/maas-deployer", line 9, in <module> load_entry_point('maas-deployer==0.0.1', 'console_scripts', 'maas-deployer')() File "/usr/lib/python2.7/dist-packages/maas_deployer/cli.py", line 88, in main engine.deploy(target) File "/usr/lib/python2.7/dist-packages/maas_deployer/vmaas/engine.py", line 71, in deploy self.wait_for_import_boot_images(client, maas_config) File "/usr/lib/python2.7/dist-packages/maas_deployer/vmaas/engine.py", line 330, in wait_for_import_boot_images complete, status = checker.are_images_complete() File "/usr/lib/python2.7/dist-packages/maas_deployer/vmaas/maasclient/bootimages.py", line 93, in are_images_complete status = self.get_status() File "/usr/lib/python2.7/dist-packages/maas_deployer/vmaas/maasclient/bootimages.py", line 60, in get_status {'host': self.host, 'sequence': self.sequence.next()}) StopIteration
deployment.yaml
Description: deployment.yaml
-- Juju mailing list Juju@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/juju