Skip to content

Conversation

@achilleas-k
Copy link
Member

@achilleas-k achilleas-k commented Nov 15, 2021

This reverts commit 226ada6.

This PR replaces #2010 and (I think) #1744.

@achilleas-k
Copy link
Member Author

Changed RHEL 9.0 edge-simplified-installer to use coreos-installer-dracut, based on RHEL 8.6 changes by @runcom in PR #1752.

@henrywang
Copy link
Member

@achilleas-k I found the error DNF error occured: MarkingErrors: Error occurred when marking packages for installation: Problems in request:\nmissing packages: coreos-installer, coreos-installer-dracut. Looks the cdn repo does not have coreos-installer included, but nightly has.

@runcom
Copy link
Member

runcom commented Nov 16, 2021

Shouldn’t we just update the osbuild mirror? Or use nightly (to also unblock my other PRs for 8.6

@jrusz
Copy link
Contributor

jrusz commented Nov 16, 2021

It's actually using rpmrepo snapshot for the repositories and I guess that doesn't have the package in it yet... You can see it if you look for composer-cli sources list in the log...

++ sudo composer-cli sources list
+ for SOURCE in $(sudo composer-cli sources list)
+ sudo composer-cli sources info appstream
check_gpg = false
check_ssl = true
id = "appstream"
name = "appstream"
rhsm = false
system = true
type = "yum-baseurl"
url = "https://rpmrepo.osbuild.org/v2/mirror/rhvpn/el9/el9-x86_64-appstream-n9.0-20211105/"
+ for SOURCE in $(sudo composer-cli sources list)
+ sudo composer-cli sources info baseos
check_gpg = false
check_ssl = true
id = "baseos"
name = "baseos"
rhsm = false
system = true
type = "yum-baseurl"
url = "https://rpmrepo.osbuild.org/v2/mirror/rhvpn/el9/el9-x86_64-baseos-n9.0-20211105/"
+ for SOURCE in $(sudo composer-cli sources list)
+ sudo composer-cli sources info rt
check_gpg = false
check_ssl = true
id = "rt"
name = "rt"
rhsm = false
system = true
type = "yum-baseurl"
url = "https://rpmrepo.osbuild.org/v2/mirror/rhvpn/el9/el9-x86_64-rt-n9.0-20211105/"

This happens during sourcing tools/provision.sh https://github.com/osbuild/osbuild-composer/blob/main/tools/provision.sh#L75

diaasami
diaasami previously approved these changes Nov 16, 2021
@achilleas-k
Copy link
Member Author

I asked Tomas to create a new repo snapshot and I'll update the repo links once it's done.

@runcom
Copy link
Member

runcom commented Nov 16, 2021

I asked Tomas to create a new repo snapshot and I'll update the repo links once it's done.

we need a new snapshot for 8.6 as well for the 8.6 PR version of this too as that's failing too cause there's no coreos-installer-dracut in rpmrepo.osbuild #1752

This also needs rdma-core in the package set of the simplified installer

@achilleas-k
Copy link
Member Author

achilleas-k commented Nov 16, 2021

Updated the test repositories and rebased on main.

@runcom the new repository snapshots include 8.6 as well.

@achilleas-k achilleas-k force-pushed the distro/rhel9/edge-simplified-installer branch 2 times, most recently from 5a8f682 to e7ecd59 Compare November 16, 2021 13:54
p.AddStage(osbuild.NewLocaleStage(&osbuild.LocaleStageOptions{Language: "en_US.UTF-8"}))
p.AddStage(osbuild.NewSystemdStage(systemdStageOptions([]string{"coreos-installer"}, nil, nil, "")))
p.AddStage(osbuild.NewDracutStage(dracutStageOptions(kernelVer, arch, []string{"rdcore"})))
p.AddStage(osbuild.NewDracutStage(dracutStageOptions(kernelVer, arch, []string{"coreos-installer"})))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like the test in rhel9 can't find this module even if coreos-installer-dracut is installed?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nevermind, rebuilding the package cause of a bug in how it installs dracut modules on the system

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we'd need a new rpmrepo snapshot too

@runcom
Copy link
Member

runcom commented Nov 19, 2021

I think we can also get #2045 before this so we don't introduce rdma-core - we don't need that in the simplified installer at all

@achilleas-k
Copy link
Member Author

This requires coreos-installer-dracut version 0.10.1-4, which should appear in the nightly composes next week.

@runcom
Copy link
Member

runcom commented Nov 20, 2021

This requires coreos-installer-dracut version 0.10.1-4, which should appear in the nightly composes next week.

it's now in the nightly repos - we need another snapshot and we should be good to go 👍

@achilleas-k achilleas-k force-pushed the distro/rhel9/edge-simplified-installer branch from e7ecd59 to c1ca4fd Compare November 22, 2021 13:09
@runcom
Copy link
Member

runcom commented Nov 23, 2021

@achilleas-k can we request/do another snapshot to make test pass here? last nightlies contain the package we need with the correct version

@achilleas-k achilleas-k force-pushed the distro/rhel9/edge-simplified-installer branch from c1ca4fd to 18b092e Compare November 23, 2021 15:14
@achilleas-k
Copy link
Member Author

Pointed test repos to today's snapshot

@runcom
Copy link
Member

runcom commented Nov 23, 2021

Looks like some resource constraints in CI

@runcom
Copy link
Member

runcom commented Nov 24, 2021

Google api error 😅

@achilleas-k achilleas-k force-pushed the distro/rhel9/edge-simplified-installer branch from 18b092e to 36d7235 Compare November 24, 2021 15:31
@achilleas-k
Copy link
Member Author

Also needed a rebase on main

@runcom
Copy link
Member

runcom commented Nov 24, 2021

looks like mkfs.fat in osbuild has some issues https://gitlab.com/osbuild/ci/osbuild-composer/-/jobs/1816235011#L3130
apart from that, I think coreos-installer-dracut is now properly working in RHEL9 :)

@achilleas-k
Copy link
Member Author

looks like mkfs.fat in osbuild has some issues https://gitlab.com/osbuild/ci/osbuild-composer/-/jobs/1816235011#L3130 apart from that, I think coreos-installer-dracut is now properly working in RHEL9 :)

Posted in chat but should've commented here:
Empty volid is invalid in mkfs.fat (I guess it was always invalid, but they fixed the validation in the latest release):
dosfstools/dosfstools@07e63ac

You can omit the flag entirely in the command, but in osbuild it's required in the stage options:
https://github.com/osbuild/osbuild/blob/2e9ffaf517e1d717be2f588baea98794b0f21ae3/stages/org.osbuild.mkfs.fat#L32

so not specifying it means it gets passed as empty string, which breaks now.

@achilleas-k
Copy link
Member Author

coreos-installer needs an another update/fix for this. It removes the initrd-release file in the initramfs, which seems to upset systemd now.

@achilleas-k achilleas-k force-pushed the distro/rhel9/edge-simplified-installer branch from 238c104 to bd942d4 Compare November 26, 2021 15:46
@runcom
Copy link
Member

runcom commented Nov 30, 2021

coreos-installer needs an another update/fix for this. It removes the initrd-release file in the initramfs, which seems to upset systemd now.

the fix landed in nightlies, we can snapshot that, update the manifests and retest tests here

@henrywang
Copy link
Member

@achilleas-k Tests on RHEL 9.0 failed at DNF error occured: RepoError: Error occurred when setting up repo: Failed to download metadata for repo '0': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
I think the nightly compose repo URL should be http://download.devel.redhat.com/rhel-9/nightly/RHEL-9/latest-RHEL-9.0/compose/BaseOS/x86_64/os. The repo URL needs /os.

@achilleas-k
Copy link
Member Author

Thanks @henrywang. I neglected this PR again. Changing now.

Temporarily switch to the nightly devel composes for RHEL 9.0.
We're testing new packages and changes right now (like coreos-installer)
and it takes time to make new snapshots every time.

Signed-off-by: Achilleas Koutsou <achilleas@koutsou.net>
@achilleas-k achilleas-k force-pushed the distro/rhel9/edge-simplified-installer branch from 30f7c3e to 2535386 Compare December 1, 2021 16:18
@runcom
Copy link
Member

runcom commented Dec 2, 2021

LGTM :)

@achilleas-k achilleas-k merged commit 24b8373 into osbuild:main Dec 2, 2021
@achilleas-k achilleas-k deleted the distro/rhel9/edge-simplified-installer branch December 2, 2021 11:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants