Switch functional tests to noble
Change-Id: I7bdcdfb77d4d44d64f3e91fdbb3401eb30c41a59
This commit is contained in:
@@ -27,7 +27,7 @@
|
|||||||
pre-run: playbooks/storlets-functional/pre.yaml
|
pre-run: playbooks/storlets-functional/pre.yaml
|
||||||
run: playbooks/storlets-functional/run.yaml
|
run: playbooks/storlets-functional/run.yaml
|
||||||
post-run: playbooks/storlets-functional/post.yaml
|
post-run: playbooks/storlets-functional/post.yaml
|
||||||
nodeset: ubuntu-jammy
|
nodeset: ubuntu-noble
|
||||||
timeout: 2400
|
timeout: 2400
|
||||||
irrelevant-files:
|
irrelevant-files:
|
||||||
- ^api-ref/.*$
|
- ^api-ref/.*$
|
||||||
|
|||||||
@@ -14,6 +14,4 @@ SWIFT_SERVICE_LISTEN_ADDRESS=$HOST_IP
|
|||||||
SWIFT_LOOPBACK_DISK_SIZE=20G
|
SWIFT_LOOPBACK_DISK_SIZE=20G
|
||||||
SWIFT_MAX_FILE_SIZE=5368709122
|
SWIFT_MAX_FILE_SIZE=5368709122
|
||||||
SWIFT_HASH=1234567890
|
SWIFT_HASH=1234567890
|
||||||
# TODO(tkajinam): This should be removed once we address all issues with
|
SWIFT_START_ALL_SERVICES=False
|
||||||
# the global virtualenv
|
|
||||||
GLOBAL_VENV=False
|
|
||||||
|
|||||||
@@ -53,7 +53,8 @@ STORLETS_DOCKER_DEVICE=${STORLETS_DOCKER_DEVICE:-/var/lib/storlets}
|
|||||||
if is_fedora; then
|
if is_fedora; then
|
||||||
STORLETS_DOCKER_BASE_IMG=${STORLETS_DOCKER_BASE_IMG:-quay.io/centos/centos:stream9}
|
STORLETS_DOCKER_BASE_IMG=${STORLETS_DOCKER_BASE_IMG:-quay.io/centos/centos:stream9}
|
||||||
else
|
else
|
||||||
STORLETS_DOCKER_BASE_IMG=${STORLETS_DOCKER_BASE_IMG:-ubuntu:22.04}
|
ubuntu_version=$(source /etc/os-release ; echo $VERSION_ID)
|
||||||
|
STORLETS_DOCKER_BASE_IMG=${STORLETS_DOCKER_BASE_IMG:-ubuntu:$ubuntu_version}
|
||||||
fi
|
fi
|
||||||
STORLETS_SWIFT_RUNTIME_USER=${STORLETS_SWIFT_RUNTIME_USER:-$USER}
|
STORLETS_SWIFT_RUNTIME_USER=${STORLETS_SWIFT_RUNTIME_USER:-$USER}
|
||||||
STORLETS_SWIFT_RUNTIME_GROUP=${STORLETS_SWIFT_RUNTIME_GROUP:-$USER}
|
STORLETS_SWIFT_RUNTIME_GROUP=${STORLETS_SWIFT_RUNTIME_GROUP:-$USER}
|
||||||
@@ -72,6 +73,8 @@ STORLETS_RESTART_CONTAINER_TIMEOUT=${STORLETS_RESTART_CONTAINER_TIMEOUT:-3}
|
|||||||
STORLETS_RUNTIME_TIMEOUT=${STORLETS_RUNTIME_TIMEOUT:-40}
|
STORLETS_RUNTIME_TIMEOUT=${STORLETS_RUNTIME_TIMEOUT:-40}
|
||||||
STORLETS_JDK_VERSION=${STORLETS_JDK_VERSION:-11}
|
STORLETS_JDK_VERSION=${STORLETS_JDK_VERSION:-11}
|
||||||
|
|
||||||
|
STORLETS_BIN_DIR=$(get_python_exec_prefix)
|
||||||
|
|
||||||
TMP_REGISTRY_PREFIX=/tmp/registry
|
TMP_REGISTRY_PREFIX=/tmp/registry
|
||||||
|
|
||||||
# Functions
|
# Functions
|
||||||
@@ -108,10 +111,14 @@ function configure_swift_and_keystone_for_storlets {
|
|||||||
# Create storlet related containers and set ACLs
|
# Create storlet related containers and set ACLs
|
||||||
start_swift
|
start_swift
|
||||||
_export_swift_os_vars
|
_export_swift_os_vars
|
||||||
swift post --meta "Storlet-Enabled:True"
|
${STORLETS_BIN_DIR}/swift post --meta "Storlet-Enabled:True"
|
||||||
swift post --read-acl $SWIFT_DEFAULT_PROJECT:$SWIFT_MEMBER_USER $STORLETS_STORLET_CONTAINER_NAME
|
${STORLETS_BIN_DIR}/swift post \
|
||||||
swift post --read-acl $SWIFT_DEFAULT_PROJECT:$SWIFT_MEMBER_USER $STORLETS_DEPENDENCY_CONTAINER_NAME
|
--read-acl $SWIFT_DEFAULT_PROJECT:$SWIFT_MEMBER_USER \
|
||||||
swift post $STORLETS_LOG_CONTAIER_NAME
|
$STORLETS_STORLET_CONTAINER_NAME
|
||||||
|
${STORLETS_BIN_DIR}/swift post \
|
||||||
|
--read-acl $SWIFT_DEFAULT_PROJECT:$SWIFT_MEMBER_USER \
|
||||||
|
$STORLETS_DEPENDENCY_CONTAINER_NAME
|
||||||
|
${STORLETS_BIN_DIR}/swift post $STORLETS_LOG_CONTAIER_NAME
|
||||||
}
|
}
|
||||||
|
|
||||||
function _install_docker {
|
function _install_docker {
|
||||||
@@ -206,9 +213,7 @@ function install_storlets_code {
|
|||||||
# from docker container.
|
# from docker container.
|
||||||
sudo mkdir -p -m 755 /usr/local/lib/storlets/python
|
sudo mkdir -p -m 755 /usr/local/lib/storlets/python
|
||||||
|
|
||||||
# NOTE(takashi): We need --no-deps to avoid enum34 installed in py 2 env,
|
GLOBAL_VENV=False pip_install . -t /usr/local/lib/storlets/python --no-compile --no-deps
|
||||||
# which causes failure in py3 execution.
|
|
||||||
pip_install . -t /usr/local/lib/storlets/python --no-compile --no-deps
|
|
||||||
sudo mkdir -p -m 755 /usr/local/libexec/storlets
|
sudo mkdir -p -m 755 /usr/local/libexec/storlets
|
||||||
for bin_file in storlets-daemon storlets-daemon-factory ; do
|
for bin_file in storlets-daemon storlets-daemon-factory ; do
|
||||||
sudo cp ./bin/${bin_file} /usr/local/libexec/storlets/
|
sudo cp ./bin/${bin_file} /usr/local/libexec/storlets/
|
||||||
|
|||||||
6
s2aio.sh
6
s2aio.sh
@@ -37,9 +37,11 @@ function _prepare_devstack_env {
|
|||||||
cp devstack/localrc.sample $DEVSTACK_DIR/localrc
|
cp devstack/localrc.sample $DEVSTACK_DIR/localrc
|
||||||
fi
|
fi
|
||||||
|
|
||||||
source $DEVSTACK_DIR/stackrc
|
|
||||||
source $DEVSTACK_DIR/functions
|
source $DEVSTACK_DIR/functions
|
||||||
source $DEVSTACK_DIR/functions-common
|
if [[ -z "$os_PACKAGE" ]]; then
|
||||||
|
GetOSVersion
|
||||||
|
fi
|
||||||
|
source $DEVSTACK_DIR/stackrc
|
||||||
source $DEVSTACK_DIR/lib/keystone
|
source $DEVSTACK_DIR/lib/keystone
|
||||||
source $DEVSTACK_DIR/lib/swift
|
source $DEVSTACK_DIR/lib/swift
|
||||||
source devstack/plugin.sh
|
source devstack/plugin.sh
|
||||||
|
|||||||
Reference in New Issue
Block a user