Skip to content

edns: allow dnsconfd name resolution for kickstart fetching#6352

Merged
M4rtinK merged 2 commits into
rhinstaller:rhel-9from
rvykydal:restart-bind-after-fetching-certs-rhel9
Apr 25, 2025
Merged

edns: allow dnsconfd name resolution for kickstart fetching#6352
M4rtinK merged 2 commits into
rhinstaller:rhel-9from
rvykydal:restart-bind-after-fetching-certs-rhel9

Conversation

@rvykydal

@rvykydal rvykydal commented Apr 15, 2025

Copy link
Copy Markdown
Contributor

Port of upstream #6258
Resolves: RHEL-82694

Start dnsconfd already before kickstart fetching.

We used to start dnsconfd only after the kickstart was fetched if
kickstart usage was detected so that the potential certificates from
kikcstart are applied. But this mechanism ruled out use case when
dnsconfd (name resolution) is needed for the kickstart fetching. So
start the dnsconfd early and if certificates were fetched restart it (it
is done by restarting unbound service as recommended by dnsconfd).

Resolves: RHEL-82694
@rvykydal rvykydal changed the title Restart bind after fetching certs rhel9 edns: allow dnsconfd name resolution for kickstart fetching Apr 15, 2025
@rvykydal

Copy link
Copy Markdown
Contributor Author

/kickstart-test --testtype dns

@rvykydal

Copy link
Copy Markdown
Contributor Author

/build-image

@github-actions

Copy link
Copy Markdown

Images built based on commit c5d903f:

  • boot.iso: success

Download the images from the bottom of the job status page.

@rvykydal

Copy link
Copy Markdown
Contributor Author

/kickstart-test --testtype smoke

@rvykydal rvykydal marked this pull request as ready for review April 15, 2025 09:27

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Hey @rvykydal - I've reviewed your changes - here's some feedback:

Overall Comments:

  • The logic in start_dnsconfd seems complex; consider simplifying it or breaking it down into smaller functions for better readability.
  • It might be helpful to add more comments within the start_dnsconfd function to explain the purpose of each conditional check.
Here's what I looked at during the review
  • 🟡 General issues: 2 issues found
  • 🟢 Security: all looks good
  • 🟢 Testing: all looks good
  • 🟢 Complexity: all looks good
  • 🟢 Documentation: all looks good

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

Comment thread dracut/anaconda-lib.sh Outdated
Comment thread dracut/anaconda-lib.sh
We need this guard because kickstart may be fetched over multiple
network devices and it is parsed after each fetching. Parsing itself
should be idempotent (multiple parsing harmless) as it only dumps files
with configuration / options for further actions.

Resolves: RHEL-82694
@rvykydal rvykydal force-pushed the restart-bind-after-fetching-certs-rhel9 branch from c5d903f to 958e2be Compare April 15, 2025 09:50
@rvykydal

Copy link
Copy Markdown
Contributor Author

/kickstart-test --testtype smoke

@rvykydal

Copy link
Copy Markdown
Contributor Author

/kickstart-test --testtype dns

@jkonecny12 jkonecny12 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good to me.

@rvykydal rvykydal added the ready to merge The PR can be merged. It should have all BZ flags required for releasing set (usually release+). label Apr 24, 2025
@M4rtinK M4rtinK merged commit eba001c into rhinstaller:rhel-9 Apr 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready to merge The PR can be merged. It should have all BZ flags required for releasing set (usually release+). rhel-9

Development

Successfully merging this pull request may close these issues.

3 participants