Monitoring Console: Reference to LM in other NS breaks MC

オープン
#1,886 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
55/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
go, kubernetes
領域
backend

調査の方向性

Start by tracing how MonitoringConsole handles licenseManagerRef and adds the LicenseManager as a monitored resource, then inspect the cross-namespace reference validation and credential setup. Reproduce with the two instances in separate namespaces and different passwords; done means the MonitoringConsole starts successfully or the reference is rejected with a clear validation error.

索引モデルが issue の本文から書いたものです。

説明

monitoring console
Please select the type of request

Bug

Tell us more

Describe the request
Although documentation and CRDs differ in specification, apparently the monitoringConsoleRef is not supposed to link resources from other namespaces.
However, when a MonitoringConsole receives a licenseManagerRef, it adds the LicenseManager as monitored resource. When both instances are deployed within different namespaces and do not share a password, the MonitoringConsole will no longer be able to start, as it tries to authenticate to the LicenseManager with it's local, non-matching password.

FAILED - RETRYING: [localhost]: Set search peers (44 retries left).Result was: {                                                                                                                                                                                                                  
    "attempts": 17,                                                                                                                                                                                                                                                                               
    "changed": false,                                                                                                                                                                                                                                                                             
    "cmd": [                                                                                                                                                                                                                                                                                      
        "/opt/splunk/bin/splunk",                                                                                                                                                                                                                                                                 
        "add",                                                                                                                                                                                                                                                                                    
        "search-server",                                                                                                                                                                                                                                                                          
        "https://splunk-shared-license-manager-service.splunk-shared.svc.cluster.local:8089",                                                                                                                                                                                                     
        "-auth",                                                                                                                                                                                                                                                                                  
        "admin:<MC Password>",                                                                                                                                                                                                                                                         
        "-remoteUsername",                                                                                                                                                                                                                                                                        
        "admin",                                                                                                                                                                                                                                                                                  
        "-remotePassword",                                                                                                                                                                                                                                                                        
        "<MC Password>"                                                                                                                                                                                                                                                                
    [],                                                                                                                                                                                                                                                                                           
    "delta": "0:00:01.093771",                                                                                                                                                                                                                                                                    
    "end": "2026-10-27 22:37:22.047758",                                                                                                                                                                                                                                                          
    "failed_when_result": true,                                                                                                                                                                                                                                                                   
    "invocation": {                                                                                                                                                                                                                                                                               
        "module_args": {                                                                                                                                                                                                                                                                          
            "_raw_params": "/opt/splunk/bin/splunk add search-server https://splunk-shared-license-manager-service.splunk-shared.svc.cluster.local:8089 -auth admin:<MC Password> -remoteUsername admin -remotePassword <MC Password>",                                     
            "_uses_shell": false,                                                                                                                                                                                                                                                                 
            "argv": null,                                                                                                                                                                                                                                                                         
            "chdir": null,                                                                                                                                                                                                                                                                        
            "creates": null,                                                                                                                                                                                                                                                                      
            "executable": null,                                                                                                                                                                                                                                                                   
            "expand_argument_vars": true,                                                                                                                                                                                                                                                         
            "removes": null,                                                                                                                                                                                                                                                                      
            "stdin": null,                                                                                                                                                                                                                                                                        
            "stdin_add_newline": true,                                                                                                                                                                                                                                                            
            "strip_empty_ends": true                                                                                                                                                                                                                                                              
        }                                                                                                                                                                                                                                                                                         
    },                                                                                                                                                                                                                                                                                            
    "rc": 24,                                                                                                                                                                                                                                                                                     
    "retries": 61,                                                                                                                                                                                                                                                                                
    "start": "2026-10-27 22:37:20.953987"                                                                                                                                                                                                                                                         
}                                                              

STDERR:                                                                                                                                                                                                                                                                                           
                                                                                                                                                                                                                                                                                                  
WARNING: Server Certificate Hostname Validation is disabled. Please see server.conf/[sslConfig]/cliVerifyServerName for details.                                                                                                                                                                  
                                                                                                                                                                                                                                                                                                  
An error occurred:                                                                                                                                                                                                                                                                                
Status 401 while sending public key to search peer https://splunk-shared-license-manager-service.splunk-shared.svc.cluster.local:8089: Unauthorized                                                                                                                                               
                                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                                  
MSG:                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                  
non-zero return code                        

Expected behavior
The value for remotePassword should be the password of the namespace that holds the LicenseManager, not the local password of the namespace with the MonitoringConsole.

Splunk setup on K8S
See reproduction steps.

Reproduction/Testing steps

  • Create two namespaces and setup a shared pass4SymmKey (to enable licenseManagerRef to other namespace)
  • Namespace secrets must not specify a shared password
  • Deploy LicenseManager in one namespace, no monitoringConsoleRef required
  • Deploy MonitoringConsole in other namespace with licenseManagerRef to LicenseManager in first namespace

K8s environment
SOK 3.2.0
k8s v1.36.5

Proposed changes(optional)
Either use the correct password or don't automatically setup monitoring of the referenced LM.

主要言語
Go
スター
260
フォーク
134
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

splunk/splunk-operator のほかの issue

splunk/splunk-operator の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。