Packstack Barclamp for OpenCrowbar
The Packstack workload for OpenCrowbar sets up an environment that can run packstack.
Install
Read this whole paragraph, please.
-
The install script takes the same parameters as the core opencrowbar install.sh script. That can be found here.
-
wget --no-check-certificate -O - https://raw.githubusercontent.com/rackn/packstack/develop/tools/packstack-install.sh | source /dev/stdin --develop
-
Optional: You may run other opencrowbar install scripts as needed.
-
cd /opt/opencrowbar/core/
-
./production.sh <FQDN of the admin node>
Use
The packstack-installer role can be added to nodes to generate a place to run packstack. The packstack-client role can be added to nodes to indicate a node that should participate in the packstack configured cluster.
The packstack-installer role will generate a user account to run packstack from. The user can already exist, e.g. root, or a new one specified. The default is packstack. This can be overriden in the node-role for this instance. The attribute is packstack-user. The node-role also allows for the specification of the openstack release. The default is icehouse, but juno can be specified. At the moment, that appears to be juno-1. The attribute is packstack-openstack_release.
The packstack-client will add the public key from all packstack-installer roles' users. The node will also have the network-manager disabled is present.
Once all the roles are applied, log into a packstack-installer node and change to the packstack-user. From this account, you can run packstack.
Something like this could be used on a 3 node default setup:
packstack --install-host=192.168.124.81,192.168.124.82,192.168.124.83 --use-epel=y --provision-demo=n
Steps:
- boot admin node (The "System" Deployment is complete)
- Once admin node is ready, start 3-5 Nodes.
- Once these are discovered, (show green in the system deployment) use the ready-state wizard to set the following
- OS to centos7
- Ensure that the Network is how you would like it set up.
- Click "Run Wizard"
- This takes you to the deploment screen. DO NOT COMMIT
- Go to the pilot deployment.
- Add roles, OpenStack (PackStack)
- Add Packstack to your controller node (Click on the +) - it will add packstack-installer & client
- Edit the packstack-installer to choose your OpenStack release
- Add Packstack the rest of your nodes - it will only add packstack-client
- Commit deployment
Wait while everything happens - all node roles will be green at end.
- Once done, onto the packstack-installer node.
- on admin,
1.
sudo ip a add 192.168.124.2/24 dev docker0
ONLY NEEDED IF YOU ARE RUNNING IN DOCKER CONTAINERS 1.su - crowbar
1.ssh [email protected]
(or which ever machine you choose for the packstack installer) - on packstack installer node
1.
su - packstack
1.packstack --install-host=<IP Addresses of your systems> --use-epel=y --provision-demo=n
1. That command is for three nodes. It will install icehouse nova with 192.168.124.81 as the controller node.
Wait for puppet installs to complete
- Attach your desktop to the docker bridge:
sudo ip a add 192.168.124.2/24 dev docker0
ONLY NEEDED IF YOU ARE RUNNING IN DOCKER CONTAINERS - Get the credentials for your installation
exit
from the packstack user (you should now be root on the compute node)- cat /home/packstack/admin_keystonerc
- go to compute node in web browser
- login using admin/credentials