saltstack-formulas / template-formula

SaltStack formula template filled with dummy content
http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html
Other
119 stars 85 forks source link

test: workaround gentoo systemd-resolved issue #253

Open rsutton1 opened 1 year ago

rsutton1 commented 1 year ago

PR progress checklist (to be filled in by reviewers)


What type of PR is this?

Primary type

Secondary type

Does this PR introduce a BREAKING CHANGE?

No.

Related issues and/or pull requests

Describe the changes you're proposing

When attempting to use kitchen to test the Gentoo image with systemd, the DNS doesn't resolve. I found this issue https://github.com/systemd/systemd/issues/9771 which appears to be the issue I'm seeing; if the DNS server doesn't support DNSSEC, then systemd-resolved fails DNS resolution.

After making this change, which turns off DNSSEC, it allows kitchen tests for Gentoo to pass again.

Pillar / config required to test the proposed changes

git clone git@github.com:rsutton1/nvim-formula.git
cd nvim-formula
git checkout 57e546ffae6f2b3993db07c73c8e5d8383981100~1 # the commit immediately before the fix
bundle exec kitchen test default-gentoo-stage3-systemd-3004-1-py3 # this should fail with DNS resolution issue
git checkout 57e546ffae6f2b3993db07c73c8e5d8383981100 # check out the fix
bundle exec kitchen test default-gentoo-stage3-systemd-3004-1-py3 # this should work

Debug log showing how the proposed changes work

Here's the fix commit. If you click the red X, you'll see the Gentoo test passed. (The overall job failed due to unrelated issues): https://github.com/rsutton1/nvim-formula/pull/4/commits/57e546ffae6f2b3993db07c73c8e5d8383981100

Documentation checklist

Testing checklist

Additional context