Use docker image id instead of tag to remove yardstick Docker image with tag:<None>
[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     sudo git clone https://git.openstack.org/openstack/bifrost /opt/bifrost
11
12 2. Clone releng::
13
14     sudo git clone https://gerrit.opnfv.org/gerrit/releng /opt/releng
15
16 3. Clone infracloud::
17
18     sudo 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     sudo cp -R /opt/releng/prototypes/bifrost/* /opt/bifrost/
23
24 5. Copy /opt/puppet-infracloud/templates/bifrost/create_bridge.py.erb to /opt/puppet-infracloud/files/elements/infra-cloud-bridge/static/opt/create_bridge.py,
25    and replace tag <%= @bridge_name -%> with br_opnfv
26
27 6. If you are on a RHEL/CentOS box, ensure that selinux is disabled
28
29 7. Run destroy script if you need to cleanup previous environment::
30
31     cd /opt/bifrost
32     sudo ./scripts/destroy-env.sh
33
34 8. Run deployment script to spin up 3 vms with bifrost: jumphost, controller and compute::
35
36     cd /opt/bifrost
37     sudo ./scripts/test-bifrost-deployment.sh
38
39 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::
40
41     cd /opt/bifrost
42     source env-vars
43     ironic node-list
44
45 And wait until all the vms are in **active** Provisioning State.
46
47 9. Check the IPs assigned to each of the VMS. You can check it by looking at inventory:
48
49     cat /tmp/baremetal.csv
50
51 10. You can enter into the vms with devuser login/pass:
52
53     ssh devuser@192.168.122.2