Bug 1667704
Summary: | Not able to delete user associated with usergroup | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Nikhil Kathole <nkathole> |
Component: | Users & Roles | Assignee: | Marek Hulan <mhulan> |
Status: | CLOSED ERRATA | QA Contact: | Nikhil Kathole <nkathole> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.5.0 | CC: | dhlavacd, mhulan, nkathole, rbertolj, zhunting |
Target Milestone: | 6.5.0 | Keywords: | Regression, Triaged |
Target Release: | Unused | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | foreman-1.20.1.10-1 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2019-05-14 12:39:53 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
Nikhil Kathole
2019-01-20 05:49:37 UTC
Created redmine issue https://projects.theforeman.org/issues/25914 from this bug Upstream bug assigned to mhulan Upstream bug assigned to mhulan Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/25914 has been resolved. VERIFIED Version tested: Satellite 6.5 snap 14 # hammer user create --login test_user --auth-source-id 1 --mail a --password changeme User [test_user] created. # hammer user-group create --name test_usergroup --users test_user User group [test_usergroup] created. # hammer user-group info --name test_usergroup Id: 2 Name: test_usergroup Admin: no Users: test_user User groups: External user groups: Roles: Created at: 2019/02/04 09:49:54 Updated at: 2019/02/04 09:49:54 [root@sgi-uv20-01 ~]# hammer --debug user delete --login test_user [ INFO 2019-02-04T04:50:18 Init] Initialization of Hammer CLI (0.15.1.1) has started... [DEBUG 2019-02-04T04:50:18 Init] Running at ruby 2.5.3-p105 [ INFO 2019-02-04T04:50:18 Init] Configuration from the file /etc/hammer/cli_config.yml has been loaded [ INFO 2019-02-04T04:50:18 Init] Configuration from the file /etc/hammer/cli.modules.d/csv.yml has been loaded [ INFO 2019-02-04T04:50:18 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman.yml has been loaded [ INFO 2019-02-04T04:50:18 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman_admin.yml has been loaded [ INFO 2019-02-04T04:50:18 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman_admin_logging_core.yml has been loaded [ INFO 2019-02-04T04:50:18 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman_admin_logging_katello.yml has been loaded [ INFO 2019-02-04T04:50:18 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman_ansible.yml has been loaded [ INFO 2019-02-04T04:50:18 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman_bootdisk.yml has been loaded [ INFO 2019-02-04T04:50:18 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman_discovery.yml has been loaded [ INFO 2019-02-04T04:50:18 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman_docker.yml has been loaded [ INFO 2019-02-04T04:50:18 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman_openscap.yml has been loaded [ INFO 2019-02-04T04:50:18 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman_remote_execution.yml has been loaded [ INFO 2019-02-04T04:50:18 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman_tasks.yml has been loaded [ INFO 2019-02-04T04:50:18 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman_templates.yml has been loaded [ INFO 2019-02-04T04:50:18 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman_virt_who_configure.yml has been loaded [ INFO 2019-02-04T04:50:18 Init] Configuration from the file /etc/hammer/cli.modules.d/katello.yml has been loaded [ INFO 2019-02-04T04:50:18 Init] Configuration from the file /root/.hammer/cli.modules.d/foreman.yml has been loaded [DEBUG 2019-02-04T04:50:19 SSLoptions] SSL options: { :ssl_ca_file => "/etc/pki/katello/certs/katello-server-ca.crt", :verify_ssl => true } [DEBUG 2019-02-04T04:50:19 API] Global headers: { :content_type => "application/json", :accept => "application/json;version=2", "Accept-Language" => "en" } [DEBUG 2019-02-04T04:50:19 API] Follow redirects: never [DEBUG 2019-02-04T04:50:19 Connection] Registered: foreman [ INFO 2019-02-04T04:50:19 Modules] Extension module hammer_cli_foreman (0.15.1) loaded. [ INFO 2019-02-04T04:50:19 Modules] Extension module hammer_cli_foreman_admin (0.0.8) loaded. [ INFO 2019-02-04T04:50:19 Modules] Extension module hammer_cli_foreman_bootdisk (0.1.3.3) loaded. [ INFO 2019-02-04T04:50:19 Modules] Extension module hammer_cli_foreman_discovery (1.0.0) loaded. [ INFO 2019-02-04T04:50:19 Modules] Extension module hammer_cli_foreman_openscap (0.1.6) loaded. [ INFO 2019-02-04T04:50:19 Modules] Extension module hammer_cli_foreman_templates (0.1.2) loaded. [ INFO 2019-02-04T04:50:19 HammerCLI::MainCommand] subcommand organization (HammerCLIForeman::Organization) was removed. [ INFO 2019-02-04T04:50:19 HammerCLI::MainCommand] subcommand organization (HammerCLIKatello::Organization) was created. [ INFO 2019-02-04T04:50:19 Modules] Extension module hammer_cli_katello (0.16.0.8) loaded. [DEBUG 2019-02-04T04:50:19 Init] Using locale 'en' [DEBUG 2019-02-04T04:50:19 Init] 'mo' files for locale domain 'hammer-cli' loaded from '/opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.15.1.1/locale' [DEBUG 2019-02-04T04:50:19 Init] 'mo' files for locale domain 'hammer-cli-foreman' loaded from '/opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli_foreman-0.15.1/locale' [DEBUG 2019-02-04T04:50:19 Init] 'mo' files for locale domain 'hammer-cli-csv' loaded from '/opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli_csv-2.3.1/locale' [DEBUG 2019-02-04T04:50:19 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.1/locale' [DEBUG 2019-02-04T04:50:19 Init] 'mo' files for locale domain 'hammer-cli-foreman-virt-who-configure' loaded from '/opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli_foreman_virt_who_configure-0.0.3/locale' [DEBUG 2019-02-04T04:50:19 Init] 'mo' files for locale domain 'hammer-cli-katello' loaded from '/opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli_katello-0.16.0.8/locale' [ INFO 2019-02-04T04:50:19 HammerCLI::MainCommand] Called with options: {"option_debug"=>true} [ INFO 2019-02-04T04:50:19 HammerCLIForeman::User] Called with options: {} [ INFO 2019-02-04T04:50:19 API] Server: https://satellite.example.com [ INFO 2019-02-04T04:50:19 API] GET /api/users [DEBUG 2019-02-04T04:50:19 API] Params: { :search => "login = \"test_user\"" } [DEBUG 2019-02-04T04:50:19 API] Headers: { :params => { :search => "login = \"test_user\"" } } [DEBUG 2019-02-04T04:50:19 API] Using authenticator: HammerCLIForeman::Api::InteractiveBasicAuth [DEBUG 2019-02-04T04:50:20 API] Response: { "total" => 2, "subtotal" => 1, "page" => 1, "per_page" => 20, "search" => "login = \"test_user\"", "sort" => { "by" => nil, "order" => nil }, "results" => [ [0] { "firstname" => nil, "lastname" => nil, "mail" => "a", "admin" => false, "auth_source_id" => 1, "auth_source_name" => "Internal", "timezone" => nil, "locale" => nil, "last_login_on" => nil, "created_at" => "2019-02-04 09:49:44 UTC", "updated_at" => "2019-02-04 09:49:44 UTC", "id" => 13, "login" => "test_user", "description" => nil, "ssh_keys" => [], "default_location" => nil, "locations" => [], "default_organization" => nil, "organizations" => [], "effective_admin" => false } ] } [DEBUG 2019-02-04T04:50:20 API] Response headers: { :date => "Mon, 04 Feb 2019 09:50:19 GMT", :server => "Apache/2.4.6 (Red Hat Enterprise Linux)", :foreman_version => "1.20.1.10", :foreman_api_version => "2", :apipie_checksum => "3ddc570bda95d9530feca2021a0542b648884e92", :cache_control => "max-age=0, private, must-revalidate", :x_request_id => "ed60ccc4-3d10-4c62-a92b-17e2c4e5ecd8", :x_runtime => "0.063936", :strict_transport_security => "max-age=631139040; includeSubdomains", :x_frame_options => "sameorigin", :x_content_type_options => "nosniff", :x_xss_protection => "1; mode=block", :x_download_options => "noopen", :x_permitted_cross_domain_policies => "none", :content_security_policy => "default-src 'self'; child-src 'self'; connect-src 'self' ws: wss:; img-src 'self' data: *.gravatar.com; script-src 'unsafe-eval' 'unsafe-inline' 'self'; style-src 'unsafe-inline' 'self'", :x_powered_by => "Phusion Passenger 4.0.18", :set_cookie => [ [0] "_session_id=ae5b6958d73408393b698a0256f2b6db; path=/; secure; HttpOnly; SameSite=Lax" ], :etag => "W/\"6d359e35717cc4f040991d3ba4bb5e4f-gzip\"", :status => "200 OK", :vary => "Accept-Encoding", :content_encoding => "gzip", :content_length => "311", :content_type => "application/json; charset=utf-8" } [ INFO 2019-02-04T04:50:20 HammerCLIForeman::User::DeleteCommand] Called with options: {"option_login"=>"test_user", "option_id"=>13} [ INFO 2019-02-04T04:50:20 API] Server: https://satellite.example.com [ INFO 2019-02-04T04:50:20 API] DELETE /api/users/13 [DEBUG 2019-02-04T04:50:20 API] Params: {} [DEBUG 2019-02-04T04:50:20 API] Headers: { :params => {} } [DEBUG 2019-02-04T04:50:20 API] Using authenticator: HammerCLIForeman::Api::InteractiveBasicAuth [DEBUG 2019-02-04T04:50:20 API] Response: { "id" => 13, "login" => "test_user", "firstname" => nil, "lastname" => nil, "mail" => "a", "admin" => false, "last_login_on" => nil, "auth_source_id" => 1, "created_at" => "2019-02-04T09:49:44.184Z", "updated_at" => "2019-02-04T09:49:44.184Z", "password_hash" => "11492e13ddb7fd365b380eeedc4c34eca5f39ab8", "password_salt" => "8a5ce2978c69b4f51ab20cf77ad9fbe859a48e23", "locale" => nil, "avatar_hash" => nil, "default_organization_id" => nil, "default_location_id" => nil, "lower_login" => "test_user", "mail_enabled" => true, "timezone" => nil, "description" => nil, "password" => nil, "name" => "test_user" } [DEBUG 2019-02-04T04:50:20 API] Response headers: { :date => "Mon, 04 Feb 2019 09:50:20 GMT", :server => "Apache/2.4.6 (Red Hat Enterprise Linux)", :foreman_version => "1.20.1.10", :foreman_api_version => "2", :apipie_checksum => "3ddc570bda95d9530feca2021a0542b648884e92", :cache_control => "max-age=0, private, must-revalidate", :x_request_id => "de082774-0b2a-4a92-be29-c4e4bad9db53", :x_runtime => "0.248911", :strict_transport_security => "max-age=631139040; includeSubdomains", :x_frame_options => "sameorigin", :x_content_type_options => "nosniff", :x_xss_protection => "1; mode=block", :x_download_options => "noopen", :x_permitted_cross_domain_policies => "none", :content_security_policy => "default-src 'self'; child-src 'self'; connect-src 'self' ws: wss:; img-src 'self' data: *.gravatar.com; script-src 'unsafe-eval' 'unsafe-inline' 'self'; style-src 'unsafe-inline' 'self'", :x_powered_by => "Phusion Passenger 4.0.18", :set_cookie => [ [0] "request_method=DELETE; path=/; secure; HttpOnly; SameSite=Lax", [1] "_session_id=4d0d8c1c418b388e46bd5349eacc1bef; path=/; secure; HttpOnly; SameSite=Lax" ], :etag => "W/\"dc4d305e66cb01a49a76f28f1f7eb017-gzip\"", :status => "200 OK", :vary => "Accept-Encoding", :content_encoding => "gzip", :content_length => "307", :content_type => "application/json; charset=utf-8" } User [test_user] deleted. 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-2019:1222 |