Icinga / icinga-packaging

Packaging documentation and issues for the official Icinga repository
https://packages.icinga.com
44 stars 15 forks source link

Change Debian package suffixes for release upgrades #120

Closed lazyfrosch closed 4 months ago

lazyfrosch commented 5 years ago

Currently all package versions end in -1.<dist>, so:

x.x.x-1.trusty
x.x.x-1.xenial
x.x.x-1.stretch

This came apparent with latest Ubuntu releases, where Canonical rolled over the codenames alphabetically. Currently the OS won't upgrade 2.10.1-1.xenial to 2.10.1-1.bionic to to alphabetical order.

To have proper version information we should switch over to numeric version suffixes, this will guarantee that Icinga 2 packages will be upgraded.

Examples:

x.x.x-1.ubuntu1604
x.x.x-1.ubuntu1804
x.x.x-1.debian9
x.x.x-1.debian10

Question: Is debian10 newer than debian9?

/cc @R-Sommer

lazyfrosch commented 5 years ago

Yes it works:

$ dpkg --compare-versions 1.1.1-1.debian10 gt 1.1.1-1.debian9; echo $?
0
lazyfrosch commented 5 years ago

This is still pending, you should be able to fully upgrade like this:

sudo apt-get install icinga2 --allow-downgrades
r4a5a88 commented 5 years ago

I tried it today and got this icinga2 ist schon die neueste Version (2.10.5-1.stretch). icinga2 is on the newest version

ThreeFx commented 5 years ago

Is there an ETA on changing the versioning? We are currently suffering from the same issue.

dnsmichi commented 5 years ago

This will hopefully solve itself when I release 2.11 today.

waja commented 5 years ago

Unfortunately this did not fix this issue. Actually I'm working around something like this:

ICINGA2_VER="$(apt-cache policy icinga2| grep "\.buster" | head -1 | awk '{print $1}')" && [ -n "${ICINGA2_VER}" ] && apt install icinga2-bin=${ICINGAWEB2_VER} icinga2-common=${ICINGAWEB2_VER}

Same goes for icingaweb2. But this isn't a no brainer like moving away from release names in package versions but using distibutions release versions like "~deb10" and "~deb9" or something like this.

Kazyini commented 3 years ago

Any news?

waja commented 2 years ago

ping? :P

Al2Klimov commented 4 months ago

This has been fixed for new packages: https://packages.icinga.com/debian/pool/main/i/icinga-kubernetes/