mgr: adding CEPH_ARGS to the mgr pod so radosgw-admin can use it
ceph dashboard uses radosgw-admin for certain tasks that
aren't accessible via the rgw REST API. Due to the absence of
a valid ceph.conf file at /etc/ceph/ceph.conf within the mgr pod,
radosgw-admin fails to operate, resulting in 500 errors across
various 'Object Gateway' views on the dashboard. This change
adds CEPH_ARGS environment variable to the mgr pod enabling
its propagation and utilization by the dashboard/radosgw-admin
for executing rgw commands.
closes: https://github.com/rook/rook/issues/13255
Signed-off-by: Redouane Kachach <rkachach@redhat.com>
(cherry picked from commit afc485fa03)
This commit is contained in:
1 parent
19f186db83
commit
f2d4e6792f
2 files changed
+2
No files matched your search
@@ -355,6 +355,7 @@ func (c *Cluster) cephMgrOrchestratorModuleEnvs() []v1.EnvVar {
|
||||
{Name: "ROOK_OPERATOR_NAMESPACE", Value: operatorNamespace},
|
||||
{Name: "ROOK_CEPH_CLUSTER_CRD_VERSION", Value: cephv1.Version},
|
||||
{Name: "ROOK_CEPH_CLUSTER_CRD_NAME", Value: c.clusterInfo.NamespacedName().Name},
|
||||
{Name: "CEPH_ARGS", Value: fmt.Sprintf("--mon-host $(ROOK_CEPH_MON_HOST) --keyring %s", keyring.VolumeMount().KeyringFilePath())},
|
||||
k8sutil.PodIPEnvVar(podIPEnvVar),
|
||||
}
|
||||
return envVars
|
||||
|
||||
@@ -70,6 +70,7 @@ func TestPodSpec(t *testing.T) {
|
||||
|
||||
podTemplate := test.NewPodTemplateSpecTester(t, &d.Spec.Template)
|
||||
podTemplate.Spec().Containers().RequireAdditionalEnvVars(
|
||||
"CEPH_ARGS",
|
||||
"ROOK_OPERATOR_NAMESPACE", "ROOK_CEPH_CLUSTER_CRD_VERSION",
|
||||
"ROOK_CEPH_CLUSTER_CRD_NAME")
|
||||
podTemplate.RunFullSuite(config.MgrType, "a", AppName, "ns", "quay.io/ceph/ceph:myceph",
|
||||
|
||||
Reference in new issue
Block a user