Description of problem: I tried to use an activation key which contains virtual type subscriptions derived from multiple hosts(HostA and HostB) to register a guest(on HostB), expecting Katello would choose one corresponding to its host(HostB). But it failed. I'm not sure this is an intended behavior(i.e. a activation key should contain only one virtual type subscription). But if so, there must be a way to check the parent subscription of each virtual subscription as reported in: https://bugzilla.redhat.com/show_bug.cgi?id=760564 Without that, I cannot choose a correct virtual subscription for a specific host.
I believe this is an issue in Candlepin as we pass this logic through directly. Assigning to candlepin component
Reproduce: 1. Create Host A 2. Create Host B 3. Register Host A with a sub that gives you a virt pool 4. Register Host B with a sub that gives you a virt pool 5. Put both virt pools in an activation key 6. Register a guest on Host A with the activation key 7. Get an error!
An activation key is intended to be a complete set of pools for a machine to use. It is not supposed to be a menu from which to pick and choose. The fix to be implemented is on step 5. Virt pools will not be allowed together on the same key if their host dependencies are not the same.
master commit 0d95d1f54c9635172a2c4e7af314160172a1a4e9
SNAP0 contains these bug fixes. Moving to ON_QA.
# REOPEN Initial problem not fixed IMO: 1. SAM latest snapshot UI allows choosing two different virtual subscriptions and combine them in a single activation key. 2. SAM UI does not have the feature (yet?) to display information on the subscription which host it belongs to (maybe on mouse over?) 3. RHSM refuses to _even_ register the system at all to the system telling: --- > subscription-manager register --org "virtPools" --release 6.4 --activationkey=virt-pools-combined Guest's host does not match owner of pool: '8a90861f4106c337014106feaeee011f'. --- to reproduce: * create org, import a manifest having 3+ subscription slots, let's say of: "Red Hat Enterprise Linux Server, Standard (1-2 sockets) (Up to 4 guests)" * subscribe 2 kvm hosts it creates +2 bonus subscriptions with: " Red Hat Enterprise Linux Server, Standard (1-2 sockets) (Up to 4 guests)" * prepare an AK (via UI) and add that both guest subscriptions. * exec on one of the guests: subscription-manager register --org "virtPools" --release 6.4 --activationkey=virt-pools-combined versions: candlepin-0.8.25-1.el6sam.noarch candlepin-cert-consumer-cfseserver2.usersys.redhat.com-1.0-1.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.8.25-1.el6sam.noarch candlepin-tomcat6-0.8.25-1.el6sam.noarch elasticsearch-0.19.9-8.el6sat.noarch katello-candlepin-cert-key-pair-1.0-1.noarch katello-certs-tools-1.4.2-2.el6sat.noarch katello-cli-1.4.3-10.el6sat.noarch katello-cli-common-1.4.3-10.el6sat.noarch katello-common-1.4.3-12.el6sam_splice.noarch katello-configure-1.4.4-4.el6sat.noarch katello-glue-candlepin-1.4.3-12.el6sam_splice.noarch katello-glue-elasticsearch-1.4.3-12.el6sam_splice.noarch katello-headpin-1.4.3-12.el6sam_splice.noarch katello-headpin-all-1.4.3-12.el6sam_splice.noarch katello-selinux-1.4.4-2.el6sat.noarch ruby193-rubygem-ldap_fluff-0.2.2-1.el6sat.noarch thumbslug-0.0.34-1.el6sam.noarch thumbslug-selinux-0.0.34-1.el6sam.noarch
# QUESTION Please from the fix I can not get the solution made there: Do we plan to make a fix in SAM UI side to reject creation of activation key having more than one virtual subscription poolid please? Do we plan to make a fix on candlepin side rejecting to approve activation key having +1 virtual subscriptions attached? Else?
This BZ will be worked on in a future release. Assigning to myself.