** Summary changed:

- [2.0RC2] Unable to add a public SSH Key
+ [2.0RC2] Unable to add a public SSH Key due to lp1604147

** Also affects: maas/2.0
   Importance: Undecided
       Status: New

** Also affects: maas/trunk
   Importance: Critical
     Assignee: Gavin Panella (allenap)
       Status: In Progress

** Changed in: maas/2.0
    Milestone: None => 2.0.0

** Changed in: maas/trunk
    Milestone: 2.0.0 => 2.1.0

** Changed in: maas/2.0
    Milestone: 2.0.0 => 2.1.0

** Changed in: maas/2.0
    Milestone: 2.1.0 => 2.0.0

** Also affects: maas (Ubuntu)
   Importance: Undecided
       Status: New

** Also affects: maas (Ubuntu Yakkety)
   Importance: Undecided
       Status: New

** Also affects: maas (Ubuntu Xenial)
   Importance: Undecided
       Status: New

** Changed in: maas (Ubuntu Xenial)
   Importance: Undecided => Critical

** Description changed:

- When I add a public SSH key over the API or in the UI I get the
- following error
+ [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 case it to fail importing SSH 
keys, which prevents users from deploying.
+ 
+ [Test Case]
+ 1. Intsall MAAS
+ 2. Import SSH Key (example, maas maas sshkeys create key="$(ssh-add -L | grep 
[email protected])")
+ 
+ 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 [email protected])"
  {"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.

** Changed in: maas (Ubuntu Yakkety)
   Importance: Undecided => Critical

** Changed in: maas/2.0
   Importance: Undecided => Critical

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1604128

Title:
  [2.0RC2] Unable to add a public SSH Key due to lp1604147

To manage notifications about this bug go to:
https://bugs.launchpad.net/maas/+bug/1604128/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to