Bug #5888
closedAdded subscription to activationkey, can no longer list activation keys.
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1100406
Description of problem:
I created an activation key and added a subscription. I can no longer list or display information about said activation key.
Version-Release number of selected component (if applicable):
Snap5-Compose4:
How reproducible:
Always
1. Upload manifest
2. create activation key
3. add subscription
4. attempt to list/info activation key
- hammer subscription upload --file manifest-100000-MCT1027.zip --organization-id 1
[..................................................................................................................................................................................................................................................] [100%]
Task aa53908c-002e-46ab-ae09-af990c1706f6: success - hammer activation-key create --name perf-ak-1 --organization-id 1
Activation key created - hammer activation-key list --organization-id 1
---|-----------|----------------|-----------------------|-------------
ID | NAME | CONSUMED | LIFECYCLE ENVIRONMENT | CONTENT VIEW
---|-----------|----------------|-----------------------|-------------
1 | perf-ak-1 | 0 of Unlimited | |
---|-----------|----------------|-----------------------|------------- - hammer subscription list --organization-id 1
... - hammer activation-key add-subscription --id 1 --subscription-id 8a8c942946247059014624797c3a0042
Subscription added to activation key - hammer activation-key list --organization-id 1
undefined method `key?' for #<JSON::Ext::Generator::State:0x00000009db2c58> - hammer activation-key list --organization-id 1
undefined method `key?' for #<JSON::Ext::Generator::State:0x00000009e42e20> - hammer activation-key info --id 1
undefined method `key?' for #<JSON::Ext::Generator::State:0x0000000979c580> - hammer activation-key subscriptions --id 1
---------------------------------|--------------------------------------------------------------
ID | NAME
---------------------------------|--------------------------------------------------------------
8a8c942946247059014624797c3a0042 | Red Hat Enterprise Linux, Basic (up to 2 sockets for Hosting)
---------------------------------|--------------------------------------------------------------
- hammer -v activation-key list --organization-id 1
[ERROR 2014-05-22 14:32:53 API] 500 Internal Server Error {
"errors" => [
[0] "undefined method `key?' for #<JSON::Ext::Generator::State:0x00000009eae9e0>"
],
"displayMessage" => "undefined method `key?' for #<JSON::Ext::Generator::State:0x00000009eae9e0>"
}
[ERROR 2014-05-22 14:32:53 Exception] undefined method `key?' for #<JSON::Ext::Generator::State:0x00000009eae9e0>
undefined method `key?' for #<JSON::Ext::Generator::State:0x00000009eae9e0>
[ERROR 2014-05-22 14:32:53 Exception]
RestClient::InternalServerError (500 Internal Server Error):
/usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/abstract_response.rb:48:in `return!'
/usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/request.rb:230:in `process_result'
/usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/request.rb:178:in `transmit'
/usr/lib/ruby/1.8/net/http.rb:543:in `start'
/usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/request.rb:172:in `transmit'
/usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/request.rb:64:in `execute'
/usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/request.rb:33:in `execute'
/usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/resource.rb:54:in `get'
/usr/lib/ruby/gems/1.8/gems/apipie-bindings-0.0.8/lib/apipie_bindings/api.rb:195:in `send'
/usr/lib/ruby/gems/1.8/gems/apipie-bindings-0.0.8/lib/apipie_bindings/api.rb:195:in `http_call'
/usr/lib/ruby/gems/1.8/gems/apipie-bindings-0.0.8/lib/apipie_bindings/api.rb:151:in `call'
/usr/lib/ruby/gems/1.8/gems/apipie-bindings-0.0.8/lib/apipie_bindings/resource.rb:14:in `call'
/usr/lib/ruby/gems/1.8/gems/hammer_cli-0.1.0/lib/hammer_cli/./apipie/command.rb:42:in `send_request'
/usr/lib/ruby/gems/1.8/gems/hammer_cli_foreman-0.1.0/lib/hammer_cli_foreman/commands.rb:112:in `send_request'
/usr/lib/ruby/gems/1.8/gems/hammer_cli_foreman-0.1.0/lib/hammer_cli_foreman/commands.rb:139:in `send_request'
/usr/lib/ruby/gems/1.8/gems/hammer_cli_foreman-0.1.0/lib/hammer_cli_foreman/commands.rb:185:in `retrieve_and_print'
/usr/lib/ruby/gems/1.8/gems/hammer_cli_foreman-0.1.0/lib/hammer_cli_foreman/commands.rb:172:in `browse_collection'
/usr/lib/ruby/gems/1.8/gems/hammer_cli_foreman-0.1.0/lib/hammer_cli_foreman/commands.rb:157:in `execute'
/usr/lib/ruby/gems/1.8/gems/clamp-0.6.2/lib/clamp/command.rb:67:in `run'
/usr/lib/ruby/gems/1.8/gems/hammer_cli-0.1.0/lib/hammer_cli/./apipie/../abstract.rb:22:in `run'
/usr/lib/ruby/gems/1.8/gems/clamp-0.6.2/lib/clamp/subcommand/execution.rb:11:in `execute'
/usr/lib/ruby/gems/1.8/gems/clamp-0.6.2/lib/clamp/command.rb:67:in `run'
/usr/lib/ruby/gems/1.8/gems/hammer_cli-0.1.0/lib/hammer_cli/./apipie/../abstract.rb:22:in `run'
/usr/lib/ruby/gems/1.8/gems/clamp-0.6.2/lib/clamp/subcommand/execution.rb:11:in `execute'
/usr/lib/ruby/gems/1.8/gems/clamp-0.6.2/lib/clamp/command.rb:67:in `run'
/usr/lib/ruby/gems/1.8/gems/hammer_cli-0.1.0/lib/hammer_cli/./apipie/../abstract.rb:22:in `run'
/usr/lib/ruby/gems/1.8/gems/clamp-0.6.2/lib/clamp/command.rb:125:in `run'
/usr/lib/ruby/gems/1.8/gems/hammer_cli-0.1.0/bin/hammer:100
/usr/bin/hammer:19:in `load'
/usr/bin/hammer:19
Expected results:
List/info on activation keys
Additional info:
Can list subscriptions on the activation key after the fact.
Updated by Eric Helms about 9 years ago
- Translation missing: en.field_release set to 86
Updated by Eric Helms almost 9 years ago
- Status changed from New to Resolved
This issue appears resolved in latest -- please re-open if you still see it.