Before kraken, ceph-osd didn't add itself to crush... ceph-osd-prestart.sh
did it. And ceph.py doesn't use that.
Signed-off-by: Sage Weil <sage@redhat.com>
- print: "**** done install jewel"
- ceph:
skip_mgr_daemons: true
+ add_osds_to_crush: true
- print: "**** done ceph"
- ceph:
fs: xfs
skip_mgr_daemons: true
+ add_osds_to_crush: true
- install.upgrade:
exclude_packages: ['ceph-mgr','libcephfs2','libcephfs-devel','libcephfs-dev']
osd.0:
- ceph:
fs: xfs
skip_mgr_daemons: true
+ add_osds_to_crush: true
- install.upgrade:
exclude_packages:
- ceph-mgr
- ceph:
fs: xfs
skip_mgr_daemons: true
+ add_osds_to_crush: true
- print: "**** done installing jewel"
- ceph:
skip_mgr_daemons: true
+ add_osds_to_crush: true
- print: "**** done ceph"
- install.upgrade:
mon.a:
- ceph:
fs: xfs
skip_mgr_daemons: true
+ add_osds_to_crush: true
- print: "**** done ceph xfs"
- sequential:
- workload
- print: "**** done install jewel"
- ceph:
skip_mgr_daemons: true
+ add_osds_to_crush: true
- print: "**** done ceph"
id_,
]
)
+ if config.get('add_osds_to_crush'):
+ remote.run(
+ args=[
+ 'sudo',
+ 'ceph',
+ 'osd',
+ 'crush',
+ 'create-or-move',
+ 'osd.' + id_,
+ '1.0',
+ 'host=localhost',
+ 'root=default',
+ ]
+ )
run_cmd = [
'sudo',