Bug 1114067

Summary: Content Promotion Broken for Virtual Data Center Subscriptions
Product: Red Hat Satellite Reporter: Devan Goodwin <dgoodwin>
Component: Content ManagementAssignee: Tom McKay <tomckay>
Status: CLOSED CURRENTRELEASE QA Contact: sthirugn <sthirugn>
Severity: high Docs Contact:
Priority: unspecified    
Version: NightlyCC: bbuckingham, cwelton, dgoodwin, jhutar, jmontleo, rjerrido, shughes, sthirugn, xdmoon
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/6702
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-09-11 12:27:01 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:
Attachments:
Description Flags
Screenshot of missing content.
none
Red hat repositories with vdc subscriptions
none
Completed content sync none

Description Devan Goodwin 2014-06-27 15:39:10 UTC
Created attachment 912858 [details]
Screenshot of missing content.

Description of problem:

This problem is limited in scope to a very specific type of subscription, virtual data center. (RH00002) This type of subscription (which has what we call derived product data) requires that it be first granted to a host system, but the host gets no content as a result. Once granted a sub-pool is created for guests running on that host which *does* receive content. (i.e. the content the subscription provides has to change depending on whether it's used on host / guest)

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

Found in nightly beta build as of today.

Steps to Reproduce:

1. Import a manifest with only a VDC entitlement, preferably on a fresh/clean/empty Satellite.

Actual results:

This will need more specifics from someone more familiar with content in Satellite, but here is what I see.

If I nav to Content > Red Hat Repositories, I see the only orphaned content with empty sub-menus in attachment. I believe this is where I initiate content sync, so this effectively means I cannot sync any content.

Likewise I cannot add any content to a content view.



Expected results:

Satellite should respect the derived product data.


Additional info:

This is a big oversight / miscommunication on our part when this feature was implemented, but essentially a pool like this carries additional content in a separate place. If you open a manifest and examine an entitlement JSON file, you'll see the pool carrying derivedProductId, derivedProductAttributes, and derivedProvidedProducts. These attributes are used on a guest pool when one is created instead of the parent pools productId/productAttributes/providedProducts.

I am not familiar with how the Satellite UI and pulp are determining what content/repos are available but very likely it means these fields need to be examined in addition to the normal set. 

They should probably immediately be available for syncing and promotion even before any guest pools exist to reference them.

Comment 1 RHEL Program Management 2014-06-27 15:44:35 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.

Comment 3 Tom McKay 2014-07-21 15:21:15 UTC
Created redmine issue http://projects.theforeman.org/issues/6702 from this bug

Comment 4 Bryan Kearney 2014-07-30 12:03:32 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/6702 has been closed
-------------
Thomas McKay
Applied in changeset commit:katello|d2672d3233675965fd6470eeaaed7a7c7fa36c3f.

Comment 8 sthirugn@redhat.com 2014-08-19 18:47:30 UTC
Verified.

Steps:
1. Create an org
2. Upload a manifest with VDC subscriptions (RH00002)
3. Navigate to Content -> Red Hat Repositories
4. Note: I did not see any orphaned repos listed (see screenshot)
5. Enable some repo (say 'Red Hat Enterprise Linux 6 Server Kickstart x86_64 6Server')
6. Sync content (see screenshot)
7. Note: the above mentioned steps worked fine with no issues.

Version Tested:
GA Snap 5 - Satellite-6.0.4-RHEL-6-20140813.2

* apr-util-ldap-1.3.9-3.el6_0.1.x86_64
* candlepin-0.9.23-1.el6_5.noarch
* candlepin-common-1.0.1-1.el6_5.noarch
* candlepin-scl-1-5.el6_4.noarch
* candlepin-scl-quartz-2.1.5-5.el6_4.noarch
* candlepin-scl-rhino-1.7R3-1.el6_4.noarch
* candlepin-scl-runtime-1-5.el6_4.noarch
* candlepin-selinux-0.9.23-1.el6_5.noarch
* candlepin-tomcat6-0.9.23-1.el6_5.noarch
* elasticsearch-0.90.10-4.el6sat.noarch
* foreman-1.6.0.40-1.el6sat.noarch
* foreman-compute-1.6.0.40-1.el6sat.noarch
* foreman-gce-1.6.0.40-1.el6sat.noarch
* foreman-libvirt-1.6.0.40-1.el6sat.noarch
* foreman-ovirt-1.6.0.40-1.el6sat.noarch
* foreman-postgresql-1.6.0.40-1.el6sat.noarch
* foreman-proxy-1.6.0.27-1.el6sat.noarch
* foreman-selinux-1.6.0.6-1.el6sat.noarch
* foreman-vmware-1.6.0.40-1.el6sat.noarch
* katello-1.5.0-28.el6sat.noarch
* katello-ca-1.0-1.noarch
* katello-certs-tools-1.5.6-1.el6sat.noarch
* katello-installer-0.0.59-1.el6sat.noarch
* openldap-2.4.23-34.el6_5.1.x86_64
* openldap-devel-2.4.23-34.el6_5.1.x86_64
* pulp-katello-0.3-3.el6sat.noarch
* pulp-nodes-common-2.4.0-0.30.beta.el6sat.noarch
* pulp-nodes-parent-2.4.0-0.30.beta.el6sat.noarch
* pulp-puppet-plugins-2.4.0-0.30.beta.el6sat.noarch
* pulp-puppet-tools-2.4.0-0.30.beta.el6sat.noarch
* pulp-rpm-plugins-2.4.0-0.30.beta.el6sat.noarch
* pulp-selinux-2.4.0-0.30.beta.el6sat.noarch
* pulp-server-2.4.0-0.30.beta.el6sat.noarch
* python-ldap-2.3.10-1.el6.x86_64
* ruby193-rubygem-net-ldap-0.3.1-3.el6sat.noarch
* ruby193-rubygem-runcible-1.1.0-2.el6sat.noarch

Comment 9 sthirugn@redhat.com 2014-08-19 18:50:07 UTC
Created attachment 928483 [details]
Red hat repositories with vdc subscriptions

Comment 10 sthirugn@redhat.com 2014-08-19 18:50:55 UTC
Created attachment 928484 [details]
Completed content sync

Comment 13 Bryan Kearney 2014-09-11 12:27:01 UTC
This was delivered with Satellite 6.0 which was released on 10 September 2014.

Comment 14 Red Hat Bugzilla 2023-09-14 02:10:44 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days