Bug 1195329
Summary: | hammer import activation-key shows MissingArgumentsError: organization_id while processing activation key | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Lukas Pramuk <lpramuk> |
Component: | Transitions | Assignee: | Grant Gainey <ggainey> |
Status: | CLOSED ERRATA | QA Contact: | Lukas Pramuk <lpramuk> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 6.1.0 | CC: | bbuckingham, cperry, cwelton, ggainey, jmontleo |
Target Milestone: | Unspecified | Keywords: | Triaged |
Target Release: | Unused | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | rubygem-hammer_cli_import-0.10.10-1 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-08-12 05:27:06 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: |
Description
Lukas Pramuk
2015-02-23 15:30:07 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. First - the keys are actually created - that happens at import_row time. So the "Created <n> activation keys." message is correct. Connecting keys to content views is supposed to fail (in this particular use-case) due to the content-views not existing. The code would note a MissingObject exception,record an error-message, and continue. However, the API apprently requires (has always required) that organization_id be passed to PUT /katello/api/activation_keys/:id . In 6.0, not sending org-id works. The new apipie input-validation for 6.1 catches the missing (required) org-id, and aborts the update. Must be fixed for 6.1 - as it stands, one cannot currently connect imported activation-keys with their content-views even when those views are sync'd. hammer-import-activation-key is broken ina clear regression from 6.0. organization-id added to update-call. Error-messaging changed to be more clear - example: === (master) ~/hammer-cli-import $ hammer import activation-key --csv-file /tmp/exports/activation-keys2.csv --verbose --debug Importing from /tmp/exports/activation-keys2.csv Activation key [1-a4f348badebba01453ec5fa85ce06fd8->1] already imported. Can't find content view for channel ID [101] for key [1-a4f348badebba01453ec5fa85ce06fd8] Creating new activation key: 1-a689408807e6597555dca6672015b6fe Can't find content view for channel ID [101] for key [1-a689408807e6597555dca6672015b6fe] Can't find content view ifor channel ID [102] for key [1-a689408807e6597555dca6672015b6fe] Can't find content view ifor channel ID [103] for key [1-a689408807e6597555dca6672015b6fe] Activation key 1 taken from cache. Skipping content-view associations. Activation key 3 taken from cache. Skipping content-view associations. Summary Created 1 activation key. Found 1 activation key. (master) === hammer-cli-import.github 86ba01c98e419b33c540b0afacfc9c8fd5c7698aq Argh - extraneous 'q' at the end of the commit-hash:
>> WRONG: 86ba01c98e419b33c540b0afacfc9c8fd5c7698aq
>> RIGHT: 86ba01c98e419b33c540b0afacfc9c8fd5c7698a
Please retry with 86ba01c98e419b33c540b0afacfc9c8fd5c7698a
rubygem-hammer_cli_import-0.10.10.1 no such version on any compose?! ON_QA? VERIFIED. Satellite-6.1.0-RHEL-6-20150303.0 # hammer import activation-key --verbose --csv-file /tmp/exports/activation-keys.csv' /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.1.4/lib/hammer_cli/./apipie/../abstract.rb:68: warning: already initialized constant DEFAULT_LABEL_INDENT Importing from /tmp/exports/activation-keys.csv Creating new activation key: 1-key Can't find content view for channel ID [103] for key [1-key] Can't find content view ifor channel ID [106] for key [1-key] Creating new activation key: 2-key Associating activation key [2] with host collections [1] Can't find content view for channel ID [101] for key [2-key] Can't find content view ifor channel ID [111] for key [2-key] Creating new activation key: 3-key Associating activation key [3] with host collections [2] Can't find content view for channel ID [102] for key [3-key] Can't find content view ifor channel ID [104] for key [3-key] Skipping content-view associations. Skipping content-view associations. Skipping content-view associations. Summary Created 3 activation_keys. This bug is slated to be released with Satellite 6.1. 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-2015:1592 |