Skip to content

Ops user changes should be rolled back when attempt at VCH reconfigure fails #7814

@jzt

Description

@jzt

User Statement:

As a user, when I attempt to change ops user permissions during a vic-machine configure, I would expect those changes to be rolled back in the event of a failure.

Details:

Currently, an attempt to use vic-machine configure to grant permissions to an ops user does not work (see issue #7725, and fix #7777). Even with this fix, there exists a scenario in which changes to the ops user during a failing vic-machine configure persist even after a rollback is executed. Logic to undo changes to the ops user permissions should be added to the rollback step.

Acceptance Criteria:

  • rollback includes logic to undo any changes to the ops user that were present during a failed attempt at vic-machine configure
  • integration/unit tests to exercise this rollback logic

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions