Commit Graph

74 Commits

Author SHA1 Message Date
Trevor Cooper 5738ed4b57
Merge branch 'rocky' into beta-lookahead-support 2023-10-11 19:50:31 -07:00
Trevor Cooper fe8b338c8b
don't fail on osinfo lookup for beta and lookahead 2023-09-23 20:27:46 -07:00
Alan Marshall 094371b749
Provide alternative function to detect cpu arch 2023-09-19 12:03:54 +01:00
Trevor Cooper d64b0a2fcb
Add beta support to createhdds.py (#12)
* add ability to point at stg or pub baseurl

* add support for building 8.7-Beta virt-install images

* differentiate guestfs and virtInstall
2022-10-13 18:35:51 -05:00
Trevor Cooper 53624d2dd5
feat: add temporary support for Rocky Linux 9 (#9) 2022-08-16 07:31:01 -07:00
Trevor Cooper ef0d3aea14
feat: improvements for createhdds (#5) 2022-05-19 12:53:09 -07:00
Trevor Cooper 6c279c92b3
leave a hint about where/how to use stg instead of pub 2022-05-14 13:23:48 -07:00
Trevor Cooper 824de0a3f8
correct 'unknown' os-variant for Rocky 8 2022-05-14 13:23:19 -07:00
Trevor Cooper cce1d6a910 additional debranding for rocky 2021-12-04 00:31:48 -08:00
Trevor Cooper 34a652cbe7 remove fedfind stuff rocky doesn't use it 2021-12-04 00:30:12 -08:00
Adam Williamson 841fdf1ffb Move the 'unknown' image check below the renaming gubbins
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2021-09-10 11:07:58 -07:00
Adam Williamson 6fbe122c0c Fix typo in previous commit
D'oh.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2021-09-10 11:00:32 -07:00
Adam Williamson ce84310d2e Use '.qcow2' not '.img' as the extension for virt-install images
They're qcow2 images, so this is more correct, and will make
os-autoinst's new backing format autodetection work correctly.
We make the `check` function rename existing images, for
convenience.
NOTE: this requires a matching change to the templates in
os-autoinst, and you will want to run the check function to
rename all existing images to avoid wasting a ton of time
recreating them.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2021-09-10 10:49:55 -07:00
Adam Williamson 90c23bff6e Use 3G memory for virt-install image builds
Seems like 2G isn't enough in some cases, it's why the F34 server
and support image builds have been failing.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2021-09-10 09:19:13 -07:00
Adam Williamson dc500293d1 Build desktop images for aarch64 upgrade tests
We want to run the desktop upgrade tests on aarch64; to do that,
we need the required base images to be built. We also need to
do the `console=tty0 quiet` boot args for the desktopencrypt
image so the decrypt prompt is visible on boot; to handle this,
we extend the existing hack for using a release-specific ks
to be more generic and allow for a more specific kickstart by
arch, release or both.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2021-06-28 13:51:13 -07:00
Adam Williamson 707eb5e837 Update copyright statement to current RH recommendation
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2021-06-01 13:35:42 -07:00
Adam Williamson fe87f40d94 Hack to avoid F33 KDE image using Wayland (#1960458)
This is a bit ugly but offhand can't think of a better way. We
are dropping plasma-workspace-wayland from the F33 KDE image to
try and avoid it using Plasma-on-Wayland as the default session,
which is #1960458.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2021-05-13 16:29:27 -07:00
Adam Williamson 5d6842d146 Add current minimal-uefi for aarch64, stop allowing "current"
"current" is just a synonym for "-1" but made the code more
complex. Let's ditch it and just note in a comment that -1 is
CURRREL and -2 is PREVREL. We need minimal-uefi for aarch64 as
install_blivet_btrfs_preserve_home_uefi uses it.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2021-02-19 11:29:25 -08:00
Michel Normand 5732bf97be Revert "Work around RHBZ #1769600 on ppc64"
This reverts commit 8f53b9f5f8.

similar revert already done since a while in os-autoinst-distri-fedora
"e020b87  Drop the pseries-4.0 workaround for ppc64le"
2020-11-09 17:55:27 +01:00
Adam Williamson e03456491b Enable virt-install debug logging when we are at debug log level
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2020-05-09 09:13:19 -07:00
Adam Williamson c9ce6b5d0a Tweak get_virtinstall_images to not include dupes
Some of the version config directives make it possible to wind
up with dupes - for instance, our config for the 'minimal' image
can result in multiple instances of VirtInstallImage for F31
appearing in the list, meaning we'll build the same image two
or more times in the same run. That's silly! Let's not do that.
Using a dict keyed on the release number and arch we wind up with
after interpreting the config file should avoid it.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2020-05-06 16:04:19 -07:00
Adam Williamson 05b418b796 Add aarch64 as a valid choice for CLI arch arg
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2020-04-18 15:15:04 -07:00
Lukáš Růžička e63e8314f4 Add support for setting the GUID of the partition to set
its correct type.

Previously, it was not possible to set the type of the partition via
the specific GUID. This commit adds support for adding the GUID into
the gtp_type of the partition description in hdds.json and this field
will be utilized in to code.
2019-11-14 10:22:18 +01:00
Lukáš Růžička a01d22f6ef Enable booting the VM as UEFI and provide record for a UEFI machine.
This commit adds support for boot options, that can be passed
from `hdds.json` to control the creation of the virtual
machines, such as enabling of EFI based machines, boot order
control, etc. It also adds EFI based machine to `hdds.json`
and adds a kickstart file for such machine.
2019-11-13 20:19:44 +01:00
Adam Williamson 8f53b9f5f8 Work around RHBZ #1769600 on ppc64
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2019-11-07 13:36:17 -08:00
Adam Williamson 53ef72b734 Drop some old release-based workarounds, no longer needed
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2019-11-06 11:58:18 -08:00
Adam Williamson c9da58b0b0 Move i686 F31+ filter, drop ppc64 F29+ one
We previously did a filter like the one for 'i686 on F31+' for
'ppc64 on F29+', only in a different place which was actually a
better place. That filter is now unneeded as F28 went EOL, so
drop it...but move the i686 F31+ filter into the same place, as
it's better done there than in create().

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2019-11-05 12:40:02 -08:00
Adam Williamson 8e6136ee20 Don't allow creation of i686 images for Fedora 31+
This just isn't possible any more, we no longer produce all
the necessary bits to generate images for i686.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2019-10-29 14:31:27 -07:00
Adam Williamson 74c28b5557 Now fix it harder I hate software where's my yak farm
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2019-08-27 08:18:09 -07:00
Adam Williamson 6134a088f1 Sigh, fix previous commit
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2019-08-27 08:17:31 -07:00
Adam Williamson 5113761cbb From F31 onwards we have to build Workstation out of Everything
Conspiracy theory: everything releng does is intended to make
this code more awful

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2019-08-27 08:16:29 -07:00
Michel Normand 14c2af9332 Revert "Disable plymouth for PowerPC release >f27"
This reverts commit 3f9cbd27d4.

I verified that related bug#1571860 is not present anymore on f29.

Signed-off-by: Michel Normand <normand@linux.vnet.ibm.com>
2019-05-29 10:11:49 +02:00
Michel Normand 99022bda48 keep variant setting removed by previous commit
to avoid error like:
===
$~/createhdds/createhdds.py  support
...
Traceback (most recent call last):
  File "/root/createhdds/createhdds.py", line 821, in <module>
    main()
  File "/root/createhdds/createhdds.py", line 811, in main
    args.func(args, hdds)
  File "/root/createhdds/createhdds.py", line 701, in cli_image
    img.create(args.textinst)
  File "/root/createhdds/createhdds.py", line 291, in create
    loctmp.format(fedoradir, str(self.release), variant, arch), "--name", "createhdds",
NameError: name 'variant' is not defined
===

Signed-off-by: Michel Normand <normand@linux.vnet.ibm.com>
2019-02-06 09:31:59 +01:00
Adam Williamson 9523510d43 Few misc updates for old things
Archive now has up to F27, we're not testing ppc64 any more, and
the old workaround is no longer needed.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2019-02-01 10:51:09 +00:00
Adam Williamson c1b0ddc39e Don't produce ppc64 images for Fedora > 28
ppc64 (as opposed to ppc64le) was retired in Fedora 29. Tweaking
hdds.json to reflect this now is a bit awkward, so instead let's
leave it as-is, but add code to createhdds to not really include
a ppc64 image in the expected list if it's for F29 or later.
Once F28 goes EOL we can just drop all ppc64 from hdds.json and
lose this code.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2018-11-13 13:29:03 -08:00
Adam Williamson c0a92bfd73 Maybe it's right this time...
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2018-08-08 11:09:47 -07:00
Adam Williamson 4c46794638 Fix an error in previous commit
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2018-08-07 16:34:53 -07:00
Adam Williamson 9aeb8841c5 Try and deal with F26 being archived *already*
Grumble mumble.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2018-08-07 16:33:46 -07:00
Michel Normand 3f9cbd27d4 Disable plymouth for PowerPC release >f27
as bypass for pending bug
https://bugzilla.redhat.com/show_bug.cgi?id=1571860

Signed-off-by: Michel Normand <normand@linux.vnet.ibm.com>
2018-05-04 11:05:29 +02:00
Adam Williamson 46d78228e9 Correct cross-arch info message again
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2018-03-15 10:37:37 -07:00
Adam Williamson 14abb9b3e1 libvirt: Undefine NVRAM when undefining domain
This is apparently necessary on aarch64, we get an error from
libvirt otherwise.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2018-03-14 13:42:01 -07:00
Adam Williamson a886b9f4a9 Handle aarch64 being secondary for releases < 28
Sigh, this mini-fedfind is so much fun.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2018-03-14 12:24:37 -07:00
Adam Williamson 450efb8bb5 Add aarch64 support and images
We're bootstrapping aarch64 into openQA, so we need this.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2018-03-06 09:06:58 -08:00
Adam Williamson 498cc306f8 Update README, make 'wrong arch' log message less scary
README was badly outdated, so give it a coat of paint. A person
trying to get up to speed on openQA was misled by the current
message into thinking something was wrong.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2018-03-06 08:54:35 -08:00
Adam Williamson ed7fcd75e4 Don't list images for other arches as 'missing'
...But also be careful not to treat them as 'unknown' either.
This avoids the ansible plays regenerating outdated images (we
try to avoid that and just have the cron job do it).
2017-10-16 09:51:56 -07:00
Adam Williamson 7c32272cc8 Include arch in branched virt-install URL
...*this* should be right.
2017-09-15 19:56:35 -07:00
Adam Williamson 4e2df1104d Don't include fedoradir twice in virt-install branched URL
...oops.
2017-09-15 19:53:13 -07:00
Adam Williamson b0fd971916 Sigh, force to str when appropriate... 2017-09-04 16:08:18 -07:00
Adam Williamson d87bafb15e Bit more rejigging, fix i386 secondary case
Broke the i386 secondary case with the previous rejig (by moving
where we fix i686 to be i386). This fixes that and again makes
readability better.
2017-09-04 16:06:44 -07:00
Adam Williamson 7e5db6a426 Re-order `VirtInstallImage.create()` a bit to avoid bugs
Various things were being set in odd orders and not used right
later on, this is a general clean-up that solves that and makes
things a bit easier to read (I hope).
2017-09-04 12:19:59 -07:00