View Issue Details

IDProjectCategoryView StatusLast Update
0000746bareos-coredirectorpublic2019-07-02 16:17
ReporterMasanetz Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
PlatformX86_64OSGentoo Linux 
Product Version16.2.4 
Summary0000746: Status storage slots picks wrong storage daemon
DescriptionI have a configuration with two identical tape libraries (Scalari500_1 and Scalari500_2) on two storage daemons (Scalari500_1 at g8:9103 and Scalari500_2 at g8:9104).

'echo status storage=Scalari500_1 slots | bconsole' shows volumelist as expected.
'echo status storage=Scalari500_2 slots | bconsole' shows an error:
>> Connecting to Storage daemon Scalari500_1 at g8:9103 ...
>> 3999 Device "Scalari500_2" not found or could not be opened.

BUT: typing 'status storage=Scalari500_2' directly followed by 'status storage=Scalari500_2 slots' within the same bconsole session shows the expected volumelist.
and typing 'status storage=Scalari500_2' directly followed by 'status storage=Scalari500_1 slots' shows error:
>> Connecting to Storage daemon Scalari500_2 at g8:9104 ...
>> 3999 Device "Scalari500_1" not found or could not be opened.

Even 'status storage=File' followed by 'status storage slots' shows the error...
Additional InformationThe config worked with older version (15.2.2 ???)

Even changing Scalari500_2 to an other host did not work.
TagsNo tags attached.

Relationships

child of 0000794 closedstephand Release bareos-16.2.6 

Activities

Masanetz

Masanetz

2016-12-29 19:33

reporter  

storages.conf (524 bytes)
joergs

joergs

2017-06-08 15:21

developer   ~0002649

Fix committed to bareos bareos-16.2 branch with changesetid 7018.

Related Changesets

bareos: bareos-16.2 3d0a1a0a

2017-05-04 14:43

pstorz


Committer: joergs

Ported: N/A

Details Diff
bcommand: fix problems with multiple storages

Unfortunately, the storage abstraction layer introduced
some problems with storage handling when multiple storages
are defined.

The code that connects to the sd uses the storage stored in
ua->jcr->res.wstore, but not all code sets this to the currently
requested storage.

This patch fixes this problem by taking care that the
given storage is set as ua->jcr->res.wstore

Fixes 0000746: Status storage slots picks wrong storage daemon
Affected Issues
0000746
mod - src/dird/sd_cmds.c Diff File
mod - src/dird/ua_label.c Diff File
mod - src/dird/ua_purge.c Diff File
mod - src/dird/ua_status.c Diff File

Issue History

Date Modified Username Field Change
2016-12-29 19:33 Masanetz New Issue
2016-12-29 19:33 Masanetz File Added: storages.conf
2017-06-08 13:17 joergs Relationship added child of 0000794
2017-06-08 13:31 joergs Status new => resolved
2017-06-08 13:31 joergs Resolution open => fixed
2017-06-08 13:31 joergs Assigned To => joergs
2017-06-08 13:36 joergs Assigned To joergs =>
2017-06-08 15:21 joergs Changeset attached => bareos bareos-16.2 3d0a1a0a
2017-06-08 15:21 joergs Note Added: 0002649
2019-07-02 16:17 joergs Status resolved => closed