Bug 1899286
| Summary: | [4.6.z] Unable to get coreos-installer with --copy-network to work | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Micah Abbott <miabbott> |
| Component: | RHCOS | Assignee: | Jonathan Lebon <jlebon> |
| Status: | CLOSED ERRATA | QA Contact: | Michael Nguyen <mnguyen> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 4.6 | CC: | bbreard, bgilbert, imcleod, jlebon, jligon, jnordell, miabbott, mnguyen, nstielau |
| Target Milestone: | --- | ||
| Target Release: | 4.6.z | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1895979 | Environment: | |
| Last Closed: | 2020-12-14 13:50:58 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 1895979 | ||
| Bug Blocks: | 1899176 | ||
|
Description
Micah Abbott
2020-11-18 20:03:50 UTC
(In reply to Jonathan Lebon from comment #1) > Fixed by https://github.com/openshift/installer/pull/4422. This PR has merged, so moving to MODIFIED Verified with RHCOS 46.82.202012032341-0 Booted the ISO, used `nmcli` to configure interface ``` $ sudo nmcli con mod "Wired Connection" ipv4.addr 192.168.122.100/24 $ sudo nmcli con mod "Wired Connection" ipv4.gateway 192.168.122.1 $ sudo nmcli con mod "Wired Connection" ipv4.dns 192.168.122.1 ``` Used `coreos-install` to copy network config `$ sudo coreos-install install --copy-network --insecure-ignition --ignition-url=http://192.168.122.1/ignitionv3.json /dev/vda` Rebooted into RHCOS, confirmed NM config was copied, message was logged, and dracut module was updated: ``` $ rpm-ostree status State: idle Deployments: ● ostree://713f7a88c06960f42d52e1fb50baf35fd7f14df9b474d94d46fd67a2a9c07494 Version: 46.82.202012032341-0 (2020-12-03T23:45:01Z) [core@localhost ~]$ sudo cat /etc/NetworkManager/system-connections/default_connection.nmconnection [connection] id=Wired Connection uuid=75c32fef-f2bb-49a2-b002-0e48f8565580 type=ethernet multi-connect=3 permissions= timestamp=1607110273 [ethernet] mac-address-blacklist= [ipv4] address1=192.168.122.100/24,192.168.122.1 dns=192.168.122.1; dns-search= method=auto [ipv6] addr-gen-mode=eui64 dns-search= method=auto [proxy] [core@localhost ~]$ journalctl -b | grep coreos-copy Dec 04 19:37:50 localhost coreos-copy-firstboot-network[704]: info: copying files from /mnt/boot_partition/coreos-firstboot-network to /run/NetworkManager/system-connections/ Dec 04 19:37:50 localhost coreos-copy-firstboot-network[704]: '/mnt/boot_partition/coreos-firstboot-network/default_connection.nmconnection' -> '/run/NetworkManager/system-connections/default_connection.nmconnection' [core@localhost ~]$ sudo cat /usr/lib/dracut/modules.d/15coreos-network/coreos-copy-firstboot-network.service | grep enable-network # Need to run after coreos-enable-network since it may re-run the NM cmdline After=coreos-enable-network.service ``` Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: OpenShift Container Platform 4.6.8 security and bug fix update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2020:5259 |