Skip to content

Director should not create volume record if storage daemon fails to label the volume #1804

@arogge

Description

@arogge

Bareos component version

current / 23.0.2 and probably every older version

Steps to reproduce

  1. set up an SD with File backend pointing to a non-existent directory
  2. autolabel a volume on that SD

Expected results

Getting an error message from the Storage and no Volume record in the media table.

Actual results

Error message from the Storage is there, but the Director already created a volume record in the catalog for a volume that could not be labeled.

Environment

No response

Relevant log output

No response

Relevant traces output

No response

Anything else?

https://bugs.bareos.org/view.php?id=1598

Metadata

Metadata

Labels

bugThis addresses a bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions