** Description changed:

- Newly provisioned Xenial hosts in softlayer bootstrapped via cloud-init are 
getting the following message.
- **************************************************************************
- # A new feature in cloud-init identified possible datasources for        #
- # this system as:                                                        #
- #   ['Ec2', 'None']                                                      #
- # However, the datasource used was: NoCloud                              #
- #                                                                        #
- # In the future, cloud-init will only attempt to use datasources that    #
- # are identified or specifically configured.                             #
- # For more information see                                               #
- #   https://bugs.launchpad.net/bugs/1669675                              #
- #                                                                        #
- # If you are seeing this message, please file a bug against              #
- # cloud-init at                                                          #
- #    https://bugs.launchpad.net/cloud-init/+filebug?field.tags=dsid      #
- # Make sure to include the cloud provider your instance is               #
- # running on.                                                            #
- #                                                                        #
- # After you have filed a bug, you can disable this warning by launching  #
- # your instance with the cloud-config below, or putting that content     #
- # into /etc/cloud/cloud.cfg.d/99-warnings.cfg                            #
- #                                                                        #
- # #cloud-config                                                          #
- # warnings:                                                              #
- #   dsid_missing_source: off                                             #
- **************************************************************************
  
- I'm running what I believe is the latest version of cloud-init:
- $ dpkg -s cloud-init
- Package: cloud-init
- Status: install ok installed
- Priority: extra
- Section: admin
- Installed-Size: 1417
- Maintainer: Scott Moser <smo...@ubuntu.com>
- Architecture: all
- Version: 0.7.9-48-g1c795b9-0ubuntu1~16.04.1
+ === Begin cloud-init SRU Template ===
+ [Impact]
+ Softlayer user datasource is undetected when only openstack/latest 
config-drive directory is provided (due to softlayer user-data being provided).
  
- I'm able to get rid of the message following the instructions provided,
- but posting the bug report as instructed.
+ [Test Case]
+ 
+ For cloud-init, the easiest way to demonstrate this is to
+ create a lxc container and populate it with a '/config-drive' that only 
contains a openstack/latest path.
+ 
+ wget 
https://git.launchpad.net/~smoser/cloud-init/+git/sru-info/plain/bin/lxc-proposed-snapshot
+ chmod 755 lxc-proposed-snapshot
+ wget 
https://git.launchpad.net/~smoser/cloud-init/+git/sru-info/plain/tools/make-configdrive-dir
+ chmod 755 make-configdrive-dir
+ name=test-proposed
+ 
+ for release in xenial yaketty zesty; do
+  ref=$release-proposed;
+  ./lxc-proposed-snapshot --proposed --publish $release $ref;
+  ./lxc init $ref $name;
+ 
+ ## populate a /config-drive with attached 'make-configdrive-dir'
+ ## and push it to the container
+ 
+  d=$(mktemp -d)
+  ./make-configdrive-dir "$d" "$name"
+  rm -Rf "$d"
+  lxc file pull $name/etc/cloud/cloud.cfg.d/90_dpkg.cfg - |
+     sed 's/NoCloud, //' |
+     lxc file push - $name/etc/cloud/cloud.cfg.d/90_dpkg.cfg;
+  
+ 
+  lxc start $name;
+  sleep 10;
+  lxc exec $name cp -r /config-drive /var/lib/cloud/seed/config_drive;
+  lxc exec $name rm -rf /var/lib/cloud/seed/config_drive/openstack/2015-10-15;
+  lxc exec $name sudo DEBUG_LEVEL=2 DI_LOG=stderr 
/usr/lib/cloud-init/ds-identify --force 2>&1 | grep latest ;
+ 
+  # should produce config drive seeded directory had only 'latest'
+ done
+ 
+ 
+ [Regression Potential] 
+ Minimal as this code is exercised for soft
+ 
+ [Other Info]
+ 
+ === End cloud-init SRU Template ===

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1673637

Title:
  cloud-init - Hosts in softlayer receiving warning

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1673637/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to