I have linked branches for an SRU for grizzly and horizon. Please review
when you get a chance. Thanks!

** Branch linked: lp:~arges/nova/fix-lp907152-grizzly

** Branch linked: lp:~arges/nova/fix-lp907152-havana

** Changed in: nova (Ubuntu Raring)
       Status: Confirmed => In Progress

** Changed in: nova (Ubuntu Raring)
   Importance: Undecided => Medium

** Changed in: nova (Ubuntu Saucy)
   Importance: Undecided => Medium

** Changed in: nova (Ubuntu Raring)
     Assignee: (unassigned) => Chris J Arges (arges)

** Changed in: nova (Ubuntu Saucy)
       Status: Confirmed => In Progress

** Changed in: nova (Ubuntu Saucy)
     Assignee: (unassigned) => Chris J Arges (arges)

** Description changed:

+ SRU Justification:
+ [Impact]
+ * If nova-compute tries to start before libvirt-bin is up it will fail. And 
result in the above error.
+ 
+ [Test Case]
+ * Execute the following commands:
+   sudo apt-get install -y python-software-properties
+   sudo add-apt-repository cloud-archive:grizzly
+   sudo apt-get update
+   sudo apt-get install -y nova-compute
+ 
+   sudo stop nova-compute
+   sudo stop libvirt-bin
+ 
+   # simulate that libvirt-bin starts after nova-compute is running
+   sudo start nova-compute
+   sleep 5
+ 
+    sudo status nova-compute
+   # expected result:
+   # start/running
+   # actual result:
+   # stop/waiting
+ 
+ [Regression Potential]
+ * This is a modification to the upstart script, and is currently commited in 
icehouse.
+ 
+ --
+ 
  It looks like there is a race condition between nova-compute-kvm and
  libvirt. We should move the init script into nova-compute-kvm and add a
  dependency on libvirt.  I'll see about updating the package to handle
  this
  
  ---
  
  2011-12-20 21:56:47,255 CRITICAL nova [-] unable to connect to 
'/var/run/libvirt/libvirt-sock', libvirtd may need to be started: No such file 
or directory
  (nova): TRACE: Traceback (most recent call last):
  (nova): TRACE:   File "/usr/bin/nova-compute", line 49, in <module>
  (nova): TRACE:     service.wait()
  (nova): TRACE:   File "/usr/lib/pymodules/python2.6/nova/service.py", line 
357, in wait
  (nova): TRACE:     _launcher.wait()
  (nova): TRACE:   File "/usr/lib/pymodules/python2.6/nova/service.py", line 
107, in wait
  (nova): TRACE:     service.wait()
  (nova): TRACE:   File "/usr/lib/pymodules/python2.6/eventlet/greenthread.py", 
line 166, in wait
  (nova): TRACE:     return self._exit_event.wait()
  (nova): TRACE:   File "/usr/lib/pymodules/python2.6/eventlet/event.py", line 
116, in wait
  (nova): TRACE:     return hubs.get_hub().switch()
  (nova): TRACE:   File "/usr/lib/pymodules/python2.6/eventlet/hubs/hub.py", 
line 177, in switch
  (nova): TRACE:     return self.greenlet.switch()
  (nova): TRACE:   File "/usr/lib/pymodules/python2.6/eventlet/greenthread.py", 
line 192, in main
  (nova): TRACE:     result = function(*args, **kwargs)
  (nova): TRACE:   File "/usr/lib/pymodules/python2.6/nova/service.py", line 
77, in run_server
  (nova): TRACE:     server.start()
  (nova): TRACE:   File "/usr/lib/pymodules/python2.6/nova/service.py", line 
149, in start
  (nova): TRACE:     self.manager.update_available_resource(ctxt)
  (nova): TRACE:   File "/usr/lib/pymodules/python2.6/nova/exception.py", line 
129, in wrapped
  (nova): TRACE:     raise Error(str(e))
  (nova): TRACE: Error: unable to connect to '/var/run/libvirt/libvirt-sock', 
libvirtd may need to be started: No such file or directory
  (nova): TRACE:

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to nova in Ubuntu.
https://bugs.launchpad.net/bugs/907152

Title:
  Error: unable to connect to '/var/run/libvirt/libvirt-sock', libvirtd
  may need to be started: No such file or directory

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nova/+bug/907152/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to