[pve-devel] new install : pvecm add fail, avec kernel upgrade (configfs.ko): Invalid module format

Alexandre DERUMIER aderumier at odiso.com
Fri Nov 16 11:00:44 CET 2012


seem to have hang at quorum start, so certificate don't have been generated

 # wait for quorum
            my $printqmsg = 1;
            while (!PVE::Cluster::check_cfs_quorum(1)) {
                if ($printqmsg) {
                    print "waiting for quorum...";
                    STDOUT->flush();
                    $printqmsg = 0;
                }
                sleep(1);
            }
            print "OK\n" if !$printqmsg;

            system("/etc/init.d/clvm start");

            print "generating node certificates\n";
            PVE::Cluster::gen_pve_node_files($nodename, $local_ip_address);

            print "merge known_hosts file\n";
            PVE::Cluster::ssh_merge_known_hosts($nodename, $local_ip_address, 1);



sub gen_pve_node_files {
    my ($nodename, $ip, $opt_force) = @_;

    gen_local_dirs($nodename);

    gen_auth_key();

    # make sure we have a (cluster wide) secret
    # for CSRFR prevention
    gen_pve_www_key();

    # make sure we have a (per node) private key
    gen_pve_ssl_key($nodename);

    # make sure we have a CA
    my $force = gen_pveca_cert();

    $force = 1 if $opt_force;

    gen_pve_ssl_cert($force, $nodename, $ip);
}


I'll try to do a script to correct it.

----- Mail original ----- 

De: "Alexandre DERUMIER" <aderumier at odiso.com> 
À: pve-devel at pve.proxmox.com 
Envoyé: Vendredi 16 Novembre 2012 10:52:01 
Objet: [pve-devel] new install : pvecm add fail, avec kernel upgrade (configfs.ko): Invalid module format 

Hi, I have just installed a new node from last proxmox 2.2 cd. 

Then update last packages from stable repo (with 2.6.32-16-pve update) 

then add node to cluster 


# pvecm add 10.3.94.53 
The authenticity of host '10.3.94.53 (10.3.94.53)' can't be established. 
RSA key fingerprint is 71:09:01:f5:39:9a:81:79:e6:4e:17:2d:9f:33:27:6b. 
Are you sure you want to continue connecting (yes/no)? yes 
root at 10.3.94.53's password: 
copy corosync auth key 
stopping pve-cluster service 
Stopping pve cluster filesystem: pve-cluster. 
backup old database 
Starting pve cluster filesystem : pve-clustercan't create shared ssh key database '/etc/pve/priv/authorized_keys' 
. 
Starting cluster: 
Checking if cluster has been disabled at boot... [ OK ] 
Checking Network Manager... [ OK ] 
Global setup... [ OK ] 
Loading kernel modules... FATAL: Error inserting configfs (/lib/modules/2.6.32-16-pve/kernel/fs/configfs/configfs.ko): Invalid module format 
[FAILED] 
waiting for quorum... 




seem to fail because configfs.ko has been updated with apt-get update. 
(maybe do you need to warn user, to add node to cluster before doing updates ?) 




I have try to reboot the node, but apache doesn't start 

SSLCertificateFile: file '/etc/pve/local/pve-ssl.pem' does not exist or is empty 

Any idea to fix this ? 

_______________________________________________ 
pve-devel mailing list 
pve-devel at pve.proxmox.com 
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel 



More information about the pve-devel mailing list