Commit 20687aff authored by David Johnson's avatar David Johnson

Setup necessary default unlimited quotas for tenants.

parent 06e1878b
......@@ -74,6 +74,7 @@ for lan in ${DATAOTHERLANS} ; do
neutron net-create ${name}-net --shared \
--provider:physical_network ${lan} --provider:network_type capnet
fi
netid=`neutron net-show ${name}-net | awk '/ id / {print $4}'`
neutron subnet-show ${name}-subnet
if [ ! $? -eq 0 ]; then
......@@ -152,6 +153,8 @@ while [ $i -lt 4 ]; do
#__openstack role add --project admin --user admin admin
__openstack role add --project tenant-$i --user tenant-$i-user user
fi
tid=`openstack project show tenant-$i | awk '/ id / { print $4}'`
neutron quota-update --tenant-id $tid --network -1 --subnet -1 --port -1 --floatingip -1 --router -1
echo "export OS_PROJECT_DOMAIN_ID=default" > $OURDIR/tenant-$i-user-openrc.sh
echo "export OS_USER_DOMAIN_ID=default" >> $OURDIR/tenant-$i-user-openrc.sh
......@@ -175,6 +178,9 @@ while [ $i -lt 4 ]; do
#__openstack role add --project admin --user admin admin
__openstack role add --project service-$i --user service-$i-user user
fi
tid=`openstack project show service-$i | awk '/ id / { print $4}'`
neutron quota-update --tenant-id $tid --network -1 --subnet -1 --port -1 --floatingip -1 --router -1
echo "export OS_PROJECT_DOMAIN_ID=default" > $OURDIR/service-$i-user-openrc.sh
echo "export OS_USER_DOMAIN_ID=default" >> $OURDIR/service-$i-user-openrc.sh
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment