Comment #2 on issue 1150 by [email protected]: Failed to find SSH
public keys
https://code.google.com/p/ganeti/issues/detail?id=1150
Hello Helga,
Thanks for answering this.
- yes
- yes,
- whoops, yes, and that's probably a wrong idea:
--with-ssh-config-dir=/root/.ssh \
ls -al /root/.ssh
-rw------- 1 root root 416 Nov 25 18:29 authorized_keys
-rw------- 1 root root 1766 Nov 25 18:29 id_rsa
-rw------- 1 root root 1460 Nov 25 18:31 id_rsa.ppk
-rw-r--r-- 1 root root 416 Nov 25 18:29 id_rsa.pub
-rw-r--r-- 1 root root 222 Nov 25 19:42 known_hosts
I'll try to reconfigure without modifying that path and let you know about
the results.
- also from the logs, we can see that Ganeti expects in /var/lib/ganeti/ a
bunch of missing files, including hmac.key, ssconf_hypervisor_list,
ssconf_maintain_node_health and server.pem. I have no idea what those first
3 files are for, but regarding the last one, we can't have SSH keys defined
in different locations, especially not in a "lib" folder...
If I change the name of the private RSA SSH key to *.pem in /etc/ssh, the
error is the same.
If I copy that key into /var/lib/ganeti/server.pem, I have another error:
error type: wrong_state, error details:
/var/lib/ganeti contains non-directory entries like server.pem. Remove
left-overs of an old cluster before initialising a new one
and sudo gnt-cluster destroy --yes-do-it
Failure: prerequisites not met for this operation:
error type: wrong_input, error details:
Cluster not initialized or this machine is not part of a cluster
--------------
- commands.log
--------------
2015-12-01 10:22:00,297: gnt-cluster init pid=3394 INFO Using PycURL
PycURL/7.19.5.1 libcurl/7.43.0 GnuTLS/3.3.15 zlib/1.2.8 libidn/1.28
librtmp/2.3
2015-12-01 10:22:03,297: gnt-cluster init pid=3394 INFO RunCmd
/usr/lib/ganeti/daemon-util stop-all
2015-12-01 10:22:03,331: gnt-cluster init pid=3394 WARNING Specified a file
storage directory, although file storage is not enabled.
2015-12-01 10:22:03,331: gnt-cluster init pid=3394 WARNING Specified a
sharedfile storage directory, although sharedfile storage is not enabled.
2015-12-01 10:22:03,331: gnt-cluster init pid=3394 WARNING Specified a
gluster storage directory, although gluster storage is not enabled.
2015-12-01 10:22:03,332: gnt-cluster init pid=3394 INFO RunCmd ip link show
dev kvm-br0
2015-12-01 10:22:03,337: gnt-cluster init pid=3394 ERROR Error during
command processing
Traceback (most recent call last):
File "/usr/share/ganeti/2.18/ganeti/cli.py", line 1221, in GenericMain
result = func(options, args)
File "/usr/share/ganeti/2.18/ganeti/rpc/node.py", line 141, in wrapper
return fn(*args, **kwargs)
File "/usr/share/ganeti/2.18/ganeti/client/gnt_cluster.py", line 337, in
InitCluster
enabled_user_shutdown=enabled_user_shutdown,
File "/usr/share/ganeti/2.18/ganeti/bootstrap.py", line 710, in
InitCluster
errors.ECODE_ENVIRON)
OpPrereqError: ('Failed to find SSH public keys', 'environment_error')
-----------------
- conf-daemon.log:
-----------------
2015-12-01 10:20:02,371863000000 CET: ganeti-confd pid=3270/ThreadId 3
NOTICE ganeti-confd daemon startup
2015-12-01 10:20:02,376600000000 CET: ganeti-confd pid=3270/ThreadId 3 INFO
Starting up in polling mode
2015-12-01 10:20:02,376769000000 CET: ganeti-confd pid=3270/ThreadId 3
NOTICE ganeti-confd daemon shutdown
ganeti-confd: /var/lib/ganeti/hmac.key: openBinaryFile: does not exist (No
such file or directory)
----------------
- kvm-daemon.log
----------------
2015-12-01 10:20:02,533272000000 CET: ganeti-kvmd pid=3290/ThreadId 3
NOTICE ganeti-kvmd daemon startup
2015-12-01 10:20:02,534750000000 CET: ganeti-kvmd pid=3290/ThreadId 3 INFO
/var/lib/ganeti/ssconf_hypervisor_list: openFile: does not exist (No such
file or directory)
2015-12-01 10:20:02,535640000000 CET: ganeti-kvmd pid=3290/ThreadId 3
NOTICE ganeti-kvmd daemon shutdown
2015-12-01 10:25:02,178198000000 CET: ganeti-kvmd pid=3754/ThreadId 3
NOTICE ganeti-kvmd daemon startup
2015-12-01 10:25:02,178885000000 CET: ganeti-kvmd pid=3754/ThreadId 3 INFO
/var/lib/ganeti/ssconf_hypervisor_list: openFile: does not exist (No such
file or directory)
2015-12-01 10:25:02,179069000000 CET: ganeti-kvmd pid=3754/ThreadId 3
NOTICE ganeti-kvmd daemon shutdown
-------------
- watcher.log
-------------
2015-12-01 10:20:01,962: ganeti-watcher pid=3230 INFO RunCmd
/usr/lib/ganeti/daemon-util check-and-start ganeti-noded
2015-12-01 10:20:02,215: ganeti-watcher pid=3230 ERROR Can't start
daemon 'ganeti-noded', failure exited with exit code 1, output: SSL key
file '/var/lib/ganeti/server.pem' was not found
2015-12-01 10:20:02,215: ganeti-watcher pid=3230 INFO RunCmd
/usr/lib/ganeti/daemon-util check-and-start ganeti-confd
2015-12-01 10:20:02,373: ganeti-watcher pid=3230 INFO RunCmd
/usr/lib/ganeti/daemon-util check-and-start ganeti-kvmd
2015-12-01 10:20:02,535: ganeti-watcher pid=3230 ERROR Configuration error,
not activating node maintenance: Can't read ssconf file
/var/lib/ganeti/ssconf_maintain_node_health: [Errno 2] No such file or
directory: '/var/lib/ganeti/ssconf_maintain_node_health'
2015-12-01 10:25:01,652: ganeti-watcher pid=3694 INFO RunCmd
/usr/lib/ganeti/daemon-util check-and-start ganeti-noded
2015-12-01 10:25:01,889: ganeti-watcher pid=3694 ERROR Can't start
daemon 'ganeti-noded', failure exited with exit code 1, output: SSL key
file '/var/lib/ganeti/server.pem' was not found
2015-12-01 10:25:01,889: ganeti-watcher pid=3694 INFO RunCmd
/usr/lib/ganeti/daemon-util check-and-start ganeti-confd
2015-12-01 10:25:02,021: ganeti-watcher pid=3694 INFO RunCmd
/usr/lib/ganeti/daemon-util check-and-start ganeti-kvmd
2015-12-01 10:25:02,180: ganeti-watcher pid=3694 ERROR Configuration error,
not activating node maintenance: Can't read ssconf file
/var/lib/ganeti/ssconf_maintain_node_health: [Errno 2] No such file or
directory: '/var/lib/ganeti/ssconf_maintain_node_health'
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings