Public bug reported:

Commit @ https://review.openstack.org/#/c/13633/ removes the explicit 
specification of volume config files to tgt-admin, and instead relies in tgt's 
configuration being set to find those config files in the appropriate place 
(nova's volumes directory).  We've been shipping a file in /etc/tgt/nova_tgt to 
specify this directory and import all configs there, but it appears that it is 
not actually picking them up.  With the --conf flag now removed, volume 
creation fails with tracebacks such as:


2012-10-02 15:23:07 CRITICAL nova [-] Resource could not be found.
2012-10-02 15:23:07 TRACE nova Traceback (most recent call last):
2012-10-02 15:23:07 TRACE nova   File "/usr/bin/nova-volume", line 48, in 
<module>
2012-10-02 15:23:07 TRACE nova     service.wait()
2012-10-02 15:23:07 TRACE nova   File 
"/usr/lib/python2.7/dist-packages/nova/service.py", line 659, in wait
2012-10-02 15:23:07 TRACE nova     _launcher.wait()
2012-10-02 15:23:07 TRACE nova   File 
"/usr/lib/python2.7/dist-packages/nova/service.py", line 192, in wait
2012-10-02 15:23:07 TRACE nova     super(ServiceLauncher, self).wait()
2012-10-02 15:23:07 TRACE nova   File 
"/usr/lib/python2.7/dist-packages/nova/service.py", line 162, in wait
2012-10-02 15:23:07 TRACE nova     service.wait()
2012-10-02 15:23:07 TRACE nova   File 
"/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line 166, in wait
2012-10-02 15:23:07 TRACE nova     return self._exit_event.wait()
2012-10-02 15:23:07 TRACE nova   File 
"/usr/lib/python2.7/dist-packages/eventlet/event.py", line 116, in wait
2012-10-02 15:23:07 TRACE nova     return hubs.get_hub().switch()
2012-10-02 15:23:07 TRACE nova   File 
"/usr/lib/python2.7/dist-packages/eventlet/hubs/hub.py", line 177, in switch
2012-10-02 15:23:07 TRACE nova     return self.greenlet.switch()
2012-10-02 15:23:07 TRACE nova   File 
"/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line 192, in main
2012-10-02 15:23:07 TRACE nova     result = function(*args, **kwargs)
2012-10-02 15:23:07 TRACE nova   File 
"/usr/lib/python2.7/dist-packages/nova/service.py", line 132, in run_server
2012-10-02 15:23:07 TRACE nova     server.start()
2012-10-02 15:23:07 TRACE nova   File 
"/usr/lib/python2.7/dist-packages/nova/service.py", line 398, in start
2012-10-02 15:23:07 TRACE nova     self.manager.init_host()
2012-10-02 15:23:07 TRACE nova   File 
"/usr/lib/python2.7/dist-packages/nova/volume/manager.py", line 105, in 
init_host
2012-10-02 15:23:07 TRACE nova     self.driver.ensure_export(ctxt, volume)
2012-10-02 15:23:07 TRACE nova   File 
"/usr/lib/python2.7/dist-packages/nova/volume/driver.py", line 337, in 
ensure_export
2012-10-02 15:23:07 TRACE nova     check_exit_code=False)
2012-10-02 15:23:07 TRACE nova   File 
"/usr/lib/python2.7/dist-packages/nova/volume/iscsi.py", line 148, in 
create_iscsi_target
2012-10-02 15:23:07 TRACE nova     raise exception.NotFound()
2012-10-02 15:23:07 TRACE nova NotFound: Resource could not be found.
2012-10-02 15:23:07 TRACE nova

** Affects: nova (Ubuntu)
     Importance: Undecided
     Assignee: Adam Gandelman (gandelman-a)
         Status: In Progress

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

** Changed in: nova (Ubuntu)
     Assignee: (unassigned) => Adam Gandelman (gandelman-a)

-- 
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/1060422

Title:
  nova-volume volume creation fails, tgt config not loaded

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nova/+bug/1060422/+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