4bba0dbc0d9a4c2742d60ca0379218ad88b55671
[releng.git] / prototypes / bifrost / README.md
1 =====================
2 How to deploy bifrost
3 =====================
4 The scripts and playbooks defined on this repo, need to be combined with proper `Bifrost <http://git.openstack.org/cgit/openstack/bifrost>`_ code.
5
6 Please follow that steps:
7
8 1. Clone bifrost::
9
10     git clone https://git.openstack.org/openstack/bifrost /opt/bifrost
11
12 2. Clone releng::
13
14     git clone https://gerrit.opnfv.org/gerrit/releng /opt/releng
15
16 3. Clone infracloud::
17
18     git clone https://git.openstack.org/openstack-infra/puppet-infracloud /opt/puppet-infracloud
19
20 4. Combine releng scripts and playbooks with bifrost::
21
22     cp -R /opt/releng/prototypes/bifrost/* /opt/bifrost/
23
24 5. If you are on a RHEL/CentOS box, ensure that selinux is disabled
25
26 6. Run destroy script if you need to cleanup previous environment::
27
28     cd /opt/bifrost
29     ./scripts/destroy-env.sh
30
31 7. Run deployment script to spin up 3 vms with bifrost: jumphost, controller and compute::
32
33     cd /opt/bifrost
34     ./scripts/test-bifrost-deployment.sh
35
36 It is likely that the script will show some errors due to timeout. Please ignore the errors, and wait until the vms are completely bootstrapped. To verify it you can check with ironic::
37
38     cd /opt/bifrost
39     source env-vars
40     ironic node-list
41
42 And wait until all the vms are in **active** Provisioning State.
43
44 8. Check the IPs assigned to each of the VMS. You can check it by looking at inventory:
45
46     cat /tmp/baremetal.csv
47
48 9. You can enter into the vms with devuser login/pass:
49
50     ssh devuser@192.168.122.2