Skip to content

set COSA_DIR in Dockerfile#827

Merged
cgwalters merged 4 commits intoopenshift:masterfrom
cheesesashimi:zzlotnik/fix-rhcos-ci
Jun 8, 2022
Merged

set COSA_DIR in Dockerfile#827
cgwalters merged 4 commits intoopenshift:masterfrom
cheesesashimi:zzlotnik/fix-rhcos-ci

Conversation

@cheesesashimi
Copy link
Copy Markdown
Member

With the introduction of openshift/release#29187, the test stages no longer have an explicitly set COSA_DIR value. Instead, they are calling $ mktemp -d.

@openshift-ci openshift-ci Bot requested review from jlebon and mike-nguyen June 7, 2022 14:46
@travier
Copy link
Copy Markdown
Member

travier commented Jun 7, 2022

/lgtm

@openshift-ci openshift-ci Bot added lgtm Indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Jun 7, 2022
@cheesesashimi cheesesashimi force-pushed the zzlotnik/fix-rhcos-ci branch from 6220d6d to 2fb01b0 Compare June 7, 2022 14:52
@openshift-ci openshift-ci Bot removed the lgtm Indicates that a PR is ready to be merged. label Jun 7, 2022
@miabbott
Copy link
Copy Markdown
Member

miabbott commented Jun 7, 2022

/src/ci/prow-build.sh: line 9: cd: /tmp/cosa: No such file or directory

Looks like we need to create it in the prow-build.sh script?

@cheesesashimi cheesesashimi force-pushed the zzlotnik/fix-rhcos-ci branch from 2fb01b0 to 46deaad Compare June 7, 2022 15:02
@cheesesashimi
Copy link
Copy Markdown
Member Author

Looks like we need to create it in the prow-build.sh script?

We can also create it inside the container image. I ran into the same permissions issues I ran into when I was setting up the CI. I fixed it though.

@cheesesashimi
Copy link
Copy Markdown
Member Author

cheesesashimi commented Jun 7, 2022

This is still showing the same failure mode of qemu-img: /var/tmp/mantle-qemu3810394450/disk2048124430: Image creation needs a size parameter. Is it possible that the qemu-img version in the coreos-aseembler image changed and now requires an additional parameter?

EDIT: The kola tests need to be executed from /tmp/cosa, which is presently not the case. The simplest fix is adding a WORKDIR /tmp/cosa to ci/Dockerfile to ensure that all test phases start within that directory.

@cgwalters
Copy link
Copy Markdown
Member

cgwalters commented Jun 8, 2022

 + cosa buildextend-metal
fatal: /tmp/cosa must be a volume 

yet...we didn't exit out?

Oh no, oh no. coreos/coreos-assembler#2898 strikes again.

cgwalters added 2 commits June 7, 2022 20:13
This way it should be inherited more consistently by further jobs.
I noticed in CI we just plowed forward and yeah...bash is just
a language that seems superficially convenient and simple.  But
then you pay it back later spending hours on inane problems.
@cgwalters
Copy link
Copy Markdown
Member

I pushed two followup commits here, hope that's OK!

Copy link
Copy Markdown
Member

@travier travier left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci openshift-ci Bot added the lgtm Indicates that a PR is ready to be merged. label Jun 8, 2022
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Jun 8, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cheesesashimi, travier

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@travier
Copy link
Copy Markdown
Member

travier commented Jun 8, 2022

/retest

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Jun 8, 2022

@cheesesashimi: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/test-in-cluster 9de7192 link true /test test-in-cluster

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@cgwalters
Copy link
Copy Markdown
Member

OK cool, so it's just the last bit of test-in-cluster which is #829

@cgwalters cgwalters merged commit 21ea273 into openshift:master Jun 8, 2022
@cheesesashimi
Copy link
Copy Markdown
Member Author

I pushed two followup commits here, hope that's OK!

I was about to add ENV COSA_SKIP_OVERLAY=1, but you beat me to it!

@cheesesashimi cheesesashimi deleted the zzlotnik/fix-rhcos-ci branch June 8, 2022 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants