Skip to content

[cherrybomb] MTecknology's Masterless Contributions - #56353

Merged
dwoz merged 35 commits into
saltstack:masterfrom
MTecknology:master
Apr 24, 2020
Merged

dwoz merged 35 commits into
saltstack:masterfrom
MTecknology:master

Conversation

@MTecknology

@MTecknology MTecknology commented Mar 11, 2020 •

Copy link
Copy Markdown
Contributor

What does this PR do?

🎵 Hello Salt. Hello Friends. Here's your... ch-ch-ch-cherry bomb! 🎵

This PR cherry-picks of all my previously-accepted PRs which have not been merged from develop to master and do not appear to be part of any current merge effort. These previously accepted PRs are also present in the PRs to port to master project board and have been (personally) reviewed for current relevancy/accuracy.

The two areas of salt impacted by these changes are: ['Documentation', 'Debian Networking]

What PRs* does this PR fix or reference?

Tests included*?

Yes; I may have gotten a tiny bit carried away with creativity, but I also tried to break my own code and documented even the silly attempts as tests.

Commits signed with GPG?

Yes, absolutely.

@MTecknology
MTecknology requested a review from a team as a code owner March 11, 2020 02:04
@ghost
ghost requested a review from Akm0d March 11, 2020 02:04
@dwoz

dwoz commented Mar 12, 2020

Copy link
Copy Markdown
Contributor

@MTecknology Thank you for doing this.

@waynew waynew left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MTecknology thanks for the port PR! 🎉

Just one question on it, but otherwise it looks good to me 👍

Comment thread salt/modules/debian_ip.py Resolved
Comment thread salt/modules/debian_ip.py Resolved
This patch fixes logic errors made by using `def_addrfam` in assumptions
and removes the need to have `dual_stack` logic. It fixes bugs caused by
this logic.

Issue #46388 is resolved by preventing IPv4-only options from
over-writing IPv6 options.

This patch also:

- adds `-enable_ipv4:` which is meant for future deprecation of IPv4
- makes better use of `-enable_ipv6:`
- adds support for `-ipv4<opt>:` prefix (similar to `-ipv6<opt>:`)
- adds support for sharing options between IPv4/v6
- supports overriding any IPv4/v6 option
- makes `-proto:` a required field

BREAKS TESTS - Tests have not been updated for new behavior.
- Unit tests have been updated for fixed/improved behavior:
  + Bond options are shared between IPv4/v6
  + Added now-required `-proto:`
  + Added test for issue reported in #46388 (loopback v4opt->inet6)
- Removed some redundancy
- Added tests:
  + Check for v4/v6-only option sharing/overwriting
  + Check that netmask/gw is not added unless specified
- Turns list of options into loop, from long list of static if's
- Drops the (nearly redundant) separate IPv4/v6 block
- Allows all options to be space-delimited list, line-delimited list, or string
- Removes extraneous newlines in interfaces file
- Updated debian_ip to read /all/ options for IPv6 interfaces
- Updated template to handle a list version of all options
- Enabled remaining tests.
waynew
waynew previously approved these changes Mar 17, 2020

@waynew waynew left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests definitely fail when the Debian IP code was reverted, and they pass when the Debian IP changes were re-applied 👍

@Ch3LL

Ch3LL commented Apr 15, 2020

Copy link
Copy Markdown
Contributor

looks like there are some merge conflicts that need to be resolved and pre-commit is failing.

@MTecknology

Copy link
Copy Markdown
Contributor Author

There's nothing I can do about the pre-commit thing. That looks like it didn't find the revision it was looking for.

This has been sitting around untouched for nearly a month. If I fix the merge conflicts, will the changes be merged before it needs to happen again? Should I wait to fix the conflicts?

@waynew

waynew commented Apr 17, 2020 •

Copy link
Copy Markdown
Contributor

@MTecknology I just opened a PR against your branch that should address any of the questionable conflicts here.

I got my changes by doing this:

git fetch salt master
git checkout salt/master
git fetch salt refs/pull/56353/head
git checkout FETCH_HEAD -- doc/ref/states/requisites.rst doc/topics/releases/3000.rst salt/modules/debian_ip.py salt/renderers/gpg.py salt/states/file.py salt/templates/debian_ip/debian_eth.jinja tests/unit/modules/test_debian_ip.py
git add .
pre-commit run isort  # fix any issues, git add . and  re-run
pre-commit run black  # fix any issues, re-run isort and then black
git commit  # fix any lint issues

Then I just cherry-picked that revision on top of your branch.

I would keep a branch name pointing to this cherry bomb commit but my PR should solve any code formatting disagreements on this PR 🤞

@waynew

waynew commented Apr 23, 2020

Copy link
Copy Markdown
Contributor

@waynew

waynew commented Apr 23, 2020

Copy link
Copy Markdown
Contributor

Fixed the merge conflicts (since I was responsible for them :trollface: )

Let's see if it works this time!

@dwoz
dwoz merged commit fc3fee1 into saltstack:master Apr 24, 2020
@sagetherage sagetherage added the ZRelease-Sodium retired label label May 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ZRelease-Sodium retired label

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants