View Issue Details

IDProjectCategoryView StatusLast Update
0000174bareos-corestorage daemonpublic2015-03-25 19:18
Reporterpstorz Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
PlatformLinuxOSanyOS Version3
Fixed in Version12.4.5 
Summary0000174: "Status slots"says "0 slots" the first time after tapes were removed. Rerunning "status slots" then is correct.
DescriptionWhen removing tapes from a library, the first status slots afterwards says 0 slots.
The second call is successful then.

Maybe we could rerun the "status slots" call of mtx-changer once when 0 slots are reported.
TagsNo tags attached.

Activities

pstorz

pstorz

2013-05-10 11:57

administrator   ~0000406

Debug output:

bacula-sd: dircmd.c:233-0 <dird: autochanger slots Drive-1
bacula-sd: autochanger.c:630-0 <stored: slots=mtx: Request Sense: Long Report=yes
pstorz

pstorz

2013-05-10 13:30

administrator   ~0000407

Looks like the first call fails partly, the import/export is not shown:

mtx -f /dev/sg3 status
mtx: Request Sense: Long Report=yes
mtx: Request Sense: Valid Residual=no
mtx: Request Sense: Error Code=70 (Current)
mtx: Request Sense: Sense Key=Unit Attention
mtx: Request Sense: FileMark=no
mtx: Request Sense: EOM=no
mtx: Request Sense: ILI=no
mtx: Request Sense: Additional Sense Code = 28
mtx: Request Sense: Additional Sense Qualifier = 01
mtx: Request Sense: BPV=no
mtx: Request Sense: Error in CDB=no
mtx: Request Sense: SKSV=no
Mode sense (0x1A) for Page 0x1D failed
  Storage Changer /dev/sg3:1 Drives, 36 Slots ( 0 Import/Export )
Data Transfer Element 0:Full (Storage Element 8 Loaded):VolumeTag = A00040L4
      Storage Element 1:Full :VolumeTag=A00036L4
      Storage Element 2:Full :VolumeTag=A00017L4
      Storage Element 3:Full :VolumeTag=A00032L4
      Storage Element 4:Full :VolumeTag=A00023L4
      Storage Element 5:Full :VolumeTag=A00029L4
      Storage Element 6:Full :VolumeTag=A00033L4
      Storage Element 7:Full :VolumeTag=A00037L4
      Storage Element 8:Empty
      Storage Element 9:Full :VolumeTag=A00039L4
      Storage Element 10:Full :VolumeTag=A00015L4
      Storage Element 11:Full :VolumeTag=A00031L4
      Storage Element 12:Full :VolumeTag=A00022L4
      Storage Element 13:Full :VolumeTag=A00014L4
      Storage Element 14:Full :VolumeTag=A00006L4
      Storage Element 15:Full :VolumeTag=A00008L4
      Storage Element 16:Full :VolumeTag=A00019L4
      Storage Element 17:Full :VolumeTag=A00030L4
      Storage Element 18:Empty
      Storage Element 19:Full :VolumeTag=A00016L4
      Storage Element 20:Full :VolumeTag=A00007L4
      Storage Element 21:Full :VolumeTag=A00005L4
      Storage Element 22:Empty
      Storage Element 23:Full :VolumeTag=A00012L4
      Storage Element 24:Full :VolumeTag=A00020L4
      Storage Element 25:Full :VolumeTag=A00002L4
      Storage Element 26:Empty
      Storage Element 27:Full :VolumeTag=A00021L4
      Storage Element 28:Full :VolumeTag=A00035L4
      Storage Element 29:Full :VolumeTag=A00013L4
      Storage Element 30:Full :VolumeTag=A00004L4
      Storage Element 31:Empty
      Storage Element 32:Empty
      Storage Element 33:Full :VolumeTag=A00009L4
      Storage Element 34:Empty
      Storage Element 35:Empty
      Storage Element 36:Full


The next call is successful:

mtx -f /dev/sg3 status
  Storage Changer /dev/sg3:1 Drives, 39 Slots ( 3 Import/Export )
Data Transfer Element 0:Full (Storage Element 8 Loaded):VolumeTag = A00040L4
      Storage Element 1:Full :VolumeTag=A00036L4
      Storage Element 2:Full :VolumeTag=A00017L4
      Storage Element 3:Full :VolumeTag=A00032L4
      Storage Element 4:Full :VolumeTag=A00023L4
      Storage Element 5:Full :VolumeTag=A00029L4
      Storage Element 6:Full :VolumeTag=A00033L4
      Storage Element 7:Full :VolumeTag=A00037L4
      Storage Element 8:Empty
      Storage Element 9:Full :VolumeTag=A00039L4
      Storage Element 10:Full :VolumeTag=A00015L4
      Storage Element 11:Full :VolumeTag=A00031L4
      Storage Element 12:Full :VolumeTag=A00022L4
      Storage Element 13:Full :VolumeTag=A00014L4
      Storage Element 14:Full :VolumeTag=A00006L4
      Storage Element 15:Full :VolumeTag=A00008L4
      Storage Element 16:Full :VolumeTag=A00019L4
      Storage Element 17:Full :VolumeTag=A00030L4
      Storage Element 18:Empty
      Storage Element 19:Full :VolumeTag=A00016L4
      Storage Element 20:Full :VolumeTag=A00007L4
      Storage Element 21:Full :VolumeTag=A00005L4
      Storage Element 22:Empty
      Storage Element 23:Full :VolumeTag=A00012L4
      Storage Element 24:Full :VolumeTag=A00020L4
      Storage Element 25:Full :VolumeTag=A00002L4
      Storage Element 26:Empty
      Storage Element 27:Full :VolumeTag=A00021L4
      Storage Element 28:Full :VolumeTag=A00035L4
      Storage Element 29:Full :VolumeTag=A00013L4
      Storage Element 30:Full :VolumeTag=A00004L4
      Storage Element 31:Empty
      Storage Element 32:Empty
      Storage Element 33:Full :VolumeTag=A00009L4
      Storage Element 34:Empty
      Storage Element 35:Empty
      Storage Element 36:Full
      Storage Element 37 IMPORT/EXPORT:Empty
      Storage Element 38 IMPORT/EXPORT:Empty
      Storage Element 39 IMPORT/EXPORT:Empty
mvwieringen

mvwieringen

2013-05-18 11:15

developer   ~0000430

Essential this is a bug in the firmware as on a SCSI inquiry for the element
status the library trows an error. So this should also be logged as bug
with Tandberg. Other then that we can of course add one retry to see if
we then get a better number of slots as 0 slots is not really an valid
answer for any autochanger.
mvwieringen adm

mvwieringen adm

2013-08-13 03:12

administrator   ~0000578

Fix committed to bareos bareos-13.2 branch with changesetid 1044.
pstorz

pstorz

2013-09-06 16:55

administrator   ~0000660

Tested on 12.4.5 and works.
mvwieringen

mvwieringen

2015-03-25 16:51

developer   ~0001368

Fix committed to bareos2015 bareos-14.2 branch with changesetid 5106.
joergs

joergs

2015-03-25 19:18

developer   ~0001524

Due to the reimport of the Github repository to bugs.bareos.org, the status of some tickets have been changed. These tickets will be closed again.
Sorry for the noise.

Related Changesets

bareos: master 3f643806

2013-07-04 15:45

mvwieringen adm

Ported: N/A

Details Diff
Retry autochanger query for slots

In essence this is a bug in the firmware but it seems there are quite
some libraries which seem to be affected. We now retry the query one
more time when we get a zero slots returned.

Fixes 0000174: "status slots" says "0 slots" the first time after tapes
were removed. Rerunning "status slots" then is correct.
Affected Issues
0000174
mod - src/stored/autochanger.c Diff File

bareos: bareos-12.4 f85185de

2013-07-04 15:45

mvwieringen adm

Ported: N/A

Details Diff
Retry autochanger query for slots

In essence this is a bug in the firmware but it seems there are quite
some libraries which seem to be affected. We now retry the query one
more time when we get a zero slots returned.

Fixes 0000174: "status slots" says "0 slots" the first time after tapes
were removed. Rerunning "status slots" then is correct.
Affected Issues
0000174
mod - src/stored/autochanger.c Diff File

bareos: bareos-13.2 b48b1061

2013-07-04 15:45

mvwieringen adm

Ported: N/A

Details Diff
Retry autochanger query for slots

In essence this is a bug in the firmware but it seems there are quite
some libraries which seem to be affected. We now retry the query one
more time when we get a zero slots returned.

Fixes 0000174: "status slots" says "0 slots" the first time after tapes
were removed. Rerunning "status slots" then is correct.
Affected Issues
0000174
mod - src/stored/autochanger.c Diff File

bareos2015: bareos-12.4 cd5e5302

2013-07-04 17:45

mvwieringen

Ported: N/A

Details Diff
Retry autochanger query for slots

In essence this is a bug in the firmware but it seems there are quite
some libraries which seem to be affected. We now retry the query one
more time when we get a zero slots returned.

Fixes 0000174: "status slots" says "0 slots" the first time after tapes
were removed. Rerunning "status slots" then is correct.
Affected Issues
0000174
mod - src/stored/autochanger.c Diff File

bareos2015: bareos-13.2 aabf1aab

2013-07-04 17:45

mvwieringen

Ported: N/A

Details Diff
Retry autochanger query for slots

In essence this is a bug in the firmware but it seems there are quite
some libraries which seem to be affected. We now retry the query one
more time when we get a zero slots returned.

Fixes 0000174: "status slots" says "0 slots" the first time after tapes
were removed. Rerunning "status slots" then is correct.
Affected Issues
0000174
mod - src/stored/autochanger.c Diff File

bareos2015: bareos-14.2 754e7155

2013-07-04 17:45

mvwieringen

Ported: N/A

Details Diff
Retry autochanger query for slots

In essence this is a bug in the firmware but it seems there are quite
some libraries which seem to be affected. We now retry the query one
more time when we get a zero slots returned.

Fixes 0000174: "status slots" says "0 slots" the first time after tapes
were removed. Rerunning "status slots" then is correct.
Affected Issues
0000174
mod - src/stored/autochanger.c Diff File

Issue History

Date Modified Username Field Change
2013-05-10 10:31 pstorz New Issue
2013-05-10 11:57 pstorz Note Added: 0000406
2013-05-10 13:30 pstorz Note Added: 0000407
2013-05-17 16:08 maik Status new => confirmed
2013-05-18 11:15 mvwieringen Note Added: 0000430
2013-07-04 15:45 mvwieringen Assigned To => mvwieringen
2013-07-04 15:45 mvwieringen Status confirmed => assigned
2013-07-04 15:50 mvwieringen Changeset attached => bareos master 7bcf5626
2013-07-04 15:50 mvwieringen Status assigned => resolved
2013-07-04 15:50 mvwieringen Resolution open => fixed
2013-07-12 17:06 mvwieringen Changeset attached => bareos bareos-12.4 d580f685
2013-07-12 17:06 mvwieringen Changeset attached => bareos bareos-13.2 ad93f51b
2013-08-13 03:12 mvwieringen adm Changeset attached => bareos master 3f643806
2013-08-13 03:12 mvwieringen adm Changeset attached => bareos bareos-12.4 f85185de
2013-08-13 03:12 mvwieringen adm Changeset attached => bareos bareos-13.2 b48b1061
2013-08-13 03:12 mvwieringen adm Note Added: 0000578
2013-08-13 03:12 mvwieringen adm Assigned To mvwieringen => mvwieringen adm
2013-09-06 16:35 maik Fixed in Version => 12.4.5
2013-09-06 16:55 pstorz Note Added: 0000660
2013-09-06 16:55 pstorz Status resolved => closed
2013-09-06 16:55 pstorz Assigned To mvwieringen adm =>
2015-03-25 16:51 mvwieringen Changeset attached => bareos2015 bareos-12.4 cd5e5302
2015-03-25 16:51 mvwieringen Changeset attached => bareos2015 bareos-13.2 aabf1aab
2015-03-25 16:51 mvwieringen Changeset attached => bareos2015 bareos-14.2 754e7155
2015-03-25 16:51 mvwieringen Note Added: 0001368
2015-03-25 16:51 mvwieringen Status closed => resolved
2015-03-25 19:18 joergs Note Added: 0001524
2015-03-25 19:18 joergs Status resolved => closed