互联网服务OpenStackironicmitaka

ironic在虚拟机实验成功,在服务器实验失败?

我使用的deploy镜像是tinyipa-sta-mitaka.initrd,tinyipa-sta-mitaka.kernel。在虚拟机模拟中可以部署成功,在服务器中,两个部署镜像下载执行成功,lookup与心跳包均已完成,在下载用户镜像的时候失败,具体错误:
Agent lookup using data {u'version': u'2', 'http_method': u'POST', u'inventory': {u'bmc_address': u'', u'interfaces': [{u'name': u'eth5', u'has_carrier': False, u'switch_port_descr': None, u'switch_chassis_descr': None, u'ipv4_address': None, u'mac_address': u'00:1b:21:90:ce:41'}, {u'name': u'eth1', u'has_carrier': False, u'switch_port_descr': None, u'switch_chassis_descr': None, u'ipv4_address': None, u'mac_address': u'44:a8:42:0c:2c:00'}, {u'name': u'eth0', u'has_carrier': True, u'switch_port_descr': None, u'switch_chassis_descr': None, u'ipv4_address': u'172.16.19.193', u'mac_address': u'44:a8:42:0c:2b:ff'}, {u'name': u'eth2', u'has_carrier': False, u'switch_port_descr': None, u'switch_chassis_descr': None, u'ipv4_address': None, u'mac_address': u'44:a8:42:0c:2c:01'}, {u'name': u'eth4', u'has_carrier': False, u'switch_port_descr': None, u'switch_chassis_descr': None, u'ipv4_address': None, u'mac_address': u'00:1b:21:90:ce:40'}, {u'name': u'eth3', u'has_carrier': False, u'switch_port_descr': None, u'switch_chassis_descr': None, u'ipv4_address': None, u'mac_address': u'44:a8:42:0c:2c:02'}], u'disks': [], u'system_vendor': {u'serial_number': u'1LQLF52', u'product_name': u'PowerEdge R730', u'manufacturer': u'Dell Inc.'}, u'memory': {u'physical_mb': 65536, u'total': 67560456192}, u'cpu': {u'count': 32, u'frequency': u'3200.0000', u'model_name': u'Intel(R) Xeon(R) CPU E5-2630 v3 @ 2.40GHz', u'architecture': u'x86_64'}}}

Error: {u'message': u'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.', u'code': 404, u'type': u'DeviceNotFound', u'details': u'No suitable device was found for deployment - root device hints were not provided and all found block devices are smaller than 4294967296B.'}

参与30

3同行回答

798683133yj798683133yj系统架构师政务云某公司
怎么看到空间小的问题,没有合适设备部署。查下存储空间?显示全部

怎么看到空间小的问题,没有合适设备部署。查下存储空间?

收起
金融其它 · 2017-09-11
浏览2742
Mastar 邀答
luoshixinluoshixin项目经理小公司
可以先通过远程挂载ios安装普通的centos min的镜像,在磁盘分区的时候是否可以找到两块盘检查在Raid配置里确认把系统盘raid设置为启动盘ironic是基于hint选择系统盘的,如果没有指定hint,则使用第一块满足条件的盘(大于等于镜像大小min_size)作为系统盘。因为裸机有两个逻辑盘...显示全部
  1. 可以先通过远程挂载ios安装普通的centos min的镜像,在磁盘分区的时候是否可以找到两块盘
  2. 检查在Raid配置里确认把系统盘raid设置为启动盘
  3. ironic是基于hint选择系统盘的,如果没有指定hint,则使用第一块满足条件的盘(大于等于镜像大小min_size)作为系统盘。因为裸机有两个逻辑盘,建议在定义节点的时候定义 Root Disk。 eg: ironic node-update <node-uuid> add properties/root_device='{"size": ">= 60", "rotational": false}’
收起
互联网服务 · 2017-09-12
浏览2761
haichuan0227haichuan0227项目经理新浪云计算
IPA定位OS install device时,会先lsblk看看当前检测到了哪些device,然后按size排序,取出第一个大于4G的device作为root device。333.jpeg因此,你的问题应该是如下两个原因之一:1)lsblk没有发现任何device,需要debug,check没发现device的具体原因(如device是非直连盘,硬盘设备故障等...显示全部

IPA定位OS install device时,会先lsblk看看当前检测到了哪些device,然后按size排序,取出第一个大于4G的device作为root device。
333.jpeg

333.jpeg

因此,你的问题应该是如下两个原因之一:
1)lsblk没有发现任何device,需要debug,check没发现device的具体原因(如device是非直连盘,硬盘设备故障等)。
2)lsblk发现的device都<4G,这个可能性不大,很容易check排查出来。

收起
互联网服务 · 2017-09-11
浏览3093
Mastar 邀答
  • 服务器上有6块硬盘(均是600G),做了raid1和raid5,我用u盘给服务器成功装过一次系统,应该不是硬盘故障吧,
    2017-09-12
  • 我对非直连盘的理解是,硬盘通过raid卡与服务器总线相连(如果理解不对请指正)。如果是非直连盘的原因的话,那岂不是,要拆掉raid卡?
    2017-09-12
  • 不要猜测,直接debug定位问题。 1)先开IPA debug,复现问题,抓取出更多log,贴出来便于定位问题; 2)如果上步不能帮助直接定位出问题,则需要进入deploy image去debug;
    2017-09-18

相关问题

相关资料

相关文章

问题状态

  • 发布时间:2017-09-11
  • 关注会员:4 人
  • 问题浏览:4099
  • 最近回答:2017-09-12
  • X社区推广