-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
bots: Adjust for Fedora Atomic now being version 28 #9090
bots: Adjust for Fedora Atomic now being version 28 #9090
Conversation
martinpitt
commented
May 2, 2018
•
edited
Loading
edited
- Publish f28/cockpit container: https://pagure.io/releng/issue/7483
- image-refresh fedora-atomic
- adjust ostree tests for new rollback behaviour
7c7b06c
to
ef9ff58
Compare
The download path changed, there is no CloudImages/ subdir any more. The qcow images moved to AtomicHost/ instead. Closes cockpit-project#9090
image-refresh in progress on cockpit-tasks-mrr3b. |
Image build fails with
Indeed there is no f28 container on https://registry.fedoraproject.org/, and https://src.fedoraproject.org/container/cockpit/branch/f28 looks outdated. The f27 branch got updated regularly. Needs investigation and supplying this container. |
I updated the master and f28 Fedora container branches and did a build:
However, I don't know how to publish that to actually become a released Fedora Registry container. @stefwalter , do you know? |
No don't know ... maybe @petervo does. Or @dustymabe |
#fedora-releng says to file a releng ticket, so I did: https://pagure.io/releng/issue/7483 |
f28 container was published, rebuilding image |
image-refresh in progress on cockpit-tasks-f85z1. |
image-refresh fedora-atomic done: https://github.com/cockpituous/cockpit/commits/image-refresh-fedora-atomic-20180503-212525 |
ef9ff58
to
d54a84f
Compare
d54a84f
to
cd56c27
Compare
I figured out the fedora-atomic.install failure and pushed a fix. This now formally affects the other atomics too, so triggering tests for them. |
Two ostree failures, let's retry to see if they are flakes. |
Debugging
I don't have an immediate idea what this does (there is a lot of setup in the test case to create a local repo). I asked @cgwalters on IRC, and I'll deep-dive into what this does. |
@@ -93,7 +93,7 @@ class AtomicCockpitInstaller: | |||
subprocess.call(["ostree", "remote", "delete", "local"]) | |||
|
|||
subprocess.check_call(["ostree", "remote", "add", "local", | |||
"file:///{}".format(self.repo_location), | |||
"file://{}".format(self.repo_location), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like a libcurl change FWIW.
In cockpit-project/cockpit#9090 (comment) we're seeing: `Txn DownloadUpdateRpmDiff ... failed: open(O_TMPFILE): No such file or directory` Looking at the error paths in the rpmdb diff code, there's not really any error prefixing. Let's add some so this is easier to debug.
In cockpit-project/cockpit#9090 (comment) we're seeing: `Txn DownloadUpdateRpmDiff ... failed: open(O_TMPFILE): No such file or directory` Looking at the error paths in the rpmdb diff code, there's not really any error prefixing. Let's add some so this is easier to debug. Closes: #1356 Approved by: jlebon
I filed coreos/rpm-ostree#1360 |
cd56c27
to
2e65cf4
Compare
I pushed a workaround for coreos/rpm-ostree#1360; this fixes
5 lines before the end.. :-/ After reboot it looks like this: The test says "After reboot upgrade but no rollback target" - but there actually is. It seems that after upgrading to base.2 and rolling back (to base.1), it now offers a rollback to "base.2", which would actually be a "roll forward"? This sounds like some ostree behaviour change, which might actually be desired? @cgwalters, is On F27 it instead looks like this, i. e. the order is reversed and no rollback option: On the CLI the behaviour between F27 and F28 are similar:
I. e. on both images @cgwalters, does that ring a bell by any chance? |
Stef helped add the concept of Desynchronzation between the CLI and DBus sounds like:
Basically there were some cases where we were either missing a reload or it was racy. I guess the bottom line is the test cases will probably have to work both ways? |
Yes, I agree. Either behaviour makes sense, so let's accept both. Thanks Colin! |
2e65cf4
to
cf3bfb4
Compare
There was an extra `/` in the "local" remote URL which is now illegal in Fedora 28: ``` file:////var/local-repo error: [3] URL using bad/illegal format or missing URL ```
The download path changed, there is no CloudImages/ subdir any more. The qcow images moved to AtomicHost/ instead. Closes cockpit-project#9090
Checking for updates with a local repository fails with Initiated txn DownloadUpdateRpmDiff for caller :1.36: /org/projectatomic/rpmostree1/fedora_atomic libostree pull from 'local' for fedora/28/x86_64/atomic-host complete Txn DownloadUpdateRpmDiff on /org/projectatomic/rpmostree1/fedora_atomic failed: open(O_TMPFILE): No such file or directory Pre-create the missing /var/cache/rpm-ostree/ directory for the time being, until this is fixed.
Previously, when rolling back from base.2 to base.1, base.2 appeared again as normal available update. Now rpm-ostree flips between the two with "rollback" and reverses the order. Both behaviours make sense and got ack'ed by upstream, so expect the new behaviour for current fedora-atomic. Also verify that the order is as expected for the old behaviour.
Adjusted the tests for new rollback behaviour. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot! Sorry that there was so much breakage here.
The download path changed, there is no CloudImages/ subdir any more. The qcow images moved to AtomicHost/ instead. Closes #9090