1
0
mirror of https://github.com/coreos/fedora-coreos-config.git synced 2026-02-05 09:45:30 +01:00

32 Commits

Author SHA1 Message Date
CoreOS Bot
e2b5bb16e8 tree: import changes from testing-devel at 516d5e7b9c 2025-11-20 21:45:53 +00:00
CoreOS Bot
a9334b229b tree: import changes from testing-devel at 793cabb95d 2025-03-03 14:30:30 +00:00
CoreOS Bot
5192593865 tree: import changes from testing-devel at 8989d70d5b 2024-04-12 14:25:04 +00:00
CoreOS Bot
d30b9a1d35 tree: import changes from testing-devel at 24aa9ff607 2023-07-21 21:17:01 +00:00
CoreOS Bot
55b517ca9c tree: import changes from testing-devel at 03cb1ad505 2023-02-02 11:35:41 +00:00
CoreOS Bot
92e905f602 tree: import changes from testing-devel at eb3d40da8c 2022-09-12 07:34:54 +00:00
CoreOS Bot
8d963cc81e tree: import changes from testing-devel at 803cd14b7f 2022-05-11 18:51:54 +00:00
CoreOS Bot
dd4b81e1d9 tree: import changes from testing-devel at e000ea0691 2022-02-16 22:45:42 +00:00
CoreOS Bot
d78b185b56 tree: import changes from testing-devel at d153b350c7 2021-07-16 13:17:24 +00:00
CoreOS Bot
c6db7dd5a6 tree: import changes from testing-devel at 0488b7aef8 2021-06-07 23:22:43 +00:00
CoreOS Bot
8bf31af103 tree: import changes from testing-devel at 4ec23e2078 2021-04-05 15:04:24 +00:00
Dusty Mabe
ce266d287a tests/manual: add coreos-docs-net-testing.sh
This script attempts to test the configurations in our documentation
at https://docs.fedoraproject.org/en-US/fedora-coreos/sysconfig-network-configuration/.
All it does is test the various documented scenarios via both the
dracut kernel networking arguments approach, as well as the NM
keyfiles provided via Ignition approach.
2020-12-03 09:16:15 -05:00
Dusty Mabe
66f7238f9d tests/manual: nettest: make inspecting disk image more dynamic
The boot filesystem was moved to partition 3 recently. Let's
update the code to be a little more dynamic about finding the
boot paritition so we can be forward and backward compatible.

For more context see:

- https://github.com/coreos/fedora-coreos-tracker/issues/669
- https://github.com/coreos/coreos-assembler/pull/1820
2020-12-03 09:16:15 -05:00
Dusty Mabe
7bff71642d tests/manual: nettest: remove workaround for teaming bug
The NM in 1.26+ (F33+ and RHEL8.3+) has been updated to fix this
problem so we can drop the commented out test. See

- https://bugzilla.redhat.com/show_bug.cgi?id=1784363
- d689380cfc
2020-11-09 15:46:28 -05:00
Colin Walters
037e3201af tests/manual: Clarify expected state
This is failing for me with both current fcos/rhcos
and seeing more clearly what is expected vs actual is always helpful.
2020-10-02 13:33:59 -04:00
Dusty Mabe
d114314c57 tests/manual: nettest: add nameserver testing
This commit attempts to add tests that confirm the nameserver is getting
passed in correctly in multiple ways.

- via ip=${ip}::${gateway}:${netmask}:${hostname}:${devname}:none:${nameserver}
- via nameserver=${nameserver}
    - specifically see bug https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/391

It also tries to verify the nameserver got propagated into either
resolv.conf (RHEL 8 and Fedora less than 32) or systemd-resolved (F33+).
2020-09-24 10:20:28 -04:00
Dusty Mabe
dec01cd7fe tests/manual: nettest: workaround NM 1.26 bug
There is an upstream NM bug that causes NM to wait for the second
interface to come up even though we explicitly set it to `off`.
Conversations are ongoing upstream about how to fix it.

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/539
2020-09-24 10:20:28 -04:00
Dusty Mabe
12cdd1050b tests/manual: nettest: use virsh shutdown instead of reboot
I saw some weird behavior where the reboot was actually managing
to start the VM as well, which caused the `virsh start` to fail.
Let's just make things clearer by using an explicit `shutdown` and
then `start`.
2020-09-24 10:20:28 -04:00
Dusty Mabe
0496057ad3 tests/manual: nettest: stop using ign-converter for RHCOS
Now that RHCOS uses Ignition spec V3 let's drop the use of
`ign-converter`. We leave the important bits in there as a comment
in case the user wants to uncomment and run a test against <4.6.
2020-09-24 10:20:28 -04:00
Dusty Mabe
594459d0eb tests/manual: nettest: update FCOS to use ens2/ens3
Now that we are using persistent NIC naming in FCOS we'll update the
test to also use those interface names. See:
https://github.com/coreos/fedora-coreos-tracker/issues/484

Also add a test that makes sure that net.ifnames=0 works as desired.
2020-06-26 17:24:19 -04:00
Dusty Mabe
bd3ee66258 tests/manual: nettest: delete extraneous code 2020-05-08 10:19:03 -04:00
Dusty Mabe
5e19befc1d tests/manual: nettest: clean up temporary files 2020-05-08 10:19:03 -04:00
Dusty Mabe
0bf275b3b2 tests/manual: nettest: add ifcfg net propagation test for RHCOS
This is to test that network propagation will be skipped if the user's
provided ifcfg files via Ignition.
2020-05-08 10:19:03 -04:00
Dusty Mabe
dce670f01c tests/manual: nettest: add coreos.no_persist_ip check 2020-05-08 10:19:03 -04:00
Dusty Mabe
d3100e6829 tests/manual: nettest: add support for dhcp checking
This will allow us to ssh into machines that use dhcp in the real
root. It uses ARP via `ip neighbor` to find the IP based on the MAC.
2020-05-08 10:19:03 -04:00
Dusty Mabe
8ac3f0be6f tests/manual: nettest: add support for calling with rhcos qcow
This makes it so we can call coreos-network-testing.sh with either
a rhcos qcow or a fcos qcow. Depending on the name of the file the
script will act differently.
2020-05-08 10:19:03 -04:00
Dusty Mabe
cdbbb97282 tests/manual: rename nettest to be less FCOS specific 2020-05-08 10:19:03 -04:00
Dusty Mabe
3f31a04cfa tests/manual: nettest: make temporary filenames not fcos specific 2020-05-08 10:19:03 -04:00
Dusty Mabe
3a07df1c4e tests/manual: nettest: make the vmname be not FCOS specific 2020-05-08 10:19:03 -04:00
Dusty Mabe
1335539cea tests/manual: nettest: add example for hacking the initramfs
This is useful for development.
2020-05-08 10:19:03 -04:00
Dusty Mabe
adac56da77 tests/manual: nettest: add hostname checking
This should help us test against cases like
https://github.com/coreos/fedora-coreos-tracker/issues/466
2020-05-08 10:19:03 -04:00
Dusty Mabe
c95f3afeb2 tests: add a test that can be run manually for net testing
This is how I've been doing network testing for the NM in
the initrd PR (https://github.com/coreos/fedora-coreos-config/pull/310).
One day I'd like to convert this into some more sophisticated
test that can be run in our CI but AFAIU right now that's not
possibly because our CI is limited to qemu unprivileged networking.

For now let's put this $somewhere so that we can pull it out
at least when we suspect problems.
2020-03-30 15:32:42 -04:00