ECS: OBS: xDoctor: RAP073: Anahtar Bağlantısı Hatası algılandı
Summary: Bu Knowledge Base makalesinde, Anahtar Bağlantısı Hatası algılandı uyarısının nasıl ele alınacağı açıklanmaktadır.
Symptoms
Timestamp = 2019-03-18_084014
Category = Environment
Source = Switch
Severity = ERROR
Message = Switch Connection Failure detected
Extra = {'turtle.rack': {'Traceback (most recent call last):\n File "
RAP = /usr/local/xdoctor/pacemaker/switch.py"
Solution = PASSWORD'
Pacemaker switch.py raporları:
# sudo /usr/local/xdoctor/pacemaker/switch.py <node data="True" name="169.254.1.1"> <switch name="turtle.rack"> <error msg="Traceback (most recent call last): File "/usr/local/xdoctor/pacemaker/switch.py", line 265, in collect swt = xSwitch.switch(ip, user, password=base64.b64decode(self.env['PASSWORD']), sshKey=None, sshOption=sshOption, verbose=self.debug, askPass=True, timeout=60, debug=self.debug) File "/usr/local/xdoctor/lib/xdoctor/switch.py", line 103, in __init__ self.open() File "/usr/local/xdoctor/lib/xdoctor/switch.py", line 151, in open raise Exception("invalid password max retries")Exception: invalid password max retries;"/> </switch>
Cause
Resolution
Connection Failure: Otomasyon YENİ!
ÖNEMLİ! xDoctor 4-8.104.0 ve üzeri sürümlerde yeni bir özellik yayınlandı. Bu bilgi tabanı (KB), anahtar bağlantılarını hızlı bir şekilde kontrol etmeyi denemek için artık Hizmet Konsolu ile otomatikleştirilmiştir. Komut dosyası, xDoctor'da parolayı, müşteri anahtarlarını, yapılandırma sorunlarını algılar ve anahtar değişimlerinden kaynaklanan bilinen ssh anahtarı sorunlarını giderir, bulgularının ayrıntılı bir özetini ve herhangi bir ssh anahtarı sorununu çözüp çözmediğini sağlar. Bu çözüm, algılama ve ssh anahtar çözümü için hem Gen 2 hem de Gen 3 anahtarlarda çalışır.
Otomasyonları ayarlama hakkında daha fazla bilgi için izleyin: ECS: ObjectScale: KB Otomasyon Komut Dosyalarını (Otomatik Pilot) çalıştırma
Rafın ana düğümünü bulmak için:
Komut:
ssh master.rack
NAN IP'sini bulmak için uyarıda veya getrackinfo'da tanımlanan ip'yi kullanabilirsiniz:
Komut:
admin@ecsnode1:~> getrackinfo
Node private Node Public BMC
Ip Address Id Status Mac Ip Address Mac Ip Address Private.4(NAN) Node Name
=============== ====== ====== ================= =============== ================= =============== =============== =========
192.168.219.1 1 MA 00:00:00:00:00 0.0.0.0 00:00:00:00:00 192.168.219.101 169.254.1.1 provo-red
192.168.219.2 2 SA 00:00:00:00:00 0.0.0.0 00:00:00:00:00 192.168.219.102 169.254.1.2 sandy-red
192.168.219.3 3 SA 00:00:00:00:00 0.0.0.0 00:00:00:00:00 192.168.219.103 169.254.1.3 orem-red
192.168.219.4 4 SA 00:00:00:00:00 0.0.0.0 00:00:00:00:00 192.168.219.104 169.254.1.4 ogden-red
192.168.219.5 5 SA 00:00:00:00:00 0.0.0.0 00:00:00:00:00 192.168.219.105 169.254.1.5 layton-red
192.168.219.6 6 SA 00:00:00:00:00 0.0.0.0 00:00:00:00:00 192.168.219.106 169.254.1.6 logan-red
192.168.219.7 7 SA 00:00:00:00:00 0.0.0.0 00:00:00:00:00 192.168.219.107 169.254.1.7 lehi-red
192.168.219.8 8 SA 00:00:00:00:00 0.0.0.0 00:00:00:00:00 192.168.219.108 169.254.1.8 murray-red
- xDoctor 4-8.104.0 ve üzeri ile ana düğümden otomasyon komutunu çalıştırın.
Not:
--target-rack bu eylem için desteklenir.
# sudo xdoctor autopilot --kb 39838 --target-rack <rack_colour>
admin@ecsnode1:~> sudo xdoctor autopilot --kb 39838 --target-rack red
Checking for existing screen sessions...
Starting screen session 'autopilot_kb_39838_20250626_112318'...
Screen session 'autopilot_kb_39838_20250626_112318' started successfully.
Attaching to screen session 'autopilot_kb_39838_20250626_112318'...
Using /etc/ansible/ansible.cfg as config file
VERSION: 3.0
Playbook tasks: 47
Role tasks: 97
Total tasks: 144 across 1 host(s)
PLAY [red] ******************************************************************************************************************************************************************
Detected 8 hosts for this play.
TASK [target_check : set_fact] **********************************************************************************************************************************************
ok: [169.254.1.1 -> localhost] => {"ansible_facts": {"allowed_targets": "Please use: --target-rack", "target_node_check": false, "target_rack_check": true, "target_vdc_check": false}, "changed": false}
TASK [target_check : context] ***********************************************************************************************************************************************
skipping: [169.254.1.1] => {"changed": false, "false_condition": "node_script == false and target_node_check == true or rack_script == false and target_rack_check == true or vdc_script == false and target_vdc_check == true", "skip_reason": "Conditional result was False"}
...truncated
- İnceleme özeti:
Örneğin:
TASK [Print all summaries] **************************************************************************************************************************************************
ok: [169.254.1.1] => {
"msg": [
"*******************************************************************************",
"Switch xDoctor 'RAP073' password and SSH summary:",
"*******************************************************************************",
"Validated Frontend switch(es): FAIL: The passwords for the Dell managed switch(es) are incorrect and need to be configured in the xDoctor settings according to KB 39838.",
"Validated Backend switch(es): FAIL: The passwords for the Dell managed switch(es) are incorrect and need to be configured in the xDoctor settings according to KB 39838.",
"Validated Backend management connections: PASS: Management connections are up and connected to the frontend switches.",
"*******************************************************************************",
"Validated ssh keys to switch(es): PASS: All ssh keys are valid and nothing was corrected.",
"Validated xDoctor alert: PASS: Alert RAP073 was not present in xDoctor.",
"*******************************************************************************"
]
}
TASK [Set fact for context] *************************************************************************************************************************************************
ok: [169.254.1.1 -> localhost] => {"ansible_facts": {"context": " Validated Frontend switch(es): FAIL: The passwords for the Dell managed switch(es) are incorrect and need to be configured in the xDoctor settings according to KB 39838., Validated Backend switch(es): FAIL: The passwords for the Dell managed switch(es) are incorrect and need to be configured in the xDoctor settings according to KB 39838."}, "changed": false}
TASK [Fail if validation fails] *********************************************************************************************************************************************
fatal: [169.254.1.1]: FAILED! => {"changed": false, "msg": "Review the summary above for recommendations."}
NO MORE HOSTS LEFT **********************************************************************************************************************************************************
PLAY RECAP ******************************************************************************************************************************************************************
169.254.1.1 : ok=65 changed=13 unreachable=0 failed=1 skipped=73 rescued=0 ignored=1
169.254.1.2 : ok=4 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0
169.254.1.3 : ok=4 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0
169.254.1.4 : ok=4 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0
169.254.1.5 : ok=4 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0
169.254.1.6 : ok=4 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0
169.254.1.7 : ok=4 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0
169.254.1.8 : ok=4 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0
=============================================================================================================================================================================
Status: FAIL
Time Elapsed: 0h 1m 25s
Debug log: /tmp/autopilot/log/autopilot_39838_20250626_113201.log
Message: Validated Frontend switch(es): FAIL: The passwords for the Dell managed switch(es) are incorrect and need to be configured in the xDoctor settings according to KB 39838., Validated Backend switch(es): FAIL: The passwords for the Dell managed switch(es) are incorrect and need to be configured in the xDoctor settings according to KB 39838.
=============================================================================================================================================================================
- xDoctor parolasını güncelleyin:
admin@ecsnode7:~> sudo xdoctor -c --expert
xDoctor Configuration Menu
--------------------------
[Expert Mode Active]
(1) Overview
(2) Scheduling
(3) Archiving
(5) Repository
(9) Miscellaneous
(0) Exit
Please make a choice: 9
xDoctor Miscellaneous
---------------------
(3) Switches
(4) Remove Hardware Alerting Timestamp
(0) Main menu
Please make a choice: 3
xDoctor Switch Settings
---------------------
Enable Switch Analysis? [Yes]:
Switches [hare,rabbit,fox,hound]:
Username [admin]:
Password [*****]:
[New Switch Settings]
Enabled = Yes
Switches = hare,rabbit,fox,hound
Username = admin
Password = *****
> Issue new settings? [No]: yes
2024-11-20 16:03:53,702: xDoctor_4.8-100.0 - INFO : Settings saved and distributed ...
xDoctor Miscellaneous
---------------------
(3) Switches
(4) Remove Hardware Alerting Timestamp
(0) Main menu
Temel KB Otomasyonu:
ECS: xDoctor: RAP073: Anahtar Bağlantısı Hatası algılandı
Bu otomasyona ek KB konsolidasyonu:
ECS: xDoctor, known_hosts'daki RSA anahtarı nedeniyle Anahtar Bağlantısı Hatası bildiriyor