Skip to content

Hardcoded DEVICE_PREFIX name for GCP Provider #1133

@ajrajkumar

Description

@ajrajkumar

When taking a snapshot backup using barman_cloud_backup of the GCP VM, it fails with the following error

WARNING: Error resolving mount point: Could not find device /dev/disk/by-id/goodle-x-prod-small-x-disk1-160241 at any mount point
ERROR: Barman cloud backup exception: Cannot find disks mounted on compute instance x-prod-small-x

It seems like the DEVICE_PREFIX is harcoded in
https://github.com/EnterpriseDB/barman/blob/master/barman/cloud_providers/google_cloud_storage.py#L405

But in the current VM , the device names are different ( persistent disk)

/dev/disk/by-id/scsi-0Google_PersistenDisk-x-prod-small-x-disk1-160241

Is there any other workaround for this issue. Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions