nova-volume volume creation fails, tgt config not loaded

Bug #1060422 reported by Adam Gandelman
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nova (Ubuntu)
Fix Released
Undecided
Adam Gandelman

Bug Description

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

Changed in nova (Ubuntu):
assignee: nobody → Adam Gandelman (gandelman-a)
status: New → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package nova - 2012.2-0ubuntu3

---------------
nova (2012.2-0ubuntu3) quantal; urgency=low

  * nova-xvpvncproxy, nova-novncproxy: Add missing .install, .logrotate,
    .postrm, manpages and upstart jobs (LP: #1060336)
  * debian/{rules, nova-volume.install}: Rename nova_tgt to nova_tgt.conf so
    that it is actually loaded by tgt. (LP: #1060422)
 -- Adam Gandelman <email address hidden> Tue, 02 Oct 2012 13:44:35 -0700

Changed in nova (Ubuntu):
status: In Progress → Fix Released
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.