instack-undercloud/README-packages.md
2014-04-08 13:46:56 -04:00

2.9 KiB

instack-undercloud via packages

It helps when setting up the undercloud to use a user with passwordless sudo enabled. The stack user in the default instack vm is already configured with passwordless sudo.

  1. Enable the openstack-m repository

     sudo yum -y install http://repos.fedorapeople.org/repos/openstack-m/openstack-m/openstack-m-release-icehouse-2.noarch.rpm
    
  2. Enable the fedora-openstack-m-testing yum repository.

     sudo yum-config-manager --enable fedora-openstack-m-testing
    
  3. Install instack-undercloud

     sudo yum -y install instack-undercloud
    
  4. Create and edit your answers file. The descriptions of the parameters that can be set are in the sample answers file.

     # Answers file must exist in home directory for now
     # Use either the baremetal or virt sample answers file
     # cp /usr/share/doc/instack-undercloud/instack-baremetal.answers.sample ~/instack.answers
     # cp /usr/share/doc/instack-undercloud/instack-virt.answers.sample ~/instack.answers
     # Perform any answer file edits
    
  5. Create the virtual-power-key and copy it to the virt host. The user in ssh-copy-id should match the VIRTUAL_POWER_USER and the ip should match the VIRTUAL_POWER_HOST in your instack.answers file.

     ssh-keygen -t rsa -N '' -C virtual-power-key -f virtual-power-key
     ssh-copy-id -i virtual-power-key.pub stack@192.168.122.1
    
  6. Run script to install undercloud. The script will produce a lot of output on the sceen. It also logs to ~/.instack/install-undercloud.log. You should see install-undercloud Complete! at the end of a successful run.

     instack-install-undercloud-packages
    
  7. Once the install script has run to completion, you should take note to secure and save the files /root/stackrc and /root/tripleo-undercloud-passwords. Both these files will be needed to interact with the installed undercloud. You may copy these files to your home directory to make them easier to source later on, but you should try to keep them as secure and backed up as possible.

That completes the Undercloud install. To proceed with deploying and using the Overcloud see Overcloud-packages.

To access horizon on the undercloud, create an ssh tunnel on the virt host where 192.168.122.55 should be changed to reflect your instack virtual machine's actual IP address. This will allow you to use horizon on instack from your virt host. If you need to connect remotely through the virt host, you can chain ssh tunnels as needed. Note: Depending on your virt host configuration, you may need to open up the correct port(s) in iptables.

   ssh -g -N -L 8080:192.168.122.55:80 `hostname`

The default user and password are found in the stackrc file on the instack virtual machine, OS_USERNAME and OS_PASSWORD. You can read more about using the dashboard in the User Guide.