Skip to content

CFE-3366: gate storage promise fstab edits and mount point creation on the promise action - #6344

Open
nickanderson wants to merge 2 commits into
cfengine:masterfrom
nickanderson:CFE-3366/master
Open

CFE-3366: gate storage promise fstab edits and mount point creation on the promise action#6344
nickanderson wants to merge 2 commits into
cfengine:masterfrom
nickanderson:CFE-3366/master

Conversation

@nickanderson

Copy link
Copy Markdown
Member

A storage promise with edit_fstab rewrote /etc/fstab and created its mount
point even under action_policy => "warn" or --dry-run, reporting a repair it
did not make. Both are now gated on MakingInternalChanges(), matching what
mount, unmount and remount already do.

Each edit is now gated on MakingInternalChanges(), matching mount,
unmount and the remount reconciliation.

Ticket: CFE-3366
Changelog: Title
…n-only

A mount promise created its mount point with MakeParentDirectory()
before consulting the promise action, so action_policy => "warn" and
--dry-run both left a directory behind on a run that was supposed to
change nothing.

The directory is now created only when MakingInternalChanges() allows
it.

Ticket: CFE-3366
Changelog: Title
@nickanderson

Copy link
Copy Markdown
Member Author

@cf-bottom jenkins, please

@cf-bottom

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants