summaryrefslogtreecommitdiffstats
path: root/bifrost/README.md
blob: dc1417a86960545cc08e4e7749367616ca43b74d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
=====================
How to deploy bifrost
=====================
The scripts and playbooks defined on this repo, need to be combined with proper `Bifrost <http://git.openstack.org/cgit/openstack/bifrost>`_ code.

Please follow that steps:

1. Clone bifrost::

    sudo git clone https://git.openstack.org/openstack/bifrost /opt/bifrost

2. Clone releng::

    sudo git clone https://gerrit.opnfv.org/gerrit/releng /opt/releng

3. Clone infracloud::

    sudo git clone https://git.openstack.org/openstack-infra/puppet-infracloud /opt/puppet-infracloud

4. Combine releng scripts and playbooks with bifrost::

    sudo cp -R /opt/releng/prototypes/bifrost/* /opt/bifrost/

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,
   and replace tag <%= @bridge_name -%> with br_opnfv

6. If you are on a RHEL/CentOS box, ensure that selinux is disabled

7. Run destroy script if you need to cleanup previous environment::

    cd /opt/bifrost
    sudo ./scripts/destroy-env.sh

8. Run deployment script to spin up 3 vms with bifrost: xcimaster, controller and compute::

    cd /opt/bifrost
    sudo ./scripts/test-bifrost-deployment.sh

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::

    cd /opt/bifrost
    source env-vars
    ironic node-list

And wait until all the vms are in **active** Provisioning State.

9. Check the IPs assigned to each of the VMS. You can check it by looking at inventory:

    cat /tmp/baremetal.csv

10. You can enter into the vms with devuser login/pass:

    ssh devuser@192.168.122.2