Bug 786502 - retrieving available pools (removed provider)
Summary: retrieving available pools (removed provider)
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: API
Version: 6.0.1
Hardware: Unspecified
OS: Unspecified
unspecified
medium vote
Target Milestone: Unspecified
Assignee: Bryan Kearney
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-01 15:55 UTC by Garik Khachikyan
Modified: 2015-01-04 21:58 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-05-11 14:18:49 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Garik Khachikyan 2012-02-01 15:55:40 UTC
Description of problem:
Recently I was able to reproduce this issue in both CLI & UI - so reporting as API issue (i hope it's right).
Scenarios is in retrieving available pools for the system where the provider that system got subscribed to (product/repo) is already removed.
Exception is:
----
RestClient::InternalServerError: Candlepin::CandlepinResource: 500 Internal Server Error {"displayMessage":"Runtime Error null at org.candlepin.policy.js.JsRules.getFlattenedAttributes:152"} (GET /candlepin/pools/?consumer=f1b04403-4c2c-4811-9eb5-e8fe7fda7866&listall=false)

Version-Release number of selected component (if applicable):
katello-0.1.209-1.git.0.6ff9c30.el6.noarch
katello-cli-0.1.49-1.git.0.6962a71.el6.noarch
candlepin-0.5.8-1.el6.noarch
pulp-0.0.263-1.el6.noarch
subscription-manager-0.99.4-1.el6.x86_64

How reproducible:
always

Steps to Reproduce:
1.Create provider, product, repo
2.sync that repo
3.promote that repo to an env
4.register system to that env
5. subscribe to the content
6. remove the provider
7. through UI (or CLI) request available subscription list
(like: system subscriptions --name <system_registered> --org ACME_Corporation --available)
  
Actual results:
exception above

Expected results:
no exceptions. not sure what would happen :)

Additional info:
@bkearney: what would happen with the systems and subscriptions actually if the provider gets removed there?

Comment 1 Garik Khachikyan 2012-02-01 15:56:50 UTC
@Bryan - I'm not sure the scenario above is clear enough - what happens with system(s) when the provider gets just removed.

Comment 3 Garik Khachikyan 2012-02-01 16:12:00 UTC
btw: funny situation.

my tries to remove that "conflicting" system was failing too:

---
{"displayMessage":"Runtime Error null at org.candlepin.policy.js.JsRules.getFlattenedAttributes:152"}

Comment 4 Garik Khachikyan 2012-02-01 16:12:18 UTC
through UI

Comment 7 Petr Chalupa 2012-05-11 11:32:42 UTC
I was not able to reproduce the bug. Please verify.

Comment 8 Garik Khachikyan 2012-05-11 14:18:49 UTC
confirm: issue looks fixed now. closing it.

checked on:
---
m2crypto-0.21.1.pulp-7.el6.x86_64
mod_wsgi-3.3-3.pulp.el6.x86_64
python-qpid-0.14-7.el6_2.noarch
katello-glue-candlepin-0.2.35-1.git.21.03805ed.el6.noarch
pulp-1.0.4-1.el6.noarch
katello-repos-testing-0.2.4-1.el6.noarch
qpid-cpp-client-ssl-0.14-14.el6_2.x86_64
katello-qpid-broker-key-pair-1.0-1.noarch
katello-agent-1.0.3-1.git.0.cccd0b4.el6.noarch
candlepin-0.5.32-1.el6.noarch
pulp-common-1.0.4-1.el6.noarch
katello-common-0.2.35-1.git.21.03805ed.el6.noarch
pulp-selinux-server-1.0.4-1.el6.noarch
katello-qpid-client-key-pair-1.0-1.noarch
katello-cli-0.2.33-1.git.21.60dfa73.el6.noarch
katello-certs-tools-1.1.6-1.git.0.4878f30.el6.noarch
qpid-cpp-server-0.14-14.el6_2.x86_64
katello-glue-foreman-0.2.35-1.git.21.03805ed.el6.noarch
katello-0.2.35-1.git.21.03805ed.el6.noarch
katello-configure-0.2.20-1.git.16.d9873bf.el6.noarch
candlepin-tomcat6-0.5.32-1.el6.noarch
katello-candlepin-cert-key-pair-1.0-1.noarch
katello-cli-common-0.2.33-1.git.21.60dfa73.el6.noarch
python-oauth2-1.5.170-2.pulp.el6.noarch
qpid-cpp-client-0.14-14.el6_2.x86_64
katello-glue-pulp-0.2.35-1.git.21.03805ed.el6.noarch
katello-selinux-0.2.4-1.git.0.b03a73e.el6.noarch
katello-repos-0.2.4-1.el6.noarch
qpid-cpp-server-ssl-0.14-14.el6_2.x86_64
---
subscription-manager-0.99.13-1.el6.x86_64

Comment 10 Garik Khachikyan 2012-06-06 12:36:01 UTC
for re-verification on 1.0.1 there is another bug exists - blocker for this scenario.

bz: https://bugzilla.redhat.com/show_bug.cgi?id=829303

Comment 11 Hayk Hovsepyan 2012-12-03 16:44:19 UTC
Automated in test method "com.redhat.qe.katello.tests.e2e.RemovePromotedProvider.test_systemSubscriptionsList()"

Comment 12 Mike McCune 2013-08-16 18:04:57 UTC
getting rid of 6.0.0 version since that doesn't exist


Note You need to log in before you can comment on or make changes to this bug.