Remove Zaqar for Icehouse

Zaqar was introduced in Juno, so remove it prior to branching
icehouse, then add it back in after branching icehouse.

Partially-implements: port-kilo

Change-Id: Icce95b4d404e6d8238206716e74f6826bc860860
This commit is contained in:
Steven Dake 2015-05-06 05:12:58 -07:00
parent 35c17ebb5a
commit d8a7af93eb
6 changed files with 0 additions and 97 deletions

View File

@ -43,7 +43,6 @@ services:
* Neutron
* Mongodb
* Ceilometer
* Zaqar
* Horizon
```

View File

@ -40,6 +40,3 @@
: ${NOVA_METADATA_API_SERVICE_PORT:=8775}
: ${RABBITMQ_SERVICE_HOST:=$RABBITMQ_PORT_5672_TCP_ADDR}
: ${RABBITMQ_SERVICE_PORT:=5672}
: ${ZAQAR_SERVER_SERVICE_HOST:=$ZAQAR_SERVER_PORT_8888_TCP_ADDR}
: ${ZAQAR_SERVER_SERVICE_PORT:=8888}

View File

@ -1,15 +0,0 @@
FROM %%KOLLA_NAMESPACE%%/%%KOLLA_PREFIX%%base
MAINTAINER Kolla Project (https://launchpad.net/kolla)
RUN curl -O https://repos.fedorapeople.org/repos/openstack/openstack-juno/fedora-21/openstack-zaqar-2014.2-1.fc22.noarch.rpm
RUN curl -O https://repos.fedorapeople.org/repos/openstack/openstack-juno/fedora-21/python-oslo-utils-0.3.0-1.fc22.noarch.rpm
RUN curl -O https://repos.fedorapeople.org/repos/openstack/openstack-juno/fedora-21/python-keystonemiddleware-1.2.0-1.fc22.noarch.rpm
RUN yum -y localinstall python-oslo-utils-0.3.0-1.fc22.noarch.rpm \
python-keystonemiddleware-1.2.0-1.fc22.noarch.rpm \
openstack-zaqar-2014.2-1.fc22.noarch.rpm \
&& yum clean all
ADD ./start.sh /start.sh
ADD ./check.sh /check.sh
CMD ["/start.sh"]

View File

@ -1 +0,0 @@
../../tools/build-docker-image

View File

@ -1,10 +0,0 @@
#!/bin/bash
status=$(curl -s -w "%{http_code}" -o /dev/null http://localhost:8888/v1/queues)
if [[ $status -ne 200 && $status -ne 204 ]]; then
echo "ERROR($status): queue list failed"
exit $status
fi
exit 0

View File

@ -1,67 +0,0 @@
#!/bin/bash
set -e
. /opt/kolla/kolla-common.sh
: ${ADMIN_TENANT_NAME:=admin}
: ${ZAQAR_KEYSTONE_USER:=zaqar}
: ${KEYSTONE_AUTH_PROTOCOL:=http}
check_required_vars ZAQAR_KEYSTONE_PASSWORD ZAQAR_SERVER_SERVICE_HOST \
KEYSTONE_ADMIN_SERVICE_HOST KEYSTONE_ADMIN_TOKEN \
PUBLIC_IP
dump_vars
# TODO Check for mongodb availability
# https://bugs.launchpad.net/kolla/+bug/1394727
fail_unless_os_service_running keystone
cat > /openrc <<EOF
export OS_AUTH_URL="http://${KEYSTONE_PUBLIC_SERVICE_HOST}:5000/v2.0"
export OS_USERNAME="${ZAQAR_KEYSTONE_USER}"
export OS_PASSWORD="${ZAQAR_KEYSTONE_PASSWORD}"
export OS_TENANT_NAME="${ADMIN_TENANT_NAME}"
EOF
cfg=/etc/zaqar/zaqar.conf
crudini --set $cfg DEFAULT log_file \
""
crudini --set $cfg DEFAULT use_stderr \
true
# TODO Switch to mongodb
# https://bugs.launchpad.net/kolla/+bug/1394727
crudini --set $cfg drivers storage \
sqlite
crudini --set $cfg keystone_authtoken admin_password \
"${ZAQAR_KEYSTONE_PASSWORD}"
crudini --set $cfg keystone_authtoken admin_user \
"${ZAQAR_KEYSTONE_USER}"
crudini --set $cfg keystone_authtoken admin_tenant_name \
"${ADMIN_TENANT_NAME}"
crudini --set $cfg keystone_authtoken auth_uri \
"${KEYSTONE_AUTH_PROTOCOL}://${KEYSTONE_PUBLIC_SERVICE_HOST}:5000/v2.0"
crudini --set $cfg keystone_authtoken auth_protocol \
"${KEYSTONE_AUTH_PROTOCOL}"
crudini --set $cfg keystone_authtoken auth_host \
"${KEYSTONE_PUBLIC_SERVICE_HOST}"
crudini --set $cfg keystone_authtoken auth_port \
5000
export SERVICE_TOKEN="${KEYSTONE_ADMIN_TOKEN}"
export SERVICE_ENDPOINT="${KEYSTONE_AUTH_PROTOCOL}://${KEYSTONE_ADMIN_SERVICE_HOST}:35357/v2.0"
crux user-create -n ${ZAQAR_KEYSTONE_USER} \
-p ${ZAQAR_KEYSTONE_PASSWORD} \
-t ${ADMIN_TENANT_NAME} \
-r admin
crux endpoint-create --remove-all -n ${ZAQAR_KEYSTONE_USER} -t messaging \
-I "${KEYSTONE_AUTH_PROTOCOL}://${ZAQAR_SERVER_SERVICE_HOST}:8888" \
-P "${KEYSTONE_AUTH_PROTOCOL}://${PUBLIC_IP}:8888" \
-A "${KEYSTONE_AUTH_PROTOCOL}://${ZAQAR_SERVER_SERVICE_HOST}:8888"
exec /usr/bin/zaqar-server