ssh key login broken to share VM
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Shared File Systems Service (Manila) |
Fix Released
|
Medium
|
Tom Barron |
Bug Description
Steps
git clone git://github.
cd devstack
create local.conf and add the following line
enable_plugin manila https:/
run
./stack.sh
after stacked,
source /opt/stack/
neutron net-list
neutron subnet-list
manila share-network-
manila share-network-list
manila create --name devstack_share --share-network <SHARE_NET_ID> NFS 1
it will fail with exception
SSHException: Check whether private key or password are correctly set
workaround:
edit the /etc/manila/
in [generic1] section add
service_
and comment
#path_to_
#path_to_public_key = /home/manila/
re-run
manila create --name devstack_share01 --share-network <SHARE_NET_ID> NFS 1
Now you can see the proper share
manila list
SSHing using key works in CI.
It can be proven by searching "Authentication (publickey) successful!" in CI logs of any CI job with generic driver that uses DHSS=True mode.
Example: logs.openstack. org/69/ 402169/ 4/check/ gate-manila- tempest- dsvm-mysql- generic- ubuntu- xenial- nv/c700441/ logs/screen- m-shr.txt. gz#_2016- 11-29_13_ 20_29_081
http://
There you can see following:
2016-11-29 13:20:21.921 25769 DEBUG paramiko.transport [req-bf12ba4a- caca-47bb- bf74-797b5df9b2 6d 5f734ec209be4ae 68f06c4a0a0aee6 0a 8b4515a6e94e4f4 3a2efaea37d31c1 70 - - -] Adding ssh-rsa host key for 10.254.0.54: 9b9ed199341fdc6 aef06bd0c534eec 8f _log /usr/local/ lib/python2. 7/dist- packages/ paramiko/ transport. py:1563 caca-47bb- bf74-797b5df9b2 6d 5f734ec209be4ae 68f06c4a0a0aee6 0a 8b4515a6e94e4f4 3a2efaea37d31c1 70 - - -] Trying key c116ef251b91e28 2f524146842d603 30 from /opt/stack/ new/.ssh/ id_rsa _log /usr/local/ lib/python2. 7/dist- packages/ paramiko/ transport. py:1563 lib/python2. 7/dist- packages/ paramiko/ transport. py:1563 lib/python2. 7/dist- packages/ paramiko/ transport. py:1563 lib/python2. 7/dist- packages/ paramiko/ transport. py:1563 2214-4f3e- bd94-583b737be1 23 0a6c06e51cf942e 8ab724e1fcfd63e fc 6860ac68279f4a4 b8a1e385f096c6f 73 - - -] Adding ssh-rsa host key for 10.254.0.36: 9b9ed199341fdc6 aef06bd0c534eec 8f _log /usr/local/ lib/python2. 7/dist- packages/ paramiko/ transport. py:1563 2214-4f3e- bd94-583b737be1 23 0a6c06e51cf942e 8ab724e1fcfd63e fc 6860ac68279f4a4 b8a1e385f096c6f 73 - - -] Trying key c116ef251b91e28 2f524146842d603 30 from /opt/stack/ new/.ssh/ id_rsa _log /usr/local/ lib/python2. 7/dist- packages/ paramiko/ transport. py:1563 lib/python2. 7/dist- packages/ paramiko/ transport. py:1563
2016-11-29 13:20:21.922 25769 DEBUG paramiko.transport [req-bf12ba4a-
2016-11-29 13:20:21.932 25769 DEBUG paramiko.transport [-] userauth is OK _log /usr/local/
2016-11-29 13:20:22.562 25769 DEBUG paramiko.transport [-] kex engine KexGroup1 specified hash_algo <built-in function openssl_sha1> _log /usr/local/
2016-11-29 13:20:22.563 25769 DEBUG paramiko.transport [-] Switch to new keys ... _log /usr/local/
2016-11-29 13:20:22.565 25769 DEBUG paramiko.transport [req-742af03a-
2016-11-29 13:20:22.565 25769 DEBUG paramiko.transport [req-742af03a-
2016-11-29 13:20:22.572 25769 DEBUG paramiko.transport [-] userauth is OK _log /usr/local/
2016-11-29 13:20:29.081 25769 INFO paramiko.transport [-] Authentication (publickey) successful!
So, there is no bug in Manila. It is key setup error only. Are you sure that key you use is created for proper user? This key has proper bits?..