redhat-cop / redhat-cop/ocp4-helpernode
How do I set search domains in /etc/resolv.conf, when using static IPs in kernel parameters
Nobody has claimed this yet.
- Dominant language
- Jinja
- Stars
- 358
- Forks
- 308
- PR merge metrics
- No merged PRs in 30d
Description
I saw in the last merge on #280 that filetranspiler was deprecated. This is great as I do want to move off it... so last night, I finally got around to changing my deployment to all use the kernel parameters to set the static IPs and it looks like it worked for the most part.
However, it seems my cluster comes up only with short names:
# oc get nodes
NAME STATUS ROLES AGE VERSION
master0 Ready master 9h v1.22.3+b93fd35
master1 Ready master 9h v1.22.3+b93fd35
master2 Ready master 9h v1.22.3+b93fd35
worker0 Ready worker 8h v1.22.3+b93fd35
worker1 Ready worker 8h v1.22.3+b93fd35
worker3 Ready worker 8h v1.22.3+b93fd35
On debugging, I think the difference here is that I lost the DOMAIN property that I set in /etc/sysconfig/network-scripts/ifcfg-<int> before i ran it through filetranspiler and that added a search domain into my /etc/resolv.conf on the CoreOS node. This is missing now...
And hostnamectl on core@master0, and all the various hostname commands (-s -f -d) all return the short host name... When I manually modify /etc/resolv.conf and add search <domain> then the hostname commands seem to return what I'm looking for.
Looking for some help in how I would get this back in.. Thanks!
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the change referenced in issue #280 and comparing the former /etc/sysconfig/network-scripts/ifcfg- setup with the kernel-parameter deployment. Inspect /etc/resolv.conf, filetranspiler behavior, and hostnamectl results; done means the supported configuration restores the intended DNS search domain without manual edits.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kubernetes, linux
- Domain
- networking
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100