keypair-add botches key from stdin
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-novaclient |
Fix Released
|
Wishlist
|
Natsuki Maruyama |
Bug Description
`cat X | nova keypair-add K` produces a different result from `nova keypair-add --pub-key X K`.
The latter takes the contents of X as the public key; the former does not.
For example:
ubuntu@
-----BEGIN RSA PRIVATE KEY-----
MIIEpQIBAAKCAQE
RxY8kwYQfqS3MPd
txmwfDqFJnOvzLT
rgqem8Hjc8g+
qIqCp+qlxRQtqc0
Ops/zGpz6dAH8TB
8idRskxfOkcQ/
FUs3Y3bTP62gHte
IX1JTqfBI6r3jDk
+Oq4bHOGZPdOLtG
iTy05A3XlO7EEPP
u8xIVWmRAoGBAPl
zu8CHXpFiLstVwk
Qy2vwBTl+
kLGbp3j7hq751r3
Uhb+VNf5FbYE4hG
glyOwLXPMeBd2bo
jGTDCvAzrnRG4Ne
XNRK/GedmYMoHt+
0a3QLod6jtnmik8
vdzbgW60Tp7Bvrt
AJxcZrduxDL9dfo
mgdU/1cCgYEA6e+
dERodDaWj584RlH
4iEC5PnZnfXG79r
-----END RSA PRIVATE KEY-----
ubuntu@
ubuntu@
+------
| Name | Fingerprint |
+------
...
| bar_stdin | 51:b4:0b:
| bar_file | 93:85:70:
+------
ubuntu@
This is with a DevStack install about an hour ago. The following shows exact identifiers.
ubuntu@
ubuntu@
* master 80b827d Merge "Drop support for conductor 1.x rpc interface"
ubuntu@
ubuntu@
* master db0519d Merge "Make gen_pki.sh & debug_helper.sh bash8 compliant"
Changed in python-novaclient: | |
assignee: | nobody → Natsuki Maruyama (gashiforce) |
Changed in python-novaclient: | |
status: | Triaged → In Progress |
Changed in python-novaclient: | |
milestone: | none → 2.21.0 |
Changed in python-novaclient: | |
status: | Fix Committed → Fix Released |
python-novaclient doesn't support reading the keypair from stdin. I see now reason why novaclient shouldn't support this model