influxdb icon indicating copy to clipboard operation
influxdb copied to clipboard

Yum update beta3 -> rc1 fails due to release numbering

Open Will-Beninger opened this issue 10 years ago • 1 comments

Bug report

System info:

# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.6 (Santiago)
# yum --version
3.2.29
# rpm --version
RPM version 4.8.0
# influx --version
InfluxDB shell version: 1.0.0-beta3

Steps to reproduce:

  1. Attempt to upgrade the beta3 package with the rc1 package
# yum localinstall influxdb-1.0.0~rc1.x86_64.rpm
Setting up Local Package Process
Examining influxdb-1.0.0~rc1.x86_64.rpm: influxdb-1.0.0~rc1-1.x86_64
influxdb-1.0.0~rc1.x86_64.rpm: does not update installed package.
Nothing to do

Expected behavior: Expected package to install Actual behavior: It did not Additional info:

[root@localhost ~]# rpm -qpi influxdb-1.0.0~rc1.x86_64.rpm
Name        : influxdb                     Relocations: /
Version     : 1.0.0~rc1                         Vendor: InfluxData
Release     : 1                             Build Date: Tue 23 Aug 2016 01:20:32 AM CDT
Install Date: (not installed)               Build Host: fdd712074a55
Group       : default                       Source RPM: influxdb-1.0.0~rc1-1.src.rpm
Size        : 63949743                         License: MIT
Signature   : (none)
Packager    : [email protected]
URL         : https://github.com/influxdata/influxdb
Summary     : Distributed time-series database.
Description :
Distributed time-series database.
[root@localhost ~]# rpm -qi influxdb
Name        : influxdb                     Relocations: /
Version     : 1.0.0_beta3                       Vendor: InfluxData
Release     : 1                             Build Date: Mon 18 Jul 2016 04:53:39 PM CDT
Install Date: Thu 21 Jul 2016 10:16:02 AM CDT      Build Host: builds.influxdata.com
Group       : default                       Source RPM: influxdb-1.0.0_beta3-1.src.rpm
Size        : 63384619                         License: MIT
Signature   : (none)
Packager    : [email protected]
URL         : https://github.com/influxdata/influxdb
Summary     : Distributed time-series database.
Description :
Distributed time-series database.

Workaround:

[root@localhost ~]# yum downgrade influxdb-1.0.0~rc1.x86_64.rpm
...
Setting up Downgrade Process
Examining influxdb-1.0.0~rc1.x86_64.rpm: influxdb-1.0.0~rc1-1.x86_64
Resolving Dependencies
--> Running transaction check
---> Package influxdb.x86_64 0:1.0.0~rc1-1 will be a downgrade
---> Package influxdb.x86_64 0:1.0.0_beta3-1 will be erased
--> Finished Dependency Resolution
....

Will-Beninger avatar Aug 24 '16 20:08 Will-Beninger

@Will-Beninger Thanks for letting us know. This was caused by inconsistent naming between the RC and beta versioning for RPM packages. RPM sees 1.0.0_betaX as a higher version than 1.0.0~rcX, which is why it's not automatically triggering the upgrade. As you've mentioned, the workaround is to use yum downgrade instead of install to get the packaged install, or if you're using the unstable yum repo channel, simply running:

sudo yum downgrade influxdb

Will install the RC. With this RC, all versioning will remain consistent, so this workaround will only be needed if upgrading from the beta.

rossmcdonald avatar Aug 26 '16 19:08 rossmcdonald