Hide Forgot
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?
@Bryan - I'm not sure the scenario above is clear enough - what happens with system(s) when the provider gets just removed.
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"}
through UI
I was not able to reproduce the bug. Please verify.
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
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
Automated in test method "com.redhat.qe.katello.tests.e2e.RemovePromotedProvider.test_systemSubscriptionsList()"
getting rid of 6.0.0 version since that doesn't exist