Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building with docker build -t gluster-centos CentOS command does not work due to missing dependencies #201

Open
networkingana opened this issue Feb 28, 2023 · 2 comments

Comments

@networkingana
Copy link

networkingana commented Feb 28, 2023

I cannot successfully build with docker build -t gluster-centos CentOS

Installed:
  glusterfs-11.0-1.el9s.x86_64          gperftools-libs-2.9.1-1.el9s.x86_64
  libgfrpc0-11.0-1.el9s.x86_64          libgfxdr0-11.0-1.el9s.x86_64
  libglusterfs0-11.0-1.el9s.x86_64      libunwind-1.5.0-1.el9s.x86_64

Complete!
Last metadata expiration check: 0:00:24 ago on Tue Feb 28 12:31:50 2023.
Error:
 Problem: cannot install the best candidate for the job
  - nothing provides python3-pyxattr needed by glusterfs-server-11.0-1.el9s.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
The command '/bin/sh -c dnf --nodocs -y update && dnf --nodocs -y install centos-release-gluster && (cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done) && rm -f /lib/systemd/system/multi-user.target.wants/* &&rm -f /etc/systemd/system/*.wants/* &&rm -f /lib/systemd/system/local-fs.target.wants/* && rm -f /lib/systemd/system/sockets.target.wants/*udev* && rm -f /lib/systemd/system/sockets.target.wants/*initctl* && rm -f /lib/systemd/system/basic.target.wants/* &&rm -f /lib/systemd/system/anaconda.target.wants/* &&dnf --nodocs -y install nfs-utils && dnf --nodocs -y install attr  && dnf --nodocs -y install iputils  && dnf --nodocs -y install iproute  && dnf --nodocs -y install openssh-server  && dnf --nodocs -y install openssh-clients  && dnf --nodocs -y install rsync  && dnf --nodocs -y install tar  && dnf --nodocs -y install cronie  && dnf --nodocs -y install xfsprogs  && dnf --nodocs -y install glusterfs  && dnf --nodocs -y install glusterfs-server  && dnf --nodocs -y install glusterfs-rdma  && dnf --nodocs -y install gluster-block  && dnf --nodocs -y install glusterfs-geo-replication && dnf clean all && sed -i '/Port 22/c\Port 2222' /etc/ssh/sshd_config && sed -i 's/Requires\=rpcbind\.service//g' /usr/lib/systemd/system/glusterd.service && sed -i 's/rpcbind\.service/gluster-setup\.service/g' /usr/lib/systemd/system/glusterd.service && sed -i 's/rpcbind\.service//g' /usr/lib/systemd/system/gluster-blockd.service && mkdir -p /etc/glusterfs_bkp /var/lib/glusterd_bkp /var/log/glusterfs_bkp &&cp -r /etc/glusterfs/* /etc/glusterfs_bkp &&cp -r /var/lib/glusterd/* /var/lib/glusterd_bkp &&cp -r /var/log/glusterfs/* /var/log/glusterfs_bkp && mkdir -p /var/log/core;' returned a non-zero code: 1

Error:
Problem: cannot install the best candidate for the job

  • nothing provides python3-pyxattr needed by glusterfs-server-11.0-1.el9s.x86_64
@DavidMiserak
Copy link

DavidMiserak commented Apr 4, 2023

I have to add dnf --nodocs -y install python3-pyxattr --enablerepo=crb[0] to the Dockerfile to get this to work.

[0] https://centos.pkgs.org/9-stream/centos-crb-x86_64/python3-pyxattr-0.7.2-4.el9.x86_64.rpm.html

@vanzhiganov
Copy link

vanzhiganov commented Jan 18, 2024

Enable CRB repo

dnf config-manager --enable crb

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

No branches or pull requests

3 participants