tgt-admin fails to read configuration

Bug #1073287 reported by gadLinux
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tgt (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

Hello,

It seems that configuration fails to read files inside the /var/lib/maas/ephemeral/tgt.conf.d/ directory.

I was looking around and seems it's a globbing problem of the python library.

I updated config to include the exact *.conf files and with this change everything works.
I installed the MAAS server from the quantal distribution.

Linux red-controller 3.5.0-17-generic #28-Ubuntu SMP Tue Oct 9 19:32:08 UTC 2012 i686 i686 i686 GNU/Linux

Any help on this?

------

root@red-controller:~# tgt-admin -e
Config::General The file "/var/lib/maas/ephemeral/tgt.conf.d/*.conf" does not exist within ConfigPath: /etc/tgt! at /usr/sbin/tgt-admin line 172

It also failed when updating images:

sudo maas-import-pxe-files
...

2012-10-30 19:01:13 (496 KB/s) - “/var/lib/maas/ephemeral/.working/maas-import-ephemerals.w1pEFy/quantal/amd64/dist.tar.gz” guardado [291203883/291203883]

Target iqn.2004-05.com.ubuntu:maas:maas-quantal-12.10-amd64-ephemeral-20121017 is currently not configured
and does not exist in the config file - can't continue!
failed tgt-admin add for maas-quantal-12.10-amd64-ephemeral-20121017

This bug is reported here:
https://bugs.launchpad.net/maas/+bug/1073276

Revision history for this message
Kurt Huwig (k-huwig-f) wrote :

This also happens when using openstack cinder. Replacing the "*.conf" by "*" fixes the issue

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Could you please show the exact configuration files when working and not working? In which file did the "*.conf" not work? Certainly the inclusion of /etc/tgt/conf.d/*.conf from /etc/tgt/targets.conf seems to be working (just tested under quantal).

Changed in tgt (Ubuntu):
importance: Undecided → Medium
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for tgt (Ubuntu) because there has been no activity for 60 days.]

Changed in tgt (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Steve Baker (steve-stevebaker) wrote :

I've reopened this as it still affects Fedora 18

Changed in tgt (Ubuntu):
status: Expired → New
Revision history for this message
Steve Baker (steve-stevebaker) wrote :

Sorry, wrong bug.

Changed in tgt (Ubuntu):
status: New → Invalid
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.