Skip to content

Conversation

@nikromen
Copy link
Member

This however requires to bypass the osuosl ppc hack.

This however requires to bypass the osuosl ppc hack.
# When this flag exists, the osuosl hack in enable-swap.sh will be SKIPPED
RUN if [ "$POWERVS" = "true" ]; then \
echo "Running on PowerVS" > /etc/copr-builder/powervs-enabled; \
fi
Copy link
Member

@praiskup praiskup Aug 26, 2025

Choose a reason for hiding this comment

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

This is weird, do we really need to build an OCI image for ppc64le twice, once for powervs & once for hypervisors (and the rest)?

Seems like we could invent some form of runtime check.

Copy link
Member Author

Choose a reason for hiding this comment

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

we have hardwired hack for swap for power9 and 10 but it is only for osuosl openstack since we have (according to the comment there) only one volume for the image... I need to bypass this for powervs since we are allocating additional volume (as we do with the rest of VMs)

Copy link
Member

Choose a reason for hiding this comment

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

I missed your reply; we should discuss this on some meeting; what I mean here is that it would be nice to detect the powervs machiens at machine boot time, not at image build time. That would be the way to keep one OCI image for all the ppc64le machines (hypervisors, osuosl and powervs).

IOW, this check should be done in enable-swap (I'm renaming it to copr-partitions.sh).

@praiskup
Copy link
Member

/retest

@praiskup
Copy link
Member

praiskup commented Aug 26, 2025

Yeah, this would CI fail of course as the FROM image is outdated (@FrostyX plans to discuss this with bootc folks).
I'd suggest merging #18 first.

# about the "pool ID" (== particular hypervisor).
generic_mount
elif grep -E 'POWER9|POWER10' /proc/cpuinfo; then
elif grep -E 'POWER9|POWER10' /proc/cpuinfo && ! test -f /etc/copr-builder/powervs-enabled; then
Copy link
Member

Choose a reason for hiding this comment

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

what about

elif test -f /etc/copr-builder/powervs-enabled; then
   generic_mount
elif ...

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.

2 participants