Cloudinit user-data file(Big size - around 2000 bytes) fails to download from metadata server
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Juniper Openstack |
New
|
Undecided
|
Unassigned |
Bug Description
OpenContrail version : 3.2
Openstack : Mitaka
My user-data(
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://
Also, Smaller size script file, also works fine in cloudinit.
Log:
=====
nova boot --flavor 2 --image e3e24b37-
Attached the myscript.sh file and cloud-init.log.
information type: | Proprietary → Public |
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 py[DEBUG] : Please wait 1 seconds while we wait to try again 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 py[DEBUG] : Please wait 1 seconds while we wait to try again 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 py[DEBUG] : Please wait 1 seconds while we wait to try again 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 py[DEBUG] : Please wait 1 seconds while we wait to try again 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:03 localhost [CLOUDINIT] url_helper.
Aug 28 07:22:04 localhost [CLOUDINIT] url_helper.
Aug 28 07:22:04 localhost [CLOUDINIT] url_helper.
Aug 28 07:22:05 localhost [CLOUDINIT] url_helper.
Aug 28 07:22:05 localhost [CLOUDINIT] url_helper.
Aug 28 07:22:06 localhost [CLOUDINIT] url_helper.
Aug 28 07:22:06 localhost [CLOUDINIT] url_helper.
Aug 28 07:22:07 localhost [CLOUDINIT] url_helper.
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#012Traceba ck (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))