[R5.0-14]- userdata script does not get executed on VM launch

Bug #1764422 reported by alok kumar on 2018-04-16
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R5.0
Invalid
High
alok kumar
Trunk
Invalid
High
alok kumar

Bug Description

sanity report:
http://10.204.216.50/Docs/logs/5.0-14_2018_04_15_16_10_03_1523800632.2/junit-noframes.html

test case: TestBasicVMVN.test_metadata_service

This case is failing due to user-data script passed during VM boot is not getting executed.

user-data is available in nova:

ubuntu@ktest-vm1:~$ curl http://169.254.169.254/2009-04-04/user-data
#!/bin/sh
echo "Hello World. The time is now $(date -R)!" | tee /tmp/output.txt
               ubuntu@ktest-vm1:~$

ubuntu@ktest-vm1:~$ curl http://169.254.169.254/latest/user-data
#!/bin/sh
echo "Hello World. The time is now $(date -R)!" | tee /tmp/output.txt

ubuntu@ktest-vm1:~$ curl http://169.254.169.254
1.0
2007-01-19
2007-03-01
2007-08-29
2007-10-10
2007-12-15
2008-02-01
2008-09-01
2009-04-04
latestubuntu@ktest-vm1:~$ curl http://169.254.169.254/2009-04-04
meta-data/
user-data
ubuntu@ktest-vm1:~$ curl http://169.254.169.254/2009-04-04/meta-data/
ami-id
ami-launch-index
ami-manifest-path
block-device-mapping/
hostname
instance-action
instance-id
instance-type
local-hostname
local-ipv4
placement/
public-hostname
public-ipv4
public-keys/
reservation-id

alok kumar (kalok) on 2018-04-16
tags: added: sanityblocker
alok kumar (kalok) wrote :

This test passed with ubuntu-traffic image. with ubutnu image also it's passing in some setup(virtual testbed), root cause of the failure is not known as of now.
test passed in build 16.
http://10.204.216.50/Docs/logs/5.0-16_2018_04_16_18_46_12_1523916705.67/junit-noframes.html

tags: added: automation
removed: sanityblocker vrouter
alok kumar (kalok) wrote :

This was VM image issue, with current image dont see the issue in sanity.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers