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

Edge: coreos-base/oem-gce: Fix resolving metadata.google.internal via /etc/hosts #160

Merged
merged 3 commits into from Jan 27, 2020

Conversation

pothos
Copy link
Member

@pothos pothos commented Jan 27, 2020

Ports #158 to Edge. I had to revert the replacement of rkt with Docker to apply the patch. I also think that the Docker replacement has at least missed the image name to run.

pothos added 3 commits Jan 27, 2020
When a custom DNS server is used
coreos-metadata-sshkeys@core.service
fails to resolve metadata.google.internal
because only "metadata" is specified in /etc/hosts.
The host's /etc/nsswitch.conf is a symlink to
/usr/share/google-oslogin/nsswitch.conf
but that is not present in the rkt container.
Do not only bind-mount /etc but also the target
of the symlink. With a broken nsswitch.conf
any entries in /etc/hosts are not considered
which makes problems when a custom DNS server
is used.
@pothos pothos requested a review from dongsupark Jan 27, 2020
@pothos pothos merged commit 96547fb into flatcar-master-edge Jan 27, 2020
@pothos pothos deleted the kai/oem-gce-rkt-dns-edge branch Jan 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants