Move to devstack-plugin-container
Change-Id: I39f7dec7e0b2ba93d0a0e9666c98cf9eb09bcfe1
This commit is contained in:
parent
4f06d6da92
commit
9250eceb7d
|
@ -19,5 +19,6 @@ SHARE_DRIVER=manila.share.drivers.lvm.LVMShareDriver
|
|||
MANILA_OPTGROUP_generic1_driver_handles_share_servers=False
|
||||
|
||||
FUXI_VOLUME_PROVIDERS=cinder,manila
|
||||
enable_plugin devstack-plugin-container https://git.openstack.org/openstack/devstack-plugin-container
|
||||
enable_plugin fuxi https://git.openstack.org/openstack/fuxi
|
||||
enable_plugin manila https://git.openstack.org/openstack/manila
|
||||
|
|
|
@ -88,45 +88,6 @@ if is_service_enabled fuxi; then
|
|||
create_fuxi_account
|
||||
configure_fuxi
|
||||
|
||||
# FIXME(mestery): By default, Ubuntu ships with /bin/sh pointing to
|
||||
# the dash shell.
|
||||
# ..
|
||||
# ..
|
||||
# The dots above represent a pause as you pick yourself up off the
|
||||
# floor. This means the latest version of "install_docker.sh" to load
|
||||
# docker fails because dash can't interpret some of it's bash-specific
|
||||
# things. It's a bug in install_docker.sh that it relies on those and
|
||||
# uses a shebang of /bin/sh, but that doesn't help us if we want to run
|
||||
# docker and specifically Fuxi. So, this works around that.
|
||||
sudo update-alternatives --install /bin/sh sh /bin/bash 100
|
||||
|
||||
# Install docker only if it's not already installed. The following checks
|
||||
# whether the docker-engine package is already installed, as this is the
|
||||
# most common way for installing docker from binaries. In case it's been
|
||||
# manually installed, the install_docker.sh script will prompt a warning
|
||||
# if another docker executable is found
|
||||
check_docker || {
|
||||
wget http://get.docker.com -O install_docker.sh
|
||||
sudo chmod 777 install_docker.sh
|
||||
sudo sh install_docker.sh
|
||||
sudo rm install_docker.sh
|
||||
}
|
||||
|
||||
# After an ./unstack it will be stopped. So it is ok if it returns exit-code == 1
|
||||
sudo service docker stop || true
|
||||
|
||||
run_process docker-engine "/usr/bin/docker daemon -H unix://$FUXI_DOCKER_ENGINE_SOCKET_FILE -H tcp://0.0.0.0:$FUXI_DOCKER_ENGINE_PORT --cluster-store etcd://localhost:2379" "" "root"
|
||||
|
||||
# We put the stack user as owner of the socket so we do not need to
|
||||
# run the Docker commands with sudo when developing.
|
||||
echo -n "Waiting for Docker to create its socket file"
|
||||
while [ ! -e "$FUXI_DOCKER_ENGINE_SOCKET_FILE" ]; do
|
||||
echo -n "."
|
||||
sleep 1
|
||||
done
|
||||
echo ""
|
||||
sudo chown "$STACK_USER":docker "$FUXI_DOCKER_ENGINE_SOCKET_FILE"
|
||||
|
||||
# In case iSCSI client is used
|
||||
sudo ln -s /lib/udev/scsi_id /usr/local/bin || true
|
||||
|
||||
|
@ -142,10 +103,6 @@ if is_service_enabled fuxi; then
|
|||
|
||||
if [[ "$1" == "unstack" ]]; then
|
||||
stop_process fuxi-server
|
||||
stop_process docker-engine
|
||||
# Stop process does not handle well Docker 1.12+ new multi process
|
||||
# split and doesn't kill them all. Let's leverage Docker's own pidfile
|
||||
sudo kill -s SIGTERM "$(cat /var/run/docker.pid)"
|
||||
fi
|
||||
fi
|
||||
|
||||
|
|
|
@ -14,9 +14,10 @@ FUXI_CONFIG=${FUXI_CONFIG_DIR}/${FUXI_CONFIG_FILENAME}
|
|||
FUXI_AUTH_CACHE_DIR=${FUXI_AUTH_CACHE_DIR:-/var/cache/fuxi}
|
||||
|
||||
FUXI_DOCKER_ENGINE_PORT=${FUXI_DOCKER_ENGINE_PORT:-2375}
|
||||
FUXI_DOCKER_ENGINE_SOCKET_FILE=${FUXI_DOCKER_ENGINE_SOCKET_FILE:-/var/run/docker.sock}
|
||||
FUXI_VOLUME_PROVIDERS=${FUXI_VOLUME_PROVIDERS:-cinder,manila}
|
||||
|
||||
DOCKER_CLUSTER_STORE=${DOCKER_CLUSTER_STORE:-etcd://localhost:2379}
|
||||
|
||||
GITREPO["kuryr"]=${KURYR_REPO:-${GIT_BASE}/openstack/kuryr.git}
|
||||
GITBRANCH["kuryr"]=${KURYR_BRANCH:-master}
|
||||
GITDIR["kuryr"]=$DEST/kuryr
|
||||
|
|
|
@ -7,6 +7,7 @@ VENV=${1:-"fullstack"}
|
|||
GATE_DEST=$BASE/new
|
||||
DEVSTACK_PATH=$GATE_DEST/devstack
|
||||
|
||||
export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin devstack-plugin-container https://git.openstack.org/openstack/devstack-plugin-container"
|
||||
export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin manila git://git.openstack.org/openstack/manila"
|
||||
export DEVSTACK_LOCAL_CONFIG+=$'\n'"MANILA_DEFAULT_SHARE_TYPE_EXTRA_SPECS='snapshot_support=True create_share_from_snapshot_support=True revert_to_snapshot_support=True mount_snapshot_support=True'"
|
||||
export DEVSTACK_LOCAL_CONFIG+=$'\n'"SHARE_DRIVER=manila.share.drivers.lvm.LVMShareDriver"
|
||||
|
|
Loading…
Reference in New Issue