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

Pillars passed from command-line override pillar subtrees instead of merging #33647

Closed
closepin opened this issue May 31, 2016 · 3 comments
Closed
Assignees
Labels
Core relates to code central or existential to Salt Pillar Regression The issue is a bug that breaks functionality known to work in previous releases. severity-critical top severity, seen by most users, serious issues ZRELEASED - Boron
Milestone

Comments

@closepin
Copy link

Description of Issue/Question

I am new to github, so apologies if this isn't written as expected.

This is a tracking bug for an apparent regression of issue 18429
##18429
On version 2016.3.0
The reproduction steps on that bug are still completely valid.

Here is the PR for the fix:
##32288

I've rolled my minions back to 2015.8.10 in order to have the fix in place (as it was a large blocker to rolling out salt in our test environments)

Setup

Snipped from previous issue:

assuming a pillar containing:

settings:
  foo: 1
  buzz: 2

The following will result in the pillar 'settings:buzz' being undefined, whereas I'd expect it to be left intact and only the specific key to be overridden, or at least the pillar_source_merging_strategy to apply here as well:

salt '*' state.sls some.state pillar='{"settings":{"foo":"a"}}'

I believe the culprit is a line in: salt/state.py:State._gather_pillar():

ret.update(self._pillar_override)
which should be using Pillar.merge_sources() instead, in order to apply the pillar merge policy

Versions Report

Issue fixed in 2015.8.10, failed regression in 2016.3.0 - appears to be minion side only, and as I have already rolled back my minions, I can't get a useful version-report without taking an environment offline.

@wwentland
Copy link
Contributor

Commit db31732 made it into 2016.3.0, so this must have been broken by something else.

@closepin
Copy link
Author

Thank you for checking on that.

On Tue, May 31, 2016 at 3:37 PM, Wolodja Wentland notifications@github.com
wrote:

Commit db31732
db31732
made it into 2016.3.0, so this must have been broken by something else.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#33647 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AM2crMeKC0DAd0cXkzPDju6KbWUffRDBks5qHJwhgaJpZM4Iq5nh
.

@meggiebot meggiebot added severity-critical top severity, seen by most users, serious issues ZRELEASED - Boron Core relates to code central or existential to Salt Pillar Regression The issue is a bug that breaks functionality known to work in previous releases. TEAM Core labels May 31, 2016
@meggiebot meggiebot added this to the C 9 milestone May 31, 2016
@terminalmage
Copy link
Contributor

Fixed in #33764.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Core relates to code central or existential to Salt Pillar Regression The issue is a bug that breaks functionality known to work in previous releases. severity-critical top severity, seen by most users, serious issues ZRELEASED - Boron
Projects
None yet
Development

No branches or pull requests

4 participants