Update Available Repositories for Client

Latest response

I have a created an activation key and registered clients using the activation key. After some time, there was a need to add a new repository. I have synced the repository in Satellite, coupled it to a Content View and Published + Promoted the Content View.

Now, when I do a 'subscription-manager refresh' on the Clients, the new repository is not available or listed with 'subscription-manager repos'. It only becomes available / get listed when I unregister + register the Client against the Satellite server.

is this normal behavior?

Responses

Hello

Updating an activation key will not have any effect on hosts registered previously with that activation key.

But rather than unregister and registering again, try to see if the new repository is available to the hosts.

# subscription-manager list --all --available

Command above is to look for a subscription, and on second thoughts, I think you just need to look for the repo:

# subscription-manager repos --list

and then attach the new one:

# subscription-manager repos --enable repository

These commands are explained in Managing Software Repositories in the Red Hat Enterprise Linux 7 System Administrator's Guide.

Well, I'd say that's exactly what the parent poster was saying it was not working. I suppose so because that's exactly what's happening to me: new repo added to a product, promote, etc.

Then, on a subscribed host (with a proper activation key), I follow the following procedure (augmented for "just in case"): yum clean all && subscription-manager refresh

The repo still doesn't get listed by subscription-manager repos.

If I unsubscribe the host and resubscribe it, then the repo appears as it should.

I've got the same issue. It's interesting that on some servers registered with the same key, available repository list gets updated with "subscription-manager refresh" command, other require the host re-registering.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.