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

Vsphere UPI doesn't inject network static files #2552

Closed
chechuironman opened this issue Oct 23, 2019 · 11 comments
Closed

Vsphere UPI doesn't inject network static files #2552

chechuironman opened this issue Oct 23, 2019 · 11 comments
Labels
lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.

Comments

@chechuironman
Copy link

hey guys,

I'm running the vsphere scripts, and works fine, but network files for static IPs are not injected into the CoreOS 4.2

Version

[root@terraform ocp4.2]# ./openshift-install version
./openshift-install v4.2.0
built from commit 90ccb37ac1f85ae811c50a29f9bb7e779c5045fb
release image quay.io/openshift-release-dev/ocp-release@sha256:c5337afd85b94c93ec513f21c8545e3f9e36a227f55d41bc1dfb8fcc3f2be129

Platform:

What happened?

Network static files are not injected into de OS CoreOS4.2

What you expected to happen?

static IPs

How to reproduce it (as minimally and precisely as possible)?

Run the tf scripts with the nodes IPs defined on the variables file

@vishnoisuresh
Copy link

yea, I have got the same issue.

@ooOOJavaOOoo
Copy link

we are seeing this issue as well.. only available workaround is to create an iso per static ip..

@fherbert
Copy link

fherbert commented Nov 6, 2019

We had this problem with RHCOS RHCOS_42.80.20190801, updating to RHCOS_42.80.20190828.2 or RHCOS_42.80.20191002.0 fixed static ip config using ignition for us.

@crissonpl
Copy link

I have the same issue both with RHCOS latest 4.1 and 4.2 images.

Some weeks ago with the same images it was working fine and now after I cloned the repo again it doesn't assign static IPs.

In the VM Options of the VMs I don't see the fields - guestinfo.ignition.config.data neither guestinfo.ignition.config.data.encoding. Should the terraform scrip create them?

@bortek
Copy link
Contributor

bortek commented Nov 27, 2019

Same here. Static IPs renot being ssigned and guestinfo.ignition.config.dataand enconding are not set on the VM guests. Are these the right parameters, jhave they changed their name inthe VM ?

It is this block in the machine/main.tf that should do the magic

vapp {
properties {
"guestinfo.ignition.config.data" = "${base64encode(data.ignition_config.ign.*.rendered[count.index])}"
"guestinfo.ignition.config.data.encoding" = "base64"
}
}

@David-Igou
Copy link
Contributor

David-Igou commented Jan 9, 2020

Can we get some clarity on if true static IPs are possible via ignition files? I suspect the vSphere UPI terraform requires a DHCP server to be available, but doesn't clearly document it. The download of the remote ignition file is done at the initram level, which requires networking, but ifgcfg-ens192 is written to after this. takes place.

@crissonpl
Copy link

My experience is that you still need DHCP as you wrote. The static IPs config is done after ignition download so the VMs without DHCP and with static IPs configured via ignition were still making a DHCP request

David-Igou added a commit to David-Igou/installer that referenced this issue Jan 10, 2020
Clarify that a DHCP server is still required at the beginning of the installation to download the ignition files.

In response to openshift#2552
@openshift-bot
Copy link
Contributor

Issues go stale after 90d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

@openshift-ci-robot openshift-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Apr 9, 2020
@openshift-bot
Copy link
Contributor

Stale issues rot after 30d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle rotten
/remove-lifecycle stale

@openshift-ci-robot openshift-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels May 9, 2020
@openshift-bot
Copy link
Contributor

Rotten issues close after 30d of inactivity.

Reopen the issue by commenting /reopen.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Exclude this issue from closing again by commenting /lifecycle frozen.

/close

@openshift-ci-robot
Copy link
Contributor

@openshift-bot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.

Reopen the issue by commenting /reopen.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Exclude this issue from closing again by commenting /lifecycle frozen.

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.
Projects
None yet
Development

No branches or pull requests

9 participants