[Bug 1604128] Re: [2.0RC2] Unable to add a public SSH Key
Andres Rodriguez
andreserl at ubuntu-pe.org
Mon Jul 18 20:34:02 UTC 2016
** Also affects: python3.5 (Ubuntu)
Importance: Undecided
Status: New
** No longer affects: python3.5 (Ubuntu)
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to python3.5 in Ubuntu.
https://bugs.launchpad.net/bugs/1604128
Title:
[2.0RC2] Unable to add a public SSH Key
Status in MAAS:
In Progress
Bug description:
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 at canonical.com)"
{"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
More information about the foundations-bugs
mailing list