This bug was fixed in the package cloud-init - 17.1-25-g17a15f9e- 0ubuntu1~17.10.1
--------------- cloud-init (17.1-25-g17a15f9e-0ubuntu1~17.10.1) artful-proposed; urgency=medium * New upstream snapshot. - resizefs: Fix regression when system booted with root=PARTUUID= (LP: #1725067) - tools: make yum package installation more reliable - citest: fix remaining warnings raised by integration tests. - citest: show the class actual class name in results. - ntp: fix config module schema to allow empty ntp config (LP: #1724951) - tools: disable fastestmirror if using proxy [Joshua Powers] - schema: Log debug instead of warning when jsonschema is not available. (LP: #1724354) -- Chad Smith <chad.sm...@canonical.com> Mon, 23 Oct 2017 15:07:35 -0600 ** Changed in: cloud-init (Ubuntu Artful) 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/1724354 Title: WARNING in logs due to missing python-jsonschema Status in cloud-init: Fix Committed Status in cloud-init package in Ubuntu: Fix Released Status in cloud-init source package in Xenial: Fix Committed Status in cloud-init source package in Zesty: Fix Committed Status in cloud-init source package in Artful: Fix Released Bug description: === Begin SRU Template === [Impact] If python3-jsonschema is not installed, then WARNING will be written to console log and to /var/log/cloud-init.log with certain cloud-config data is provided. python3-jsonschema is a soft dependency of cloud-init and specically not listed in 16.04 and 17.04 packaging as it was not a dependency in the versions of cloud-init originally released then. The WARNING is only "scary", and has no negative affect on runtime. [Test Case] The change for this bug modified the integration test suite so that WARN in /var/log/cloud-init would trigger a test failure. Running the integration testsuite would show this failure with that test now in place. A manual test can be done though as follows. $ cat > my.cfg <<EOF #cloud-config bootcmd: - "cat /proc/uptime > /run/bootcmd-works" runcmd: - "cat /proc/uptime > /run/runcmd-works" EOF $ for r in zesty xenial; do lxc init $r-proposed $r-info && lxc-pstart $r-info \ sh -c 'dpkg-query --show cloud-init; cat /etc/cloud/build.info' && lxc delete --force $r-info; done # show container info just to show versions. $ for r in zesty xenial; do lxc init $r-proposed $r-info >/dev/null 2>&1 && echo == $r-info == && lxc-pstart $r-info -- \ sh -xc 'dpkg-query --show cloud-init; cat /etc/cloud/build.info' && lxc delete --force $r-info; done ## launch an instance of each release and grab logs. $ for rel in xenial zesty; do n=$rel-1724354 lxc launch $rel-proposed $n "--config=user.user-data=$(cat my.cfg)" lxc exec $n -- sh -c \ 'while ! [ -e /run/cloud-init/result.json ]; do echo -n .; sleep 1; done; echo' lxc file pull $n/var/log/cloud-init.log $n-cloud-init.log done # check that 1724354 is installed. $ grep "WARN" *-1724354-cloud-init.log [Regression Potential] Highest chance for regression would be in the integration test suite. The only change in code path is in cloudinit/config/schema.py: - logging.warning( + logging.debug( [Other Info] Upstream commit at https://git.launchpad.net/cloud-init/commit/?id=41152f10ddb Note, this is not specifically in artful at this point, but also note that this bug does not affect artful. Artful's package has a depends on python3-jsonschema, so it will not demonstrate the issue. === End SRU Template === $ dpkg-query --show cloud-init cloud-init 17.1-18-gd4f70470-0ubuntu1~16.04.1 $ sudo cat /var/lib/cloud/instance/user-data.txt #cloud-config bootcmd: - "cat /proc/uptime > /run/bootcmd-works" runcmd: - "cat /proc/uptime > /run/runcmd-works" $ grep WARN /var/log/cloud-init.log 2017-10-17 19:08:10,509 - schema.py[WARNING]: Ignoring schema validation. python-jsonschema is not present 2017-10-17 19:08:10,586 - schema.py[WARNING]: Ignoring schema validation. python-jsonschema is not present 2017-10-17 19:08:14,651 - schema.py[WARNING]: Ignoring schema validation. python-jsonschema is not present To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-init/+bug/1724354/+subscriptions _______________________________________________ Mailing list: https://launchpad.net/~group.of.nepali.translators Post to : group.of.nepali.translators@lists.launchpad.net Unsubscribe : https://launchpad.net/~group.of.nepali.translators More help : https://help.launchpad.net/ListHelp