Merge "make website accessible via testresults.opnfv.org/test"
[releng.git] / prototypes / openstack-ansible / README.md
1 ===============================
2 How to deploy OpenStack-Ansible
3 ===============================
4 The script and playbooks defined on this repo will deploy an OpenStack
5 cloud based on OpenStack-Ansible.
6 It needs to be combined with Bifrost. You need use Bifrost to provide six VMs.
7 To learn about how to use Bifrost, you can read the document on
8 [/opt/releng/prototypes/bifrost/README.md].
9
10 Minimal requirements:
11 1. You will need to have a least 150G free space for the partition on where
12    "/var/lib/libvirt/images/" lives.
13 2. each vm needs to have at least 8 vCPU, 12 GB RAM, 60 GB HDD.
14
15 After provisioning the six VMs please follow that steps:
16
17 1.Run the script to deploy OpenStack
18   cd /opt/releng/prototypes/openstack-ansible/scripts/
19   sudo ./osa_deploy.sh
20 It will take a lot of time. When the deploy is successful, you will see the
21 message "OpenStack deployed successfully".
22
23 2.To verify the OpenStack operation
24   2.1 ssh into the controller::
25       ssh 192.168.122.3
26   2.2 Enter into the lxc container::
27       lxcname=$(lxc-ls | grep utility)
28       lxc-attach -n $lxcname
29   2.3 Verify the OpenStack API::
30       source /root/openrc
31       openstack user list
32
33 This will show the following output::
34 +----------------------------------+--------------------+
35 | ID                               | Name               |
36 +----------------------------------+--------------------+
37 | 056f8fe41336435991fd80872731cada | aodh               |
38 | 308f6436e68f40b49d3b8e7ce5c5be1e | glance             |
39 | 351b71b43a66412d83f9b3cd75485875 | nova               |
40 | 511129e053394aea825cce13b9f28504 | ceilometer         |
41 | 5596f71319d44c8991fdc65f3927b62e | gnocchi            |
42 | 586f49e3398a4c47a2f6fe50135d4941 | stack_domain_admin |
43 | 601b329e6b1d427f9a1e05ed28753497 | heat               |
44 | 67fe383b94964a4781345fbcc30ae434 | cinder             |
45 | 729bb08351264d729506dad84ed3ccf0 | admin              |
46 | 9f2beb2b270940048fe6844f0b16281e | neutron            |
47 | fa68f86dd1de4ddbbb7415b4d9a54121 | keystone           |
48 +----------------------------------+--------------------+