StackStorm / st2-packages

StackStorm deb/rpm packages (automated docker build pipeline)
https://stackstorm.com/
27 stars 59 forks source link

'repoquery -y' fails on EL6 and EL7 #641

Closed arm4b closed 4 years ago

arm4b commented 4 years ago

Scripted installer fails

curl -sSL https://stackstorm.com/packages/install.sh | bash -s --   --unstable --version=3.1dev   --user=st2admin --password=Ch@ngeMe

Error log

20200421T185906+0000 Generating yum cache for StackStorm_unstable...
20200421T185910+0000 Importing GPG key 0x1D66E01F:
20200421T185910+0000  Userid: "https://packagecloud.io/StackStorm/unstable (https://packagecloud.io/docs#gpg_signing) <support@packagecloud.io>"
20200421T185910+0000  From  : https://packagecloud.io/StackStorm/unstable/gpgkey
20200421T190005+0000 Generating yum cache for StackStorm_unstable-source...
20200421T190011+0000 
20200421T190011+0000 The repository is setup! You can now install packages.
20200421T190011+0000 Usage: repoquery [options]
20200421T190011+0000 
20200421T190011+0000 repoquery: error: no such option: -y
20200421T190011+0000 Could not find requested version of st2!!!
20200421T190011+0000 Usage: repoquery [options]
20200421T190011+0000 
20200421T190011+0000 repoquery: error: no such option: -y
20200421T190011+0000 ############### ERROR ###############
20200421T190011+0000 # Failed on Get package versions #
20200421T190011+0000 #####################################

Looks like a regression from https://github.com/StackStorm/st2-packages/pull/639 when repoquery -y was added.

-y flag is non-existent on EL6.

arm4b commented 4 years ago

Update: repoquery -y is non-existent on EL7 as well:

[vagrant@centos7 ~]$ repoquery -y --nvr --show-duplicates st2
Usage: repoquery [options]

repoquery: error: no such option: -y
nmaludy commented 4 years ago

Confirmed.

When i run this on CentOS 6 and 7, i don't need to pass -y and it "just works". Looks like reqoquery is reimplemented as a shim on top of dnf on CentOS 8 and that is most likely why the change in flag is necessary.