Bug #9503
closedcontent-host errata apply gives success message for an invalid errata id
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1133244
Description of problem:
Version-Release number of selected component (if applicable):
How reproducible:
Steps to Reproduce:
1. Install an errata in the content-host:
hammer> content-host errata apply --errata-ids RHSA-2014:0981 --content-host host1.redhat.com --organization-id=3
2. Get errata info for the applied errata but pass content host name instead of content-host-id (see below)
hammer> content-host errata info --id RHSA-2014:0981 --content-host-id host1.redhat.com --organization-id=3
/usr/lib/ruby/gems/1.8/gems/fast_gettext-0.8.0/lib/fast_gettext/vendor/string.rb:56:in `_fast_gettext_old_format_m': malformed format string - ; (ArgumentError)
from /usr/lib/ruby/gems/1.8/gems/fast_gettext-0.8.0/lib/fast_gettext/vendor/string.rb:56:in `'
from /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.1.1/lib/hammer_cli/utils.rb:12:in `format'
from /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.1.1/lib/hammer_cli/output/adapter/abstract.rb:27:in `print_error'
from /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.1.1/lib/hammer_cli/output/output.rb:16:in `print_error'
from /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.1.1/lib/hammer_cli/exception_handler.rb:43:in `print_error'
from /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.1.1/lib/hammer_cli/exception_handler.rb:60:in `handle_general_exception'
from /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.1.1/lib/hammer_cli/exception_handler.rb:26:in `send'
from /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.1.1/lib/hammer_cli/exception_handler.rb:26:in `handle_exception'
from /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.1.1/lib/hammer_cli/./apipie/../abstract.rb:189:in `handle_exception'
from /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.1.1/lib/hammer_cli/./apipie/../abstract.rb:26:in `run'
from /usr/lib/ruby/gems/1.8/gems/clamp-0.6.2/lib/clamp/command.rb:125:in `run'
from /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.1.1/bin/hammer:102
from /usr/bin/hammer:19:in `load'
from /usr/bin/hammer:19
Actual results:
Stack trace as shown above and the hammer shell exited.
Expected results:
Couldn't find system with content-host-id 'host1.redhat.com'
Additional info:
Updated by The Foreman Bot almost 10 years ago
- Status changed from New to Ready For Testing
- Target version set to 67
- Pull request https://github.com/Katello/katello/pull/5037 added
- Pull request deleted (
)
Updated by Eric Helms almost 10 years ago
- Translation missing: en.field_release set to 23
- Triaged changed from No to Yes
Updated by Anonymous almost 10 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset katello|33112a4e0713904dbe40a755a94474c352b42a5f.
Updated by Stephen Benjamin almost 10 years ago
- Subject changed from content-host errata info gives stacktrace when I pass content host name vs content host id to content-host errata apply gives success message for an invalid errata id
- Bugzilla link changed from 1133244 to 1133245
Description of problem: Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. Install an errata in the content-host: hammer> content-host errata apply --errata-ids RHSA-2014:0981 --content-host host1.redhat.com --organization-id=3 2. Get errata info for the applied errata but pass content host name instead of content-host-id (see below) hammer> content-host errata info --id RHSA-2014:0981 --content-host-id host1.redhat.com --organization-id=3 /usr/lib/ruby/gems/1.8/gems/fast_gettext-0.8.0/lib/fast_gettext/vendor/string.rb:56:in `_fast_gettext_old_format_m': malformed format string - %; (ArgumentError) from /usr/lib/ruby/gems/1.8/gems/fast_gettext-0.8.0/lib/fast_gettext/vendor/string.rb:56:in `%' from /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.1.1/lib/hammer_cli/utils.rb:12:in `format' from /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.1.1/lib/hammer_cli/output/adapter/abstract.rb:27:in `print_error' from /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.1.1/lib/hammer_cli/output/output.rb:16:in `print_error' from /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.1.1/lib/hammer_cli/exception_handler.rb:43:in `print_error' from /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.1.1/lib/hammer_cli/exception_handler.rb:60:in `handle_general_exception' from /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.1.1/lib/hammer_cli/exception_handler.rb:26:in `send' from /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.1.1/lib/hammer_cli/exception_handler.rb:26:in `handle_exception' from /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.1.1/lib/hammer_cli/./apipie/../abstract.rb:189:in `handle_exception' from /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.1.1/lib/hammer_cli/./apipie/../abstract.rb:26:in `run' from /usr/lib/ruby/gems/1.8/gems/clamp-0.6.2/lib/clamp/command.rb:125:in `run' from /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.1.1/bin/hammer:102 from /usr/bin/hammer:19:in `load' from /usr/bin/hammer:19 Actual results: Stack trace as shown above and the hammer shell exited. Expected results: Couldn't find system with content-host-id 'host1.redhat.com' Additional info:
Cloned the wrong bugzilla, this should have been 1133245.