[Bug 1463373] Re: cc_apt_configure does not work with python3
Dan Watkins
daniel.watkins at canonical.com
Thu Jul 16 12:46:42 UTC 2015
** Description changed:
The way cc_apt_configure.py writes out the script to fetch GPG keys
breaks when using Python 3.
- * There's a constant, http://bazaar.launchpad.net/~cloud-init-dev/cloud-
- init/trunk/view/head:/cloudinit/config/cc_apt_configure.py#L39 that
- contains the script.
+ [Impact]
+ GPG keys specified in cloud configuration cannot be checked.
- * In getkeybyid, it's written to a temporary file:
- http://bazaar.launchpad.net/~cloud-init-dev/cloud-
- init/trunk/view/head:/cloudinit/config/cc_apt_configure.py#L113
+ [Test Case]
+ Specify a key in a source in the apt_sources cloud config key, and ensure that there aren't warnings about it in /var/log/cloud-init.log after boot.
- Python 3 throws an exception: 'str' does not support the buffer
- interface when doing the write.
-
- A very simple example:
-
- import tempfile
-
- fh = tempfile.NamedTemporaryFile()
- TEST_STR = """ HELLO WORLD """
- fh.write(TEST_STR)
-
- Will work with 2, but not 3.
+ [Regression Potential]
+ This part of the feature is completely broken at the moment, so very little chance to regress.
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cloud-init in Ubuntu.
https://bugs.launchpad.net/bugs/1463373
Title:
cc_apt_configure does not work with python3
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1463373/+subscriptions
More information about the Ubuntu-server-bugs
mailing list