mcst-linux-kernel/patches-2024.06.26/python3-ceph-deploy-2.1.0/0002-run-radosgw-init-bug-1...

53 lines
1.5 KiB
Diff
Raw Permalink Normal View History

2024-07-09 13:51:45 +03:00
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,