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
cockpit tests fail in mock with nspawn and default require_networking = False #7395
Comments
Could you provide a full reproducer set of commands? From a stock Fedora system, until you see the error? |
I believe this set of steps will reproduce it (culled from my repro attempt which had a few other bits to it that weren't relevant).
|
@deryni, try
Does doing that make it work? |
This (most likely) got fixed as a by-product in PR #7594. Fedora and even RHEL 7.4 now enable nspawn by default in mock (on our test images too), and building seems to work fine there in master (and the latest release 150). Can you confirm this? |
Closing as this seems fixed. Please yell if you still have trouble with recent versions. |
No, this is still not working for me. The build referenced in the other issue does not build with networking disabled (the nspawn command line does not have That indicates, to me, that setting the |
I do think, though, that some upcoming mock changes (1.4.6) might make this work without that flag but I need to wait for EPEL to package it to try that. |
@deryni: I haven't tried on Fedora 25, but it does work fine on current Fedora 26/27 (mock 1.4.6) and RHEL 7.4 (mock 1.4.4). On all of these we use the default mock configuration, i. e. with |
@martinpitt If you look in your build logs do you see the Unless I'm wildly misreading the mock code (for 1.4.4 here and 1.4.6 here) you will see that being passed if And actually... the log referenced above even shows that I'm building cockpit 150 currently (with only slight spec patches akin to what the CentOS package does) on a stock CentOS 7 machine (with a slightly customized mock config). |
Ah, mea culpa - I only checked the mock configuration on our test images, which do have the default mock configuration. But indeed As these tests require a non-loopback interface, pretty much the only thing that we can do there is to skip them if there is no network interface. But at least it's clear now why that happens, sorry for the noise! |
Not a problem. Sorry I missed the config setting when looking at the logs in the first place. It would have saved us both a bit of time. The tests require a non-loopback interface? So you think the changes in mock 1.4.6 won't help then? That's unfortunate. Right now I'm still building cockpit with the old chroot instead but I should probably switch to nspawn with networking enabled instead. |
We are building cockpit RPMs using mock. This worked with mock 1.3.4.
I upgraded to mock 1.4.2 today which enabled systemd-nspawn chroot-ing by default (it had been optional before).
This change appears to have broken 12 of the cockpit tests.
I spoke to @petervo in #cockpit about this earlier:
Ideally the container wouldn't have any external network connectivity when this was sorted out.
I poked at some of the systemd-nspawn options but short of setting up an actual bridge or veth with networking I didn't see anything obvious (possibly systemd-networkd in the container but I don't know anywhere near enough about nspawn/networkd/etc. to know if that would help or how I would make that happen offhand).
The text was updated successfully, but these errors were encountered: