WARNING in logs due to missing python-jsonschema
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Fix Released
|
Low
|
Unassigned | ||
cloud-init (Ubuntu) |
Fix Released
|
Low
|
Unassigned | ||
Xenial |
Fix Released
|
Medium
|
Chad Smith | ||
Zesty |
Fix Released
|
Medium
|
Chad Smith | ||
Artful |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
=== Begin SRU Template ===
[Impact]
If python3-jsonschema is not installed, then WARNING will be written
to console log and to /var/log/
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/
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/
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=
lxc exec $n -- sh -c \
'while ! [ -e /run/cloud-
lxc file pull $n/var/
done
# check that 1724354 is installed.
$ grep "WARN" *-1724354-
[Regression Potential]
Highest chance for regression would be in the integration test
suite. The only change in code path is in cloudinit/
- logging.warning(
+ logging.debug(
[Other Info]
Upstream commit at
https:/
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-
$ sudo cat /var/lib/
#cloud-config
bootcmd:
- "cat /proc/uptime > /run/bootcmd-works"
runcmd:
- "cat /proc/uptime > /run/runcmd-works"
$ grep WARN /var/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
Related branches
- Server Team CI bot: Approve (continuous-integration)
- cloud-init Commiters: Pending requested
-
Diff: 848 lines (+260/-107)21 files modifiedcloudinit/config/cc_lxd.py (+1/-1)
cloudinit/config/cc_ntp.py (+3/-1)
cloudinit/config/cc_resizefs.py (+13/-30)
cloudinit/config/cc_users_groups.py (+2/-1)
cloudinit/config/schema.py (+1/-1)
debian/changelog (+16/-0)
doc/examples/cloud-config-user-groups.txt (+3/-3)
tests/cloud_tests/testcases/__init__.py (+7/-0)
tests/cloud_tests/testcases/base.py (+8/-4)
tests/cloud_tests/testcases/examples/including_user_groups.py (+6/-0)
tests/cloud_tests/testcases/examples/including_user_groups.yaml (+5/-2)
tests/cloud_tests/testcases/main/command_output_simple.py (+16/-0)
tests/cloud_tests/testcases/modules/ntp.yaml (+2/-2)
tests/cloud_tests/testcases/modules/user_groups.py (+6/-0)
tests/cloud_tests/testcases/modules/user_groups.yaml (+5/-2)
tests/unittests/test_handler/test_handler_lxd.py (+8/-8)
tests/unittests/test_handler/test_handler_ntp.py (+12/-11)
tests/unittests/test_handler/test_handler_resizefs.py (+57/-34)
tests/unittests/test_handler/test_schema.py (+36/-1)
tools/read-dependencies (+36/-5)
tools/run-centos (+17/-1)
- Server Team CI bot: Approve (continuous-integration)
- Scott Moser: Pending requested
-
Diff: 848 lines (+260/-107)21 files modifiedcloudinit/config/cc_lxd.py (+1/-1)
cloudinit/config/cc_ntp.py (+3/-1)
cloudinit/config/cc_resizefs.py (+13/-30)
cloudinit/config/cc_users_groups.py (+2/-1)
cloudinit/config/schema.py (+1/-1)
debian/changelog (+16/-0)
doc/examples/cloud-config-user-groups.txt (+3/-3)
tests/cloud_tests/testcases/__init__.py (+7/-0)
tests/cloud_tests/testcases/base.py (+8/-4)
tests/cloud_tests/testcases/examples/including_user_groups.py (+6/-0)
tests/cloud_tests/testcases/examples/including_user_groups.yaml (+5/-2)
tests/cloud_tests/testcases/main/command_output_simple.py (+16/-0)
tests/cloud_tests/testcases/modules/ntp.yaml (+2/-2)
tests/cloud_tests/testcases/modules/user_groups.py (+6/-0)
tests/cloud_tests/testcases/modules/user_groups.yaml (+5/-2)
tests/unittests/test_handler/test_handler_lxd.py (+8/-8)
tests/unittests/test_handler/test_handler_ntp.py (+12/-11)
tests/unittests/test_handler/test_handler_resizefs.py (+57/-34)
tests/unittests/test_handler/test_schema.py (+36/-1)
tools/read-dependencies (+36/-5)
tools/run-centos (+17/-1)
- Server Team CI bot: Approve (continuous-integration)
- Scott Moser: Pending requested
-
Diff: 1040 lines (+258/-289)23 files modifiedcloudinit/config/cc_lxd.py (+1/-1)
cloudinit/config/cc_ntp.py (+3/-1)
cloudinit/config/cc_resizefs.py (+13/-30)
cloudinit/config/cc_users_groups.py (+2/-1)
cloudinit/config/schema.py (+1/-1)
debian/changelog (+14/-0)
debian/patches/series (+0/-1)
dev/null (+0/-181)
doc/examples/cloud-config-user-groups.txt (+3/-3)
tests/cloud_tests/testcases/__init__.py (+7/-0)
tests/cloud_tests/testcases/base.py (+8/-4)
tests/cloud_tests/testcases/examples/including_user_groups.py (+6/-0)
tests/cloud_tests/testcases/examples/including_user_groups.yaml (+5/-2)
tests/cloud_tests/testcases/main/command_output_simple.py (+16/-0)
tests/cloud_tests/testcases/modules/ntp.yaml (+2/-2)
tests/cloud_tests/testcases/modules/user_groups.py (+6/-0)
tests/cloud_tests/testcases/modules/user_groups.yaml (+5/-2)
tests/unittests/test_handler/test_handler_lxd.py (+8/-8)
tests/unittests/test_handler/test_handler_ntp.py (+12/-11)
tests/unittests/test_handler/test_handler_resizefs.py (+57/-34)
tests/unittests/test_handler/test_schema.py (+36/-1)
tools/read-dependencies (+36/-5)
tools/run-centos (+17/-1)
- Server Team CI bot: Approve (continuous-integration)
- Scott Moser: Pending requested
-
Diff: 1042 lines (+258/-289)23 files modifiedcloudinit/config/cc_lxd.py (+1/-1)
cloudinit/config/cc_ntp.py (+3/-1)
cloudinit/config/cc_resizefs.py (+13/-30)
cloudinit/config/cc_users_groups.py (+2/-1)
cloudinit/config/schema.py (+1/-1)
debian/changelog (+14/-0)
debian/patches/series (+0/-1)
dev/null (+0/-181)
doc/examples/cloud-config-user-groups.txt (+3/-3)
tests/cloud_tests/testcases/__init__.py (+7/-0)
tests/cloud_tests/testcases/base.py (+8/-4)
tests/cloud_tests/testcases/examples/including_user_groups.py (+6/-0)
tests/cloud_tests/testcases/examples/including_user_groups.yaml (+5/-2)
tests/cloud_tests/testcases/main/command_output_simple.py (+16/-0)
tests/cloud_tests/testcases/modules/ntp.yaml (+2/-2)
tests/cloud_tests/testcases/modules/user_groups.py (+6/-0)
tests/cloud_tests/testcases/modules/user_groups.yaml (+5/-2)
tests/unittests/test_handler/test_handler_lxd.py (+8/-8)
tests/unittests/test_handler/test_handler_ntp.py (+12/-11)
tests/unittests/test_handler/test_handler_resizefs.py (+57/-34)
tests/unittests/test_handler/test_schema.py (+36/-1)
tools/read-dependencies (+36/-5)
tools/run-centos (+17/-1)
- Server Team CI bot: Needs Fixing (continuous-integration)
- Scott Moser: Pending requested
-
Diff: 211 lines (+189/-0)3 files modifieddebian/changelog (+7/-0)
debian/patches/cpick-41152f1-schema-Log-debug-instead-of-warning-when-jsonschema-is (+181/-0)
debian/patches/series (+1/-0)
- Server Team CI bot: Needs Fixing (continuous-integration)
- Scott Moser: Pending requested
-
Diff: 209 lines (+189/-0)3 files modifieddebian/changelog (+7/-0)
debian/patches/cpick-41152f1-schema-Log-debug-instead-of-warning-when-jsonschema-is (+181/-0)
debian/patches/series (+1/-0)
- Chad Smith: Approve
- Server Team CI bot: Approve (continuous-integration)
-
Diff: 150 lines (+32/-9)8 files modifiedcloudinit/config/cc_users_groups.py (+2/-1)
cloudinit/config/schema.py (+1/-1)
doc/examples/cloud-config-user-groups.txt (+3/-3)
tests/cloud_tests/testcases/base.py (+4/-0)
tests/cloud_tests/testcases/examples/including_user_groups.py (+6/-0)
tests/cloud_tests/testcases/examples/including_user_groups.yaml (+5/-2)
tests/cloud_tests/testcases/modules/user_groups.py (+6/-0)
tests/cloud_tests/testcases/modules/user_groups.yaml (+5/-2)
Changed in cloud-init (Ubuntu): | |
status: | New → Invalid |
importance: | Undecided → Low |
Changed in cloud-init (Ubuntu Xenial): | |
status: | New → Confirmed |
Changed in cloud-init (Ubuntu Zesty): | |
status: | New → Confirmed |
Changed in cloud-init (Ubuntu Xenial): | |
importance: | Undecided → Medium |
Changed in cloud-init (Ubuntu Zesty): | |
importance: | Undecided → Medium |
description: | updated |
Changed in cloud-init (Ubuntu Xenial): | |
assignee: | nobody → Scott Moser (smoser) |
assignee: | Scott Moser (smoser) → nobody |
assignee: | nobody → Chad Smith (chad.smith) |
Changed in cloud-init (Ubuntu Zesty): | |
assignee: | nobody → Chad Smith (chad.smith) |
Changed in cloud-init: | |
status: | New → Fix Committed |
importance: | Undecided → Low |
description: | updated |
description: | updated |
summary: |
- WARNING in logs due to missing python-jsconschema + WARNING in logs due to missing python-jsonschema |
description: | updated |
Changed in cloud-init (Ubuntu Artful): | |
status: | Fix Committed → Fix Released |
Hello Scott, or anyone else affected,
Accepted cloud-init into zesty-proposed. The package will build now and be available at https:/ /launchpad. net/ubuntu/ +source/ cloud-init/ 17.1-18- gd4f70470- 0ubuntu1~ 17.04.2 in a few hours, and then in the -proposed repository.
Please help us by testing this new package. See https:/ /wiki.ubuntu. com/Testing/ EnableProposed for documentation on how to enable and use -proposed.Your feedback will aid us getting this update out to other Ubuntu users.
If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested and change the tag from verification- needed- zesty to verification- done-zesty. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification- failed- zesty. In either case, details of your testing will help us make a better decision.
Further information regarding the verification process can be found at https:/ /wiki.ubuntu. com/QATeam/ PerformingSRUVe rification . Thank you in advance!