Bug 1308828

Summary: RHEL 6.7 VM created from On-Demmand Image is showing "not registered" when running "yum update"
Product: Red Hat Enterprise Linux 6 Reporter: mingzhan
Component: subscription-managerAssignee: candlepin-bugs
Status: CLOSED NOTABUG QA Contact: John Sefler <jsefler>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.7CC: bcourt, james.antill, kyliel, lic_interop, qe-baseos-security, vmukhame
Target Milestone: rc   
Target Release: ---   
Hardware: other   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1308820 Environment:
Last Closed: 2016-02-18 22:01:54 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description mingzhan 2016-02-16 08:59:56 UTC
+++ This bug was initially created as a clone of Bug #1308820 +++

Description of problem:

RHEL 6.7 VM created from On-Demmand Image is showing "not registered" when running "yum update"

Version-Release number of selected component (if applicable):
TBD

How reproducible:
100%

Steps to Reproduce:
1.Login Azure portal through portal.azure.com
2.Create a RHEL 6.7 VM
3.Login the VM through SSH
4.Run "sudo yum update"

Actual results:
[azureuser@scotttestrhel67 ~]$ sudo yum update

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

    #1) Respect the privacy of others.
    #2) Think before you type.
    #3) With great power comes great responsibility.

[sudo] password for azureuser:
Loaded plugins: langpacks, product-id, rhui-lb, search-disabled-repos,
              : subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
No packages marked for update

Actually, below will be always showing up when running yum related command:

This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.

Expected results:
-the output should be indicating this is an registered RHEL.

Additional info:
The "not registered" message could be ignored given the "yum update" actually worked well, but the message provided the bad user experience.

Comment 2 Barnaby Court 2016-02-18 22:01:54 UTC
Subscription manager appears to be working exactly the it was designed. If no subscription is attached to the system then no updates will be provided. 

Please open a support case with Red Hat from the Azure Portal for support of on-demand images.