Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
DescriptionAndrii Balakhtar
2016-09-01 14:09:51 UTC
Description of problem:
These 3 subcommands are broken:
hammer host-collection package install/update/remove
hammer host-collection package-group install/update/remove
hammer host-collection erratum install
As per Redmine bug #15978, it may be due to old controller, which wasn't updated while host unification.
Version-Release number of selected component (if applicable):
satellite-6.2.1-1.3
How reproducible:
Always
Steps to Reproduce:
1. Execute
`host-collection erratum install --errata="RHEA-2012:0055" --organization-id="13" --id="2"`,
`host-collection erratum install --packages="walrus" --organization-id="13" --id="2"`
or something similar
2.
3.
Actual results:
Following error message:
Could not schedule installation of package(s):
Error: The server does not support such operation.
Hammer log in debug mode contains following lines:
[ INFO 2016-09-01 09:50:38 HammerCLIKatello::HostCollection] Called with options: {}
[ INFO 2016-09-01 09:50:38 HammerCLIKatello::HostCollectionPackageCommand] Called with options: {}
[ INFO 2016-09-01 09:50:38 HammerCLIKatello::HostCollectionPackageCommand::InstallCommand] Called with options: {"content"=>["walrus"], "option_organization_id"=>"13", "option_id"=>"2"}
[ERROR 2016-09-01 09:50:38 Exception] Error: The server does not support such operation.
[ERROR 2016-09-01 09:50:38 Exception]
HammerCLI::OperationNotSupportedError (The server does not support such operation.):
/opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.5.1.11/lib/hammer_cli/apipie/command.rb:45:in `send_request'
/opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli_foreman-0.5.1.9/lib/hammer_cli_foreman/commands.rb:190:in `send_request'
/opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.5.1.11/lib/hammer_cli/apipie/command.rb:34:in `execute'
/opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.0.0/lib/clamp/command.rb:68:in `run'
/opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.5.1.11/lib/hammer_cli/abstract.rb:22:in `run'
/opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.0.0/lib/clamp/subcommand/execution.rb:11:in `execute'
/opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.0.0/lib/clamp/command.rb:68:in `run'
/opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.5.1.11/lib/hammer_cli/abstract.rb:22:in `run'
/opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.0.0/lib/clamp/subcommand/execution.rb:11:in `execute'
/opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.0.0/lib/clamp/command.rb:68:in `run'
/opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.5.1.11/lib/hammer_cli/abstract.rb:22:in `run'
/opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.0.0/lib/clamp/subcommand/execution.rb:11:in `execute'
/opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.0.0/lib/clamp/command.rb:68:in `run'
/opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.5.1.11/lib/hammer_cli/abstract.rb:22:in `run'
/opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.0.0/lib/clamp/command.rb:133:in `run'
/opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.5.1.11/lib/hammer_cli/shell.rb:100:in `execute'
/opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.0.0/lib/clamp/command.rb:68:in `run'
/opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.5.1.11/lib/hammer_cli/abstract.rb:22:in `run'
/opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.0.0/lib/clamp/subcommand/execution.rb:11:in `execute'
/opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.0.0/lib/clamp/command.rb:68:in `run'
/opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.5.1.11/lib/hammer_cli/abstract.rb:22:in `run'
/opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.0.0/lib/clamp/command.rb:133:in `run'
/opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.5.1.11/bin/hammer:125:in `<top (required)>'
/usr/bin/hammer:23:in `load'
/usr/bin/hammer:23:in `<main>'
Expected results:
Errata/Package was successfully scheduled for installation
Additional info:
FAILEDQA on Sat 6.3.0 Snap 4
Commands were added, --help returns valid information and even validation like missing org/errata ids are working. However, if you try to use the commands they're still broken:
hammer> host-collection erratum install --help
Usage:
host-collection erratum install [OPTIONS]
Options:
--errata ERRATA List of Errata to install
Comma separated list of values.
--id ID Id of the host collection
--name NAME Host collection name to search by
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID organization ID
--organization-label ORGANIZATION_LABEL Organization label to search by
-h, --help print help
hammer> host-collection erratum install --id 1 --errata RHEA-2012:0055
Could not schedule installation of errata:
Error: The server does not support such operation.
hammer> host-collection package install --help
Usage:
host-collection package install [OPTIONS]
Options:
--id ID Id of the host collection
--name NAME Host collection name to search by
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID organization ID
--organization-label ORGANIZATION_LABEL Organization label to search by
--packages PACKAGES comma-separated list of packages to install
Comma separated list of values.
-h, --help print help
hammer> host-collection package install --id 1 --packages walrus-5.21-1.noarch
Could not schedule installation of package(s):
Error: The server does not support such operation.
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/RHBA-2017:0446