Skip to content

cdemo install fails on RHEL7  #65

@magicmarkh-zz

Description

@magicmarkh-zz

Using a fresh minimal install of RHEL7.5 with no security profile, several issues were encountered after cloning cdemo.

1st issue - when running the ansible install script, the if statement does not find the correct version of software, so ansible is not installed. After modifying the script to use the Fedora function, no error is returned, although it is still not installed. I found the epel release could not be installed through yum. Instead, I had to run the following commands:

sudo yum install -y wget
sudo wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
sudo rpm -ivh epel-release-latest-7.noarch.rpm

2nd issue - Docker CE cannot be installed from YUM Repos on RHEL. After getting ansible installed, I encountered an issue where the docker install failed. Below is the error seen:

TASK [dockerConfig : installDocker] *********************************************************************************
fatal: [default]: FAILED! => {"changed": false, "msg": "Error: Package: docker-ce-18.06.1.ce-3.el7.x86_64 (docker-ce-stable)\n Requires: container-selinux >= 2.9\n", "rc": 1, "results": ["Loaded plugins: product-id, search-disabled-repos, subscription-manager\nResolving Dependencies\n--> Running transaction check\n---> Package docker-ce.x86_64 0:18.06.1.ce-3.el7 will be installed\n--> Processing Dependency: container-selinux >= 2.9 for package: docker-ce-18.06.1.ce-3.el7.x86_64\n--> Processing Dependency: libcgroup for package: docker-ce-18.06.1.ce-3.el7.x86_64\n--> Running transaction check\n---> Package docker-ce.x86_64 0:18.06.1.ce-3.el7 will be installed\n--> Processing Dependency: container-selinux >= 2.9 for package: docker-ce-18.06.1.ce-3.el7.x86_64\n---> Package libcgroup.x86_64 0:0.41-15.el7 will be installed\n--> Finished Dependency Resolution\nError: Package: docker-ce-18.06.1.ce-3.el7.x86_64 (docker-ce-stable)\n
Requires: container-selinux >= 2.9\n**********************************************************************\nyum can be configured to try to resolve such errors by temporarily enabling\ndisabled repos and searching for missing dependencies.\nTo enable this functionality please set 'notify_only=0' in /etc/yum/pluginconf.d/search-disabled-repos.conf\n**********************************************************************\n\n You could try using --skip-broken to work around the problem\n You could try running: rpm -Va --nofiles --nodigest\n"]}
to retry, use: --limit @/conjur/cdemo/conjurDemo/site.retry

To resolve this issue, I ran the following commands:

sudo yum install -y yum-utils
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
sudo yum makecache fast

sudo yum install http://mirror.centos.org/centos/7/extras/x86_64/Packages/container-selinux-2.68-1.el7.noarch.rpm

I could not find a link for hte latest container-selinux version, but the link above is the latest as of 9/5/2018.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions