Katello 2.2 Following katello directions to register content host leads to yum failed dependency

Because of the current bug in 2.2 where you cannot save a subscription key
to a host group, I decided to manually register my hosts.

When I click on the 'Register Content Host' button under Content Hosts in
Katello it gives me some directions to follow. The first step is

rpm -Uvh
http://katello-sandbox-atdev-van.dev-globalrelay.net/pub/katello-ca-consumer-latest.noarch.rpm

However, this gives a yum error:

[root@centos6client ~]# rpm -Uvh
http://katello.mydomain.net/pub/katello-ca-consumer-latest.noarch.rpm
Retrieving
http://katello.mydomain.net/pub/katello-ca-consumer-latest.noarch.rpm
error: Failed dependencies:
subscription-manager is needed by
katello-ca-consumer-katello.mydomain.net-1.0-2.noarch

I also tried a manual yum localinstall of the package and got this :

[root@centos6client ~]# yum localinstall
http://katello.mycompany.net/pub/katello-ca-consumer-latest.noarch.rpm
Loaded plugins: fastestmirror, security
Setting up Local Package Process
katello-ca-consumer-latest.noarch.rpm
> 7.6 kB 00:00
Examining /var/tmp/yum-root-SfCVzp/katello-ca-consumer-latest.noarch.rpm:
katello-ca-consumer-katello.mycompany.net-1.0-2.noarch
Marking /var/tmp/yum-root-SfCVzp/katello-ca-consumer-latest.noarch.rpm to
be installed
Loading mirror speeds from cached hostfile

  • base: centos.bhs.mirrors.ovh.net
  • extras: mirror.its.dal.ca
  • updates: centos.mirror.iweb.ca
    Resolving Dependencies
    –> Running transaction check
    —> Package katello-ca-consumer-katello.mycompany.net.noarch 0:1.0-2 will
    be installed
    –> Processing Dependency: subscription-manager for package:
    katello-ca-consumer-katello.mycompany.net-1.0-2.noarch
    –> Finished Dependency Resolution
    Error: Package: katello-ca-consumer-katello.mycompany.net-1.0-2.noarch
    (/katello-ca-consumer-latest.noarch)
    Requires: subscription-manager
    You could try using --skip-broken to work around the problem
    You could try running: rpm -Va --nofiles --nodigest

It seems like the katello-ca-consumer package has a dependency on
subscription manager. This is not located on fedora/centos standard 4gb
installation dvds, so installing it will always fail unless a repo that has
it is enabled.
Not sure what repo to enable to get this package.

I am grabbing it from
http://repos.fedorapeople.org/repos/candlepin/subscription-manager/epel-subscription-manager.repo

··· On Fri, Apr 17, 2015 at 4:59 PM, Nathan Peters wrote:

Because of the current bug in 2.2 where you cannot save a subscription key
to a host group, I decided to manually register my hosts.

When I click on the ‘Register Content Host’ button under Content Hosts in
Katello it gives me some directions to follow. The first step is

rpm -Uvh
http://katello-sandbox-atdev-van.dev-globalrelay.net/pub/katello-ca-consumer-latest.noarch.rpm

However, this gives a yum error:

[root@centos6client ~]# rpm -Uvh
http://katello.mydomain.net/pub/katello-ca-consumer-latest.noarch.rpm
Retrieving
http://katello.mydomain.net/pub/katello-ca-consumer-latest.noarch.rpm
error: Failed dependencies:
subscription-manager is needed by
katello-ca-consumer-katello.mydomain.net-1.0-2.noarch

I also tried a manual yum localinstall of the package and got this :

[root@centos6client ~]# yum localinstall
http://katello.mycompany.net/pub/katello-ca-consumer-latest.noarch.rpm
Loaded plugins: fastestmirror, security
Setting up Local Package Process
katello-ca-consumer-latest.noarch.rpm

7.6 kB 00:00
Examining /var/tmp/yum-root-SfCVzp/katello-ca-consumer-latest.noarch.rpm:
katello-ca-consumer-katello.mycompany.net-1.0-2.noarch
Marking /var/tmp/yum-root-SfCVzp/katello-ca-consumer-latest.noarch.rpm to
be installed
Loading mirror speeds from cached hostfile

  • base: centos.bhs.mirrors.ovh.net
  • extras: mirror.its.dal.ca
  • updates: centos.mirror.iweb.ca
    Resolving Dependencies
    –> Running transaction check
    —> Package katello-ca-consumer-katello.mycompany.net.noarch 0:1.0-2 will
    be installed
    –> Processing Dependency: subscription-manager for package:
    katello-ca-consumer-katello.mycompany.net-1.0-2.noarch
    –> Finished Dependency Resolution
    Error: Package: katello-ca-consumer-katello.mycompany.net-1.0-2.noarch
    (/katello-ca-consumer-latest.noarch)
    Requires: subscription-manager
    You could try using --skip-broken to work around the problem
    You could try running: rpm -Va --nofiles --nodigest

It seems like the katello-ca-consumer package has a dependency on
subscription manager. This is not located on fedora/centos standard 4gb
installation dvds, so installing it will always fail unless a repo that has
it is enabled.
Not sure what repo to enable to get this package.


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

subscription-manager should be in the centos6 repos, are those not
enabled?

You might want to grab the latest ones anyway, as it has the latest &
greatest bug fixes that play nicely w/ Katello.

http://copr-fe.cloud.fedoraproject.org/coprs/dgoodwin/subscription-manager/

··· On Fri, Apr 17, 2015 at 01:59:23PM -0700, Nathan Peters wrote: > Because of the current bug in 2.2 where you cannot save a subscription key > to a host group, I decided to manually register my hosts. > > When I click on the 'Register Content Host' button under Content Hosts in > Katello it gives me some directions to follow. The first step is > > rpm -Uvh > http://katello-sandbox-atdev-van.dev-globalrelay.net/pub/katello-ca-consumer-latest.noarch.rpm > > However, this gives a yum error: > > [root@centos6client ~]# rpm -Uvh > http://katello.mydomain.net/pub/katello-ca-consumer-latest.noarch.rpm > Retrieving > http://katello.mydomain.net/pub/katello-ca-consumer-latest.noarch.rpm > error: Failed dependencies: > subscription-manager is needed by > katello-ca-consumer-katello.mydomain.net-1.0-2.noarch > > I also tried a manual yum localinstall of the package and got this : > > [root@centos6client ~]# yum localinstall > http://katello.mycompany.net/pub/katello-ca-consumer-latest.noarch.rpm > Loaded plugins: fastestmirror, security > Setting up Local Package Process > katello-ca-consumer-latest.noarch.rpm > > 7.6 kB 00:00 > Examining /var/tmp/yum-root-SfCVzp/katello-ca-consumer-latest.noarch.rpm: > katello-ca-consumer-katello.mycompany.net-1.0-2.noarch > Marking /var/tmp/yum-root-SfCVzp/katello-ca-consumer-latest.noarch.rpm to > be installed > Loading mirror speeds from cached hostfile > * base: centos.bhs.mirrors.ovh.net > * extras: mirror.its.dal.ca > * updates: centos.mirror.iweb.ca > Resolving Dependencies > --> Running transaction check > ---> Package katello-ca-consumer-katello.mycompany.net.noarch 0:1.0-2 will > be installed > --> Processing Dependency: subscription-manager for package: > katello-ca-consumer-katello.mycompany.net-1.0-2.noarch > --> Finished Dependency Resolution > Error: Package: katello-ca-consumer-katello.mycompany.net-1.0-2.noarch > (/katello-ca-consumer-latest.noarch) > Requires: subscription-manager > You could try using --skip-broken to work around the problem > You could try running: rpm -Va --nofiles --nodigest > > It seems like the katello-ca-consumer package has a dependency on > subscription manager. This is not located on fedora/centos standard 4gb > installation dvds, so installing it will always fail unless a repo that has > it is enabled. > Not sure what repo to enable to get this package. > > -- > You received this message because you are subscribed to the Google Groups "Foreman users" group. > To unsubscribe from this group and stop receiving emails from it, send an email to foreman-users+unsubscribe@googlegroups.com. > To post to this group, send email to foreman-users@googlegroups.com. > Visit this group at http://groups.google.com/group/foreman-users. > For more options, visit https://groups.google.com/d/optout.


Best Regards,

Stephen Benjamin
Red Hat Engineering