<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Error while applying shcluster-bundle on deployer? in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/Error-while-applying-shcluster-bundle-on-deployer/m-p/628236#M26587</link>
    <description>&lt;P&gt;I'm new in Splunk and have a test environment contains search head cluster with three Splunk 9.0.1 instances: one deployer and two search heads. If it important a Deployer also have an indexer cluster master role.&amp;nbsp;This is a fresh install without any specific changes.&amp;nbsp;&lt;BR /&gt;Output of&amp;nbsp;splunk show shcluster-status --verbose:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt; Captain:
                decommission_search_jobs_wait_secs : 180
                               dynamic_captain : 1
                               elected_captain : Tue Jan 24 17:57:01 2023
                                            id : 17B17CF3-57A4-4F34-A943-835219C2DA41
                              initialized_flag : 1
                    kvstore_maintenance_status : disabled
                                         label : spl-sh02
                 max_failures_to_keep_majority : 0
                                      mgmt_uri : https://spl-sh02.domain.com:8089
                         min_peers_joined_flag : 1
                               rolling_restart : restart
                          rolling_restart_flag : 0
                          rolling_upgrade_flag : 0
                            service_ready_flag : 1
                                stable_captain : 1

 Cluster Manager(s):
        https://spl-ms01.domain.com:8089         splunk_version: 9.0.0.1

 Members:
        spl-sh02
                                kvstore_status : ready
                                         label : spl-sh02
                              manual_detention : off
                                      mgmt_uri : https://domain.com:8089
                                mgmt_uri_alias : https://172.28.56.104:8089
                              out_of_sync_node : 0
                             preferred_captain : 1
                              restart_required : 0
                                splunk_version : 9.0.0.1
                                        status : Up
        spl-sh01
                                kvstore_status : ready
                                         label : spl-sh01
                         last_conf_replication : Wed Jan 25 10:52:26 2023
                              manual_detention : off
                                      mgmt_uri : https://spl-sh01.domain.com:8089
                                mgmt_uri_alias : https://172.28.56.100:8089
                              out_of_sync_node : 0
                             preferred_captain : 1
                              restart_required : 0
                                splunk_version : 9.0.0.1
                                        status : Up&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When i'm try to execute "apply&amp;nbsp;shcluster-bundle" on deployer i'm see this error:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Warning: Depending on the configuration changes being pushed, this command might initiate a rolling restart of the cluster members.  Please refer to the documentation for the details. Do you wish to continue? [y/n]: y
WARNING: Server Certificate Hostname Validation is disabled. Please see server.conf/[sslConfig]/cliVerifyServerName for details.
Error in pre-deploy check, uri=https://spl-sh02.domain.com:8089/services/shcluster/captain/kvstore-upgrade/status, status=401, error=No error&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How i can solve this problem?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 25 Jan 2023 16:47:26 GMT</pubDate>
    <dc:creator>NoSpaces</dc:creator>
    <dc:date>2023-01-25T16:47:26Z</dc:date>
    <item>
      <title>Error while applying shcluster-bundle on deployer?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Error-while-applying-shcluster-bundle-on-deployer/m-p/628236#M26587</link>
      <description>&lt;P&gt;I'm new in Splunk and have a test environment contains search head cluster with three Splunk 9.0.1 instances: one deployer and two search heads. If it important a Deployer also have an indexer cluster master role.&amp;nbsp;This is a fresh install without any specific changes.&amp;nbsp;&lt;BR /&gt;Output of&amp;nbsp;splunk show shcluster-status --verbose:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt; Captain:
                decommission_search_jobs_wait_secs : 180
                               dynamic_captain : 1
                               elected_captain : Tue Jan 24 17:57:01 2023
                                            id : 17B17CF3-57A4-4F34-A943-835219C2DA41
                              initialized_flag : 1
                    kvstore_maintenance_status : disabled
                                         label : spl-sh02
                 max_failures_to_keep_majority : 0
                                      mgmt_uri : https://spl-sh02.domain.com:8089
                         min_peers_joined_flag : 1
                               rolling_restart : restart
                          rolling_restart_flag : 0
                          rolling_upgrade_flag : 0
                            service_ready_flag : 1
                                stable_captain : 1

 Cluster Manager(s):
        https://spl-ms01.domain.com:8089         splunk_version: 9.0.0.1

 Members:
        spl-sh02
                                kvstore_status : ready
                                         label : spl-sh02
                              manual_detention : off
                                      mgmt_uri : https://domain.com:8089
                                mgmt_uri_alias : https://172.28.56.104:8089
                              out_of_sync_node : 0
                             preferred_captain : 1
                              restart_required : 0
                                splunk_version : 9.0.0.1
                                        status : Up
        spl-sh01
                                kvstore_status : ready
                                         label : spl-sh01
                         last_conf_replication : Wed Jan 25 10:52:26 2023
                              manual_detention : off
                                      mgmt_uri : https://spl-sh01.domain.com:8089
                                mgmt_uri_alias : https://172.28.56.100:8089
                              out_of_sync_node : 0
                             preferred_captain : 1
                              restart_required : 0
                                splunk_version : 9.0.0.1
                                        status : Up&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When i'm try to execute "apply&amp;nbsp;shcluster-bundle" on deployer i'm see this error:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Warning: Depending on the configuration changes being pushed, this command might initiate a rolling restart of the cluster members.  Please refer to the documentation for the details. Do you wish to continue? [y/n]: y
WARNING: Server Certificate Hostname Validation is disabled. Please see server.conf/[sslConfig]/cliVerifyServerName for details.
Error in pre-deploy check, uri=https://spl-sh02.domain.com:8089/services/shcluster/captain/kvstore-upgrade/status, status=401, error=No error&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How i can solve this problem?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 16:47:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Error-while-applying-shcluster-bundle-on-deployer/m-p/628236#M26587</guid>
      <dc:creator>NoSpaces</dc:creator>
      <dc:date>2023-01-25T16:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: Error while applying shcluster-bundle on deployer?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Error-while-applying-shcluster-bundle-on-deployer/m-p/629448#M26645</link>
      <description>&lt;P&gt;I was find resolution by myself.&lt;BR /&gt;As most of us knows error 401 typically means 'invalid authentication credentials'.&lt;BR /&gt;This sounds pretty clear but i didn't pay attention about it for a long time because i'm using &lt;EM&gt;Ansible&lt;/EM&gt; and thought that passwors on Deployer and SHC members (SHCms) can't mismatch.&lt;BR /&gt;But i was wrong.&lt;BR /&gt;Due to installation peculiarityes a password for Deployer ans SHCms seting by different ways. On the one hand you need to set password directly in Deployer's server.conf. On the other hand you need to use '&lt;EM&gt;splunk init shcluster-config&lt;/EM&gt;' command to create SHC.&lt;BR /&gt;My ansible code for SHC creating executed by the win_shell module and looked like:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;- name: 'SPL :: Configuring Search head cluster member'
  #ansible.windows.win_shell
  win_shell: |
    splunk init shcluster-config -auth '{{ admin }}:{{ password }}' -mgmt_uri '{{ mgmt_uri}}' ... bla bla bla ... -secret '{{ shc_key }}' -shcluster_label '{{ shc_label }}'&lt;/LI-CODE&gt;&lt;P&gt;When i was use this code i had password mismatch on Deployer and SHCms.&lt;/P&gt;&lt;P&gt;As an experiment i ran command without secret argument then i set seсret directly in server.conf...&amp;nbsp;And it worked!&lt;/P&gt;&lt;P&gt;Based on this i think that 'splunk init shcluster-config' command have some errors and don't ignoring&amp;nbsp;single quotes which&amp;nbsp;need to escaping chars when you use ansible.&lt;BR /&gt;Other commands e.g. 'splunk edit cluster-config' or 'splunk edit cluster-config' don't have this error.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2023 07:26:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Error-while-applying-shcluster-bundle-on-deployer/m-p/629448#M26645</guid>
      <dc:creator>NoSpaces</dc:creator>
      <dc:date>2023-02-03T07:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: Error while applying shcluster-bundle on deployer?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Error-while-applying-shcluster-bundle-on-deployer/m-p/741141#M29248</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/253209"&gt;@NoSpaces&lt;/a&gt;&amp;nbsp;did you report to support as this looks like&amp;nbsp;&lt;SPAN&gt;splunk init shcluster-config bug?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Mar 2025 15:26:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Error-while-applying-shcluster-bundle-on-deployer/m-p/741141#M29248</guid>
      <dc:creator>splunkreal</dc:creator>
      <dc:date>2025-03-07T15:26:15Z</dc:date>
    </item>
  </channel>
</rss>

