#611724 ganeti2: Ganeti service don't start

Package:
ganeti2
Source:
ganeti
Submitter:
Diego Silva
Date:
2023-04-26 09:00:41 UTC
Severity:
normal
Tags:
#611724#5
Date:
2011-02-01 12:20:53 UTC
From:
To:
After install ganeti2 on squezze and follow the official 2.1 install documentation, I can't start the service due the missing of configuration files:

/etc/init.d/ganeti start
Starting Ganeti cluster:ganeti-noded...done.
ganeti-masterd...Cluster configuration incomplete: 'Can't read from the ssconf file: '[Errno 2] No such file or directory: '/var/lib/ganeti/ssconf_master_node'''
failed (exit code 12).
ganeti-rapi...Cluster configuration incomplete: 'Can't read from the ssconf file: '[Errno 2] No such file or directory: '/var/lib/ganeti/ssconf_master_node'''
failed (exit code 12).
ganeti-confd...done

#611724#10
Date:
2011-02-01 19:38:00 UTC
From:
To:
Have you actually initialized the cluster? Per
http://docs.ganeti.org/ganeti/2.1/html/install.html#initializing-the-cluster?

regards,
iustin

#611724#15
Date:
2011-02-01 22:11:26 UTC
From:
To:
I was unable to initialise the cluster:

/var/log/ganeti/commands.log:
2011-01-31 21:42:10,076: gnt-cluster init pid=2965 INFO run with arguments 'cluster00.example.com.br'
2011-01-31 21:42:13,391: gnt-cluster init pid=2965 ERROR RPC error in version from node node1.example.com.br: Error in SSL handshake: ([('SSL routines', 'SSL3_GET_SERVER_CERTIFICATE', 'certificate verify failed')],)
2011-01-31 21:42:14,418: gnt-cluster init pid=2965 ERROR RPC error in version from node node1.example.com.br: Error in SSL handshake: ([('SSL routines', 'SSL3_GET_SERVER_CERTIFICATE', 'certificate verify failed')],)
2011-01-31 21:42:15,444: gnt-cluster init pid=2965 ERROR RPC error in version from node node1.example.com.br: Error in SSL handshake: ([('SSL routines', 'SSL3_GET_SERVER_CERTIFICATE', 'certificate verify failed')],)
2011-01-31 21:42:16,471: gnt-cluster init pid=2965 ERROR RPC error in version from node node1.example.com.br: Error in SSL handshake: ([('SSL routines', 'SSL3_GET_SERVER_CERTIFICATE', 'certificate verify failed')],)
2011-01-31 21:42:17,497: gnt-cluster init pid=2965 ERROR RPC error in version from node node1.example.com.br: Error in SSL handshake: ([('SSL routines', 'SSL3_GET_SERVER_CERTIFICATE', 'certificate verify failed')],)
2011-01-31 21:42:18,524: gnt-cluster init pid=2965 ERROR RPC error in version from node node1.example.com.br: Error in SSL handshake: ([('SSL routines', 'SSL3_GET_SERVER_CERTIFICATE', 'certificate verify failed')],)
2011-01-31 21:42:19,550: gnt-cluster init pid=2965 ERROR RPC error in version from node node1.example.com.br: Error in SSL handshake: ([('SSL routines', 'SSL3_GET_SERVER_CERTIFICATE', 'certificate verify failed')],)
2011-01-31 21:42:20,577: gnt-cluster init pid=2965 ERROR RPC error in version from node node1.example.com.br: Error in SSL handshake: ([('SSL routines', 'SSL3_GET_SERVER_CERTIFICATE', 'certificate verify failed')],)
2011-01-31 21:42:21,603: gnt-cluster init pid=2965 ERROR RPC error in version from node node1.example.com.br: Error in SSL handshake: ([('SSL routines', 'SSL3_GET_SERVER_CERTIFICATE', 'certificate verify failed')],)
2011-01-31 21:42:22,630: gnt-cluster init pid=2965 ERROR RPC error in version from node node1.example.com.br: Error in SSL handshake: ([('SSL routines', 'SSL3_GET_SERVER_CERTIFICATE', 'certificate verify failed')],)
2011-01-31 21:42:23,656: gnt-cluster init pid=2965 ERROR RPC error in version from node node1.example.com.br: Error in SSL handshake: ([('SSL routines', 'SSL3_GET_SERVER_CERTIFICATE', 'certificate verify failed')],)
2011-01-31 21:42:23,659: gnt-cluster init pid=2965 ERROR Error during command processing
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/ganeti/cli.py", line 1676, in GenericMain
    result = func(options, args)
  File "/usr/lib/pymodules/python2.6/ganeti/cli.py", line 1141, in wrapper
    return fn(*args, **kwargs)
  File "/usr/sbin/gnt-cluster", line 114, in InitCluster
    uid_pool=uid_pool,
  File "/usr/lib/pymodules/python2.6/ganeti/bootstrap.py", line 329, in InitCluster
    _InitGanetiServerSetup(hostname.name)
  File "/usr/lib/pymodules/python2.6/ganeti/bootstrap.py", line 183, in _InitGanetiServerSetup
    _WaitForNodeDaemon(master_name)
  File "/usr/lib/pymodules/python2.6/ganeti/bootstrap.py", line 199, in _WaitForNodeDaemon
    " 10 seconds" % node_name)
OpExecError: Node daemon on node1.example.com.br didn't answer queries within 10 seconds

/etc/hosts:
127.0.0.1       localhost
10.10.12.48      node2.example.com.br node2
10.10.12.49      node3.example.com.br node3
10.10.12.14      cluster00.example.com.br cluster00
10.10.12.47      node1.example.com.br node1

 

#611724#20
Date:
2011-02-01 23:52:22 UTC
From:
To:
Did you have a leftover node daemon running maybe? Can you remove
/var/lib/ganeti/*, killall ganeti-noded, and retry the initialization?

thanks,
iustin

#611724#25
Date:
2011-02-02 00:11:34 UTC
From:
To:
Iustin,

Now it worked! The question is why the ssconf* files was not created initially? Please, before close this bug I will try to reproduce it again, because to install this server I followed the ganeti official documentation.


Att,
----------------------------------------
#611724#30
Date:
2013-04-22 12:12:07 UTC
From:
To:
Hi Diego,

This is indeed by design. You have to initialize the cluster before
starting ganeti, and this cannot be done automatically, as we don't
know if you'll be doing that, or just adding the node to an existing
cluster (see gnt-node add).

Perhaps we shouldn't ship an init script at all, until the cluster is
initialized, to avoid this error.

Thanks,

Guido