-
Notifications
You must be signed in to change notification settings - Fork 73
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
(RE-15156) Add redhat-9-arm64 support #327
Conversation
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## master #327 +/- ##
=========================================
- Coverage 0.73% 0.73% -0.01%
=========================================
Files 15 15
Lines 1765 1776 +11
=========================================
Hits 13 13
- Misses 1752 1763 +11
☔ View full report in Codecov by Sentry. 📢 Have feedback on the report? Share it here. |
For RHEL I haven't looked at correct generation yet. As you noticed, the data was inconsistent. Like Ideally we would generate the ABS template in https://github.com/voxpupuli/beaker-hostgenerator/blob/master/lib/beaker-hostgenerator/hypervisor/abs.rb and vmpooler in https://github.com/voxpupuli/beaker-hostgenerator/blob/master/lib/beaker-hostgenerator/hypervisor/vmpooler.rb. Then it would be reduced to just listing the versions in generate_os_info. The biggest problem is that Vox Pupuli doesn't use ABS or vmpooler so we really don't know what's available and what makes sense. |
Seems like a bug to me too. IMO BHG should always return a template/platform name that is consistent with the key (BHG string): We do cross compile on some platforms, but the decision about whether to cross-compile and which build host to use lives in the platform definition for the vanagon project, for example: https://github.com/puppetlabs/puppet-runtime/blob/6c8bbc664aea36cbadc12ab0d62773250faf70f1/configs/platforms/sles-12-ppc64le.rb#L31-L32 In other words, I don't see a use case for BHG ever returning an Intel-based |
Not sure why, but I'm having trouble getting this working. This line is causes an error if
I get the same when passing |
@joshcooper Following precedent of most recently added platforms I used "AARCH64" instead of "ARM64". Does that work for you? > beaker --version
wWWWw
|o o|
| O | 5.3.1!
|(")|
/ \X/ \
| V |
| | |
> beaker-hostgenerator -v
2.4.0
> beaker-hostgenerator redhat9-AARCH64a --hypervisor abs
---
HOSTS:
redhat9-AARCH64-1:
platform: el-9-aarch64
template: redhat-9-arm64
hypervisor: abs
roles:
- agent
CONFIG: {} |
Still, would be good to either silently ignore unknown architectures or fail with a clear error instead of a stack trace. |
yeah that could be handled better. Took me a bit to understand what was going on. I also run into errors like that when trying to run beaker tests and I've forgotted to do
Yeah I think it's good for the architecture to be consistent for all versions of the same OS. As for why we use different names for one OS vs another, I can only refer to https://twitter.com/lorenc_dan/status/1699794514586763408: |
Funny, I use
|
I'm not sure about all the places that the
abs
andvmpooler
platform data keys are used, but was a bit confused because theredhat8-AARCH64
specifies the x86 template nameredhat-8-x86_64
, is that a mistake?beaker-hostgenerator/lib/beaker-hostgenerator/data.rb
Line 348 in da8ac9a
So for the new platform's
vmpooler
key I used the expected name that we would use in vmpooler for that platform, is that correct? Or should that key just be omitted?EDIT: Ah it looks like those keys related to the hypervisor gem. The above definitely seems like a bug per: