I verified the initial test case (with user data while loop on)
$ dpkg-query --show eucalyptus*
eucalyptus-cc 1.6.2-0ubuntu30.1
eucalyptus-cloud 1.6.2-0ubuntu30.1
eucalyptus-common 1.6.2-0ubuntu30.1
eucalyptus-gl 1.6.2-0ubuntu30.1
eucalyptus-java-common 1.6.2-0ubuntu30.1
eucalyptus-javadeps
eucalyptus-sc 1.6.2-0ubuntu30.1
eucalyptus-walrus 1.6.2-0ubuntu30.1
After several minutes of waiting i went back to get console output. I saw:
=====
hello, number 4997
hello, number 4998
hello, number 4999
run-parts: /var/lib/cloud/data/scripts/part-000 exited with return code 1
Traceback (most recent call last):
File "/usr/bin/cloud-init-run-module", line 66, in <module>
main()
File "/usr/bin/cloud-init-run-module", line 61, in main
cloud.sem_and_run(semname, freq, inst.run, [run_args,cfg_path], False)
File "/usr/lib/python2.6/dist-packages/cloudinit/__init__.py", line 220, in sem_and_run
func(*args)
File "/usr/lib/python2.6/dist-packages/cloudinit/execute.py", line 28, in run
raise Exception(str)
Exception: Cmd returned 1
run-parts --regex .* /var/lib/cloud/data/scripts
=====
(interestingly, that is correct output. the python trace results from the script being run and returning non-true).
I verified the initial test case (with user data while loop on) java-common 1.6.2-0ubuntu30.1
$ dpkg-query --show eucalyptus*
eucalyptus-cc 1.6.2-0ubuntu30.1
eucalyptus-cloud 1.6.2-0ubuntu30.1
eucalyptus-common 1.6.2-0ubuntu30.1
eucalyptus-gl 1.6.2-0ubuntu30.1
eucalyptus-
eucalyptus-javadeps
eucalyptus-sc 1.6.2-0ubuntu30.1
eucalyptus-walrus 1.6.2-0ubuntu30.1
After several minutes of waiting i went back to get console output. I saw: cloud/data/ scripts/ part-000 exited with return code 1 cloud-init- run-module" , line 66, in <module> cloud-init- run-module" , line 61, in main sem_and_ run(semname, freq, inst.run, [run_args, cfg_path] , False) python2. 6/dist- packages/ cloudinit/ __init_ _.py", line 220, in sem_and_run python2. 6/dist- packages/ cloudinit/ execute. py", line 28, in run cloud/data/ scripts
=====
hello, number 4997
hello, number 4998
hello, number 4999
run-parts: /var/lib/
Traceback (most recent call last):
File "/usr/bin/
main()
File "/usr/bin/
cloud.
File "/usr/lib/
func(*args)
File "/usr/lib/
raise Exception(str)
Exception: Cmd returned 1
run-parts --regex .* /var/lib/
=====
(interestingly, that is correct output. the python trace results from the script being run and returning non-true).