Merge "Fix ingress deamon"
This commit is contained in:
commit
5deabcec6f
@ -100,6 +100,11 @@
|
|||||||
name: devstack-plugin-ceph-multinode-cephfs-nfs-cephadm
|
name: devstack-plugin-ceph-multinode-cephfs-nfs-cephadm
|
||||||
parent: manila-tempest-plugin-multinode-cephfs-nfs-cephadm
|
parent: manila-tempest-plugin-multinode-cephfs-nfs-cephadm
|
||||||
description: Test CephFS NFS (DHSS=False) in a Multinode devstack env
|
description: Test CephFS NFS (DHSS=False) in a Multinode devstack env
|
||||||
|
vars:
|
||||||
|
devstack_localrc:
|
||||||
|
MDS_LOGS: True
|
||||||
|
CEPH_INGRESS_IP: "{{hostvars['controller'].ansible_default_ipv6.address}}"
|
||||||
|
|
||||||
|
|
||||||
- job:
|
- job:
|
||||||
name: devstack-plugin-ceph-multinode-tempest-py3
|
name: devstack-plugin-ceph-multinode-tempest-py3
|
||||||
|
@ -61,6 +61,8 @@ CEPH_CONF_FILE=${CEPH_CONF_FILE:-$CEPH_CONF_DIR/ceph.conf}
|
|||||||
# LOG(s) and EXPORTED CONFIG FILES
|
# LOG(s) and EXPORTED CONFIG FILES
|
||||||
EXPORT=$HOME/ceph_export.yml
|
EXPORT=$HOME/ceph_export.yml
|
||||||
RBD_CLIENT_LOG=/var/log/ceph/qemu-guest-\$pid.log
|
RBD_CLIENT_LOG=/var/log/ceph/qemu-guest-\$pid.log
|
||||||
|
MDS_LOG_FILE="$HOME/mds_log.conf"
|
||||||
|
MDS_LOGS=${MDS_LOGS:-"False"}
|
||||||
|
|
||||||
# MANILA DEFAULTS
|
# MANILA DEFAULTS
|
||||||
MANILA_CEPH_USER=${MANILA_CEPH_USER:-manila}
|
MANILA_CEPH_USER=${MANILA_CEPH_USER:-manila}
|
||||||
@ -72,7 +74,7 @@ CEPHFS_CLIENT=0
|
|||||||
CEPHFS_CLIENT_NAME="client.$MANILA_CEPH_USER"
|
CEPHFS_CLIENT_NAME="client.$MANILA_CEPH_USER"
|
||||||
CEPHFS_CLIENT_LOG="/var/log/ceph-$CEPHFS_CLIENT_NAME.log"
|
CEPHFS_CLIENT_LOG="/var/log/ceph-$CEPHFS_CLIENT_NAME.log"
|
||||||
CEPHFS_MULTIPLE_FILESYSTEMS=${CEPHFS_MULTIPLE_FILESYSTEMS:-False}
|
CEPHFS_MULTIPLE_FILESYSTEMS=${CEPHFS_MULTIPLE_FILESYSTEMS:-False}
|
||||||
VIP=$HOST_IP
|
VIP=$CEPH_INGRESS_IP
|
||||||
|
|
||||||
|
|
||||||
# GLANCE DEFAULTS
|
# GLANCE DEFAULTS
|
||||||
@ -109,6 +111,33 @@ function set_debug {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function enable_verbose_mds_logging {
|
||||||
|
$SUDO "$CEPHADM" shell --fsid $FSID --config $CEPH_CONFIG \
|
||||||
|
--keyring $CEPH_KEYRING -- ceph config set mds debug_mds 20
|
||||||
|
$SUDO "$CEPHADM" shell --fsid $FSID --config $CEPH_CONFIG \
|
||||||
|
--keyring $CEPH_KEYRING -- ceph config set mds debug_ms 20
|
||||||
|
$SUDO "$CEPHADM" shell --fsid $FSID --config $CEPH_CONFIG \
|
||||||
|
--keyring $CEPH_KEYRING -- ceph config set mds debug_client 20
|
||||||
|
$SUDO "$CEPHADM" shell --fsid $FSID --config $CEPH_CONFIG \
|
||||||
|
--keyring $CEPH_KEYRING -- ceph config set mds log_to_file true
|
||||||
|
$SUDO "$CEPHADM" shell --fsid $FSID --config $CEPH_CONFIG \
|
||||||
|
--keyring $CEPH_KEYRING -- ceph config set global mon_cluster_log_to_file true
|
||||||
|
$SUDO "$CEPHADM" shell --fsid $FSID --config $CEPH_CONFIG \
|
||||||
|
--keyring $CEPH_KEYRING -- ceph config set global log_to_file true
|
||||||
|
touch "$MDS_LOG_FILE"
|
||||||
|
cat <<EOF > "$MDS_LOG_FILE"
|
||||||
|
LOG {
|
||||||
|
COMPONENTS {
|
||||||
|
ALL = FULL_DEBUG;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
EOF
|
||||||
|
$SUDO "$CEPHADM" shell --fsid $FSID --config $CEPH_CONFIG \
|
||||||
|
--keyring $CEPH_KEYRING -m $MDS_LOG_FILE -- ceph nfs cluster config set "$FSNAME" \
|
||||||
|
-i /mnt/mds_log.conf
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
# Admin: check ceph cluster status
|
# Admin: check ceph cluster status
|
||||||
function check_cluster_status {
|
function check_cluster_status {
|
||||||
$SUDO "$CEPHADM" shell --fsid $FSID --config $CEPH_CONFIG \
|
$SUDO "$CEPHADM" shell --fsid $FSID --config $CEPH_CONFIG \
|
||||||
@ -340,7 +369,7 @@ function ceph_nfs_config {
|
|||||||
$SUDO "$CEPHADM" shell --fsid $FSID --config $CEPH_CONFIG \
|
$SUDO "$CEPHADM" shell --fsid $FSID --config $CEPH_CONFIG \
|
||||||
--keyring $CEPH_KEYRING -- ceph nfs cluster create \
|
--keyring $CEPH_KEYRING -- ceph nfs cluster create \
|
||||||
"$FSNAME" "$HOSTNAME" --port $NFS_PORT --ingress \
|
"$FSNAME" "$HOSTNAME" --port $NFS_PORT --ingress \
|
||||||
--ingress-mode haproxy-protocol --virtual_ip $HOST_IP
|
--ingress-mode haproxy-protocol --virtual_ip $VIP
|
||||||
else
|
else
|
||||||
echo "[CEPHADM] Ingress service is not deployed \
|
echo "[CEPHADM] Ingress service is not deployed \
|
||||||
to preserve the ability to apply client restrictions."
|
to preserve the ability to apply client restrictions."
|
||||||
|
@ -119,6 +119,9 @@ elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
if [[ "$MDS_LOGS" == "True" ]]; then
|
||||||
|
enable_verbose_mds_logging
|
||||||
|
fi
|
||||||
elif [[ "$1" == "stack" && "$2" == "test-config" ]]; then
|
elif [[ "$1" == "stack" && "$2" == "test-config" ]]; then
|
||||||
if is_service_enabled tempest; then
|
if is_service_enabled tempest; then
|
||||||
iniset $TEMPEST_CONFIG compute-feature-enabled swap_volume False
|
iniset $TEMPEST_CONFIG compute-feature-enabled swap_volume False
|
||||||
|
Loading…
Reference in New Issue
Block a user