Analogous changes to mds create.
Signed-off-by: Sage Weil <sage@redhat.com>
],
timeout=7
)
+ if distro.is_el:
+ system.enable_service(distro.conn, service='ceph-radosgw')
elif init == 'systemd':
- system.enable_service(
- distro.conn,
- service='ceph-radosgw@{name}'.format(name=name)
+ remoto.process.run(
+ conn,
+ [
+ 'systemctl',
+ 'enable',
+ 'ceph-radosgw@{name}'.format(name=name),
+ ],
+ timeout=7
+ )
+ remoto.process.run(
+ conn,
+ [
+ 'systemctl',
+ 'start',
+ 'ceph-radosgw@{name}'.format(name=name),
+ ],
+ timeout=7
+ )
+ remoto.process.run(
+ conn,
+ [
+ 'systemctl',
+ 'enable',
+ 'ceph.target',
+ ],
+ timeout=7
)
- if distro.is_el:
- system.enable_service(distro.conn, service='ceph-radosgw')
def rgw_create(args):
cfg = conf.ceph.load(args)