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

[master] make Cloud::vm_config() handle per-VM vm_overrides according to inline docs #64701

Merged

Conversation

jmozd
Copy link
Contributor

@jmozd jmozd commented Jul 23, 2023

What does this PR do?

The handling of per-VM overrides within Cloud::vm_config() needs to reflect that the input dict "vm_overrides" is specified to have per-VM overrides, with the VM name being the dict key and the actual overrides the according value.

What issues does this PR fix or reference?

Fixes: #64610

Previous Behavior

Originally, the full "vm_overrides" dict was merged as-is into the VM's configuration dict, placing all override values under new top-level keys (the VMs' names). Therefore, these overrides were never effectively pulled in.
Additionally, the overrides handling was coded to not consider nested updates, but rather replacing the whole sub-tree under the top-level node. So any nested configuration from the main, provider or profile config would have been fully replaced by the overrides, if the same top-level key exists.

New Behavior

The vm_override dict is checked for the sub-element concerning the currently handled VM, and the overrides are fully/nestedly merged into the VM's config, as already was done for provider and profile configuration.

Merge requirements satisfied?

Commits signed with GPG?

No

@jmozd jmozd requested a review from a team as a code owner July 23, 2023 15:07
@jmozd jmozd requested review from cmcmarrow and removed request for a team July 23, 2023 15:07
@welcome
Copy link

welcome bot commented Jul 23, 2023

Hi there! Welcome to the Salt Community! Thank you for making your first contribution. We have a lengthy process for issues and PRs. Someone from the Core Team will follow up as soon as possible. In the meantime, here’s some information that may help as you continue your Salt journey.
Please be sure to review our Code of Conduct. Also, check out some of our community resources including:

There are lots of ways to get involved in our community. Every month, there are around a dozen opportunities to meet with other contributors and the Salt Core team and collaborate in real time. The best way to keep track is by subscribing to the Salt Community Events Calendar.
If you have additional questions, email us at [email protected]. We’re glad you’ve joined our community and look forward to doing awesome things with you!

@salt-project-bot-prod-environment salt-project-bot-prod-environment bot changed the title make Cloud::vm_config() handle per-VM vm_overrides according to inline docs [master] make Cloud::vm_config() handle per-VM vm_overrides according to inline docs Jul 23, 2023
@Ch3LL Ch3LL temporarily deployed to ci August 7, 2023 21:35 — with GitHub Actions Inactive
@Ch3LL Ch3LL temporarily deployed to ci August 7, 2023 21:35 — with GitHub Actions Inactive
@Ch3LL Ch3LL temporarily deployed to ci August 7, 2023 21:52 — with GitHub Actions Inactive
@Ch3LL Ch3LL temporarily deployed to ci August 7, 2023 21:53 — with GitHub Actions Inactive
@Ch3LL Ch3LL temporarily deployed to ci August 7, 2023 21:54 — with GitHub Actions Inactive
@Ch3LL Ch3LL temporarily deployed to ci August 7, 2023 21:56 — with GitHub Actions Inactive
@jmozd jmozd force-pushed the 64610_salt-cloud_fix-vm-overrides-handling branch from bcaa2fa to c656ac7 Compare August 11, 2023 12:43
@jmozd
Copy link
Contributor Author

jmozd commented Aug 11, 2023

Any additional action required on my behalf to get this merged? The PR got out of sync with master and I tried to rebase here, but this does seem to require some additional workflow approval?

If it's just a matter of time and patience, I'm ok with that - just let me know.

@Ch3LL
Copy link
Contributor

Ch3LL commented Aug 18, 2023

I went ahead and started the pipeline. There is nothing on your end that you need to do, I'll follow up here and it also has the 3007.0 label so this is on our radar.

@jmozd jmozd temporarily deployed to ci August 18, 2023 21:29 — with GitHub Actions Inactive
@jmozd jmozd temporarily deployed to ci August 18, 2023 21:29 — with GitHub Actions Inactive
@jmozd jmozd temporarily deployed to ci August 18, 2023 21:29 — with GitHub Actions Inactive
@jmozd jmozd temporarily deployed to ci August 18, 2023 21:45 — with GitHub Actions Inactive
@jmozd jmozd temporarily deployed to ci August 18, 2023 21:46 — with GitHub Actions Inactive
@jmozd jmozd temporarily deployed to ci August 18, 2023 21:52 — with GitHub Actions Inactive
@jmozd jmozd temporarily deployed to ci August 19, 2023 00:20 — with GitHub Actions Inactive
@jmozd jmozd temporarily deployed to ci August 19, 2023 00:20 — with GitHub Actions Inactive
@jmozd jmozd temporarily deployed to ci August 19, 2023 00:20 — with GitHub Actions Inactive
@jmozd jmozd temporarily deployed to ci August 19, 2023 00:20 — with GitHub Actions Inactive
@jmozd jmozd temporarily deployed to ci August 19, 2023 00:20 — with GitHub Actions Inactive
@jmozd jmozd temporarily deployed to ci August 19, 2023 00:20 — with GitHub Actions Inactive
@Ch3LL Ch3LL temporarily deployed to ci August 24, 2023 18:53 — with GitHub Actions Inactive
@Ch3LL Ch3LL temporarily deployed to ci August 24, 2023 18:53 — with GitHub Actions Inactive
@Ch3LL Ch3LL temporarily deployed to ci August 24, 2023 18:53 — with GitHub Actions Inactive
@Ch3LL Ch3LL temporarily deployed to ci August 24, 2023 18:53 — with GitHub Actions Inactive
@Ch3LL Ch3LL temporarily deployed to ci August 24, 2023 19:19 — with GitHub Actions Inactive
@Ch3LL Ch3LL temporarily deployed to ci August 24, 2023 19:22 — with GitHub Actions Inactive
@Ch3LL Ch3LL temporarily deployed to ci August 25, 2023 00:19 — with GitHub Actions Inactive
@Ch3LL Ch3LL temporarily deployed to ci August 25, 2023 00:19 — with GitHub Actions Inactive
@Ch3LL Ch3LL temporarily deployed to ci August 25, 2023 00:19 — with GitHub Actions Inactive
@Ch3LL Ch3LL temporarily deployed to ci August 25, 2023 00:19 — with GitHub Actions Inactive
@Ch3LL Ch3LL temporarily deployed to ci August 25, 2023 00:19 — with GitHub Actions Inactive
@Ch3LL Ch3LL temporarily deployed to ci August 25, 2023 00:19 — with GitHub Actions Inactive
@Ch3LL Ch3LL merged commit 2c72c04 into saltstack:master Aug 25, 2023
321 checks passed
@welcome
Copy link

welcome bot commented Aug 25, 2023

Congratulations on your first PR being merged! 🎉

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

Successfully merging this pull request may close these issues.

[BUG] API CloudClient.profile() / vm_overrides not effectively merged into VM config?
4 participants