-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support multisite in ceph2 setup #84
Conversation
Signed-off-by: Nizamudeen A <[email protected]>
@@ -75,7 +73,7 @@ fi | |||
|
|||
# Disable ssl (if selected) | |||
readonly VSTART_HAS_SSL_FLAG=$(cat /ceph/src/vstart.sh | grep DASHBOARD_SSL | wc -l) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -75,7 +73,7 @@ fi | |||
|
|||
# Disable ssl (if selected) | |||
readonly VSTART_HAS_SSL_FLAG=$(cat /ceph/src/vstart.sh | grep DASHBOARD_SSL | wc -l) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -75,7 +73,7 @@ fi | |||
|
|||
# Disable ssl (if selected) | |||
readonly VSTART_HAS_SSL_FLAG=$(cat /ceph/src/vstart.sh | grep DASHBOARD_SSL | wc -l) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -75,7 +73,7 @@ fi | |||
|
|||
# Disable ssl (if selected) | |||
readonly VSTART_HAS_SSL_FLAG=$(cat /ceph/src/vstart.sh | grep DASHBOARD_SSL | wc -l) | |||
if [[ "$DASHBOARD_SSL" == 0 && "$VSTART_HAS_SSL_FLAG" == 0 && "$IS_FIRST_CLUSTER" == 1 ]]; then | |||
if [[ "$DASHBOARD_SSL" == 0 && "$VSTART_HAS_SSL_FLAG" == 0 ]]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
docker/ceph/set-start-env.sh
Outdated
@@ -7,21 +7,23 @@ set -e | |||
[[ -d "$MGR_PYTHON_PATH"/dashboard/frontend ]] && export IS_UPSTREAM_LUMINOUS=0 | |||
[[ -z "$RGW" ]] && export RGW=1 | |||
|
|||
export IS_FIRST_CLUSTER=$(hostname | grep -v cluster | wc -l) | |||
echo "hostname $(hostname)" | |||
export IS_FIRST_CLUSTER=$(( $(hostname | grep -E '(-cluster2|ceph2)' | wc -l) == 0 )) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
docker/ceph/set-rgw.sh
Outdated
@@ -146,7 +146,7 @@ if [[ "$RGW_MULTISITE" == 1 ]]; then | |||
echo -n "{$(cat ${RGW_REALM_USER_ACCESS_KEY_FILE} | sed 's/,$//')}" > "${RGW_REALM_USER_ACCESS_KEY_FILE}" | |||
echo -n "{$(cat ${RGW_REALM_USER_SECRET_KEY_FILE} | sed 's/,$//')}" > "${RGW_REALM_USER_SECRET_KEY_FILE}" | |||
else | |||
readonly FIRST_CLUSTER_HOSTNAME=$(hostname | sed -e 's/-cluster.//') | |||
readonly FIRST_CLUSTER_HOSTNAME=$(hostname | sed -e 's/-cluster//g' -e 's/2//g') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is being used for multi-site setup. But replacing this with ceph2 container would be enough Signed-off-by: Nizamudeen A <[email protected]>
@@ -7,21 +7,14 @@ set -e | |||
[[ -d "$MGR_PYTHON_PATH"/dashboard/frontend ]] && export IS_UPSTREAM_LUMINOUS=0 | |||
[[ -z "$RGW" ]] && export RGW=1 | |||
|
|||
export IS_FIRST_CLUSTER=$(hostname | grep -v cluster | wc -l) | |||
export IS_FIRST_CLUSTER=$(hostname | grep -v ceph2 | wc -l) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -7,21 +7,14 @@ set -e | |||
[[ -d "$MGR_PYTHON_PATH"/dashboard/frontend ]] && export IS_UPSTREAM_LUMINOUS=0 | |||
[[ -z "$RGW" ]] && export RGW=1 | |||
|
|||
export IS_FIRST_CLUSTER=$(hostname | grep -v cluster | wc -l) | |||
export IS_FIRST_CLUSTER=$(hostname | grep -v ceph2 | wc -l) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -146,7 +146,7 @@ if [[ "$RGW_MULTISITE" == 1 ]]; then | |||
echo -n "{$(cat ${RGW_REALM_USER_ACCESS_KEY_FILE} | sed 's/,$//')}" > "${RGW_REALM_USER_ACCESS_KEY_FILE}" | |||
echo -n "{$(cat ${RGW_REALM_USER_SECRET_KEY_FILE} | sed 's/,$//')}" > "${RGW_REALM_USER_SECRET_KEY_FILE}" | |||
else | |||
readonly FIRST_CLUSTER_HOSTNAME=$(hostname | sed -e 's/-cluster.//') | |||
readonly FIRST_CLUSTER_HOSTNAME=$(hostname | sed -e 's/2//g') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
start the cluster with
RGW_MULTISITE=1
anddocker-compose up -d --scale ceph2=1 --scale prometheus2=1
Also removing the
ceph-cluster2
container. Since that can be replaced withceph2
container.