Ran the following script for SRU verification, we expect Artful to carry
a strict dependency on python3-jsonschema so no messages about "Ignoring
schema validation" will exist. Xenial and Zesty don't have a package
dependency for jsonschema defined, so debug message (not warning) should
exist.


#!/bin/bash
cat > my.cfg <<EOF
#cloud-config
bootcmd:
  - "cat /proc/uptime > /run/bootcmd-works"
runcmd:
  - "cat /proc/uptime > /run/runcmd-works"
EOF

for release in artful; do
  ref="$release-proposed";
  echo "$release START --------------";
  lxc-proposed-snapshot -p -P $release $ref;
  lxc init $ref test-$release;
  lxc config set test-$release user.user-data - < my.cfg;
  lxc start test-$release;
  lxc exec test-$release --  sh -c 'while ! [ -e /run/cloud-init/result.json ]; 
do echo -n .; sleep 1; done; echo';
  lxc exec test-$release -- cat /run/cloud/build.info;
  lxc exec test-$release -- grep 'Ignoring schema validation' 
/var/log/cloud-init.log;
done

=== Abridged SRU output ===
xenial START --------------
Creating xenial-proposed-204712498
...
Preparing to unpack .../cloud-init_17.1-25-g17a15f9e-0ubuntu1~16.04.1_all.deb 
...

Creating test-xenial
........
build_name: server
serial: 20171024
2017-10-25 21:55:45,845 - schema.py[DEBUG]: Ignoring schema validation. 
python-jsonschema is not present
2017-10-25 21:55:45,866 - schema.py[DEBUG]: Ignoring schema validation. 
python-jsonschema is not present
2017-10-25 21:55:48,668 - schema.py[DEBUG]: Ignoring schema validation. 
python-jsonschema is not present
zesty START --------------
Creating zesty-proposed-248586300
...
Preparing to unpack .../cloud-init_17.1-25-g17a15f9e-0ubuntu1~17.04.1_all.deb 
...
Creating test-zesty
..........
build_name: server
serial: 20171024
2017-10-25 21:57:24,302 - schema.py[DEBUG]: Ignoring schema validation. 
python-jsonschema is not present
2017-10-25 21:57:24,325 - schema.py[DEBUG]: Ignoring schema validation. 
python-jsonschema is not present
2017-10-25 21:57:27,818 - schema.py[DEBUG]: Ignoring schema validation. 
python-jsonschema is not present


artful START -------------- # no schema validation messages
Creating artful-proposed-3130329978
...
Get:1 http://archive.ubuntu.com/ubuntu artful-proposed/main amd64 cloud-init 
all 17.1-25-g17a15f9e-0ubuntu1~17.10.1 [333 kB]
...
Creating test-artful
..................
build_name: server
serial: 20171024


=== End Abridged SRU output ===


** Tags removed: verification-needed verification-needed-artful 
verification-needed-xenial verification-needed-zesty
** Tags added: verification-done verification-done-artful 
verification-done-xenial verification-done-zesty

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

Title:
  WARNING in logs due to missing python-jsonschema

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

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

Reply via email to