Update REAMDE-packages.md to show an end to end.

This commit is contained in:
James Slagle 2014-10-08 15:55:16 -04:00
parent bd4eb94798
commit fda5d70b31
1 changed files with 52 additions and 6 deletions

View File

@ -1,17 +1,63 @@
instack-undercloud via packages
===============================
instack-undercloud via source
=============================
These steps can be used to install the undercloud from tripleo packages on the
already setup instack vm. The packages are pulled from the copr repo for now.
1. The user performing all of the installation steps on the virt host needs to
have password-less sudo enabled. This step is NOT optional, you must create an
additional user. Do not run the rest of the steps as root.
1. Once you are ssh'd into the instack vm as the stack user, setup the copr repo
sudo useradd stack
sudo passwd stack # specify a password
echo "stack ALL=(root) NOPASSWD:ALL" | sudo tee -a /etc/sudoers.d/stack
sudo chmod 0440 /etc/sudoers.d/stack
sudo su - stack
echo 'export LIBVIRT_DEFAULT_URI="qemu:///system"' >> ~/.bashrc
source ~/.bashrc
1. Enable the test TripleO copr repository and install instack-undercloud.
sudo curl -o /etc/yum.repos.d/slagle-openstack-m.repo https://copr.fedoraproject.org/coprs/slagle/openstack-m/repo/fedora-20/slagle-openstack-m-fedora-20.repo
sudo yum -y install instack-undercloud
1. Complete the initial setup.
2. Install instack-undercloud
source /usr/libexec/openstack-tripleo/devtest_variables.sh
tripleo install-dependencies
tripleo set-usergroup-membership
1. Verify membership in the libvirtd group
# verify you are in the libvirtd group
id | grep libvirtd
# if not, start a new shell to pick it up
sudo su - stack
1. Create the virtual environment. When the script has completed successfully,
it will output the instack vm's IP address. Use this IP address in the next
step.
instack-virt-setup
1. ssh as the stack user (password is stack) to the instack vm
1. Download all the files from http://file.rdu.redhat.com/~jslagle/tripleo-images-juno-source/
to /home/stack. If you already have them downloaded, use rsync/scp/whatever
to copy them over to the instack vm. The images will be uploaded to glance
at the end of the install.
1. Once you are ssh'd into the instack vm as the stack user, setup the copr repo and install instack-undercloud.
sudo curl -o /etc/yum.repos.d/slagle-openstack-m.repo https://copr.fedoraproject.org/coprs/slagle/openstack-m/repo/fedora-20/slagle-openstack-m-fedora-20.repo
sudo yum -y install instack-undercloud
3. Run the installation script
instack-install-undercloud-source
1. Once the install script has run to completion, copy the files
`/root/stackrc` and `/root/tripleo-undercloud-passwords` into the stack user's home directory.
sudo cp /root/tripleo-undercloud-passwords .
sudo cp /root/stackrc .
That completes the Undercloud install. To proceed with deploying and using the
Overcloud see [Overcloud-source](Overcloud-source.md).