This is fixed in cloud-init 0.7.9. ** 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/1635350 Title: unit tests fail as non-root on maas deployed system 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] Running cloud-init's unit test cases on a system deployed by MAAS would fail. The reason is that the non-root user would not be able to read files with MAAS node credentials in /etc/cloud/cloud.cfg.d We want this change SRU so that an attempt to build and run tests on a system deployed by maas will work rather than fail due to unit test failure. [Test Case] Run unit tests on a system deployed by maas, or even just with: f=/etc/cloud/cloud.cfg.d/90_dpkg_maas.cfg sh -c 'mkdir -p "${1%/*}" && touch "$1" && chmod ugo-r "$1"' -- "$f" tox -e py3 [Regression Potential] This was just to fix a build break or unit tests being run. Changes are only to unit tests. === End SRU Template === Observed Behavior: On a system deployed by MAAS I checked out master and then tried to immediately build it: > git clone https://git.launchpad.net/cloud-init > cd cloud-init > ./packages/bddeb I get a number of errors around permission issues around this file: PermissionError: [Errno 13] Permission denied: \'/etc/cloud/cloud.cfg.d/90_dpkg_maas.cfg\' See: https://paste.ubuntu.com/23354559/ or formatted better: http://paste.ubuntu.com/23374383/ If I run as root however, it build as expected. Expected Behavior: Running bddeb works as a non-root user. To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-init/+bug/1635350/+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