Comment 11 for bug 566793

Scott Moser (smoser) wrote :

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).