You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that any combination of options causes this, as long as Splunk is enabled.
π Expected behavior
update-splunk-mgmt-port would see that the management port does not need to be updated, and wouldn't update and restart.
β Additional context
I've run the same command used here to make sure the management port matches my configuration, and it does except for a leading whitespace, which I would assume is removed with the strip function. chef-client -l debug doesn't show the values that are being compared, so I'm not sure what's actually happening. I've also verified that my Splunk user's password doesn't contain spaces.
* execute[update-splunk-mgmt-port] action run[2021-08-04T19:25:32+00:00] INFO: Processing execute[update-splunk-mgmt-port] action run (chef-splunk::server line 26)
Splunkd port: 8089
[execute] The server's splunkd port has been changed.
Restart the server with the command "splunk restart". Until the server restarts, many commands will fail with the error "splunkd is not running."
You need to restart the Splunk Server (splunkd) for your changes to take effect.
[2021-08-04T19:25:33+00:00] INFO: execute[update-splunk-mgmt-port] ran successfully
- execute su - splunk -c '/opt/splunk/bin/splunk set splunkd-port 8089 -auth '<redacted>:<redacted>''
[2021-08-04T19:25:34+00:00] INFO: execute[update-splunk-mgmt-port] sending restart action to service[splunk] (delayed)
[2021-08-04T19:25:34+00:00] INFO: service[splunk] running why-run restart action to support before action
Recipe: chef-splunk::service
* service[splunk] action restart[2021-08-04T19:25:34+00:00] INFO: Processing service[splunk] action restart (chef-splunk::service line 101)
splunkd is running (PID: 411256).
splunk helpers are running (PIDs: 411308 411354 411485 411487 412018).
enabled
* Service status not available. Assuming a prior action would have installed the service.
* Assuming status of not running.
- Would restart service service[splunk]
The text was updated successfully, but these errors were encountered:
π» Brief Description
Every time the cookbook is run, Splunk is being restarted.
π₯ Cookbook version
Version: 7.2.1
π©βπ³ Chef-Infra Version
Version: 15.4.45
π© Platform details
RHEL 8.4
Steps To Reproduce
It seems that any combination of options causes this, as long as Splunk is enabled.
π Expected behavior
update-splunk-mgmt-port would see that the management port does not need to be updated, and wouldn't update and restart.
β Additional context
I've run the same command used here to make sure the management port matches my configuration, and it does except for a leading whitespace, which I would assume is removed with the strip function.
chef-client -l debug
doesn't show the values that are being compared, so I'm not sure what's actually happening. I've also verified that my Splunk user's password doesn't contain spaces.The text was updated successfully, but these errors were encountered: