[library] ceph-deploy osd prepare node-5:/dev/vdb2 returned 1 instead of one of [0]
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Fix Released
|
High
|
Ryan Moe | ||
5.0.x |
Fix Committed
|
High
|
Ryan Moe |
Bug Description
{"build_id": "2014-05-
Deployment finished with errors in log:
http://
Steps to reproduce:
1) Create env:
Ubuntu HA Neutron-GRE
Ceph for both CInder and Glance
2 x Controller + Ceph OSD
1 x Compute
Expected result:
Deployed cluster
Actual result:
Deployed with errors
no longer affects: | fuel/5.1.x |
Changed in fuel: | |
milestone: | 5.0.1 → 5.1 |
summary: |
- ceph-deploy osd prepare node-5:/dev/vdb2 returned 1 instead of one of - [0] + [library] ceph-deploy osd prepare node-5:/dev/vdb2 returned 1 instead of + one of [0] |
Reproduced several times on bare-metal (DELL)
{ fc2723c6fcc3dbc 66cc1a83152" , 26_18-06- 28", 1fc1978d99bd791 079d1ae4a06" , 4d51f99a9fc439e f21139ea0b0" , f64ad5decd41289 33c96cb20f4" , 997d82adc5ae5db 9dcb7a35bcd" ,
"api": "1.0",
"astute_sha": "a7eac46348dc77
"build_id": "2014-05-
"build_number": "24",
"fuellib_sha": "2f79c041515965
"fuelmain_sha": "d7f86968880a48
"mirantis": "yes",
"nailgun_sha": "bd09f89ef56176
"ostf_sha": "89bbddb78132e2
"production": "docker",
"release": "5.0"
}
Environment: ceph-osd, 1 compute+ceph-osd, 1 mongodb.
"volumes_ lvm": False,
"volumes_ ceph": True,
"images_ ceph": True,
"ceilometer" : True,
"net_provider" : 'neutron',
"net_segment_ type": 'gre',
"libvirt_ type": "kvm"
multinode, 1 controller+
"murano": True,
"sahara": True,
Sporadic errors during deployments: 27T10:14: 01.414383+ 00:00 err: ceph-deploy osd prepare node-2:/dev/sda5 returned 1 instead of one of [0]
2014-05-
More detailed logs: 27T10:14: 01.398761+ 00:00 notice: (/Stage[ main]/Ceph: :Osd/Exec[ ceph-deploy osd prepare]/returns) [node-2][INFO ] Running command: ceph-disk-prepare --fs-type xfs --cluster ceph -- /dev/sda5 27T10:14: 01.399020+ 00:00 notice: (/Stage[ main]/Ceph: :Osd/Exec[ ceph-deploy osd prepare]/returns) [node-2][ERROR ] Traceback (most recent call last): 27T10:14: 01.399728+ 00:00 notice: (/Stage[ main]/Ceph: :Osd/Exec[ ceph-deploy osd prepare]/returns) [node-2][ERROR ] File "/usr/lib/ python2. 7/dist- packages/ ceph_deploy/ osd.py" , line 126, in prepare_disk 27T10:14: 01.400017+ 00:00 notice: (/Stage[ main]/Ceph: :Osd/Exec[ ceph-deploy osd prepare]/returns) [node-2][ERROR ] File "/usr/lib/ python2. 7/dist- packages/ ceph_deploy/ util/decorators .py", line 10, in inne 27T10:14: 01.400017+ 00:00 notice: (/Stage[ main]/Ceph: :Osd/Exec[ ceph-deploy osd prepare]/returns) [node-2][ERROR ] def inner(*args, **kwargs): 27T10:14: 01.400265+ 00:00 notice: (/Stage[ main]/Ceph: :Osd/Exec[ ceph-deploy osd prepare]/returns) [node-2][ERROR ] File "/usr/lib/ python2. 7/dist- packages/ ceph_deploy/ util/wrappers. py", line 6, in remote_ 27T10:14: 01.401206+ 00:00 notice: (/Stage[ main]/Ceph: :Osd/Exec[ ceph-deploy osd prepare]/returns) [node-2][ERROR ] This allows us to only remote-execute the actual calls, not whole functions. 27T10:14: 01.401420+ 00:00 notice: (/Stage[ main]/Ceph: :Osd/Exec[ ceph-deploy osd prepare]/returns) [node-2][ERROR ] File "/usr/lib/ python2. 7/subprocess. py", line 511, in check_call 27T10:14: 01.401420+ 00:00 notice: (/Stage[ main]/Ceph: :Osd/Exec[ ceph-deploy osd prepare]/returns) [node-2][ERROR ] raise CalledProcessEr ror(retcode, cmd) 27T10:14: 01.401519+ 00:00 notice: (/Stage[ main]/Ceph: :Osd/Exec[ ceph-deploy osd prepare]/returns) [node-2][ERROR ] CalledProcessError: Command '['ceph- disk-prepare' , '--fs-type', 'xfs', '--cluster', 'ceph' 27T10:14: 01.402453+ 00:00 notice: (/Stage[ main]/Ceph: :Osd/Exec[ ceph-deploy osd prepare]/returns) [node-2][ERROR ] Traceback (most recent call last): 27T10:14: 01.402676+ 00:00.. .
2014-05-
2014-05-
2014-05-
2014-05-
r
2014-05-
2014-05-
call
2014-05-
2014-05-
2014-05-
2014-05-
, '--', '/dev/sda5']' returned non-zero exit status 1
2014-05-
2014-05-