Skip to content
Snippets Groups Projects

RHEL images management (AIMS and OS) updated.

Merged Georgios Argyriou requested to merge update_redhat into master
1 file
+ 5
26
Compare changes
  • Side-by-side
  • Inline
+ 5
26
@@ -48,36 +48,15 @@ After a system is inserted into a LanDB Set, a .htaccess file is updated automat
!!! note ""
If a machine is deleted, it will be automatically removed from the corresponding LANDB set.
## OpenStack images
## RHEL images in OpenStack
If a new RHEL image is detected from Red Hat, they are downloaded, adjusted slightly for the CERN cloud and are then uploaded to openstack.cern.ch automatically via [koji-image-build](https://gitlab.cern.ch/linuxsupport/koji-image-build/)
If a new RHEL image (architecture: x86_64) is detected from Red Hat, they are automatically managed via [rhel_manage_images](https://gitlab.cern.ch/linuxsupport/cronjobs/rhel_manage_images/). They are downloaded, adjusted slightly for the CERN cloud and are then uploaded to openstack.cern.ch
Users of the [linux-announce-rhel](https://e-groups.cern.ch/e-groups/Egroup.do?egroupId=10430752) egroup will automatically be notified via email of the image UUID
### Adding a new RHEL image to AIMS2
## RHEL images in AIMS2
The procedure to add new RHEL AIMS2 targets is as it follows:
* Download the Binary DVD ISO (not the Boot ISO) for the given release from <https://access.redhat.com/downloads/>
* `ssh root@lxsoftadm01`, as you will need admin privileges to mount the ISO
```bash
# Create the new repo path that corresponds to the release to add, i.e. adapt "7/7.9"
mkdir /mnt/data1/dist/enterprise/rhel/server/7/7.9
# Mount the ISO so we can extract its contents
mount -t iso9660 -o loop rhel-server-7.9-x86_64-dvd.iso /mnt/iso
cp -pRf /mnt/iso/ /mnt/data1/dist/enterprise/rhel/server/7/7.9/x86_64
# Since we were doing things as root, chown to build
chown -R build:build /mnt/data1/dist/enterprise/rhel/server/7/7.9/*
umount /mnt/iso/
```
* Add the PXE images to AIMS2:
```bash
# Both prod and test
aims2client addimg --name RHEL_7_9_X86_64 --arch x86_64 --description "RHEL 7 SERVER UPDATE 9 FOR X86_64" --vmlinuz /mnt/data1/dist/enterprise/rhel/server/7/7.9/x86_64/images/pxeboot/vmlinuz --initrd /mnt/data1/dist/enterprise/rhel/server/7/7.9/x86_64/images/pxeboot/initrd.img --uefi
aims2client --testserver addimg --name RHEL_7_9_X86_64 --arch x86_64 --description "RHEL 7 SERVER UPDATE 9 FOR X86_64" --vmlinuz /mnt/data1/dist/enterprise/rhel/server/7/7.9/x86_64/images/pxeboot/vmlinuz --initrd /mnt/data1/dist/enterprise/rhel/server/7/7.9/x86_64/images/pxeboot/initrd.img --uefi
```
If a new RHEL image (architectures: x86_64, aarch64 and ppc64le) is detected from Red Hat they are automatically managed via [rhel_manage_images](https://gitlab.cern.ch/linuxsupport/cronjobs/rhel_manage_images/). They are downloaded, their content is extracted, added to AIMS2 (only x86_64 and aarch64) and are made available [here](https://linuxsoft.cern.ch/enterprise/rhel/server/).
Users of the [linux-announce-rhel](https://e-groups.cern.ch/e-groups/Egroup.do?egroupId=10430752) egroup will automatically be notified via email.
* Update our AIMS2 menus as in https://gitlab.cern.ch/ai/it-puppet-hostgroup-aims/-/blob/qa/data/hostgroup/aims.yaml#L213
Loading