Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NAS-131370 / 25.04 / Fix post mount actions execution on system dataset setup #14567

Merged
merged 1 commit into from
Sep 27, 2024

Conversation

Qubad786
Copy link
Contributor

Problem

When system dataset is being migrated, if we have a pool from where it i being migrated - we are temporarily mounting it to another location before it is mounted at it's rightful place so we can copy over data.
However during this transition, we have post mount actions being executed which is not alright and can trigger different failures which in the case i ended up finding this was an issue related to netdata setup not being properly executed.

Solution

Ensure all post mount actions only when the system dataset is mounted at it's rightful place i.e /var/db/system. Additionally, permissions for ix-state directory in netdata are corrected if any exception occurs on the first time system tries to setup netdata.

@bugclerk
Copy link
Contributor

Jira label ignored, branch name already named after an existing ticket.

@bugclerk bugclerk changed the title Fix post mount actions execution on system dataset setup NAS-131370 / 25.04 / Fix post mount actions execution on system dataset setup Sep 24, 2024
@bugclerk
Copy link
Contributor

@Qubad786 Qubad786 added pending QA and removed jira labels Sep 24, 2024
@anodos325
Copy link
Contributor

Are there any concrete steps we can take to improve our CI for these behaviors?

@truenas truenas deleted a comment from bugclerk Sep 24, 2024
@yocalebo
Copy link
Contributor

Changes like this make me squirm. This can break failover on our HA. Have you run an entire CI run against an HA system?

@Qubad786
Copy link
Contributor Author

Are there any concrete steps we can take to improve our CI for these behaviors?

@anodos325 i'll push a new integration test for this ✅

@Qubad786 Qubad786 force-pushed the NAS-131190 branch 3 times, most recently from e9663bb to 4a58935 Compare September 25, 2024 00:40
@Qubad786 Qubad786 merged commit 8963ad4 into master Sep 27, 2024
3 checks passed
@Qubad786 Qubad786 deleted the NAS-131190 branch September 27, 2024 11:15
@bugclerk
Copy link
Contributor

This PR has been merged and conversations have been locked.
If you would like to discuss more about this issue please use our forums or raise a Jira ticket.

@truenas truenas locked as resolved and limited conversation to collaborators Sep 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants