Cloudinit user-data file(Big size - around 2000 bytes) fails to download from metadata server

Bug #1789375 reported by sureshkvl
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
New
Undecided
Unassigned

Bug Description

OpenContrail version : 3.2
Openstack : Mitaka

My user-data(cloudinit) shell script size is (2864 bytes).

When i launch a VM with the user-data, VM fails to download this script via cloudinit. It retries for 6 times and fails.( verified in the cloud-init.log file . Log file attahced)

On further debugging, In the tap interfaces, few TCP segments for user-data script packets are missing/corrupted when cloudinit queries at boot time.

Note :

But after VM is up, when i try to SSH and manually download the user-data ( wget http://169.254.169.254/2009-04-04/user-data) , it works fine.

Also, Smaller size script file, also works fine in cloudinit.

Log:
=====

nova boot --flavor 2 --image e3e24b37-824a-458d-b820-2e525ed645cd --key-name test-key --security-groups hr_secgroup --user-data myscript.sh --nic net-id=72845273-dfa0-492a-b853-d72eee54aa50 server1

Attached the myscript.sh file and cloud-init.log.

Revision history for this message
sureshkvl (sureshkumar-s) wrote :

Logs:
==============

Aug 28 07:22:03 localhost [CLOUDINIT] url_helper.py[DEBUG]: [1/6] open 'http://169.254.169.254/2009-04-04/user-data' with {'url': 'http://169.254.169.254/2009-04-04/user-data', 'headers': {'User-Agent': 'Cloud-Init/0.7.6'}, 'allow_redirects': True, 'method': 'GET', 'timeout': 5.0} configuration
Aug 28 07:22:03 localhost [CLOUDINIT] url_helper.py[DEBUG]: Please wait 1 seconds while we wait to try again
Aug 28 07:22:04 localhost [CLOUDINIT] url_helper.py[DEBUG]: [2/6] open 'http://169.254.169.254/2009-04-04/user-data' with {'url': 'http://169.254.169.254/2009-04-04/user-data', 'headers': {'User-Agent': 'Cloud-Init/0.7.6'}, 'allow_redirects': True, 'method': 'GET', 'timeout': 5.0} configuration
Aug 28 07:22:04 localhost [CLOUDINIT] url_helper.py[DEBUG]: Please wait 1 seconds while we wait to try again
Aug 28 07:22:05 localhost [CLOUDINIT] url_helper.py[DEBUG]: [3/6] open 'http://169.254.169.254/2009-04-04/user-data' with {'url': 'http://169.254.169.254/2009-04-04/user-data', 'headers': {'User-Agent': 'Cloud-Init/0.7.6'}, 'allow_redirects': True, 'method': 'GET', 'timeout': 5.0} configuration
Aug 28 07:22:05 localhost [CLOUDINIT] url_helper.py[DEBUG]: Please wait 1 seconds while we wait to try again
Aug 28 07:22:06 localhost [CLOUDINIT] url_helper.py[DEBUG]: [4/6] open 'http://169.254.169.254/2009-04-04/user-data' with {'url': 'http://169.254.169.254/2009-04-04/user-data', 'headers': {'User-Agent': 'Cloud-Init/0.7.6'}, 'allow_redirects': True, 'method': 'GET', 'timeout': 5.0} configuration
Aug 28 07:22:06 localhost [CLOUDINIT] url_helper.py[DEBUG]: Please wait 1 seconds while we wait to try again
Aug 28 07:22:07 localhost [CLOUDINIT] url_helper.py[DEBUG]: [5/6] open 'http://169.254.169.254/2009-04-04/user-data' with {'url': 'http://169.254.169.254/2009-04-04/user-data', 'headers': {'User-Agent': 'Cloud-Init/0.7.6'}, 'allow_redirects': True, 'method': 'GET', 'timeout': 5.0} configuration

Aug 28 07:22:08 localhost [CLOUDINIT] util.py[DEBUG]: Failed fetching userdata from url http://169.254.169.254/2009-04-04/user-data#012Traceback (most recent call last):#012 File "/usr/lib/python2.7/dist-packages/cloudinit/ec2_utils.py", line 155, in get_instance_userdata#012 exception_cb=exception_cb)#012 File "/usr/lib/python2.7/dist-packages/cloudinit/util.py", line 704, in read_file_or_url#012 exception_cb=exception_cb)#012 File "/usr/lib/python2.7/dist-packages/cloudinit/url_helper.py", line 257, in readurl#012 raise excps[-1]#012UrlError: ('Connection broken: IncompleteRead(0 bytes read)', IncompleteRead(0 bytes read))

information type: Proprietary → Public
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.