eucalyptus-nc service fail to start at boot, cannot connect to libvirtd

Bug #364723 reported by Etienne Goyer
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
eucalyptus (Ubuntu)
Fix Released
Undecided
Unassigned
Jaunty
Won't Fix
High
Unassigned
Karmic
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: eucalyptus-nc

At boot, eucalyptus-nc service start-up spit out the following on the console:

Node Controller cannot be started: errors in /var/log/eucalytpus/euca_test_nc.log

/var/log/eucalytpus/euca_test_nc.log contains the following:

-------------------------------------------------------------------------------------------------------
ubuntu@canonical-nc:~$ cat /var/log/eucalyptus/euca_test_nc.log

This is perl, v5.10.0 built for x86_64-linux-gnu-thread-multi

Copyright 1987-2007, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

total_memory=3738
nr_cores=2
libvir: Remote error : unable to connect to '/var/run/libvirt/libvirt-sock': No such file or directory
libvirt error: unable to connect to '/var/run/libvirt/libvirt-sock': No such file or directory (code=38)
error: failed to connect to hypervisor
-------------------------------------------------------------------------------------------------------

It sounds like a timing issue. I see that all three services eucalyptus-nc, libvirtd and kvm starts at S20. I tried changing eucalyptus-nc to S25, but got the same error. Not sure how that would need to be resolved.

This was on Jaunty (obviously!) amd64, up-to-date as of today.

Revision history for this message
Soren Hansen (soren) wrote :

I presume restarting the node controller fixes it?

Starting eucalyptus at S20 is too early anyway. It really should be around S90 or something.

Revision history for this message
Etienne Goyer (etienne-goyer-outlands) wrote :

Yes indeed, /etc/init.d/eucalyptus-nc (re)start once the node controller is done booting work as expected.

Revision history for this message
Nilesh (lvnilesh) wrote :

at boot, jaunty server shows

Node Controller cannot be started: errors in /var/log/eucalytpus/euca_test_nc.log

my copy of /var/log/eucalytpus/euca_test_nc.log is below:

nilesh@asterisk:~$ cat /var/log/eucalyptus/euca_test_nc.log

This is perl, v5.10.0 built for x86_64-linux-gnu-thread-multi

Copyright 1987-2007, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

total_memory=3917
nr_cores=2
libvir: Remote error : unable to connect to '/var/run/libvirt/libvirt-sock': No such file or directory
libvirt error: unable to connect to '/var/run/libvirt/libvirt-sock': No such file or directory (code=38)
error: failed to connect to hypervisor
nilesh@asterisk:~$

Revision history for this message
Nilesh (lvnilesh) wrote :

Then I restart as below.

nilesh@asterisk:~$ sudo /etc/init.d/eucalyptus-nc restart
 * Restarting Eucalyptus Node Controller
Warning! Cannot find bridge xenbr0: instances may be without net

And look at the log again which show no issues this time.

nilesh@asterisk:~$ cat /var/log/eucalyptus/euca_test_nc.log

This is perl, v5.10.0 built for x86_64-linux-gnu-thread-multi

Copyright 1987-2007, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

total_memory=3917
nr_cores=2

Revision history for this message
Torsten Spindler (tspindler) wrote :

Changing the start order will have eucalyptus-nc start after a reboot:

$ sudo update-rc.d -f eucalyptus-nc remove
$ sudo update-rc.d eucalyptus-nc start 99 1 2 3 4 5 . stop 99 0 6 .

Revision history for this message
Etienne Goyer (etienne-goyer-outlands) wrote :

Nilesh, as of your second comment, you need to change the value of VNET_BRIDGE in /etc/eucalyptus/eucalyptus.conf on the node controllers.

Revision history for this message
Etienne Goyer (etienne-goyer-outlands) wrote :

This bug have been fixed in karmic. It should be SRUed for jaunty, or marked WONTFIX, as appropriate.

Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Per Etienne, marking fix released in Karmic.

I'll leave it open against Jaunty for now, in case an SRU is necessary, though I'd expect this is probably a "won't fix", please upgrade to Karmic situation.

:-Dustin

Changed in eucalyptus (Ubuntu Karmic):
status: New → Fix Released
Changed in eucalyptus (Ubuntu Jaunty):
status: New → Triaged
importance: Undecided → High
Revision history for this message
Clint Byrum (clint-fewbar) wrote :

Since Jaunty is EOL, closing Jaunty task as Won't Fix.

Changed in eucalyptus (Ubuntu Jaunty):
status: Triaged → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.