maas-import-ephemerals fails if tgt not running

Bug #1074342 reported by Scott Moser
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Invalid
High
Unassigned

Bug Description

$ sudo maas-import-ephemerals -v
precise/amd64: updating [maas-precise-12.04-amd64-ephemeral-20121008]
downloading maas-precise-12.04-amd64-ephemeral-20121008 from https://maas.ubuntu.com/images/ephemeral/releases/precise/release-20121008/precise-ephemeral-maas-amd64.tar.gz
..
254976K ........ ........ ........ ........ ........ ........ 97% 5.42M 1s
258048K ........ ........ ........ ........ ........ ........ 98% 5.39M 1s
261120K ........ ........ ........ ........ ........ ........ 99% 5.38M 0s
264192K ........ ........ ........ .. 100% 4.57M=49s

2012-11-02 12:38:40 (5.29 MB/s) - `/var/lib/maas/ephemeral/.working/maas-import-ephemerals.hs9UWS/precise/amd64/dist.tar.gz' saved [272250525/272250525]

extracting tarball
adding images for precise/amd64/generic to maas
tgtadm: can't send the request to the tgt daemon, Transport endpoint is not connected
tgtadm: can't send the request to the tgt daemon, Transport endpoint is not connected
tgtadm: can't send the request to the tgt daemon, Transport endpoint is not connected
tgtadm: can't send the request to the tgt daemon, Transport endpoint is not connected
tgtadm: can't send the request to the tgt daemon, Transport endpoint is not connected
Command:
        tgtadm -C 0 --lld iscsi --op new --mode target --tid 1 -T iqn.2004-05.com.ubuntu:maas:maas-precise-12.04-amd64-ephemeral-20121008
exited with code: 107.
tgtadm: can't send the request to the tgt daemon, Transport endpoint is not connected
failed tgt-admin add for maas-precise-12.04-amd64-ephemeral-20121008

This is bad, and it throws away the downloaded content.
This needs better handling one way or another.

Tags: m-i-p-f
Changed in maas:
status: New → Triaged
importance: Undecided → High
Revision history for this message
Gavin Panella (allenap) wrote :

Do you know why tgt wasn't running? Is /that/ a bug too, or had you simply stopped it?

Revision history for this message
Julian Edwards (julian-edwards) wrote :

Maybe it should just start the daemon?

tags: added: m-i-p-f
Revision history for this message
Julian Edwards (julian-edwards) wrote :

When the Python rewrite happens, we should ensure any pre-requisites like this are already up and running before attempting long downloads.

Changed in maas:
milestone: none → 13.10
Changed in maas:
milestone: 13.10 → 14.04
Changed in maas:
milestone: 14.04 → 14.10
Changed in maas:
milestone: 1.6.0 → none
Changed in maas:
status: Triaged → 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.