Merge branch 'stable/juno'

Conflicts:
	json-files/rhel-7-rhos-6-undercloud-packages.json
	scripts/instack-install-undercloud
	scripts/instack-prepare-for-overcloud
This commit is contained in:
James Slagle 2015-01-12 08:22:30 -05:00
commit 51fefbcac7
8 changed files with 22 additions and 13 deletions

View File

@ -1,2 +1,2 @@
stackuser
vm
local-config

View File

@ -5,6 +5,15 @@ set -o pipefail
install-packages net-tools yum-utils git
useradd -m stack
cat > /etc/sudoers.d/stack <<eof
stack ALL=(ALL) NOPASSWD:ALL
eof
chmod 0440 /etc/sudoers.d/stack
visudo -c
mkdir -p /home/stack/.ssh
cp /tmp/in_target.d/id_rsa_virt_power /home/stack/.ssh/id_rsa_virt_power
cp /tmp/in_target.d/id_rsa_virt_power.pub /home/stack/.ssh/id_rsa_virt_power.pub
@ -13,4 +22,3 @@ cp /tmp/in_target.d/instack.answers.sample /home/stack/instack.answers
cp /tmp/in_target.d/$TE_DATAFILE /home/stack/instackenv.json
chown -R stack:stack /home/stack

View File

@ -0,0 +1,4 @@
This element will override the behavior from the pip-and-virtualenv element
from tripleo-image-elements so that python-pip and python-virtualenv are never
installed.

View File

@ -0,0 +1 @@
pip-and-virtualenv

View File

@ -1,5 +0,0 @@
#!/bin/bash
set -eux
install-packages python-pbr

View File

@ -54,7 +54,8 @@
],
"exclude-element": [
"dkms",
"openvswitch-datapath"
"openvswitch-datapath",
"pip-and-virtualenv"
],
"blacklist": [
"10-cloud-init",

View File

@ -58,7 +58,7 @@ fi
export PACKAGES=${PACKAGES:-"1"}
if [ "$PACKAGES" = "1" ]; then
export DIB_COMMON_ELEMENTS="$DIB_COMMON_ELEMENTS tripleo-image-elements undercloud-package-install"
export DIB_COMMON_ELEMENTS="$DIB_COMMON_ELEMENTS tripleo-image-elements undercloud-package-install pip-and-virtualenv-override"
fi
export OVERCLOUD_CONTROL_DIB_EXTRA_ARGS=${OVERCLOUD_CONTROL_DIB_EXTRA_ARGS:-"\
@ -86,7 +86,6 @@ pip-cache \
rabbitmq-server \
snmpd \
stable-interface-names \
stackuser \
swift-proxy \
swift-storage \
use-ephemeral \
@ -109,7 +108,6 @@ pip-cache \
pypi-openstack \
snmpd \
stable-interface-names \
stackuser \
use-ephemeral \
sysctl \
"}
@ -128,7 +126,6 @@ pip-cache \
pypi-openstack \
snmpd \
stable-interface-names \
stackuser \
use-ephemeral \
sysctl \
"}
@ -145,7 +142,6 @@ dhcp-all-interfaces \
hosts \
ntp \
snmpd \
stackuser \
stable-interface-names \
use-ephemeral \
os-refresh-config-reboot \

View File

@ -76,6 +76,10 @@ while true; do
IP=$(cat /var/lib/libvirt/dnsmasq/default.leases | grep $(tripleo get-vm-mac $UNDERCLOUD_VM_NAME) | awk '{print $3;}')
if [ -n "$IP" ]; then
echo "$UNDERCLOUD_VM_NAME vm IP address is $IP"
echo "You can connect by running:"
echo "ssh root@$IP"
echo "And then su to the stack user:"
echo "su - stack"
break
fi
sleep 3