← Back to team overview

group.of.nepali.translators team mailing list archive

[Bug 1674766] Re: ds-identify for Bigstep datasource checks wrong file

 

This bug is believed to be fixed in cloud-init in 17.1. If this is still
a problem for you, please make a comment and set the state back to New

Thank you.

** Changed in: cloud-init
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/1674766

Title:
  ds-identify for Bigstep datasource checks wrong file

Status in cloud-init:
  Fix Released
Status in cloud-init package in Ubuntu:
  Fix Released
Status in cloud-init source package in Xenial:
  Fix Released
Status in cloud-init source package in Yakkety:
  Fix Released

Bug description:
  === Begin SRU Template ===
  [Impact] 
  ds-identify would not identify a BigStep system the same way that
  cloud-init would.  The result would be a warning that ds-identify
  didn't find a datasource.

  [Test Case]
  Launching an instance on Bigstep cloud is non-trivial for 16.04 or 16.10
  as support is not yet present in their infrastructure.

  So to test we will mimic Bigstep datasource.

  lxc-proposed-snapshot is
    https://git.launchpad.net/~smoser/cloud-init/+git/sru-info/tree/bin/lxc-proposed-snapshot
  It publishes an image to lxd with proposed enabled and cloud-init upgraded.

  # grab the address of lxcbr0
  $ hostaddr=$(ifconfig lxcbr0 | awk '$1 == "inet" { print $2 }')
  $ echo $hostaddr
  10.0.3.1

  $ echo '{"userdata_raw": null, "vendordata_raw": null, "metadata": {"local-hostname": "foohost", "instance-id": "abcdefg"}}' > bigstep.json
  $ python -m SimpleHTTPServer 9999 &
     
  $ release=xenial
  $ ref=$release-proposed
  $ lxc-proposed-snapshot --proposed --publish $release $ref
  $ lxc init $ref $name
  $ echo -n http://$hostaddr:9999/bigstep.json |
     lxc file push -p - $name/var/lib/cloud/data/seed/bigstep/url
  $ echo 'datasource_list: [Bigstep, OpenStack, None]' |
     lxc file push -p - $name/etc/cloud/cloud.cfg.d/99-bigstep.cfg
  $ lxc start $name
  $ sleep 10
  $ lxc file pull $name/run/cloud-init/result.json -
     
  [Regression Potential]
  Low. simply fixing a string.
   
  [Other Info]
  Upstream commit:
   https://git.launchpad.net/cloud-init/commit/?id=20a628c122583e15

  === End SRU Template ===

  
  Currently, it checks that /var/lib/cloud/seed/bigstep/url exists.

  However, the URL file is located at
  /var/lib/cloud/data/seed/bigstep/url.

  Thus, the check should check the proper location.

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