Ganeti initialization fails because PyCurl is linked against GnuTLS
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ganeti (Ubuntu) |
Invalid
|
High
|
Unassigned | ||
pycurl (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Ganeti uses PyCurl to connect to the master daemon. When PyCurl is linked against GnuTLS the connection fails:
2012-03-26 07:00:13,862: gnt-cluster init pid=5995 INFO Using PycURL libcurl/7.22.0 GnuTLS/2.12.14 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
2012-03-26 07:00:18,658: gnt-cluster init pid=5995 ERROR RPC error in version from node node1.example.com: Error 35: gnutls_handshake() failed: GnuTLS internal error.
Starting Ganeti is not possible:
# /etc/init.d/ganeti start
* Starting Ganeti cluster * ganeti-noded... [ OK ]
* ganeti-masterd... ERROR:root:RPC error in node_start_master from node node2.example.com: Error 35: gnutls_handshake() failed: GnuTLS internal error.
ERROR:root:Can't activate master IP address: Error 35: gnutls_handshake() failed: GnuTLS internal error.
* ganeti-rapi... [ OK ]
* ganeti-confd... [ OK ]
# gnt-node list
Node DTotal DFree MTotal MNode MFree Pinst Sinst
node2.example.com ? ? ? ? ? 0 0
Recompiling PyCurl and linking against openssl fixes the issue:
[root]# aptitude install build-essential dpkg-dev
[root]# apt-get source python-pycurl
[root]# aptitude build-dep python-pycurl
[root]# aptitude install libcurl4-
[root]# cd pycurl-7.19.0
[root]# # perl -p -i -e "s/gnutls/openssl/" debian/control
[root]# dpkg-buildpackage -rfakeroot -b
[root]# cd ..
[root]# dpkg -i python-
# /etc/init.d/ganeti restart
* Restarting Ganeti cluster
* ganeti-confd... [ OK ]
* ganeti-rapi... [ OK ]
* ganeti-masterd... [ OK ]
* ganeti-noded... [ OK ]
* ganeti-noded... [ OK ]
* ganeti-masterd... [ OK ]
* ganeti-rapi... [ OK ]
* ganeti-confd... [ OK ]
root@node1:
Node DTotal DFree MTotal MNode MFree Pinst Sinst
node1.example.com 127.9G 127.9G 3.8G 381M 3.6G 0 0
Although during initialization still errors are logged in /var/log/
2012-03-26 07:18:53,879: gnt-cluster init pid=20274 INFO Using PycURL libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
2012-03-26 07:18:58,521: gnt-cluster init pid=20274 ERROR RPC error in version from node node1.example.com: Error 60: SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:
But the communication is successful.
Changed in ganeti (Ubuntu): | |
status: | Confirmed → Won't Fix |
importance: | Undecided → High |
status: | Won't Fix → Confirmed |
Status changed to 'Confirmed' because the bug affects multiple users.