tarantool / jepsen.tarantool

Jepsen tests for Tarantool
https://www.tarantool.io/en/
Other
7 stars 0 forks source link

Tarantool installation stuck when previous version of config is discovered #73

Closed ligurio closed 3 years ago

ligurio commented 3 years ago

sometimes when apt installs tarantool package it stuck with message:

ubuntu@n1:~$ sudo apt install tarantool               
Reading package lists... Done
Building dependency tree
Reading state information... Done
tarantool is already the newest version (2.6.1.0.gcfe0d1a55-1).
0 upgraded, 0 newly installed, 0 to remove and 63 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up tarantool-common (2.6.1.0.gcfe0d1a55-1) ...

Configuration file '/etc/default/tarantool'                                                                                                      
 ==> File on system created by you or by a script.
 ==> File also in package provided by package maintainer.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version         
    N or O  : keep your currently-installed version            
      D     : show the differences between the versions
      Z     : start a shell to examine the situation
 The default action is to keep your current version.
*** tarantool (Y/I/N/O/D/Z) [default=N] ?

Configuration file '/etc/logrotate.d/tarantool'
 ==> File on system created by you or by a script.
 ==> File also in package provided by package maintainer.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version         
    N or O  : keep your currently-installed version    
      D     : show the differences between the versions
      Z     : start a shell to examine the situation                   
 The default action is to keep your current version.
*** tarantool (Y/I/N/O/D/Z) [default=N] ?     

How-To Reproduce

Possible solution:

-o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confnew (from https://unix.stackexchange.com/questions/22820/how-to-make-apt-get-accept-new-config-files-in-an-unattended-install-of-debian-f)

Totktonada commented 3 years ago

Maybe export DEBIAN_FRONTEND=noninteractive will help.

ligurio commented 3 years ago

Thanks, Alexander!

Jepsen sets DEBIAN_FRONTEND=noninteractive by default in function that installs packages on Debian (our source code uses these helpers). jepsen.tarantool installs Tarantool itself using in two ways: self building and using tarantool.io/installer.sh. Although I didn't see problem described in issue for a long time I think it is worth to set DEBIAN_FRONTEND for installer.sh too.