Actions
Bug #38064
openUnable to use hammer to set the salt master on hosts
Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Description
Unable to use hammer to set the salt masters (foreman proxies):
[root@10-222-206-152 jsparrow]# hammer salt-minion info --id 75133
ID: 75133
Name: 10-136-48-148.cloudad.ssncad.global
Salt Master:
Salt Environment:
[ INFO 2024-12-03T17:06:02 HammerCLIForemanSalt::SaltMinion] Called with options: {}
[DEBUG 2024-12-03T17:06:02 HammerCLIForeman::CommandExtensions::OptionSources] Called block for HammerCLIForeman::Command option sources:
#<Proc:0x00007749ed94f5a8 /usr/share/gems/gems/hammer_cli_foreman-3.10.0/lib/hammer_cli_foreman/command_extensions/option_sources.rb:6>
[ INFO 2024-12-03T17:06:02 HammerCLIForemanSalt::SaltMinion::UpdateCommand] Called with options: {"option_id"=>"75133", "option_salt_proxy_id"=>32}
[DEBUG 2024-12-03T17:06:02 HammerCLIForeman::CommandExtensions::UpdateCommon] Called block for HammerCLIForeman::UpdateCommand request params:
#<Proc:0x00007749ed950b60 /usr/share/gems/gems/hammer_cli_foreman-3.10.0/lib/hammer_cli_foreman/command_extensions/update_common.rb:8>
[ INFO 2024-12-03T17:06:02 API] Server: https://foreman.ssnc-corp.cloud
[ INFO 2024-12-03T17:06:02 API] PUT /salt/api/salt_minions/75133
[DEBUG 2024-12-03T17:06:02 API] Params: {
"minion" => {
"salt_proxy_id" => 32
}
}
[DEBUG 2024-12-03T17:06:02 API] Headers: {}
[DEBUG 2024-12-03T17:06:02 API] Using authenticator: HammerCLIForeman::Api::InteractiveBasicAuth
[ERROR 2024-12-03T17:06:02 API] 422 Unprocessable Entity
[DEBUG 2024-12-03T17:06:02 API] {
"error" => {
"id" => 75133,
"errors" => {
"name" => [
[0] "has already been taken"
]
},
"full_messages" => [
[0] "Name has already been taken"
]s
}
}
[DEBUG 2024-12-03T17:06:02 Exception] Using exception handler HammerCLIForeman::ExceptionHandler#handle_unprocessable_entity
[ERROR 2024-12-03T17:06:02 Exception] Name has already been taken
Name has already been taken
No data to display
Actions