Skip to content

bug: rollback reports an error even if the action is successful #597

Description

@johann-pfefferl

I use the mtda storage setup in COW (copy on write) mode. My storage configurations looks like this

[storage]
variant=usbf
device = /dev/disk/by-partlabel/device
cow = /dev/disk/by-partlabel/cow

If I do trigger a rollback action on the storage like this

set -e -x
mtda-cli target off
mtda-cli storage host
mtda-cli storage rollback || :
mtda-cli storage target
mtda-cli target on

I have to catch the error in line 4 of the script. I get the following error message

could not rollback changes made to shared storage!

But if I ignore this error and simply continue the process the rollback seems to be OK.

So somewhere there is a mismatch between the action and the return code.

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