-
Notifications
You must be signed in to change notification settings - Fork 119
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
[BUG] breaking change in 0.21.3 (version_repo) #135
Comments
@OrangeDog I'm certain that this problem actually exists in The issue is the upstream repo itself. Try setting the pillar like this: zabbix-formula/test/salt/pillar/default.sls Lines 4 to 7 in 8291d7c
|
Let me just add, the formula definitely needs updating from |
No. I just reverted back to that and the problem went away.
That's exactly what I did, as I put in the report above. |
@OrangeDog You've missed the |
This comment has been minimized.
This comment has been minimized.
@OrangeDog Apologies, I saw the last entry in your original report. Well, this is going to be fun to resolve, we've got the same configuration ( |
Hmm, I don't know what else would cause a difference, assuming your tests aren't broken in some way. |
@OrangeDog We've got Rendered pillar data: Various repos configured for
Various
InSpec tests passing for the specific package versions installed for |
I also have the zabbix module properties set on this host. Maybe that messes up the merging now? zabbix.url: ...
zabbix.user: ...
zabbix:
lookup:
version_repo: '4.4' |
@OrangeDog The one potential difference is the use of
|
On my currently working system (the psk is in a grain).
|
@OrangeDog Back when we first started using zabbix-formula/zabbix/map.jinja Line 11 in 8291d7c
-{%- set _config = salt['config.get']('zabbix', default={}) %}
+{%- set _config = salt['config.get']('zabbix', default={}, merge='recurse') |
Using that commit hasn't had any apparent effect: the state still tries to use the 2.2 repo. |
@OrangeDog So is there any difference between the output of these two commands?
If not, would you mind sharing the layout of how you're providing that grain, so that I can test it at my end? |
With
|
That sls also includes stuff from the formula, in case that makes a difference.
|
@OrangeDog Excellent, we're on the right path then.
Do you mean you tried commit 8291d7c? That doesn't contain -{%- set _config = salt['config.get']('zabbix', default={}) %}
+{%- set _config = salt['config.get']('zabbix', default={}, merge='recurse') |
Oh, yes, I configured the master to use that commit instead of a tag. |
Yes, please. |
Looks like that fixes it. |
Thanks, that answers the question about whether we need the |
Why can't it always be recurse? |
That's what I started with when first introducing
At other points, there were other issues raised including:
|
It would be workable if it were |
I'm going to send a note to the main contributors explaining that |
Thanks. Also +1 to allowing a merge. I imagine many people would want to split their config, keeping secrets in pillar but moving the other bits somewhere more performant (even though I've currently got almost the opposite). |
Your setup
Formula commit hash / release tag
0.21.3
Versions reports (master & minion)
Pillar / config used
Bug details
Describe the bug
Upgrading from 0.21.2 to 0.21.3 changed how the repo is configured.
It's now trying to use the default, which does not exist
Steps to reproduce the bug
See above.
Expected behaviour
No changes to existing behaviour on minor/patch releases.
Attempts to fix the bug
Had a look at the code and tried this pillar instead, but it had no effect.
The text was updated successfully, but these errors were encountered: