Hide Forgot
Description of problem: When a Service Level is not available a task is paused instead of failing or failing in the planned state [crash] root@li-lc-1578:~# sudo -u hoici hammer -c /opt/hoici/etc/sat6/hammer-hoici.yaml activation-key create --organization-id=3 --name TestKeyA Activation key created [crash] root@li-lc-1578:~# sudo -u hoici hammer -c /opt/hoici/etc/sat6/hammer-hoici.yaml activation-key update --organization-id=3 --name=TestKeyA --service-level=Dummy Could not update the activation key: Task 6154487e-4290-4cb9-bb3d-53328ad7f0f1: Katello::Errors::CandlepinError: Service level 'Dummy' is not available to units of organization Hilti. Task output: Id: 6154487e-4290-4cb9-bb3d-53328ad7f0f1 Label: Actions::Katello::ActivationKey::Update Name: Update Owner: hoici Execution type: Delayed Start at: 2016-10-19 16:27:10 +0200 Start before: - Started at: 2016-10-19 16:27:10 +0200 Ended at: State: paused Result: error Params: activation key 'TestKeyA'; organization 'Hilti' 50.0% Complete 50% Errors: Service level 'Dummy' is not available to units of organization Hilti. Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. Craete activation key TestKeyA using hammer 2. Update TestKeyA with --service-level Dummy 3. Actual results: Paused task Expected results: Error before task start or stopped task in error state Additional info:
Connecting redmine issue http://projects.theforeman.org/issues/17401 from this bug
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/17401 has been resolved.
Verified with Satellite 6.3 SNAP 9: satellite-6.3.0-16.0.beta.el7sat.noarch Attempting to update an activation key with an invalid service-level results in a task that is in stopped/warning state. This allows the user to try again with a valid value. e.g. hammer> activation-key update --organization-id 3 --name TestKeyA --service-level Dummy Could not update the activation key: Task cc2dd04d-83cc-4798-b94c-36eae216f08f: Katello::Errors::CandlepinError: Service level 'Dummy' is not available to units of organization b-corp. hammer> activation-key update --organization-id 3 --name TestKeyA --service-level Self-Support Activation key updated hammer>
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2018:0336
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. > > For information on the advisory, and where to find the updated files, follow the link below. > > If the solution does not work for you, open a new bug report. > > https://access.redhat.com/errata/RHSA-2018:0336