ECS:OBS:xDoctor 自动驾驶仪:无法解析inventory.ini

摘要: 本地主机文件inventory.ini解析失败。

本文适用于 本文不适用于 本文并非针对某种特定的产品。 本文并非包含所有产品版本。

症状

错误消息:

admin@ecsnode1:~> sudo xdoctor autopilot --kb 273244 --target-rack red
Checking for existing screen sessions...
Starting screen session 'autopilot_kb_273244_20250623_184352'...
Screen session 'autopilot_kb_273244_20250623_184352' started successfully.
Attaching to screen session 'autopilot_kb_273244_20250623_184352'...


Using /etc/ansible/ansible.cfg as config file
[WARNING]: * Failed to parse /opt/emc/xdoctor/config/inventory.ini with ini plugin: can't add group to itself
[WARNING]: Unable to parse /opt/emc/xdoctor/config/inventory.ini as an inventory source
[WARNING]: No inventory was parsed, only implicit localhost is available
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'
VERSION: 3.0
Playbook tasks: 29
Role tasks: 28
Total tasks: 57 across 1 host(s)
[WARNING]: Could not match supplied host pattern, ignoring: red

PLAY [red] *******************************************************************************************************************************************************************************
Detected 0 hosts for this play.
skipping: no hosts matched

PLAY RECAP *******************************************************************************************************************************************************************************

==========================================================================================================================================================================================
Status: PASS
Time Elapsed: 0h 0m 0s
Debug log: /tmp/autopilot/log/autopilot_273244_20250623_184352.log
Message:
==========================================================================================================================================================================================
s=

[screen is terminating]

原因

文件无法解析 inventory.ini 创建时导致文件为空。

解决方案

此命令重新生成 inventory.ini 每当检测到问题时(包括自动生成清单文件期间),也可以在发现文件问题时随时手动运行文件。

sudo xdoctor autopilot --inventory
admin@ecsnode1:~> sudo xdoctor autopilot --inventory 
Updated inventory file /opt/emc/xdoctor/config/inventory.ini

在较新版本中:

sudo xdoctor ansible --update

受影响的产品

ObjectScale, ECS Appliance

产品

ECS, ECS Appliance Software with Encryption, ECS Appliance Software without Encryption, ObjectScale Software with Encryption, ObjectScale Software without Encryption, ObjectScale Software Series
文章属性
文章编号: 000336401
文章类型: Solution
上次修改时间: 27 2月 2026
版本:  4
从其他戴尔用户那里查找问题的答案
支持服务
检查您的设备是否在支持服务涵盖的范围内。