-
Notifications
You must be signed in to change notification settings - Fork 3
feat: add support for powervs #20
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
base: main
Are you sure you want to change the base?
Conversation
This however requires to bypass the osuosl ppc hack.
e4342e5 to
936edee
Compare
| # 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 |
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.
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.
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.
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)
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.
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).
|
/retest |
| # 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 |
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.
what about
elif test -f /etc/copr-builder/powervs-enabled; then
generic_mount
elif ...
This however requires to bypass the osuosl ppc hack.