Bug 959211

Summary: Katello Nightly : 'subscription-manager register' fails for Katello nightly - many automation tests failing
Product: Red Hat Satellite Reporter: Garik Khachikyan <gkhachik>
Component: Content ManagementAssignee: Petr Chalupa <pchalupa>
Status: CLOSED CURRENTRELEASE QA Contact: Garik Khachikyan <gkhachik>
Severity: high Docs Contact:
Priority: high    
Version: NightlyCC: gkhachik, mkoci, mmccune, tkolhar, tsanders
Target Milestone: UnspecifiedKeywords: Regression, Triaged
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 959202 Environment:
Last Closed: 2013-07-18 21:22:14 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:
Embargoed:
Bug Depends On: 959202    
Bug Blocks:    

Description Garik Khachikyan 2013-05-03 11:03:37 UTC
+++ This bug was initially created as a clone of Bug #959202 +++

Description of problem:
'subscription-manager register'  fails for headpin nightly leading too failure of several automated tests  

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

# rpm -qa | grep katello
katello-common-1.4.2-1.git.162.4cb60f6.el6.noarch
katello-headpin-all-1.4.2-1.git.162.4cb60f6.el6.noarch
katello-selinux-1.4.3-1.git.3.ce8227b.el6.noarch
katello-certs-tools-1.4.2-1.el6.noarch
katello-cli-1.4.2-1.git.16.bcb759c.el6.noarch
katello-glue-elasticsearch-1.4.2-1.git.162.4cb60f6.el6.noarch
katello-headpin-1.4.2-1.git.162.4cb60f6.el6.noarch
katello-cli-common-1.4.2-1.git.16.bcb759c.el6.noarch
signo-katello-0.0.7-1.el6.noarch
katello-configure-1.4.2-1.git.7.ff00c72.el6.noarch
katello-glue-candlepin-1.4.2-1.git.162.4cb60f6.el6.noarch
katello-candlepin-cert-key-pair-1.0-1.noarch
katello-repos-1.4.2-1.el6.noarch

How reproducible:
# yum install -y katello-headpin-all
# katello-configure --deployment=headpin --user-pass=admin

Steps to Reproduce:

1.subscription-manager unsubscribe --all
  Stdout: This machine has been unsubscribed from all subscriptions
  Stderr:
  ExitCode: 0
2.subscription-manager unregister
  Stdout: This system is currently not registered.
  Stderr:
  ExitCode: 1
3.subscription-manager clean
  Stdout: All local data removed
  Stderr:
  ExitCode: 0
4.subscription-manager register --username admin --password **** --name  
  "sys-RegOnly-1367570828-alreadyReg" --org "orgMain-1367570828" --environment 
  "Dev-1367570828"
  Stdout:
  Stderr: 'idCert'
  ExitCode: 255

5. Please refer the current automation test report :
    http://hudson.rhq.lab.eng.bos.redhat.com:8080/hudson/job/official-headpin-cli/85/ReportNG_Report/ 



  
Actual results:
subscription-manager register fails.

Expected results:
The system should be registered successfully.


Additional info:

Comment 1 Garik Khachikyan 2013-05-03 11:06:33 UTC
btw: 
/etc/pki/consumer looks empty

Comment 2 Garik Khachikyan 2013-05-03 11:44:23 UTC
and doing rhsm registration to CDN works fine.

Comment 3 Petr Chalupa 2013-05-07 13:25:44 UTC
fixed in 478e2edfc2ea6d34ea410ed1417dbb0eb1955241

Comment 4 Garik Khachikyan 2013-05-10 14:28:38 UTC
# VERIFIED

recent katello is fine. thanks Petr!

Katello 1.4.2-1.git.222.82e7958.el6

Comment 5 Mike McCune 2013-07-18 21:22:14 UTC
mass move to CLOSED:CURRENTRELEASE since MDP1 has been released.