View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001546 | bareos-core | bconsole | public | 2023-06-28 08:44 | 2023-06-28 12:17 |
Reporter | evert | Assigned To | arogge | ||
Priority | low | Severity | minor | Reproducibility | always |
Status | closed | Resolution | no change required | ||
Platform | Linux | OS | Debian | OS Version | 12 |
Product Version | 22.1.0 | ||||
Summary | 0001546: bconsole has missing info when I request status of tape storage | ||||
Description | When I go to status -> storage -> tape, I get: [snip] Device "tapedrive-0" (/dev/nst0) is mounted with: Volume: AAF274L9 Pool: *unknown* Media type: LTO Slot 5 is loaded in drive 0. Total Bytes Read=0 Blocks Read=0 Bytes/block=0 Positioned at File=0 Block=0 [snip] However, when I enter 'list volumes pool=Incremental', I get: +---------+------------------+-----------+---------+----------------+----------+--------------+---------+------+-----------+-----------+---------------------+---------+ | mediaid | volumename | volstatus | enabled | volbytes | volfiles | volretention | recycle | slot | inchanger | mediatype | lastwritten | storage | +---------+------------------+-----------+---------+----------------+----------+--------------+---------+------+-----------+-----------+---------------------+---------+ | 2 | Incremental-0002 | Append | 1 | 24,441,998 | 0 | 2,592,000 | 1 | 0 | 0 | File | 2023-06-27 21:00:00 | File | | 5 | AAF274L9 | Append | 1 | 44,477,346,816 | 51 | 2,592,000 | 1 | 5 | 1 | LTO | 2023-06-27 22:51:18 | Tape | +---------+------------------+-----------+---------+----------------+----------+--------------+---------+------+-----------+-----------+---------------------+---------+ | ||||
Steps To Reproduce | bconsole status -> storage -> tape compare to: list volumes pool=Incremental | ||||
Tags | bconsole | ||||
what information exactly are you missing? Running "status storage" gives runtime information from the SD. In contrast "list volumes" provides information from the catalog. |
|
Whoops, I forgot to mention... The status storage lists AAF274L9 as being pool 'Unknown', whereas 'list volumes' knows that it's in pool Incremental. Shouldn't 'status storage' know this as well? |
|
Not neccessarily. The SD doesn't really "know" about pools (unless the director told it something). If - for example - the SD is started with a volume mounted it will determine the volume name (by simply reading its volume label), but it won't be able to determine the pool, as that information is in the catalog on the director only. Thus the SD will show the pool as "unknown". |
|
Hmm, ok. But then why show 'Pool: *unknown*' in the first place if the SD never knows the pool anyway? Isn't it less confusing to simply omit the line? | |
I think there are situations where the SD knows the pool, but tbh I'm not sure about that. Feel free to open a pull request for that change. Should be rather trivial. |
|
That would be a bit outside my skill set, so I think I'll pass � Thanks for the swift and enlightening replies. |
|
I'll close the issue, feel free to reopen it if something related comes up. | |
Date Modified | Username | Field | Change |
---|---|---|---|
2023-06-28 08:44 | evert | New Issue | |
2023-06-28 08:44 | evert | Tag Attached: bconsole | |
2023-06-28 10:04 | arogge | Assigned To | => arogge |
2023-06-28 10:04 | arogge | Status | new => feedback |
2023-06-28 10:04 | arogge | Note Added: 0005105 | |
2023-06-28 10:09 | evert | Note Added: 0005106 | |
2023-06-28 10:09 | evert | Status | feedback => assigned |
2023-06-28 10:16 | arogge | Status | assigned => feedback |
2023-06-28 10:16 | arogge | Note Added: 0005107 | |
2023-06-28 11:47 | evert | Note Added: 0005108 | |
2023-06-28 11:47 | evert | Status | feedback => assigned |
2023-06-28 11:48 | arogge | Note Added: 0005109 | |
2023-06-28 11:52 | evert | Note Added: 0005110 | |
2023-06-28 12:17 | arogge | Status | assigned => resolved |
2023-06-28 12:17 | arogge | Resolution | open => no change required |
2023-06-28 12:17 | arogge | Note Added: 0005111 | |
2023-06-28 12:17 | arogge | Status | resolved => closed |