Skip to content
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.

Unable to Install Cassandra RPM Package on CentOS 7 #155

Open
dallinb opened this issue Aug 7, 2022 · 4 comments
Open

Unable to Install Cassandra RPM Package on CentOS 7 #155

dallinb opened this issue Aug 7, 2022 · 4 comments

Comments

@dallinb
Copy link
Contributor

dallinb commented Aug 7, 2022

Describe the bug
Unable to

To Reproduce
Steps to reproduce the behaviour:
After setting up the Apache Cassandra repository, run the following command:

yum install cassandra

We then get the following error:

Loaded plugins: fastestmirror, ovl
Loading mirror speeds from cached hostfile
 * base: www.mirrorservice.org
 * epel: mirror.nl.leaseweb.net
 * extras: www.mirrorservice.org
 * updates: mirror.as29550.net
Resolving Dependencies
--> Running transaction check
---> Package cassandra.noarch 0:4.0.5-1 will be installed
Error: Invalid version flag: or

Expected behaviour
Cassandra should be installed successfully.

Versions (please complete the following information):

  • Ansible version: core 2.12.6
  • Role version: 1.18.0
  • Python version: 2.7.5

Additional context
It seems that this maybe a feature in the Cassandra package for specifying the dependancies for Cassandra:

	(jre-1.8.0 or jre-11) is needed by cassandra-4.0.5-1.noarch
	python(abi) >= 3.6 is needed by cassandra-4.0.5-1.noarch
	rpmlib(RichDependencies) <= 4.12.0-1 is needed by cassandra-4.0.5-1.noarch

The or was introduced in rpm-4.13 (see TheHive-Project/TheHive#2403) but the most up to date available for CentOS 7 seems to be 4.11.3. Therefore, at the moment it seems that we're dead in the water for supporting CentOS 7 and Cassandra 4.

@dallinb
Copy link
Contributor Author

dallinb commented Aug 16, 2022

Ran the following and still have the issue:

docker run --rm -it quay.io/centos/centos:centos7 bash

Then on the container, run:

yum install -y epel-release && yum clean all && yum install rpm

We still only have rpm-4.11.3 available.

Same result when using Docker Hub's container with:

docker run --rm -it centos:7 bash

@rind-tran
Copy link

Hi @dallinb ,

According to Cassandra official document:

  • For CentOS 7 and similar (rpm < 4.14), append the noboolean repository
[cassandra]
name=Apache Cassandra
baseurl=https://redhat.cassandra.apache.org/41x/noboolean/
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://downloads.apache.org/cassandra/KEYS

Reference:
https://cassandra.apache.org/_/download.html

@dallinb
Copy link
Contributor Author

dallinb commented Dec 29, 2022

Hi @rind-tran,

Thank you very much for the suggestion. That does indeed get me past the original point of failure. I'm now having a problem with systemd in the container which is strange as this definitely used to work. Looking at that now and thanks again.

@dallinb
Copy link
Contributor Author

dallinb commented Dec 30, 2022

Looks like I'm not alone in problems with SystemD and CentOS 7 as @geerlingguy (an excellent source of information) also seems to be having the same issue (see https://github.com/geerlingguy/ansible-role-certbot/actions/runs/3774003656/jobs/6415853279#step:5:241).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants