Bug 1001525

Summary: org auto attach system always returns error
Product: Red Hat Satellite Reporter: Ales Dujicek <adujicek>
Component: Content ManagementAssignee: Walden Raines <walden>
Status: CLOSED CURRENTRELEASE QA Contact: Ales Dujicek <adujicek>
Severity: high Docs Contact:
Priority: unspecified    
Version: NightlyCC: cwelton, ehelms, gkhachik
Target Milestone: UnspecifiedKeywords: Reopened, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-04-24 17:07:38 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:

Description Ales Dujicek 2013-08-27 08:40:49 UTC
Description of problem:

after running 'org attach_all_systems' command, I always get error
Organization [ org ] failed to attach subscriptions to all systems:
but subscription is successfully attached to system, so there should not be any error

Version-Release number of selected component (if applicable):
signo-katello-0.0.11-1.el6.noarch
katello-glue-elasticsearch-1.4.3-1.git.281.6adbd58.el6.noarch
katello-qpid-client-key-pair-1.0-1.noarch
katello-repos-1.4.2-1.el6.noarch
katello-cli-1.4.3-1.git.17.587602e.el6.noarch
katello-certs-tools-1.4.2-1.el6.noarch
pulp-katello-plugins-0.2-1.el6.noarch
katello-glue-candlepin-1.4.3-1.git.281.6adbd58.el6.noarch
katello-1.4.3-1.git.281.6adbd58.el6.noarch
katello-candlepin-cert-key-pair-1.0-1.noarch
katello-cli-common-1.4.3-1.git.17.587602e.el6.noarch
katello-selinux-1.4.4-1.el6.noarch
katello-all-1.4.3-1.git.281.6adbd58.el6.noarch
katello-glue-pulp-1.4.3-1.git.281.6adbd58.el6.noarch
katello-qpid-broker-key-pair-1.0-1.noarch
katello-configure-1.4.4-1.git.7.8244ec0.el6.noarch
katello-common-1.4.3-1.git.281.6adbd58.el6.noarch

How reproducible:
always

Steps to Reproduce:
1. create org, import manifest, register system
org create --name org1
environment create --org org1 --prior Library --name env
provider import_manifest --org org1 --name "Red Hat" --file /tmp/manifest-automation-CLI-2subscriptions.zip
content definition create --org org1 --name def
content definition publish --org org1 --name def --view_name view
content view promote --org org1 --name view --environment env
activation_key create --org org1 --environment env --content_view view --name act_key
# subscription-manager register --org org1 --activationkey act_key --force --name system
2. org attach_all_systems --name org1
3. system subscriptions --org org1 --name system

Actual results:
org attach_all_systems return error but it is successful

Expected results:


Additional info:

Comment 2 Walden Raines 2013-09-18 13:49:14 UTC
What version of candlepin were you running?

This is working for me with the latest of Katello and Candlepin:

[walden@wraines-sandbox katello (task-states)]$ katello-cli org attach_all_systems --name ACME_Corporation
Organzation [ ACME_Corporation ] completed attachment of subscriptions to all systems

However I was getting a failure before I upgraded candlepin from candlepin-0.8.13-1.fc18.noarch to candlepin-0.8.27-1.fc18.noarch.

Comment 3 Garik Khachikyan 2013-10-02 11:28:02 UTC
@Walden:

anyway, please if it now got fixed, don't close it but mark as fixed and give QA a chance to verify it once. thanks.

Please I move it back to assigned, mark it fixed/on_qa for us please. thanks.

Comment 4 Garik Khachikyan 2013-10-02 11:28:34 UTC
moving to ON_QA.

@Ales: please verify/reopen it as needed. thanks.

Comment 5 Ales Dujicek 2013-10-02 11:46:08 UTC
OK, no errors now -> Verified.
Satellite-6.0.2-RHEL-6-20130927.0

Comment 6 Bryan Kearney 2014-04-24 17:07:38 UTC
This was verified and delivered with MDP2. Closing it out.