group.of.nepali.translators team mailing list archive
-
group.of.nepali.translators team
-
Mailing list archive
-
Message #06230
[Bug 1604128] Re: [2.0RC2] Unable to add a public SSH Key due to lp1604147
This bug was fixed in the package maas -
2.0.0~rc2+bzr5156-0ubuntu1~16.04.2
---------------
maas (2.0.0~rc2+bzr5156-0ubuntu1~16.04.2) xenial-proposed; urgency=medium
* debian/patches/lp1604128_workaround_python_lp1604147: Work around a
regression in the recent update to Python 3.5.2 that lost the
pathlib.Path.path property. (LP: #1604128)
-- Andres Rodriguez <andreserl@xxxxxxxxxx> Mon, 18 Jul 2016 16:56:26
-0400
** Changed in: maas (Ubuntu Xenial)
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/1604128
Title:
[2.0RC2] Unable to add a public SSH Key due to lp1604147
Status in MAAS:
In Progress
Status in MAAS 2.0 series:
New
Status in MAAS trunk series:
In Progress
Status in maas package in Ubuntu:
Fix Released
Status in maas source package in Xenial:
Fix Released
Status in maas source package in Yakkety:
Fix Released
Bug description:
[Impact]
With a recent update of python from 3.5.1 to 3.5.2, the pathlib.Path.path property is gone. This impacts MAAS as it will cause it to fail importing SSH keys, which prevents users from deploying.
[Test Case]
1. Install MAAS
2. Import SSH Key (example, maas maas sshkeys create key="$(ssh-add -L | grep lee.trager@xxxxxxxxxxxxx)")
With fix - The key will be imported correctly.
Without fix - The key will fail to import.
Work around sudden loss of pathlib.Path.path property in Python 3.5.2
release.
[Regression Potential]
None. Tested and proved that using the different path fixes the issue.
== Original bug report ==
When I add a public SSH key over the API or in the UI I get the following error
$ maas maas sshkeys create key="$(ssh-add -L | grep lee.trager@xxxxxxxxxxxxx)"
{"key": ["Invalid SSH public key: 'PosixPath' object has no attribute 'path'"]}
This was introduced in 5118 in the validation code of SSH keys but
appears to be exposing a bigger bug. If you run ./bin/test.rack
src/provisioningserver/utils/tests/test_sshkey.py the tests fail. I'm
guessing that something is mocking check_output in a previous test and
not unmocking it.
To manage notifications about this bug go to:
https://bugs.launchpad.net/maas/+bug/1604128/+subscriptions