Bug 1516716
| Summary: | "hammer auth-source ldap list" returns "404 Resource Not Found" | ||
|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Mark Watts <m.r.watts> |
| Component: | LDAP | Assignee: | Daniel Lobato Garcia <dlobatog> |
| Status: | CLOSED WONTFIX | QA Contact: | Katello QA List <katello-qa-list> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.2.12 | CC: | akarsale, dlobatog, kgaikwad, mhulan, m.r.watts, rabajaj |
| Target Milestone: | Unspecified | Keywords: | Triaged |
| Target Release: | Unused | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2019-02-07 12:03:49 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
Mark Watts
2017-11-23 10:15:48 UTC
Would it be possible to attach the hammer log or run the command with debug and verbose output? Thanks! Looks like my email response didn't make it...
Here's the debug output:
# hammer -d auth-source ldap list
[ INFO 2017-11-30 08:16:00 Init] Initialization of Hammer CLI (0.5.1.13) has started...
[DEBUG 2017-11-30 08:16:00 Init] Running at ruby 2.2.2-p95
[ INFO 2017-11-30 08:16:00 Init] Configuration from the file /etc/hammer/cli_config.yml has been loaded
[ INFO 2017-11-30 08:16:00 Init] Configuration from the file /etc/hammer/cli.modules.d/csv.yml has been loaded
[ INFO 2017-11-30 08:16:00 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman.yml has been loaded
[ INFO 2017-11-30 08:16:00 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman_admin.yml has been loaded
[ INFO 2017-11-30 08:16:00 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman_admin_logging_core.yml has been loaded
[ INFO 2017-11-30 08:16:00 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman_admin_logging_katello.yml has been loaded
[ INFO 2017-11-30 08:16:00 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman_bootdisk.yml has been loaded
[ INFO 2017-11-30 08:16:00 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman_discovery.yml has been loaded
[ INFO 2017-11-30 08:16:00 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman_docker.yml has been loaded
[ INFO 2017-11-30 08:16:00 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman_remote_execution.yml has been loaded
[ INFO 2017-11-30 08:16:00 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman_tasks.yml has been loaded
[ INFO 2017-11-30 08:16:00 Init] Configuration from the file /etc/hammer/cli.modules.d/import.yml has been loaded
[ INFO 2017-11-30 08:16:00 Init] Configuration from the file /etc/hammer/cli.modules.d/katello.yml has been loaded
[ INFO 2017-11-30 08:16:00 Init] Configuration from the file /root/.hammer/cli_config.yml has been loaded
[ INFO 2017-11-30 08:16:00 Init] Configuration from the file /root/.hammer/defaults.yml has been loaded
[DEBUG 2017-11-30 08:16:01 Connection] Registered: foreman
[DEBUG 2017-11-30 08:16:01 API] Global headers: {
:content_type => "application/json",
:accept => "application/json;version=2",
"Accept-Language" => "en_GB"
}
[DEBUG 2017-11-30 08:16:01 API] Follow redirects: never
[ INFO 2017-11-30 08:16:01 Modules] Extension module hammer_cli_foreman (0.5.1.10) loaded
[ INFO 2017-11-30 08:16:01 Modules] Extension module hammer_cli_foreman_admin (0.0.5) loaded
[ INFO 2017-11-30 08:16:01 Modules] Extension module hammer_cli_foreman_bootdisk (0.1.3.3) loaded
[ INFO 2017-11-30 08:16:01 Modules] Extension module hammer_cli_foreman_discovery (0.0.2.3) loaded
[ INFO 2017-11-30 08:16:01 Modules] Extension module hammer_cli_import (0.11.2) loaded
[ INFO 2017-11-30 08:16:01 HammerCLI::MainCommand] subcommand organization (HammerCLIForeman::Organization) was removed.
[ INFO 2017-11-30 08:16:01 HammerCLI::MainCommand] subcommand organization (HammerCLIKatello::Organization) was created.
[ INFO 2017-11-30 08:16:01 Modules] Extension module hammer_cli_katello (0.0.22.29) loaded
[DEBUG 2017-11-30 08:16:01 Init] Using locale 'en_GB'
[DEBUG 2017-11-30 08:16:01 Init] 'mo' files for locale domain 'hammer-cli' loaded from '/opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.5.1.13/locale'
[DEBUG 2017-11-30 08:16:01 Init] 'mo' files for locale domain 'hammer-cli-foreman' loaded from '/opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli_foreman-0.5.1.10/locale'
[DEBUG 2017-11-30 08:16:01 Init] 'mo' files for locale domain 'hammer-cli-csv' loaded from '/opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli_csv-2.2.1.1/locale'
[DEBUG 2017-11-30 08:16:01 Init] 'mo' files for locale domain 'hammer_cli_foreman_docker' loaded from '/opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli_foreman_docker-0.0.6/locale'
[DEBUG 2017-11-30 08:16:01 Init] 'mo' files for locale domain 'hammer-cli-katello' loaded from '/opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli_katello-0.0.22.29/locale'
[ INFO 2017-11-30 08:16:01 HammerCLI::MainCommand] Called with options: {"option_debug"=>true}
[ INFO 2017-11-30 08:16:01 HammerCLIForeman::AuthSource] Called with options: {}
[ INFO 2017-11-30 08:16:01 HammerCLIForeman::AuthSourceLdap] Called with options: {}
[ INFO 2017-11-30 08:16:01 HammerCLIForeman::AuthSourceLdap::ListCommand] Custom default value 2 was used for attribute option_location_id
[ INFO 2017-11-30 08:16:01 HammerCLIForeman::AuthSourceLdap::ListCommand] Custom default value 3 was used for attribute option_organization_id
[ INFO 2017-11-30 08:16:01 HammerCLIForeman::AuthSourceLdap::ListCommand] Called with options: {"option_location_id"=>"2", "option_organization_id"=>"3"}
[ INFO 2017-11-30 08:16:01 API] Server: https://satellite.soton.ac.uk/
[ INFO 2017-11-30 08:16:01 API] GET /api/locations/2/auth_source_ldaps
[DEBUG 2017-11-30 08:16:01 API] Params: {
"organization_id" => "3",
"page" => 1,
"per_page" => 1000
}
[DEBUG 2017-11-30 08:16:01 API] Headers: {
:params => {
"organization_id" => "3",
"page" => 1,
"per_page" => 1000
}
}
[DEBUG 2017-11-30 08:16:02 API] 404 Resource Not Found
{
"status" => "404",
"error" => "Not Found"
}
[ERROR 2017-11-30 08:16:02 Exception] 404 Resource Not Found
404 Resource Not Found
[ERROR 2017-11-30 08:16:02 Exception]
RestClient::ResourceNotFound (404 Resource Not Found):
/opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/abstract_response.rb:48:in `return!'
/opt/theforeman/tfm/root/usr/share/gems/gems/apipie-bindings-0.0.16/lib/apipie_bindings/api.rb:308:in `block in rest_client_call_block'
/opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:228:in `call'
/opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:228:in `process_result'
/opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:178:in `block in transmit'
/opt/rh/rh-ruby22/root/usr/share/ruby/net/http.rb:853:in `start'
/opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:172:in `transmit'
/opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:64:in `execute'
/opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:33:in `execute'
/opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/resource.rb:51:in `get'
/opt/theforeman/tfm/root/usr/share/gems/gems/apipie-bindings-0.0.16/lib/apipie_bindings/api.rb:295:in `call_client'
/opt/theforeman/tfm/root/usr/share/gems/gems/apipie-bindings-0.0.16/lib/apipie_bindings/api.rb:224:in `http_call'
/opt/theforeman/tfm/root/usr/share/gems/gems/apipie-bindings-0.0.16/lib/apipie_bindings/api.rb:174:in `call_action'
/opt/theforeman/tfm/root/usr/share/gems/gems/apipie-bindings-0.0.16/lib/apipie_bindings/api.rb:169:in `call'
/opt/theforeman/tfm/root/usr/share/gems/gems/apipie-bindings-0.0.16/lib/apipie_bindings/resource.rb:14:in `call'
/opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.5.1.13/lib/hammer_cli/apipie/command.rb:43:in `send_request'
/opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli_foreman-0.5.1.10/lib/hammer_cli_foreman/commands.rb:190:in `send_request'
/opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli_foreman-0.5.1.10/lib/hammer_cli_foreman/commands.rb:280:in `send_request'
/opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli_foreman-0.5.1.10/lib/hammer_cli_foreman/commands.rb:315:in `retrieve_all'
/opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli_foreman-0.5.1.10/lib/hammer_cli_foreman/commands.rb:299: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.13/lib/hammer_cli/abstract.rb:24: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.13/lib/hammer_cli/abstract.rb:24: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.13/lib/hammer_cli/abstract.rb:24: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.13/lib/hammer_cli/abstract.rb:24: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.13/bin/hammer:125:in `<top (required)>'
/bin/hammer:23:in `load'
/bin/hammer:23:in `<main>'
The Satellite Team is attempting to provide an accurate backlog of bugzilla requests which we feel will be resolved in the next few releases. We do not believe this bugzilla will meet that criteria, and have plans to close it out in 1 month. This is not a reflection on the validity of the request, but a reflection of the many priorities for the product. If you have any concerns about this, feel free to contact Rich Jerrido or Bryan Kearney or your account team. If we do not hear from you, we will close this bug out. Thank you. Thank you for your interest in Satellite 6. We have evaluated this request, and while we recognize that it is a valid request, we do not expect this to be implemented in the product in the foreseeable future. This is due to other priorities for the product, and not a reflection on the request itself. We are therefore closing this out as WONTFIX. If you have any concerns about this, please do not reopen. Instead, feel free to contact Red Hat Technical Support. Thank you. |