53 lines
1.5 KiB
Diff
53 lines
1.5 KiB
Diff
|
Execute 'service radosgw start' to run radosgw daemon on OS Elbrus.
|
||
|
Enable radosgw auto start: run 'chkconfig radosgw on' when new gateway is being created.
|
||
|
|
||
|
Link:
|
||
|
Subject: run radosgw init
|
||
|
Bug: 108985
|
||
|
Tags: common
|
||
|
|
||
|
diff -rupN a/ceph_deploy/rgw.py b/ceph_deploy/rgw.py
|
||
|
--- a/ceph_deploy/rgw.py 2020-05-19 21:59:32.801340249 +0300
|
||
|
+++ b/ceph_deploy/rgw.py 2020-05-19 22:00:34.646148370 +0300
|
||
|
@@ -95,17 +95,29 @@ def create_rgw(distro, name, cluster, in
|
||
|
timeout=7
|
||
|
)
|
||
|
elif init == 'sysvinit':
|
||
|
- remoto.process.run(
|
||
|
- conn,
|
||
|
- [
|
||
|
- 'service',
|
||
|
- 'ceph-radosgw',
|
||
|
- 'start',
|
||
|
- ],
|
||
|
- timeout=7
|
||
|
- )
|
||
|
- if distro.is_el:
|
||
|
- system.enable_service(distro.conn, service='ceph-radosgw')
|
||
|
+ if distro.name == 'Elbrus':
|
||
|
+ remoto.process.run(
|
||
|
+ conn,
|
||
|
+ [
|
||
|
+ 'service',
|
||
|
+ 'radosgw',
|
||
|
+ 'start',
|
||
|
+ ],
|
||
|
+ timeout=7
|
||
|
+ )
|
||
|
+ system.enable_service(distro.conn, service='radosgw')
|
||
|
+ else:
|
||
|
+ remoto.process.run(
|
||
|
+ conn,
|
||
|
+ [
|
||
|
+ 'service',
|
||
|
+ 'ceph-radosgw',
|
||
|
+ 'start',
|
||
|
+ ],
|
||
|
+ timeout=7
|
||
|
+ )
|
||
|
+ if distro.is_el:
|
||
|
+ system.enable_service(distro.conn, service='ceph-radosgw')
|
||
|
elif init == 'systemd':
|
||
|
remoto.process.run(
|
||
|
conn,
|