jfut / ganeti-rpm

Ganeti RPM Packaging
http://jfut.integ.jp/linux/ganeti/
BSD 2-Clause "Simplified" License
25 stars 14 forks source link

Ganeti 3.0.0 support #33

Closed jfut closed 3 years ago

jfut commented 3 years ago

It is desirable to be able to provide for el7 and el8.

alfonso-escribano commented 3 years ago

Ganeti 3.0.0 is out: https://github.com/ganeti/ganeti/blob/master/NEWS

jfut commented 3 years ago

Hi, I have built Ganeti 3.0.0.rc1-1 RPM packages to test with el7 and el8. :rocket:

WARNING: Do not use in production environments.

I have fixed some TODOs and will release a stable version later this month or next month.

Test installation

Please let me know if you have any problems with the test. Thank you for your cooperation.

Ganeti 3.0.0 RPM for el7 uses python36 (version 3.6.x) packages instead of pyhon (version 2.7.x).

yum --enablerepo=epel install \
  https://jfut.integ.jp/linux/ganeti/7/testing/python36-inotify-0.9.6-14.el7.noarch.rpm \
  https://jfut.integ.jp/linux/ganeti/7/testing/ganeti-3.0.0.rc1-1.el7.x86_64.rpm \
  https://jfut.integ.jp/linux/ganeti/7/x86_64/ganeti-instance-debootstrap-0.16-1.el7.noarch.rpm

You can also update from version 2.x.

yum --enablerepo=epel install https://jfut.integ.jp/linux/ganeti/7/testing/python36-inotify-0.9.6-14.el7.noarch.rpm
yum --enablerepo=epel update https://jfut.integ.jp/linux/ganeti/7/testing/ganeti-3.0.0.rc1-1.el7.x86_64.rpm

Ganeti 3.0.0 RPM for el8 uses python3 (version 3.6.x) packages.

dnf --enablerepo=epel install \
  https://jfut.integ.jp/linux/ganeti/8/testing/python3-bitarray-0.8.3-3.el8.x86_64.rpm \
  https://jfut.integ.jp/linux/ganeti/8/testing/ganeti-3.0.0.rc1-1.el8.x86_64.rpm \
  https://jfut.integ.jp/linux/ganeti/8/testing/ganeti-instance-debootstrap-0.16-1.el8.noarch.rpm

You can still use various Ganeti OS definitions.

Haskell(GHC) environment changes

Since Ganeti 3.0.0, the upstream release is built/tested against GHC 8.0 through 8.8.

The GHC versions provided by the EPEL repository for el7 and el8 are as follows:

GHC for el7 cannot build Ganeti 3.0.0 or later. In addition, we have been built and provided RPM packges for many GHC libraries required to build Ganeti, but their version dependencies are complex and very difficult to build.

For those reasons, starting with Ganeti 3.0.0 RPM package, we decided to build using the GHC's official Binary Packages.

Current GHC version to use for build:

Ganeti RPM Changes

Please also see the upstream release notes (3.0.0beta1, 3.0.0rc1, and 3.0.0)

Known Issues

TODO

jfut commented 3 years ago

Hi, I have built Ganeti 3.0.0.rc1-2 RPM packages to test with el7 and el8. :rocket: :rocket:

WARNING: Do not use in production environments.

Important changes

Change running user and group (#20)

Now, ganeti daemons work with the privileges of gnt- users and gnt- groups.

Directories and files in /var/lib/ganeti and /var/log/ganeti are automatically modified to the appropriate permissions by the /usr/lib64/ganeti/ensure-dirs script at startup.

However, to modify the permissions of files in /var/lib/ganeti/queue/archive/, you need to manually execute the following command only once after installing the new package.

# -f, --full-run  Make a full run and set permissions on archived jobs (time consuming)
/usr/lib64/ganeti/ensure-dirs -f

Once you run it, you can just start it normally.

systemctl start ganeti.target

# Optional
systemctl start ganeti-kvmd.service
systemctl start ganeti-metad.service

Migrate qemu-kvm to qmue-kvm-ev

The oldest version of qemu supported by the upstream is qemu-2.11 (Ubuntu 18.04 LTS Bionic). Therefore, it is recommended to migrate qemu-kvm(version 1.5.x) on el7 to qemu-kvm-ev(version 2.12.x). At the moment, Ganeti of the Ganeti RPM Package still works with qemu-kvm, but it will not working in the future.

# Migrate qemu-kvm to qemu-kvm-ev
yum install centos-release-qemu-ev
yum update qemu-*
jfut commented 3 years ago

Hi, I have built Ganeti 3.0.0.rc1-3 RPM packages to test with el7 and el8. :rocket: :rocket: :rocket:

WARNING: Do not use in production environments.

Changes

jfut commented 3 years ago

Ganeti 3.0.0-1 RPM has been released!