Skip to content

Comments

[WIP] [3006.x] Initial re-do of changes for _sync_grains only affecting masterless minions#66737

Open
dmurphy18 wants to merge 2 commits intosaltstack:3006.xfrom
dmurphy18:fix_65027a
Open

[WIP] [3006.x] Initial re-do of changes for _sync_grains only affecting masterless minions#66737
dmurphy18 wants to merge 2 commits intosaltstack:3006.xfrom
dmurphy18:fix_65027a

Conversation

@dmurphy18
Copy link
Contributor

What does this PR do?

Ensures that grains are sync'd before loading grains and then compiling pillar, since there could be custom grains used in pillar files, which will throw rendering errors if not found, when in masterless mode on a salt-minion

Rework of accidentally closed PR 65792

What issues does this PR fix or reference?

Fixes: #65027

Previous Behavior

Would throw rendering errors if custom grains in salt://_grains were used in pillar files, salt-minion in masterless mode.

New Behavior

No rendering errors thrown if custom grains in salt://_grains were used in pillar files, and custom grains values available in pillar, and salt-minion in masterless mode.

Additional tests to be written ensuring use with a salt-master is unaffected.

Merge requirements satisfied?

[NOTICE] Bug fixes or features added to Salt require tests.

Commits signed with GPG?

Yes

Please review Salt's Contributing Guide for best practices, including the
PR Guidelines.

See GitHub's page on GPG signing for more information about signing commits with GPG.

@dmurphy18 dmurphy18 self-assigned this Jul 23, 2024
@dmurphy18 dmurphy18 requested a review from a team as a code owner July 23, 2024 15:46
@dmurphy18 dmurphy18 added this to the Sulfur v3006.10 milestone Aug 14, 2024
@dmurphy18 dmurphy18 added the test:slow Enable Slow Tests label Aug 14, 2024
@twangboy twangboy removed test:slow Enable Slow Tests test:pkg Run the package tests labels Jan 15, 2026
@twangboy twangboy removed the test:os:all Run Tests Against ALL OS'es label Jan 15, 2026
@twangboy twangboy linked an issue Jan 15, 2026 that may be closed by this pull request
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test:full Run the full test suite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] state.apply fails if pillar uses custom grain from _grains

3 participants