登录
注册
开源
企业版
高校版
搜索
帮助中心
使用条款
关于我们
开源
企业版
高校版
私有云
模力方舟
AI 队友
登录
注册
5 月 21 日 19:00,Gitee 邀你一起赢十三周年好礼!快来直播间和我们互动吧~
代码拉取完成,页面将自动刷新
仓库状态说明
捐赠
捐赠前请先登录
取消
前往登录
扫描微信二维码支付
取消
支付完成
支付提示
将跳转至支付宝完成支付
确定
取消
Watch
不关注
关注所有动态
仅关注版本发行动态
关注但不提醒动态
17
Star
31
Fork
56
openEuler
/
openstack
关闭
代码
Issues
27
Pull Requests
0
Wiki
统计
流水线
服务
JavaDoc
PHPDoc
质量分析
Jenkins for Gitee
腾讯云托管
腾讯云 Serverless
悬镜安全
阿里云 SAE
Codeblitz
SBOM
开发画像分析
我知道了,不再自动展开
更新失败,请稍后重试!
移除标识
内容风险标识
本任务被
标识为内容中包含有代码安全 Bug 、隐私泄露等敏感信息,仓库外成员不可访问
[21.03][Victoria][Ironic] "deploying"阶段'No suitable device was found for deployment'
已取消
#I4VHQQ
缺陷
韩光宇
成员
创建于
2022-02-28 10:33
【标题描述】baremetal node进入"deploying"阶段后,/var/log/ironic/ironic-conductor.log出现'No suitable device was found for deployment'报错 【环境信息】 硬件信息: 1) Ironic服务部署于清华同方超越E500-15170台式机,台式机为OpenStack ALL-in-one节点,用于测试Victoria Ironic。 (intel i7-10700 2.9GHz; 16G DDR4 2666) 2) 裸金属目标机为清华同方服务器 |BMC固件版本与编译时间| Agesa版本|MicroCode版本|主板CPLD版本|背板1CPLD版本| |--|--|--|--|--| |2.02.0 (Nov 13 2020 15:40:53 CST)|1.0.1.1|80901047|REV 1.02|REV 1.03| | 部件名称 | 型号 | 数量 | |---|---|---| | CPU | Hygon C86 5280 16-core 25GHz | 2块 | | 主板 | TONGFANG(制造商) THTF-T1DMHG-E2 | 1块 | | 内存 | SK Hynix RDIMM DDR4 32GB 2133MHz | 16条 | | RAID卡 | AVAGO MegaRAID SAS 9361-8i (259 ) | 1个 | | 硬盘 | HDD(2T) | 3块 | 软件信息(部署OpenStack服务物理机上的软件信息): 1) OS版本及分支: openEuler 21.03 2) 内核信息: 5.10.0-4.17.0.28.oe1.x86_64 3) 发现问题的组件版本信息: OpenStack Victoria 【问题复现步骤】 **具体操作步骤** 参照 https://docs.openeuler.org/zh/docs/21.03/docs/thirdparty_migration/OpenStack-victoria.html 及 https://docs.openeuler.org/zh/docs/21.09/docs/thirdparty_migration/OpenStack-wallaby.html,在OpenEuler 21.03上部署OpenStack All-in-one节点。(部署服务包括:Keystone、Glance、Placement、Nova、Neutron、Ironic) 因Ironic-inspector服务运行出现问题,希望首先走通流程,未纠结此。关闭inspector服务,回退相应配置。参照上述文档及OpenStack官方文档,手动设置硬件参数。裸金属服务只运行openstack-ironic-api.service和openstack-ironic-conductor.service。 设置硬件参数等配置操作如下 ```shell openstack baremetal node set $NODE_UUID \ --property cpus=$CPU_COUNT \ --property memory_mb=$RAM_MB \ --property local_gb=$DISK_GB openstack baremetal node set $NODE_UUID \ --property capabilities='boot_mode:bios' # 此处因为未配置swift等,在测试环境中,使用iscsi部署接口,配置文件已对应配置(按自己目前理解,当前报错的点,还未走到此环节,未涉及user images的传输,deploy images运行就已出现无法找到磁盘的报错;如理解有误,希望社区的同学见谅,指点) openstack baremetal --os-baremetal-api-version 1.31 node set $NODE_UUID \ --deploy-interface iscsi \ --raid-interface agent ``` 配置好baremetal节点信息后 ```shell # Making node available for deployment openstack baremetal --os-baremetal-api-version 1.11 node manage $NODE_UUID # provide命令会自动执行clean,clean执行状态为success openstack baremetal --os-baremetal-api-version 1.11 node provide $NODE_UUID # 创建用于 Bare Metal 服务的 Flavor openstack flavor create --ram $RAM_MB --vcpus $CPU_COUNT --disk $DISK_GB my-baremetal-flavor openstack flavor set --property resources:CUSTOM_$CLASS_NAME=1 my-baremetal-flavor openstack flavor set --property resources:VCPU=0 my-baremetal-flavor openstack flavor set --property resources:MEMORY_MB=0 my-baremetal-flavor openstack flavor set --property resources:DISK_GB=0 my-baremetal-flavor net_id=687e31ee-72b5-469c-bcd8-e3e3e19c26a7 # create server boot disk from this image image=004b2e75-4309-4ba0-8b40-c9624dd9c0e8 # 执行完下句后,进入deploying阶段,出现报错 openstack server create --flavor my-baremetal-flavor --nic net-id=$net_id --image $image testing ``` 出现概率: 必现 【预期结果】 能够正常识别硬盘,完成裸金属部署。 【实际结果】 openstack-ironic-conductor日志如下 ```ini 2022-02-25 20:06:59.670 131376 INFO ironic.conductor.task_manager [req-49073276-41ce-425f-9622-1494455966c4 2b4996b5ed5448b1a0ce53129f379bd6 5ddd2277e51a422d9a57598fd13bfb78 - default default] Node e0544406-9659-4358-a019-2b7f8164cfc4 moved to provision state "cleaning" from state "manageable"; target provision state is "available" 2022-02-25 20:07:00.807 131376 INFO ironic.common.neutron [req-49073276-41ce-425f-9622-1494455966c4 2b4996b5ed5448b1a0ce53129f379bd6 5ddd2277e51a422d9a57598fd13bfb78 - default default] Successfully removed node e0544406-9659-4358-a019-2b7f8164cfc4 neutron ports. 2022-02-25 20:07:00.808 131376 INFO ironic.drivers.modules.network.flat [req-49073276-41ce-425f-9622-1494455966c4 2b4996b5ed5448b1a0ce53129f379bd6 5ddd2277e51a422d9a57598fd13bfb78 - default default] Adding cleaning network to node e0544406-9659-4358-a019-2b7f8164cfc4 2022-02-25 20:07:03.334 131376 INFO ironic.common.neutron [req-49073276-41ce-425f-9622-1494455966c4 2b4996b5ed5448b1a0ce53129f379bd6 5ddd2277e51a422d9a57598fd13bfb78 - default default] For node e0544406-9659-4358-a019-2b7f8164cfc4 in network 687e31ee-72b5-469c-bcd8-e3e3e19c26a7, successfully created ports (ironic ID: neutron ID): {'bdb812a3-a1b4-48ed-88e0-53e1402478f3': 'e6b073f2-7baf-4def-97de-8d9c8ed7b57c'}. 2022-02-25 20:07:25.880 131376 INFO ironic.conductor.utils [req-49073276-41ce-425f-9622-1494455966c4 2b4996b5ed5448b1a0ce53129f379bd6 5ddd2277e51a422d9a57598fd13bfb78 - default default] Successfully set node e0544406-9659-4358-a019-2b7f8164cfc4 power state to power on by rebooting. 2022-02-25 20:07:26.023 131376 INFO ironic.conductor.task_manager [req-49073276-41ce-425f-9622-1494455966c4 2b4996b5ed5448b1a0ce53129f379bd6 5ddd2277e51a422d9a57598fd13bfb78 - default default] Node e0544406-9659-4358-a019-2b7f8164cfc4 moved to provision state "clean wait" from state "cleaning"; target provision state is "available" 2022-02-25 20:16:18.278 131376 INFO ironic.conductor.task_manager [req-db46e526-83a8-49a5-b65f-74ab4197b97e - - - - -] Node e0544406-9659-4358-a019-2b7f8164cfc4 moved to provision state "cleaning" from state "clean wait"; target provision state is "available" 2022-02-25 20:16:18.279 131376 INFO ironic.conductor.cleaning [req-db46e526-83a8-49a5-b65f-74ab4197b97e - - - - -] Executing cleaning on node e0544406-9659-4358-a019-2b7f8164cfc4, remaining steps: [{'step': 'erase_devices_metadata', 'priority': 99, 'interface': 'deploy', 'reboot_requested': False, 'abortable': True}, {'step': 'erase_devices', 'priority': 10, 'interface': 'deploy', 'reboot_requested': False, 'abortable': True}] 2022-02-25 20:16:18.319 131376 INFO ironic.conductor.cleaning [req-db46e526-83a8-49a5-b65f-74ab4197b97e - - - - -] Executing {'step': 'erase_devices_metadata', 'priority': 99, 'interface': 'deploy', 'reboot_requested': False, 'abortable': True} on node e0544406-9659-4358-a019-2b7f8164cfc4 2022-02-25 20:16:18.329 131376 INFO ironic.conductor.cleaning [req-db46e526-83a8-49a5-b65f-74ab4197b97e - - - - -] Clean step {'step': 'erase_devices_metadata', 'priority': 99, 'interface': 'deploy', 'reboot_requested': False, 'abortable': True} on node e0544406-9659-4358-a019-2b7f8164cfc4 being executed asynchronously, waiting for driver. 2022-02-25 20:16:18.369 131376 INFO ironic.conductor.task_manager [req-db46e526-83a8-49a5-b65f-74ab4197b97e - - - - -] Node e0544406-9659-4358-a019-2b7f8164cfc4 moved to provision state "clean wait" from state "cleaning"; target provision state is "available" 2022-02-25 20:16:18.524 131376 INFO ironic.drivers.modules.agent_base [-] Agent on node e0544406-9659-4358-a019-2b7f8164cfc4 returned clean command success, moving to next step 2022-02-25 20:16:18.720 131376 INFO ironic.conductor.task_manager [req-5252d5ac-8753-4f1c-8ccc-c163daecfdc3 - - - - -] Node e0544406-9659-4358-a019-2b7f8164cfc4 moved to provision state "cleaning" from state "clean wait"; target provision state is "available" 2022-02-25 20:16:18.721 131376 INFO ironic.conductor.cleaning [req-5252d5ac-8753-4f1c-8ccc-c163daecfdc3 - - - - -] Executing cleaning on node e0544406-9659-4358-a019-2b7f8164cfc4, remaining steps: [{'step': 'erase_devices', 'priority': 10, 'interface': 'deploy', 'reboot_requested': False, 'abortable': True}] 2022-02-25 20:16:18.812 131376 INFO ironic.conductor.cleaning [req-5252d5ac-8753-4f1c-8ccc-c163daecfdc3 - - - - -] Executing {'step': 'erase_devices', 'priority': 10, 'interface': 'deploy', 'reboot_requested': False, 'abortable': True} on node e0544406-9659-4358-a019-2b7f8164cfc4 2022-02-25 20:16:18.822 131376 INFO ironic.conductor.cleaning [req-5252d5ac-8753-4f1c-8ccc-c163daecfdc3 - - - - -] Clean step {'step': 'erase_devices', 'priority': 10, 'interface': 'deploy', 'reboot_requested': False, 'abortable': True} on node e0544406-9659-4358-a019-2b7f8164cfc4 being executed asynchronously, waiting for driver. 2022-02-25 20:16:18.872 131376 WARNING ironic.drivers.modules.agent_base [-] Node e0544406-9659-4358-a019-2b7f8164cfc4 is currently locked, skipping heartbeat processing (will retry on the next heartbeat): ironic.common.exception.NodeLocked: Node e0544406-9659-4358-a019-2b7f8164cfc4 is locked by host controller, please retry after the current operation is completed. 2022-02-25 20:16:18.878 131376 INFO ironic.conductor.task_manager [req-5252d5ac-8753-4f1c-8ccc-c163daecfdc3 - - - - -] Node e0544406-9659-4358-a019-2b7f8164cfc4 moved to provision state "clean wait" from state "cleaning"; target provision state is "available" 2022-02-25 20:18:33.102 131376 INFO ironic.drivers.modules.agent_base [-] Agent on node e0544406-9659-4358-a019-2b7f8164cfc4 returned clean command success, moving to next step 2022-02-25 20:18:33.242 131376 INFO ironic.conductor.task_manager [req-b8e0052a-876b-4777-b3b4-3da5d84ee14b - - - - -] Node e0544406-9659-4358-a019-2b7f8164cfc4 moved to provision state "cleaning" from state "clean wait"; target provision state is "available" 2022-02-25 20:18:33.242 131376 INFO ironic.conductor.cleaning [req-b8e0052a-876b-4777-b3b4-3da5d84ee14b - - - - -] Executing cleaning on node e0544406-9659-4358-a019-2b7f8164cfc4, remaining steps: [] 2022-02-25 20:18:50.853 131376 INFO ironic.conductor.utils [req-b8e0052a-876b-4777-b3b4-3da5d84ee14b - - - - -] Successfully set node e0544406-9659-4358-a019-2b7f8164cfc4 power state to power off by power off. 2022-02-25 20:18:51.223 131376 INFO ironic.drivers.modules.network.flat [req-b8e0052a-876b-4777-b3b4-3da5d84ee14b - - - - -] Removing ports from cleaning network for node e0544406-9659-4358-a019-2b7f8164cfc4 2022-02-25 20:18:52.122 131376 INFO ironic.common.neutron [req-b8e0052a-876b-4777-b3b4-3da5d84ee14b - - - - -] Successfully removed node e0544406-9659-4358-a019-2b7f8164cfc4 neutron ports. 2022-02-25 20:18:52.231 131376 INFO ironic.conductor.cleaning [req-b8e0052a-876b-4777-b3b4-3da5d84ee14b - - - - -] Node e0544406-9659-4358-a019-2b7f8164cfc4 cleaning complete 2022-02-25 20:18:52.502 131376 INFO ironic.conductor.task_manager [req-b8e0052a-876b-4777-b3b4-3da5d84ee14b - - - - -] Node e0544406-9659-4358-a019-2b7f8164cfc4 moved to provision state "available" from state "cleaning"; target provision state is "None" 2022-02-25 20:24:36.784 131376 INFO ironic.conductor.manager [req-223825e4-ac17-475d-a95c-25821fb7498e 35e56a31948c45c5be915992da7dab88 09533cc15c844b0eb01fa3d1b5d75181 - default default] VIF a8529dac-7044-4bdb-8a0a-744cf037ef2f successfully attached to node e0544406-9659-4358-a019-2b7f8164cfc4 2022-02-25 20:24:41.114 131376 INFO ironic.conductor.task_manager [req-8ea8bfa5-f185-4b3f-aeca-0821b44c0609 35e56a31948c45c5be915992da7dab88 09533cc15c844b0eb01fa3d1b5d75181 - default default] Node e0544406-9659-4358-a019-2b7f8164cfc4 moved to provision state "deploying" from state "available"; target provision state is "active" 2022-02-25 20:24:41.214 131376 WARNING ironic.conductor.utils [req-8ea8bfa5-f185-4b3f-aeca-0821b44c0609 35e56a31948c45c5be915992da7dab88 09533cc15c844b0eb01fa3d1b5d75181 - default default] Not going to change node e0544406-9659-4358-a019-2b7f8164cfc4 power state because current state = requested state = 'power off'. 2022-02-25 20:24:41.215 131376 INFO ironic.drivers.modules.network.flat [req-8ea8bfa5-f185-4b3f-aeca-0821b44c0609 35e56a31948c45c5be915992da7dab88 09533cc15c844b0eb01fa3d1b5d75181 - default default] Unbinding instance ports from node e0544406-9659-4358-a019-2b7f8164cfc4 2022-02-25 20:24:52.644 131376 INFO ironic.conductor.deployments [req-8ea8bfa5-f185-4b3f-aeca-0821b44c0609 35e56a31948c45c5be915992da7dab88 09533cc15c844b0eb01fa3d1b5d75181 - default default] Executing deploying on node e0544406-9659-4358-a019-2b7f8164cfc4, remaining steps: [{'step': 'deploy', 'priority': 100, 'argsinfo': None, 'interface': 'deploy'}, {'step': 'write_image', 'priority': 80, 'argsinfo': None, 'interface': 'deploy'}, {'step': 'prepare_instance_boot', 'priority': 60, 'argsinfo': None, 'interface': 'deploy'}, {'step': 'tear_down_agent', 'priority': 40, 'argsinfo': None, 'interface': 'deploy'}, {'step': 'switch_to_tenant_network', 'priority': 30, 'argsinfo': None, 'interface': 'deploy'}, {'step': 'boot_instance', 'priority': 20, 'argsinfo': None, 'interface': 'deploy'}] 2022-02-25 20:24:52.753 131376 INFO ironic.conductor.deployments [req-8ea8bfa5-f185-4b3f-aeca-0821b44c0609 35e56a31948c45c5be915992da7dab88 09533cc15c844b0eb01fa3d1b5d75181 - default default] Executing {'step': 'deploy', 'priority': 100, 'argsinfo': None, 'interface': 'deploy'} on node e0544406-9659-4358-a019-2b7f8164cfc4 2022-02-25 20:24:53.058 131376 INFO ironic.drivers.modules.image_cache [req-8ea8bfa5-f185-4b3f-aeca-0821b44c0609 35e56a31948c45c5be915992da7dab88 09533cc15c844b0eb01fa3d1b5d75181 - default default] Master cache miss for image 004b2e75-4309-4ba0-8b40-c9624dd9c0e8, starting download 2022-02-25 20:28:53.010 131376 WARNING ironic.common.nova [req-8ea8bfa5-f185-4b3f-aeca-0821b44c0609 35e56a31948c45c5be915992da7dab88 09533cc15c844b0eb01fa3d1b5d75181 - default default] Could not connect to Nova to send a power notification, please check configuration. An auth plugin is required to determine endpoint URL: keystoneauth1.exceptions.auth_plugins.MissingAuthPlugin: An auth plugin is required to determine endpoint URL 2022-02-25 20:28:53.011 131376 INFO ironic.conductor.utils [req-8ea8bfa5-f185-4b3f-aeca-0821b44c0609 35e56a31948c45c5be915992da7dab88 09533cc15c844b0eb01fa3d1b5d75181 - default default] Successfully set node e0544406-9659-4358-a019-2b7f8164cfc4 power state to power on by rebooting. 2022-02-25 20:28:53.017 131376 INFO ironic.conductor.deployments [req-8ea8bfa5-f185-4b3f-aeca-0821b44c0609 35e56a31948c45c5be915992da7dab88 09533cc15c844b0eb01fa3d1b5d75181 - default default] Deploy step {'step': 'deploy', 'priority': 100, 'argsinfo': None, 'interface': 'deploy'} on node e0544406-9659-4358-a019-2b7f8164cfc4 being executed asynchronously, waiting for driver. 2022-02-25 20:28:53.118 131376 INFO ironic.conductor.task_manager [req-8ea8bfa5-f185-4b3f-aeca-0821b44c0609 35e56a31948c45c5be915992da7dab88 09533cc15c844b0eb01fa3d1b5d75181 - default default] Node e0544406-9659-4358-a019-2b7f8164cfc4 moved to provision state "wait call-back" from state "deploying"; target provision state is "active" 2022-02-25 20:37:11.364 131376 INFO ironic.conductor.task_manager [req-b4744692-735a-43ba-93b3-2dc56e5369fa - - - - -] Node e0544406-9659-4358-a019-2b7f8164cfc4 moved to provision state "deploying" from state "wait call-back"; target provision state is "active" 2022-02-25 20:37:11.365 131376 INFO ironic.conductor.deployments [req-b4744692-735a-43ba-93b3-2dc56e5369fa - - - - -] Executing deploying on node e0544406-9659-4358-a019-2b7f8164cfc4, remaining steps: [{'step': 'write_image', 'priority': 80, 'argsinfo': None, 'interface': 'deploy'}, {'step': 'prepare_instance_boot', 'priority': 60, 'argsinfo': None, 'interface': 'deploy'}, {'step': 'tear_down_agent', 'priority': 40, 'argsinfo': None, 'interface': 'deploy'}, {'step': 'switch_to_tenant_network', 'priority': 30, 'argsinfo': None, 'interface': 'deploy'}, {'step': 'boot_instance', 'priority': 20, 'argsinfo': None, 'interface': 'deploy'}] 2022-02-25 20:37:11.415 131376 INFO ironic.conductor.deployments [req-b4744692-735a-43ba-93b3-2dc56e5369fa - - - - -] Executing {'step': 'write_image', 'priority': 80, 'argsinfo': None, 'interface': 'deploy'} on node e0544406-9659-4358-a019-2b7f8164cfc4 2022-02-25 20:37:11.440 131376 WARNING ironic.conductor.manager [req-ab8df130-6fd9-49d5-803d-6642fb67c77d - - - - -] An agent token generation request is being refused as one is already present for node e0544406-9659-4358-a019-2b7f8164cfc4 2022-02-25 20:37:13.081 131376 ERROR ironic.conductor.utils [req-b4744692-735a-43ba-93b3-2dc56e5369fa - - - - -] Failed to start the iSCSI target to deploy the node e0544406-9659-4358-a019-2b7f8164cfc4. Error: {'type': 'DeviceNotFound', 'code': 404, 'message': 'Error finding the disk or partition device to deploy the image onto', 'details': 'No suitable device was found for deployment - root device hints were not provided and all found block devices are smaller than 4294967296B.'} 2022-02-25 20:37:13.241 131376 ERROR ironic.conductor.task_manager [req-b4744692-735a-43ba-93b3-2dc56e5369fa - - - - -] Node e0544406-9659-4358-a019-2b7f8164cfc4 moved to provision state "deploy failed" from state "deploying"; target provision state is "active" 2022-02-25 20:37:28.860 131376 WARNING ironic.common.nova [req-b4744692-735a-43ba-93b3-2dc56e5369fa - - - - -] Could not connect to Nova to send a power notification, please check configuration. An auth plugin is required to determine endpoint URL: keystoneauth1.exceptions.auth_plugins.MissingAuthPlugin: An auth plugin is required to determine endpoint URL 2022-02-25 20:37:28.861 131376 INFO ironic.conductor.utils [req-b4744692-735a-43ba-93b3-2dc56e5369fa - - - - -] Successfully set node e0544406-9659-4358-a019-2b7f8164cfc4 power state to power off by power off. 2022-02-25 20:37:28.900 131376 ERROR ironic.conductor.utils [req-b4744692-735a-43ba-93b3-2dc56e5369fa - - - - -] Node e0544406-9659-4358-a019-2b7f8164cfc4 failed deploy step {}. Error: Failed to deploy instance: Failed to start the iSCSI target to deploy the node e0544406-9659-4358-a019-2b7f8164cfc4. Error: {'type': 'DeviceNotFound', 'code': 404, 'message': 'Error finding the disk or partition device to deploy the image onto', 'details': 'No suitable device was found for deployment - root device hints were not provided and all found block devices are smaller than 4294967296B.'}: ironic.common.exception.InstanceDeployFailure: Failed to deploy instance: Failed to start the iSCSI target to deploy the node e0544406-9659-4358-a019-2b7f8164cfc4. Error: {'type': 'DeviceNotFound', 'code': 404, 'message': 'Error finding the disk or partition device to deploy the image onto', 'details': 'No suitable device was found for deployment - root device hints were not provided and all found block devices are smaller than 4294967296B.'} 2022-02-25 20:37:29.035 131376 ERROR ironic.conductor.utils [req-b4744692-735a-43ba-93b3-2dc56e5369fa - - - - -] Unexpected error when processing next deploy step. InvalidState: Can not transition from state 'deploy failed' on event 'fail' (no defined transition): ironic.common.exception.InvalidState: Can not transition from state 'deploy failed' on event 'fail' (no defined transition) 2022-02-25 20:37:29.927 131376 INFO ironic.conductor.task_manager [req-8833ea46-9097-4791-b7f4-cf45c24b3ed6 35e56a31948c45c5be915992da7dab88 09533cc15c844b0eb01fa3d1b5d75181 - default default] Node e0544406-9659-4358-a019-2b7f8164cfc4 moved to provision state "deleting" from state "deploy failed"; target provision state is "available" ``` deploy images运行的jorunal日志中有如下报错: ```ini Feb 25 12:36:33 host-10-12-22-108 ironic-python-agent[2074]: 2022-02-25 12:36:33.416 2074 WARNING root [-] Path /dev/disk/by-path is inaccessible, /dev/disk/by-path/* version of block device name is unavailable Cause: [Errno 2] No such file or directory: '/dev/disk/by-path': FileNotFoundError: [Errno 2] No such file or directory: '/dev/disk/by-path' Feb 25 12:36:36 host-10-12-22-108 ironic-python-agent[2074]: 2022-02-25 12:36:36.437 2074 WARNING root [-] Path /dev/disk/by-path is inaccessible, /dev/disk/by-path/* version of block device name is unavailable Cause: [Errno 2] No such file or directory: '/dev/disk/by-path': FileNotFoundError: [Errno 2] No such file or directory: '/dev/disk/by-path' Feb 25 12:36:39 host-10-12-22-108 ironic-python-agent[2074]: 2022-02-25 12:36:39.458 2074 WARNING root [-] Path /dev/disk/by-path is inaccessible, /dev/disk/by-path/* version of block device name is unavailable Cause: [Errno 2] No such file or directory: '/dev/disk/by-path': FileNotFoundError: [Errno 2] No such file or directory: '/dev/disk/by-path' Feb 25 12:36:42 host-10-12-22-108 ironic-python-agent[2074]: 2022-02-25 12:36:42.480 2074 WARNING root [-] Path /dev/disk/by-path is inaccessible, /dev/disk/by-path/* version of block device name is unavailable Cause: [Errno 2] No such file or directory: '/dev/disk/by-path': FileNotFoundError: [Errno 2] No such file or directory: '/dev/disk/by-path' Feb 25 12:36:42 host-10-12-22-108 ironic-python-agent[2074]: 2022-02-25 12:36:42.489 2074 WARNING root [-] The root device was not detected in 27 seconds Feb 25 12:36:42 host-10-12-22-108 ironic-python-agent[2074]: 2022-02-25 12:36:42.490 2074 INFO root [-] Synchronous command get_deploy_steps completed: {'deploy_steps': {'GenericHardwareManager': [{'step': 'erase_devices_metadata', 'priority': 0, 'interface': 'deploy', 'reboot_requested': False}, {'step': 'apply_configuration', 'priority': 0, 'interface': 'raid', 'reboot_requested': False, 'argsinfo': {'raid_config': {'description': 'The RAID configuration to apply.', 'required': True}, 'delete_existing': {'description': "Setting this to 'True' indicates to delete existing RAID configuration prior to creating the new configuration. Default value is 'True'.", 'required': False}}}, {'step': 'write_image', 'priority': 0, 'interface': 'deploy', 'reboot_requested': False}]}, 'hardware_manager_version': {'generic_hardware_manager': '1.1'}} Feb 25 12:36:42 host-10-12-22-108 ironic-python-agent[2074]: 2022-02-25 12:36:42.491 2074 INFO eventlet.wsgi.server [-] ::ffff:10.12.22.12 "POST /v1/commands/?wait=true&agent_token=1iyvsgbRdRmDlKt6DXCs1DznbO0G1DRdqAawset7_M8 HTTP/1.1" status: 200 len: 4939 time: 27.2268629 Feb 25 12:36:42 host-10-12-22-108 ironic-python-agent[2074]: 2022-02-25 12:36:42.569 2074 INFO eventlet.wsgi.server [-] ::ffff:10.12.22.12 "GET /v1/commands/ HTTP/1.1" status: 200 len: 4955 time: 0.0003531 Feb 25 12:36:42 host-10-12-22-108 ironic-python-agent[2074]: 2022-02-25 12:36:42.820 2074 INFO root [-] Agent is requesting to perform an explicit node cache update. This is to pickup any chanages in the cache before deployment. Feb 25 12:36:42 host-10-12-22-108 ironic-python-agent[2074]: 2022-02-25 12:36:42.859 2074 WARNING root [-] Path /dev/disk/by-path is inaccessible, /dev/disk/by-path/* version of block device name is unavailable Cause: [Errno 2] No such file or directory: '/dev/disk/by-path': FileNotFoundError: [Errno 2] No such file or directory: '/dev/disk/by-path' Feb 25 12:36:42 host-10-12-22-108 ironic-python-agent[2074]: 2022-02-25 12:36:42.866 2074 ERROR root [-] Unexpected error dispatching get_os_install_device to manager <ironic_python_agent.hardware.GenericHardwareManager object at 0x7efbf57c5eb8>: Error finding the disk or partition device to deploy the image onto: No suitable device was found for deployment - root device hints were not provided and all found block devices are smaller than 4294967296B.: ironic_python_agent.errors.DeviceNotFound: Error finding the disk or partition device to deploy the image onto: No suitable device was found for deployment - root device hints were not provided and all found block devices are smaller than 4294967296B. Feb 25 12:36:42 host-10-12-22-108 ironic-python-agent[2074]: 2022-02-25 12:36:42.866 2074 ERROR root Traceback (most recent call last): Feb 25 12:36:42 host-10-12-22-108 ironic-python-agent[2074]: 2022-02-25 12:36:42.866 2074 ERROR root File "/opt/ironic-python-agent/lib64/python3.6/site-packages/ironic_python_agent/hardware.py", line 2309, in dispatch_to_managers Feb 25 12:36:42 host-10-12-22-108 ironic-python-agent[2074]: 2022-02-25 12:36:42.866 2074 ERROR root return getattr(manager, method)(*args, **kwargs) Feb 25 12:36:42 host-10-12-22-108 ironic-python-agent[2074]: 2022-02-25 12:36:42.866 2074 ERROR root File "/opt/ironic-python-agent/lib64/python3.6/site-packages/ironic_python_agent/hardware.py", line 1190, in get_os_install_device Feb 25 12:36:42 host-10-12-22-108 ironic-python-agent[2074]: 2022-02-25 12:36:42.866 2074 ERROR root dev_name = utils.guess_root_disk(block_devices).name Feb 25 12:36:42 host-10-12-22-108 ironic-python-agent[2074]: 2022-02-25 12:36:42.866 2074 ERROR root File "/opt/ironic-python-agent/lib64/python3.6/site-packages/ironic_python_agent/utils.py", line 312, in guess_root_disk Feb 25 12:36:42 host-10-12-22-108 ironic-python-agent[2074]: 2022-02-25 12:36:42.866 2074 ERROR root % min_size_required) ``` 并且此时,使用U盘启动盘,手动在目标机安装操作系统,安装程序中,同样显示,无法识别到硬盘。 不严谨的思考,是否与raid卡或者clean阶段deploy images做的一些操作有关。 【附件信息】 deploy images 日志 https://gitee.com/han-guangyu/openeuler21.03_openstack_victoria_deploy_images_log
【标题描述】baremetal node进入"deploying"阶段后,/var/log/ironic/ironic-conductor.log出现'No suitable device was found for deployment'报错 【环境信息】 硬件信息: 1) Ironic服务部署于清华同方超越E500-15170台式机,台式机为OpenStack ALL-in-one节点,用于测试Victoria Ironic。 (intel i7-10700 2.9GHz; 16G DDR4 2666) 2) 裸金属目标机为清华同方服务器 |BMC固件版本与编译时间| Agesa版本|MicroCode版本|主板CPLD版本|背板1CPLD版本| |--|--|--|--|--| |2.02.0 (Nov 13 2020 15:40:53 CST)|1.0.1.1|80901047|REV 1.02|REV 1.03| | 部件名称 | 型号 | 数量 | |---|---|---| | CPU | Hygon C86 5280 16-core 25GHz | 2块 | | 主板 | TONGFANG(制造商) THTF-T1DMHG-E2 | 1块 | | 内存 | SK Hynix RDIMM DDR4 32GB 2133MHz | 16条 | | RAID卡 | AVAGO MegaRAID SAS 9361-8i (259 ) | 1个 | | 硬盘 | HDD(2T) | 3块 | 软件信息(部署OpenStack服务物理机上的软件信息): 1) OS版本及分支: openEuler 21.03 2) 内核信息: 5.10.0-4.17.0.28.oe1.x86_64 3) 发现问题的组件版本信息: OpenStack Victoria 【问题复现步骤】 **具体操作步骤** 参照 https://docs.openeuler.org/zh/docs/21.03/docs/thirdparty_migration/OpenStack-victoria.html 及 https://docs.openeuler.org/zh/docs/21.09/docs/thirdparty_migration/OpenStack-wallaby.html,在OpenEuler 21.03上部署OpenStack All-in-one节点。(部署服务包括:Keystone、Glance、Placement、Nova、Neutron、Ironic) 因Ironic-inspector服务运行出现问题,希望首先走通流程,未纠结此。关闭inspector服务,回退相应配置。参照上述文档及OpenStack官方文档,手动设置硬件参数。裸金属服务只运行openstack-ironic-api.service和openstack-ironic-conductor.service。 设置硬件参数等配置操作如下 ```shell openstack baremetal node set $NODE_UUID \ --property cpus=$CPU_COUNT \ --property memory_mb=$RAM_MB \ --property local_gb=$DISK_GB openstack baremetal node set $NODE_UUID \ --property capabilities='boot_mode:bios' # 此处因为未配置swift等,在测试环境中,使用iscsi部署接口,配置文件已对应配置(按自己目前理解,当前报错的点,还未走到此环节,未涉及user images的传输,deploy images运行就已出现无法找到磁盘的报错;如理解有误,希望社区的同学见谅,指点) openstack baremetal --os-baremetal-api-version 1.31 node set $NODE_UUID \ --deploy-interface iscsi \ --raid-interface agent ``` 配置好baremetal节点信息后 ```shell # Making node available for deployment openstack baremetal --os-baremetal-api-version 1.11 node manage $NODE_UUID # provide命令会自动执行clean,clean执行状态为success openstack baremetal --os-baremetal-api-version 1.11 node provide $NODE_UUID # 创建用于 Bare Metal 服务的 Flavor openstack flavor create --ram $RAM_MB --vcpus $CPU_COUNT --disk $DISK_GB my-baremetal-flavor openstack flavor set --property resources:CUSTOM_$CLASS_NAME=1 my-baremetal-flavor openstack flavor set --property resources:VCPU=0 my-baremetal-flavor openstack flavor set --property resources:MEMORY_MB=0 my-baremetal-flavor openstack flavor set --property resources:DISK_GB=0 my-baremetal-flavor net_id=687e31ee-72b5-469c-bcd8-e3e3e19c26a7 # create server boot disk from this image image=004b2e75-4309-4ba0-8b40-c9624dd9c0e8 # 执行完下句后,进入deploying阶段,出现报错 openstack server create --flavor my-baremetal-flavor --nic net-id=$net_id --image $image testing ``` 出现概率: 必现 【预期结果】 能够正常识别硬盘,完成裸金属部署。 【实际结果】 openstack-ironic-conductor日志如下 ```ini 2022-02-25 20:06:59.670 131376 INFO ironic.conductor.task_manager [req-49073276-41ce-425f-9622-1494455966c4 2b4996b5ed5448b1a0ce53129f379bd6 5ddd2277e51a422d9a57598fd13bfb78 - default default] Node e0544406-9659-4358-a019-2b7f8164cfc4 moved to provision state "cleaning" from state "manageable"; target provision state is "available" 2022-02-25 20:07:00.807 131376 INFO ironic.common.neutron [req-49073276-41ce-425f-9622-1494455966c4 2b4996b5ed5448b1a0ce53129f379bd6 5ddd2277e51a422d9a57598fd13bfb78 - default default] Successfully removed node e0544406-9659-4358-a019-2b7f8164cfc4 neutron ports. 2022-02-25 20:07:00.808 131376 INFO ironic.drivers.modules.network.flat [req-49073276-41ce-425f-9622-1494455966c4 2b4996b5ed5448b1a0ce53129f379bd6 5ddd2277e51a422d9a57598fd13bfb78 - default default] Adding cleaning network to node e0544406-9659-4358-a019-2b7f8164cfc4 2022-02-25 20:07:03.334 131376 INFO ironic.common.neutron [req-49073276-41ce-425f-9622-1494455966c4 2b4996b5ed5448b1a0ce53129f379bd6 5ddd2277e51a422d9a57598fd13bfb78 - default default] For node e0544406-9659-4358-a019-2b7f8164cfc4 in network 687e31ee-72b5-469c-bcd8-e3e3e19c26a7, successfully created ports (ironic ID: neutron ID): {'bdb812a3-a1b4-48ed-88e0-53e1402478f3': 'e6b073f2-7baf-4def-97de-8d9c8ed7b57c'}. 2022-02-25 20:07:25.880 131376 INFO ironic.conductor.utils [req-49073276-41ce-425f-9622-1494455966c4 2b4996b5ed5448b1a0ce53129f379bd6 5ddd2277e51a422d9a57598fd13bfb78 - default default] Successfully set node e0544406-9659-4358-a019-2b7f8164cfc4 power state to power on by rebooting. 2022-02-25 20:07:26.023 131376 INFO ironic.conductor.task_manager [req-49073276-41ce-425f-9622-1494455966c4 2b4996b5ed5448b1a0ce53129f379bd6 5ddd2277e51a422d9a57598fd13bfb78 - default default] Node e0544406-9659-4358-a019-2b7f8164cfc4 moved to provision state "clean wait" from state "cleaning"; target provision state is "available" 2022-02-25 20:16:18.278 131376 INFO ironic.conductor.task_manager [req-db46e526-83a8-49a5-b65f-74ab4197b97e - - - - -] Node e0544406-9659-4358-a019-2b7f8164cfc4 moved to provision state "cleaning" from state "clean wait"; target provision state is "available" 2022-02-25 20:16:18.279 131376 INFO ironic.conductor.cleaning [req-db46e526-83a8-49a5-b65f-74ab4197b97e - - - - -] Executing cleaning on node e0544406-9659-4358-a019-2b7f8164cfc4, remaining steps: [{'step': 'erase_devices_metadata', 'priority': 99, 'interface': 'deploy', 'reboot_requested': False, 'abortable': True}, {'step': 'erase_devices', 'priority': 10, 'interface': 'deploy', 'reboot_requested': False, 'abortable': True}] 2022-02-25 20:16:18.319 131376 INFO ironic.conductor.cleaning [req-db46e526-83a8-49a5-b65f-74ab4197b97e - - - - -] Executing {'step': 'erase_devices_metadata', 'priority': 99, 'interface': 'deploy', 'reboot_requested': False, 'abortable': True} on node e0544406-9659-4358-a019-2b7f8164cfc4 2022-02-25 20:16:18.329 131376 INFO ironic.conductor.cleaning [req-db46e526-83a8-49a5-b65f-74ab4197b97e - - - - -] Clean step {'step': 'erase_devices_metadata', 'priority': 99, 'interface': 'deploy', 'reboot_requested': False, 'abortable': True} on node e0544406-9659-4358-a019-2b7f8164cfc4 being executed asynchronously, waiting for driver. 2022-02-25 20:16:18.369 131376 INFO ironic.conductor.task_manager [req-db46e526-83a8-49a5-b65f-74ab4197b97e - - - - -] Node e0544406-9659-4358-a019-2b7f8164cfc4 moved to provision state "clean wait" from state "cleaning"; target provision state is "available" 2022-02-25 20:16:18.524 131376 INFO ironic.drivers.modules.agent_base [-] Agent on node e0544406-9659-4358-a019-2b7f8164cfc4 returned clean command success, moving to next step 2022-02-25 20:16:18.720 131376 INFO ironic.conductor.task_manager [req-5252d5ac-8753-4f1c-8ccc-c163daecfdc3 - - - - -] Node e0544406-9659-4358-a019-2b7f8164cfc4 moved to provision state "cleaning" from state "clean wait"; target provision state is "available" 2022-02-25 20:16:18.721 131376 INFO ironic.conductor.cleaning [req-5252d5ac-8753-4f1c-8ccc-c163daecfdc3 - - - - -] Executing cleaning on node e0544406-9659-4358-a019-2b7f8164cfc4, remaining steps: [{'step': 'erase_devices', 'priority': 10, 'interface': 'deploy', 'reboot_requested': False, 'abortable': True}] 2022-02-25 20:16:18.812 131376 INFO ironic.conductor.cleaning [req-5252d5ac-8753-4f1c-8ccc-c163daecfdc3 - - - - -] Executing {'step': 'erase_devices', 'priority': 10, 'interface': 'deploy', 'reboot_requested': False, 'abortable': True} on node e0544406-9659-4358-a019-2b7f8164cfc4 2022-02-25 20:16:18.822 131376 INFO ironic.conductor.cleaning [req-5252d5ac-8753-4f1c-8ccc-c163daecfdc3 - - - - -] Clean step {'step': 'erase_devices', 'priority': 10, 'interface': 'deploy', 'reboot_requested': False, 'abortable': True} on node e0544406-9659-4358-a019-2b7f8164cfc4 being executed asynchronously, waiting for driver. 2022-02-25 20:16:18.872 131376 WARNING ironic.drivers.modules.agent_base [-] Node e0544406-9659-4358-a019-2b7f8164cfc4 is currently locked, skipping heartbeat processing (will retry on the next heartbeat): ironic.common.exception.NodeLocked: Node e0544406-9659-4358-a019-2b7f8164cfc4 is locked by host controller, please retry after the current operation is completed. 2022-02-25 20:16:18.878 131376 INFO ironic.conductor.task_manager [req-5252d5ac-8753-4f1c-8ccc-c163daecfdc3 - - - - -] Node e0544406-9659-4358-a019-2b7f8164cfc4 moved to provision state "clean wait" from state "cleaning"; target provision state is "available" 2022-02-25 20:18:33.102 131376 INFO ironic.drivers.modules.agent_base [-] Agent on node e0544406-9659-4358-a019-2b7f8164cfc4 returned clean command success, moving to next step 2022-02-25 20:18:33.242 131376 INFO ironic.conductor.task_manager [req-b8e0052a-876b-4777-b3b4-3da5d84ee14b - - - - -] Node e0544406-9659-4358-a019-2b7f8164cfc4 moved to provision state "cleaning" from state "clean wait"; target provision state is "available" 2022-02-25 20:18:33.242 131376 INFO ironic.conductor.cleaning [req-b8e0052a-876b-4777-b3b4-3da5d84ee14b - - - - -] Executing cleaning on node e0544406-9659-4358-a019-2b7f8164cfc4, remaining steps: [] 2022-02-25 20:18:50.853 131376 INFO ironic.conductor.utils [req-b8e0052a-876b-4777-b3b4-3da5d84ee14b - - - - -] Successfully set node e0544406-9659-4358-a019-2b7f8164cfc4 power state to power off by power off. 2022-02-25 20:18:51.223 131376 INFO ironic.drivers.modules.network.flat [req-b8e0052a-876b-4777-b3b4-3da5d84ee14b - - - - -] Removing ports from cleaning network for node e0544406-9659-4358-a019-2b7f8164cfc4 2022-02-25 20:18:52.122 131376 INFO ironic.common.neutron [req-b8e0052a-876b-4777-b3b4-3da5d84ee14b - - - - -] Successfully removed node e0544406-9659-4358-a019-2b7f8164cfc4 neutron ports. 2022-02-25 20:18:52.231 131376 INFO ironic.conductor.cleaning [req-b8e0052a-876b-4777-b3b4-3da5d84ee14b - - - - -] Node e0544406-9659-4358-a019-2b7f8164cfc4 cleaning complete 2022-02-25 20:18:52.502 131376 INFO ironic.conductor.task_manager [req-b8e0052a-876b-4777-b3b4-3da5d84ee14b - - - - -] Node e0544406-9659-4358-a019-2b7f8164cfc4 moved to provision state "available" from state "cleaning"; target provision state is "None" 2022-02-25 20:24:36.784 131376 INFO ironic.conductor.manager [req-223825e4-ac17-475d-a95c-25821fb7498e 35e56a31948c45c5be915992da7dab88 09533cc15c844b0eb01fa3d1b5d75181 - default default] VIF a8529dac-7044-4bdb-8a0a-744cf037ef2f successfully attached to node e0544406-9659-4358-a019-2b7f8164cfc4 2022-02-25 20:24:41.114 131376 INFO ironic.conductor.task_manager [req-8ea8bfa5-f185-4b3f-aeca-0821b44c0609 35e56a31948c45c5be915992da7dab88 09533cc15c844b0eb01fa3d1b5d75181 - default default] Node e0544406-9659-4358-a019-2b7f8164cfc4 moved to provision state "deploying" from state "available"; target provision state is "active" 2022-02-25 20:24:41.214 131376 WARNING ironic.conductor.utils [req-8ea8bfa5-f185-4b3f-aeca-0821b44c0609 35e56a31948c45c5be915992da7dab88 09533cc15c844b0eb01fa3d1b5d75181 - default default] Not going to change node e0544406-9659-4358-a019-2b7f8164cfc4 power state because current state = requested state = 'power off'. 2022-02-25 20:24:41.215 131376 INFO ironic.drivers.modules.network.flat [req-8ea8bfa5-f185-4b3f-aeca-0821b44c0609 35e56a31948c45c5be915992da7dab88 09533cc15c844b0eb01fa3d1b5d75181 - default default] Unbinding instance ports from node e0544406-9659-4358-a019-2b7f8164cfc4 2022-02-25 20:24:52.644 131376 INFO ironic.conductor.deployments [req-8ea8bfa5-f185-4b3f-aeca-0821b44c0609 35e56a31948c45c5be915992da7dab88 09533cc15c844b0eb01fa3d1b5d75181 - default default] Executing deploying on node e0544406-9659-4358-a019-2b7f8164cfc4, remaining steps: [{'step': 'deploy', 'priority': 100, 'argsinfo': None, 'interface': 'deploy'}, {'step': 'write_image', 'priority': 80, 'argsinfo': None, 'interface': 'deploy'}, {'step': 'prepare_instance_boot', 'priority': 60, 'argsinfo': None, 'interface': 'deploy'}, {'step': 'tear_down_agent', 'priority': 40, 'argsinfo': None, 'interface': 'deploy'}, {'step': 'switch_to_tenant_network', 'priority': 30, 'argsinfo': None, 'interface': 'deploy'}, {'step': 'boot_instance', 'priority': 20, 'argsinfo': None, 'interface': 'deploy'}] 2022-02-25 20:24:52.753 131376 INFO ironic.conductor.deployments [req-8ea8bfa5-f185-4b3f-aeca-0821b44c0609 35e56a31948c45c5be915992da7dab88 09533cc15c844b0eb01fa3d1b5d75181 - default default] Executing {'step': 'deploy', 'priority': 100, 'argsinfo': None, 'interface': 'deploy'} on node e0544406-9659-4358-a019-2b7f8164cfc4 2022-02-25 20:24:53.058 131376 INFO ironic.drivers.modules.image_cache [req-8ea8bfa5-f185-4b3f-aeca-0821b44c0609 35e56a31948c45c5be915992da7dab88 09533cc15c844b0eb01fa3d1b5d75181 - default default] Master cache miss for image 004b2e75-4309-4ba0-8b40-c9624dd9c0e8, starting download 2022-02-25 20:28:53.010 131376 WARNING ironic.common.nova [req-8ea8bfa5-f185-4b3f-aeca-0821b44c0609 35e56a31948c45c5be915992da7dab88 09533cc15c844b0eb01fa3d1b5d75181 - default default] Could not connect to Nova to send a power notification, please check configuration. An auth plugin is required to determine endpoint URL: keystoneauth1.exceptions.auth_plugins.MissingAuthPlugin: An auth plugin is required to determine endpoint URL 2022-02-25 20:28:53.011 131376 INFO ironic.conductor.utils [req-8ea8bfa5-f185-4b3f-aeca-0821b44c0609 35e56a31948c45c5be915992da7dab88 09533cc15c844b0eb01fa3d1b5d75181 - default default] Successfully set node e0544406-9659-4358-a019-2b7f8164cfc4 power state to power on by rebooting. 2022-02-25 20:28:53.017 131376 INFO ironic.conductor.deployments [req-8ea8bfa5-f185-4b3f-aeca-0821b44c0609 35e56a31948c45c5be915992da7dab88 09533cc15c844b0eb01fa3d1b5d75181 - default default] Deploy step {'step': 'deploy', 'priority': 100, 'argsinfo': None, 'interface': 'deploy'} on node e0544406-9659-4358-a019-2b7f8164cfc4 being executed asynchronously, waiting for driver. 2022-02-25 20:28:53.118 131376 INFO ironic.conductor.task_manager [req-8ea8bfa5-f185-4b3f-aeca-0821b44c0609 35e56a31948c45c5be915992da7dab88 09533cc15c844b0eb01fa3d1b5d75181 - default default] Node e0544406-9659-4358-a019-2b7f8164cfc4 moved to provision state "wait call-back" from state "deploying"; target provision state is "active" 2022-02-25 20:37:11.364 131376 INFO ironic.conductor.task_manager [req-b4744692-735a-43ba-93b3-2dc56e5369fa - - - - -] Node e0544406-9659-4358-a019-2b7f8164cfc4 moved to provision state "deploying" from state "wait call-back"; target provision state is "active" 2022-02-25 20:37:11.365 131376 INFO ironic.conductor.deployments [req-b4744692-735a-43ba-93b3-2dc56e5369fa - - - - -] Executing deploying on node e0544406-9659-4358-a019-2b7f8164cfc4, remaining steps: [{'step': 'write_image', 'priority': 80, 'argsinfo': None, 'interface': 'deploy'}, {'step': 'prepare_instance_boot', 'priority': 60, 'argsinfo': None, 'interface': 'deploy'}, {'step': 'tear_down_agent', 'priority': 40, 'argsinfo': None, 'interface': 'deploy'}, {'step': 'switch_to_tenant_network', 'priority': 30, 'argsinfo': None, 'interface': 'deploy'}, {'step': 'boot_instance', 'priority': 20, 'argsinfo': None, 'interface': 'deploy'}] 2022-02-25 20:37:11.415 131376 INFO ironic.conductor.deployments [req-b4744692-735a-43ba-93b3-2dc56e5369fa - - - - -] Executing {'step': 'write_image', 'priority': 80, 'argsinfo': None, 'interface': 'deploy'} on node e0544406-9659-4358-a019-2b7f8164cfc4 2022-02-25 20:37:11.440 131376 WARNING ironic.conductor.manager [req-ab8df130-6fd9-49d5-803d-6642fb67c77d - - - - -] An agent token generation request is being refused as one is already present for node e0544406-9659-4358-a019-2b7f8164cfc4 2022-02-25 20:37:13.081 131376 ERROR ironic.conductor.utils [req-b4744692-735a-43ba-93b3-2dc56e5369fa - - - - -] Failed to start the iSCSI target to deploy the node e0544406-9659-4358-a019-2b7f8164cfc4. Error: {'type': 'DeviceNotFound', 'code': 404, 'message': 'Error finding the disk or partition device to deploy the image onto', 'details': 'No suitable device was found for deployment - root device hints were not provided and all found block devices are smaller than 4294967296B.'} 2022-02-25 20:37:13.241 131376 ERROR ironic.conductor.task_manager [req-b4744692-735a-43ba-93b3-2dc56e5369fa - - - - -] Node e0544406-9659-4358-a019-2b7f8164cfc4 moved to provision state "deploy failed" from state "deploying"; target provision state is "active" 2022-02-25 20:37:28.860 131376 WARNING ironic.common.nova [req-b4744692-735a-43ba-93b3-2dc56e5369fa - - - - -] Could not connect to Nova to send a power notification, please check configuration. An auth plugin is required to determine endpoint URL: keystoneauth1.exceptions.auth_plugins.MissingAuthPlugin: An auth plugin is required to determine endpoint URL 2022-02-25 20:37:28.861 131376 INFO ironic.conductor.utils [req-b4744692-735a-43ba-93b3-2dc56e5369fa - - - - -] Successfully set node e0544406-9659-4358-a019-2b7f8164cfc4 power state to power off by power off. 2022-02-25 20:37:28.900 131376 ERROR ironic.conductor.utils [req-b4744692-735a-43ba-93b3-2dc56e5369fa - - - - -] Node e0544406-9659-4358-a019-2b7f8164cfc4 failed deploy step {}. Error: Failed to deploy instance: Failed to start the iSCSI target to deploy the node e0544406-9659-4358-a019-2b7f8164cfc4. Error: {'type': 'DeviceNotFound', 'code': 404, 'message': 'Error finding the disk or partition device to deploy the image onto', 'details': 'No suitable device was found for deployment - root device hints were not provided and all found block devices are smaller than 4294967296B.'}: ironic.common.exception.InstanceDeployFailure: Failed to deploy instance: Failed to start the iSCSI target to deploy the node e0544406-9659-4358-a019-2b7f8164cfc4. Error: {'type': 'DeviceNotFound', 'code': 404, 'message': 'Error finding the disk or partition device to deploy the image onto', 'details': 'No suitable device was found for deployment - root device hints were not provided and all found block devices are smaller than 4294967296B.'} 2022-02-25 20:37:29.035 131376 ERROR ironic.conductor.utils [req-b4744692-735a-43ba-93b3-2dc56e5369fa - - - - -] Unexpected error when processing next deploy step. InvalidState: Can not transition from state 'deploy failed' on event 'fail' (no defined transition): ironic.common.exception.InvalidState: Can not transition from state 'deploy failed' on event 'fail' (no defined transition) 2022-02-25 20:37:29.927 131376 INFO ironic.conductor.task_manager [req-8833ea46-9097-4791-b7f4-cf45c24b3ed6 35e56a31948c45c5be915992da7dab88 09533cc15c844b0eb01fa3d1b5d75181 - default default] Node e0544406-9659-4358-a019-2b7f8164cfc4 moved to provision state "deleting" from state "deploy failed"; target provision state is "available" ``` deploy images运行的jorunal日志中有如下报错: ```ini Feb 25 12:36:33 host-10-12-22-108 ironic-python-agent[2074]: 2022-02-25 12:36:33.416 2074 WARNING root [-] Path /dev/disk/by-path is inaccessible, /dev/disk/by-path/* version of block device name is unavailable Cause: [Errno 2] No such file or directory: '/dev/disk/by-path': FileNotFoundError: [Errno 2] No such file or directory: '/dev/disk/by-path' Feb 25 12:36:36 host-10-12-22-108 ironic-python-agent[2074]: 2022-02-25 12:36:36.437 2074 WARNING root [-] Path /dev/disk/by-path is inaccessible, /dev/disk/by-path/* version of block device name is unavailable Cause: [Errno 2] No such file or directory: '/dev/disk/by-path': FileNotFoundError: [Errno 2] No such file or directory: '/dev/disk/by-path' Feb 25 12:36:39 host-10-12-22-108 ironic-python-agent[2074]: 2022-02-25 12:36:39.458 2074 WARNING root [-] Path /dev/disk/by-path is inaccessible, /dev/disk/by-path/* version of block device name is unavailable Cause: [Errno 2] No such file or directory: '/dev/disk/by-path': FileNotFoundError: [Errno 2] No such file or directory: '/dev/disk/by-path' Feb 25 12:36:42 host-10-12-22-108 ironic-python-agent[2074]: 2022-02-25 12:36:42.480 2074 WARNING root [-] Path /dev/disk/by-path is inaccessible, /dev/disk/by-path/* version of block device name is unavailable Cause: [Errno 2] No such file or directory: '/dev/disk/by-path': FileNotFoundError: [Errno 2] No such file or directory: '/dev/disk/by-path' Feb 25 12:36:42 host-10-12-22-108 ironic-python-agent[2074]: 2022-02-25 12:36:42.489 2074 WARNING root [-] The root device was not detected in 27 seconds Feb 25 12:36:42 host-10-12-22-108 ironic-python-agent[2074]: 2022-02-25 12:36:42.490 2074 INFO root [-] Synchronous command get_deploy_steps completed: {'deploy_steps': {'GenericHardwareManager': [{'step': 'erase_devices_metadata', 'priority': 0, 'interface': 'deploy', 'reboot_requested': False}, {'step': 'apply_configuration', 'priority': 0, 'interface': 'raid', 'reboot_requested': False, 'argsinfo': {'raid_config': {'description': 'The RAID configuration to apply.', 'required': True}, 'delete_existing': {'description': "Setting this to 'True' indicates to delete existing RAID configuration prior to creating the new configuration. Default value is 'True'.", 'required': False}}}, {'step': 'write_image', 'priority': 0, 'interface': 'deploy', 'reboot_requested': False}]}, 'hardware_manager_version': {'generic_hardware_manager': '1.1'}} Feb 25 12:36:42 host-10-12-22-108 ironic-python-agent[2074]: 2022-02-25 12:36:42.491 2074 INFO eventlet.wsgi.server [-] ::ffff:10.12.22.12 "POST /v1/commands/?wait=true&agent_token=1iyvsgbRdRmDlKt6DXCs1DznbO0G1DRdqAawset7_M8 HTTP/1.1" status: 200 len: 4939 time: 27.2268629 Feb 25 12:36:42 host-10-12-22-108 ironic-python-agent[2074]: 2022-02-25 12:36:42.569 2074 INFO eventlet.wsgi.server [-] ::ffff:10.12.22.12 "GET /v1/commands/ HTTP/1.1" status: 200 len: 4955 time: 0.0003531 Feb 25 12:36:42 host-10-12-22-108 ironic-python-agent[2074]: 2022-02-25 12:36:42.820 2074 INFO root [-] Agent is requesting to perform an explicit node cache update. This is to pickup any chanages in the cache before deployment. Feb 25 12:36:42 host-10-12-22-108 ironic-python-agent[2074]: 2022-02-25 12:36:42.859 2074 WARNING root [-] Path /dev/disk/by-path is inaccessible, /dev/disk/by-path/* version of block device name is unavailable Cause: [Errno 2] No such file or directory: '/dev/disk/by-path': FileNotFoundError: [Errno 2] No such file or directory: '/dev/disk/by-path' Feb 25 12:36:42 host-10-12-22-108 ironic-python-agent[2074]: 2022-02-25 12:36:42.866 2074 ERROR root [-] Unexpected error dispatching get_os_install_device to manager <ironic_python_agent.hardware.GenericHardwareManager object at 0x7efbf57c5eb8>: Error finding the disk or partition device to deploy the image onto: No suitable device was found for deployment - root device hints were not provided and all found block devices are smaller than 4294967296B.: ironic_python_agent.errors.DeviceNotFound: Error finding the disk or partition device to deploy the image onto: No suitable device was found for deployment - root device hints were not provided and all found block devices are smaller than 4294967296B. Feb 25 12:36:42 host-10-12-22-108 ironic-python-agent[2074]: 2022-02-25 12:36:42.866 2074 ERROR root Traceback (most recent call last): Feb 25 12:36:42 host-10-12-22-108 ironic-python-agent[2074]: 2022-02-25 12:36:42.866 2074 ERROR root File "/opt/ironic-python-agent/lib64/python3.6/site-packages/ironic_python_agent/hardware.py", line 2309, in dispatch_to_managers Feb 25 12:36:42 host-10-12-22-108 ironic-python-agent[2074]: 2022-02-25 12:36:42.866 2074 ERROR root return getattr(manager, method)(*args, **kwargs) Feb 25 12:36:42 host-10-12-22-108 ironic-python-agent[2074]: 2022-02-25 12:36:42.866 2074 ERROR root File "/opt/ironic-python-agent/lib64/python3.6/site-packages/ironic_python_agent/hardware.py", line 1190, in get_os_install_device Feb 25 12:36:42 host-10-12-22-108 ironic-python-agent[2074]: 2022-02-25 12:36:42.866 2074 ERROR root dev_name = utils.guess_root_disk(block_devices).name Feb 25 12:36:42 host-10-12-22-108 ironic-python-agent[2074]: 2022-02-25 12:36:42.866 2074 ERROR root File "/opt/ironic-python-agent/lib64/python3.6/site-packages/ironic_python_agent/utils.py", line 312, in guess_root_disk Feb 25 12:36:42 host-10-12-22-108 ironic-python-agent[2074]: 2022-02-25 12:36:42.866 2074 ERROR root % min_size_required) ``` 并且此时,使用U盘启动盘,手动在目标机安装操作系统,安装程序中,同样显示,无法识别到硬盘。 不严谨的思考,是否与raid卡或者clean阶段deploy images做的一些操作有关。 【附件信息】 deploy images 日志 https://gitee.com/han-guangyu/openeuler21.03_openstack_victoria_deploy_images_log
评论 (
7
)
登录
后才可以发表评论
状态
已取消
待办的
已挂起
修复中
已确认
已完成
已验收
已取消
负责人
未设置
标签
sig/sig-openstack
未设置
项目
未立项任务
未立项任务
里程碑
未关联里程碑
未关联里程碑
Pull Requests
未关联
未关联
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
未关联
分支 (
-
)
标签 (
-
)
开始日期   -   截止日期
-
置顶选项
不置顶
置顶等级:高
置顶等级:中
置顶等级:低
优先级
不指定
严重
主要
次要
不重要
预计工期
(小时)
参与者(4)
1
https://gitee.com/openeuler/openstack.git
git@gitee.com:openeuler/openstack.git
openeuler
openstack
openstack
点此查找更多帮助
搜索帮助
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
评论
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册