我正在尝试使用 Autopilot 测试版启动 OpenStack。我使用的是所有硬件(物理服务器)。具体来说,我使用的是所有 Dell PowerEdge 服务器:
- 2 台 r310 服务器
- 3 台 r415 服务器
- 2 台 r610 服务器
- 1 台 r815 服务器
我开始在其中一台 r310 服务器上运行 Ubuntu 14.04.2 作为我的 MAAS。
我遇到的问题是戴尔向“lshw”命令报告磁盘的方式。例如,其中一台 r415 服务器有 4 个物理驱动器连接到“SAS1068E”控制器。它们在控制器中被定义为两个 RAID0 阵列(每个总计 4 TB 和 1.2 TB)。但“发现的详细信息”在“lshw”的详细结果中报告了以下内容:
- /dev/sdc-大小 3999688294400
- /dev/sdd-大小1199101181952
- /dev/sda – 未列出大小
- /dev/sdb – 未列出大小
- /dev/sde-大小 1476395008
并且 CEPH 部署在此节点上失败,并显示“hook failed: "mon-relation-changed"”消息。
unit-cep-0.log 的详细信息如下:
2015-04-21 19:21:24 INFO unit.ceph/0.mon-relation-changed logger.go:40 ceph-mon-all start/running
2015-04-21 19:21:42 INFO unit.ceph/0.mon-relation-changed logger.go:40 Problem opening /dev/sda for reading! Error is 123.
Reading package lists... 87%t.ceph/0.mon-relation-changed logger.go:40
Reading package lists... 98%
Reading package lists... Done
Building dependency tree eph/0.mon-relation-changed logger.go:40
Reading state information... Doneh/0.mon-relation-changed logger.go:40
2015-04-21 19:21:45 INFO unit.ceph/0.mon-relation-changed logger.go:40 Traceback (most recent call last):
2015-04-21 19:21:45 INFO unit.ceph/0.mon-relation-changed logger.go:40 File "/usr/sbin/ceph-disk", line 2768, in <module>
2015-04-21 19:21:45 INFO unit.ceph/0.mon-relation-changed logger.go:40 main()
2015-04-21 19:21:45 INFO unit.ceph/0.mon-relation-changed logger.go:40 File "/usr/sbin/ceph-disk", line 2746, in main
2015-04-21 19:21:45 INFO unit.ceph/0.mon-relation-changed logger.go:40 args.func(args)
2015-04-21 19:21:45 INFO unit.ceph/0.mon-relation-changed logger.go:40 File "/usr/sbin/ceph-disk", line 1390, in main_prepare
2015-04-21 19:21:45 INFO unit.ceph/0.mon-relation-changed logger.go:40 zap(args.data)
2015-04-21 19:21:45 INFO unit.ceph/0.mon-relation-changed logger.go:40 File "/usr/sbin/ceph-disk", line 1013, in zap
2015-04-21 19:21:45 INFO unit.ceph/0.mon-relation-changed logger.go:40 with file(dev, 'wb') as dev_file:
2015-04-21 19:21:45 INFO unit.ceph/0.mon-relation-changed logger.go:40 IOError: [Errno 123] No medium found: '/dev/sda'
2015-04-21 19:21:45 ERROR unit.ceph/0.juju-log cmd.go:247 mon:9: Unable to initialize device: /dev/sda
2015-04-21 19:21:45 INFO unit.ceph/0.mon-relation-changed logger.go:40 Traceback (most recent call last):
2015-04-21 19:21:45 INFO unit.ceph/0.mon-relation-changed logger.go:40 File "/var/lib/juju/agents/unit-ceph-0/charm/hooks/mon-relation-changed", line 312, in <module>
2015-04-21 19:21:45 INFO unit.ceph/0.mon-relation-changed logger.go:40 hooks.execute(sys.argv)
2015-04-21 19:21:45 INFO unit.ceph/0.mon-relation-changed logger.go:40 File "/var/lib/juju/agents/unit-ceph-0/charm/hooks/charmhelpers/core/hookenv.py", line 508, in execute
2015-04-21 19:21:45 INFO unit.ceph/0.mon-relation-changed logger.go:40 self._hooks[hook_name]()
2015-04-21 19:21:45 INFO unit.ceph/0.mon-relation-changed logger.go:40 File "/var/lib/juju/agents/unit-ceph-0/charm/hooks/mon-relation-changed", line 196, in mon_relation
2015-04-21 19:21:45 INFO unit.ceph/0.mon-relation-changed logger.go:40 reformat_osd(), config('ignore-device-errors'))
2015-04-21 19:21:45 INFO unit.ceph/0.mon-relation-changed logger.go:40 File "/var/lib/juju/agents/unit-ceph-0/charm/hooks/ceph.py", line 327, in osdize
2015-04-21 19:21:45 INFO unit.ceph/0.mon-relation-changed logger.go:40 osdize_dev(dev, osd_format, osd_journal, reformat_osd, ignore_errors)
2015-04-21 19:21:45 INFO unit.ceph/0.mon-relation-changed logger.go:40 File "/var/lib/juju/agents/unit-ceph-0/charm/hooks/ceph.py", line 375, in osdize_dev
2015-04-21 19:21:45 INFO unit.ceph/0.mon-relation-changed logger.go:40 raise e
2015-04-21 19:21:45 INFO unit.ceph/0.mon-relation-changed logger.go:40 subprocess.CalledProcessError: Command '['ceph-disk-prepare', '--fs-type', u'xfs', '--zap-disk', u'/dev/sda']'
returned non-zero exit status 1
2015-04-21 19:21:45 ERROR juju.worker.uniter.operation runhook.go:86 hook "mon-relation-changed" failed: exit status 1
看来我能够部署除 Ceph 之外的所有设备,没有任何问题。我是不是漏掉了什么?有没有办法告诉 juju 忽略或不使用 /dev/sda、/dev/sdb 和 /dev/sde?
答案1
这听起来像是一个错误。(更新:已由提交者确认)。