[Katello 2.1] - Activation Key + Release Version configuration don't work

Hi guys,

I'm using Virtual Datacenter subscription and because of a problem(bugs
1179670 and 1161642), only one subscription can be attached for activation
key.
I followed the workaround described in the bug 1179670 executing
"subscription-manager attach --auto", but the repos' baseurl aren't in the
same version of my content hosts.

*Steps: *

  1. Create an activation key (RHEL_7_1_TEST) with release content = 7.1

  2. Install a VM RHEL 7.1 (test1)

  3. Open a shell and execute:
    [root@test1 ~]# subscription-manager register --org="Default_Organization"
    –activationkey="RHEL_7_1_TEST"
    [root@test1 ~]# subscription-manager attach --auto

  4. Check yum configuration:
    [root@test1 ~]# yum-config-manager | grep baseurl
    baseurl =
    https://katello-server/pulp/repos/Default_Organization/TEST/RHEL71-OS/content/dist/rhel/server/7/7Server/x86_64/os

[root@test1 ~]# yum repolist
repo id repo name
status
rhel-7-server-optional-rpms/7Server/x86_64 Red Hat Enterprise Linux 7
Server - Optional (RPMs) 0

  1. After several attempts, I went to the content host configuration and
    changed the "release version" configuration of the VM to 7.1 and it worked.

[root@test1 rhsm]# yum-config-manager | grep baseurl
baseurl =
https://katello-server/pulp/repos/Default_Organization/TEST/RHEL71-OS/content/dist/rhel/server/7/7.1/x86_64/os

[root@test1 ~]# yum repolist
repo id repo name
status
rhel-7-server-rpms/x86_64 Red Hat Enterprise Linux 7 Server (RPMs)
6,674

I would like to automate that, so I tried "subscription-manager release
–set=7.1" after "subscription-manager attach --auto", but it didn't work.

Did I forget something?

I'm using RHEL 7.1, I don't understando why my repos are pointing to
/rhel/server/7/7Server/

References:
Bug 1179670 - activation key with multiple virtual datacenter subscriptions
https://bugzilla.redhat.com/show_bug.cgi?id=1179670

Bug 1161642 - As a user, I wish to add guest subscriptions from different
hypervisors to a single activation key
https://bugzilla.redhat.com/show_bug.cgi?id=1161642

Details:
Red Hat Repositories: 7.1
Katello 2.1
Foreman 1.7.2

Thanks in advance!

Regards,

Fernando

A couple of notes…

7Server implies the latest "head" of RHEL-7 - all updates, all errata, everything. This is the default. Forcing to a release version other than 7Server should be considered an advanced feature. By enabling and sync'ing 7.1 repos, only content up through 7.1 will be available, nothing newer.

It seems that you enabled and sync'ed "RHEL 7.1" repositories and so the default of 7Server correctly saw zero repos. By forcing the content host to have a release version of 7.1 (subscription-manager release --set=7.1) you then saw the sync'ed repos.

If setting the release version to 7.1 in the activation key did result in the registered content host having its release version set to 7.1, please open a bugzilla (or redmine).

Thanks!

··· ----- Original Message ----- > Hi guys, > > I'm using Virtual Datacenter subscription and because of a problem(bugs > 1179670 and 1161642), only one subscription can be attached for activation > key. > I followed the workaround described in the bug 1179670 executing > "subscription-manager attach --auto", but the repos' baseurl aren't in the > same version of my content hosts. > > *Steps: * > 1) Create an activation key (RHEL_7_1_TEST) with release content = 7.1 > 2) Install a VM RHEL 7.1 (test1) > 3) Open a shell and execute: > [root@test1 ~]# subscription-manager register --org="Default_Organization" > --activationkey="RHEL_7_1_TEST" > [root@test1 ~]# subscription-manager attach --auto > > 4) Check yum configuration: > [root@test1 ~]# yum-config-manager | grep baseurl > baseurl = > https://katello-server/pulp/repos/Default_Organization/TEST/RHEL71-OS/content/dist/rhel/server/7/7Server/x86_64/os > > [root@test1 ~]# yum repolist > repo id repo name > status > rhel-7-server-optional-rpms/7Server/x86_64 Red Hat Enterprise Linux 7 > Server - Optional (RPMs) 0 > > 5) After several attempts, I went to the content host configuration and > changed the "release version" configuration of the VM to 7.1 and it worked. > > [root@test1 rhsm]# yum-config-manager | grep baseurl > baseurl = > https://katello-server/pulp/repos/Default_Organization/TEST/RHEL71-OS/content/dist/rhel/server/7/7.1/x86_64/os > > [root@test1 ~]# yum repolist > repo id repo name > status > rhel-7-server-rpms/x86_64 Red Hat Enterprise Linux 7 Server (RPMs) > 6,674 > > I would like to automate that, so I tried "subscription-manager release > --set=7.1" after "subscription-manager attach --auto", but it didn't work. > > Did I forget something? > > I'm using RHEL 7.1, I don't understando why my repos are pointing to > /rhel/server/7/7Server/ > > References: > Bug 1179670 - activation key with multiple virtual datacenter subscriptions > https://bugzilla.redhat.com/show_bug.cgi?id=1179670 > > Bug 1161642 - As a user, I wish to add guest subscriptions from different > hypervisors to a single activation key > https://bugzilla.redhat.com/show_bug.cgi?id=1161642 > > Details: > Red Hat Repositories: 7.1 > Katello 2.1 > Foreman 1.7.2 > > Thanks in advance! > > Regards, > > Fernando > > -- > 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. >

Hi Tom,

You're right, I enabled and synced RHEL 7.1 repos.

If I don't change my VM's content host release version to 7.1 (menu hosts
>> content hosts), it doesn't work, I got the below error:
https://katello-server/pulp/repos/Default_Organization/TEST/RHEL71-OS/content/dist/rhel/server/7/7Server/x86_64/os/repodata/repomd.xml:
[Errno 14] HTTPS Error 404 - Not Found

It seems The activation key release version and configuration

I've attached the repositories and the activation key screenshots.

Thank you for your help.

Regards,

Fernando

··· On Tuesday, March 17, 2015 at 8:00:06 PM UTC-4, ffrodri...@gmail.com wrote: > > Hi guys, > > I'm using Virtual Datacenter subscription and because of a problem(bugs > 1179670 and 1161642), only one subscription can be attached for activation > key. > I followed the workaround described in the bug 1179670 executing > "subscription-manager attach --auto", but the repos' baseurl aren't in the > same version of my content hosts. > > *Steps: * > 1) Create an activation key (RHEL_7_1_TEST) with release content = 7.1 > 2) Install a VM RHEL 7.1 (test1) > 3) Open a shell and execute: > [root@test1 ~]# subscription-manager register --org="Default_Organization" > --activationkey="RHEL_7_1_TEST" > [root@test1 ~]# subscription-manager attach --auto > > 4) Check yum configuration: > [root@test1 ~]# yum-config-manager | grep baseurl > baseurl = > https://katello-server/pulp/repos/Default_Organization/TEST/RHEL71-OS/content/dist/rhel/server/7/7Server/x86_64/os > > [root@test1 ~]# yum repolist > repo id repo name > status > rhel-7-server-optional-rpms/7Server/x86_64 Red Hat Enterprise Linux 7 > Server - Optional (RPMs) 0 > > 5) After several attempts, I went to the content host configuration and > changed the "release version" configuration of the VM to 7.1 and it worked. > > [root@test1 rhsm]# yum-config-manager | grep baseurl > baseurl = > https://katello-server/pulp/repos/Default_Organization/TEST/RHEL71-OS/content/dist/rhel/server/7/7.1/x86_64/os > > [root@test1 ~]# yum repolist > repo id repo name > status > rhel-7-server-rpms/x86_64 Red Hat Enterprise Linux 7 Server (RPMs) > 6,674 > > I would like to automate that, so I tried "subscription-manager release > --set=7.1" after "subscription-manager attach --auto", but it didn't work. > > Did I forget something? > > I'm using RHEL 7.1, I don't understando why my repos are pointing to > /rhel/server/7/7Server/ > > References: > Bug 1179670 - activation key with multiple virtual datacenter subscriptions > https://bugzilla.redhat.com/show_bug.cgi?id=1179670 > > Bug 1161642 - As a user, I wish to add guest subscriptions from different > hypervisors to a single activation key > https://bugzilla.redhat.com/show_bug.cgi?id=1161642 > > Details: > Red Hat Repositories: 7.1 > Katello 2.1 > Foreman 1.7.2 > > Thanks in advance! > > Regards, > > Fernando >

Hi, I meant:

** It seems The activation key release version and configuration don't work.

Sorry for the mistake.

Regards,

Fernando

··· On Tuesday, March 17, 2015 at 8:00:06 PM UTC-4, ffrodri...@gmail.com wrote: > > Hi guys, > > I'm using Virtual Datacenter subscription and because of a problem(bugs > 1179670 and 1161642), only one subscription can be attached for activation > key. > I followed the workaround described in the bug 1179670 executing > "subscription-manager attach --auto", but the repos' baseurl aren't in the > same version of my content hosts. > > *Steps: * > 1) Create an activation key (RHEL_7_1_TEST) with release content = 7.1 > 2) Install a VM RHEL 7.1 (test1) > 3) Open a shell and execute: > [root@test1 ~]# subscription-manager register --org="Default_Organization" > --activationkey="RHEL_7_1_TEST" > [root@test1 ~]# subscription-manager attach --auto > > 4) Check yum configuration: > [root@test1 ~]# yum-config-manager | grep baseurl > baseurl = > https://katello-server/pulp/repos/Default_Organization/TEST/RHEL71-OS/content/dist/rhel/server/7/7Server/x86_64/os > > [root@test1 ~]# yum repolist > repo id repo name > status > rhel-7-server-optional-rpms/7Server/x86_64 Red Hat Enterprise Linux 7 > Server - Optional (RPMs) 0 > > 5) After several attempts, I went to the content host configuration and > changed the "release version" configuration of the VM to 7.1 and it worked. > > [root@test1 rhsm]# yum-config-manager | grep baseurl > baseurl = > https://katello-server/pulp/repos/Default_Organization/TEST/RHEL71-OS/content/dist/rhel/server/7/7.1/x86_64/os > > [root@test1 ~]# yum repolist > repo id repo name > status > rhel-7-server-rpms/x86_64 Red Hat Enterprise Linux 7 Server (RPMs) > 6,674 > > I would like to automate that, so I tried "subscription-manager release > --set=7.1" after "subscription-manager attach --auto", but it didn't work. > > Did I forget something? > > I'm using RHEL 7.1, I don't understando why my repos are pointing to > /rhel/server/7/7Server/ > > References: > Bug 1179670 - activation key with multiple virtual datacenter subscriptions > https://bugzilla.redhat.com/show_bug.cgi?id=1179670 > > Bug 1161642 - As a user, I wish to add guest subscriptions from different > hypervisors to a single activation key > https://bugzilla.redhat.com/show_bug.cgi?id=1161642 > > Details: > Red Hat Repositories: 7.1 > Katello 2.1 > Foreman 1.7.2 > > Thanks in advance! > > Regards, > > Fernando >