Unable to launch a Bash script through the Python nova.servers.create function

Bug #1616975 reported by LE BRIS
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-novaclient
Expired
Undecided
Unassigned

Bug Description

I try to launch a Bash script through the "userdata" parameter of the nova.servers.create function in the python nova client but doesn't succeed.

I can execute a string with Bash commands inside like described in http://stackoverflow.com/questions/29510189/specify-post-installation-script-when-creating-an-instance-in-openstack-python but not a Bash script.

Each time I try to execute an executable Bash script called test_sh, I get the same error messages:
[ 17.812080] cloud-init[873]: 2016-08-25 17:36:49,652 - util.py[WARNING]: Failed fetching metadata from url http://169.254.169.254/latest/meta-data
[ 18.002758] cloud-init[873]: 2016-08-25 17:36:49,843 - __init__.py[WARNING]: Unhandled non-multipart (text/x-not-multipart) userdata: 'test_sh...'

The same Bash script runs perfectly fine through the nova boot command with the --user-data option.

tamil vanan (tamilhce)
Changed in python-novaclient:
assignee: nobody → tamil vanan (tamilhce)
tamil vanan (tamilhce)
Changed in python-novaclient:
assignee: tamil vanan (tamilhce) → nobody
Revision history for this message
Ali Jabbar (jabbar-ali) wrote :

Hi
Could you please share the complete code that you are using to launch the instance So that i can try and check the validity of the issue.

Also, I want to reproduce this issue

Changed in python-novaclient:
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for python-novaclient because there has been no activity for 60 days.]

Changed in python-novaclient:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.