rpm have bad version naming

Bug #947233 reported by Proskurin Kirill
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tarantool
Fix Released
Medium
Dmitry Simonenko

Bug Description

Due to bad version naming(afaik) every rpm from http://tarantool.org/dist/ thinks it`s uniq and can be installed "separately".

[root@alei5 tmp]# rpm -Uvh tarantool-1.4.4-277-g5a7f998-linux-x86_64.rpm
Preparing... ########################################### [100%]
   1:tarantool_box ########################################### [100%]
Creating a user and a group
Performing a single instance setup
tarantool_expand.sh: >>>> deploying instance 1
tarantool_expand.sh: >>>> updating deploy config
tarantool_expand.sh: done

[root@alei5 tmp]# rpm -Uvh tarantool-1.4.4-278-gf2c4b2b-linux-x86_64.rpm
Preparing... ########################################### [100%]
   1:tarantool_box ########################################### [100%]
Creating a user and a group
groupadd: group tarantool exists
useradd: user tarantool exists
Performing a single instance setup
tarantool_expand.sh error: expand only is supported (required instances number 1 is lower/equal than deployed 1)
error: %post(tarantool_box-20120305.1806-8.x86_64) scriptlet failed, exit status 1

[root@alei5 tmp]# rpm -qa | grep tarant
tarantool_box-20120305.1806-8
tarantool_box-20120229.1006-8

Revision history for this message
Dmitry Simonenko (pmwkaa) wrote :

Couldn't reproduce the problem, update works.

docbuilder@docbuilder:~$ sudo rpm -Uvh --nodeps tarantool-1.4.5-72-gb1b52cf-linux-i686.rpm
rpm: RPM should not be used directly install RPM packages, use Alien instead!
rpm: However assuming you know what you are doing...
Preparing... ########################################### [100%]
   1:tarantool_box ########################################### [100%]
Creating a user and a group
groupadd: group 'tarantool' already exists
useradd: user 'tarantool' already exists
Performing a single instance setup
tarantool_expand.sh: >>>> deploying instance 1
tarantool_expand.sh: >>>> updating deploy config
tarantool_expand.sh: done

docbuilder@docbuilder:~$ rpm -qa
tarantool_box-20120414.1505-8.i386

docbuilder@docbuilder:~$ sudo rpm -Uvh --nodeps tarantool-1.4.5-74-g436e545-linux-i686-debug.rpm
rpm: RPM should not be used directly install RPM packages, use Alien instead!
rpm: However assuming you know what you are doing...
Preparing... ########################################### [100%]
   1:tarantool_box ########################################### [100%]
Creating a user and a group
groupadd: group 'tarantool' already exists
useradd: user 'tarantool' already exists
tarantool_expand.sh error: expand only is supported (required instances number 1 is lower/equal than deployed 1)
warning: %post(tarantool_box-20120416.1353-8.i386) scriptlet failed, exit status 1

docbuilder@docbuilder:~$ rpm -qa
tarantool_box-20120416.1353-8.i386

Revision history for this message
Dmitry Simonenko (pmwkaa) wrote :

docbuilder@docbuilder:~$ rpm --version
RPM version 4.8.1

Changed in tarantool:
status: New → Incomplete
Revision history for this message
Kostja Osipov (kostja) wrote :

Dmitry, please re-try on CentOS, this may be specific to this platform, and if it doesn't reproduce there, close the bug.

Changed in tarantool:
assignee: nobody → Dmitry Simonenko (pmwkaa)
status: Incomplete → In Progress
Revision history for this message
Dmitry Simonenko (pmwkaa) wrote :

Yes, the problem repeats with centos5 and RPM version 4.4.2.3.

Update actually works, which can be seen by checking tarantool_box --version. If more newer version has been installed first, attempt to install a older one would produce an error message that newer package is installed, which is adequate behaviour.

Somehow rpm utility of this version doesn't update package cache.

Revision history for this message
Dmitry Simonenko (pmwkaa) wrote :

Seems like it's older problem of Fedor/CentOS. Can be maintained with package-cleanup utility:

# this package contains package-cleanup utility
yum install yum-utils

# to show duplicates
package-cleanup --dupes

# to remove duplicates
package-cleanup --cleandupes

Changed in tarantool:
status: In Progress → Fix Released
Kostja Osipov (kostja)
Changed in tarantool:
importance: Undecided → Medium
milestone: none → 1.4.6
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.