User Tools

Site Tools


ipv6_opnfv_project:setup_osodl_ctrlnwcom_node

Step 2: Set up OpenStack with ODL Controller as a Control+Network+Compute Node

OpenStack+ODL Control+Network+Compute Node setup instructions (snsj113, IP 198.59.156.113 running Ubuntu14.04, refer to the details of lab environment)

1. If the host is booted for the first time, update the packages and install git.

 sudo apt-get update -y
 sudo apt-get install -y git 

2. Create a local user account (named odl and add the user to sudoers group).

 https://www.digitalocean.com/community/tutorials/how-to-add-and-delete-users-on-an-ubuntu-14-04-vps

3. Switch to odl user-account.

 su - odl

4. Download devstack and switch to stable/kilo branch.

 git clone https://github.com/openstack-dev/devstack.git -b stable/kilo

5. Change directory to devstack.

 cd ~/devstack

6. Create a local.conf file with the following contents.

 http://fpaste.org/276949/39476214/

7. Initiate Openstack setup by invoking stack.sh

 ./stack.sh

8. If the setup is successful you would see the following logs on the console.

 This is your host ip: 198.59.156.113
 Horizon is now available at http://198.59.156.113/
 Keystone is serving at http://198.59.156.113:5000/
 The default users are: admin and demo 
 The password: password

9. Assuming that all goes well, you can set OFFLINE=True and RECLONE=no in local.conf to lock the codebase. Devstack uses these configuration parameters to determine if it has to run with the existing codebase or update to the latest copy.

10. Verify some commands to check if setup is working fine.

  odl@opnfv-openstack-ubuntu:~/devstack$ source openrc admin demo
  odl@opnfv-openstack-ubuntu:~/devstack$ nova flavor-list
  +----+-----------+-----------+------+-----------+------+-------+-------------+-----------+
  | ID | Name      | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public |
  +----+-----------+-----------+------+-----------+------+-------+-------------+-----------+
  | 1  | m1.tiny   | 512       | 1    | 0         |      | 1     | 1.0         | True      |
  | 2  | m1.small  | 2048      | 20   | 0         |      | 1     | 1.0         | True      |
  | 3  | m1.medium | 4096      | 40   | 0         |      | 2     | 1.0         | True      |
  | 4  | m1.large  | 8192      | 80   | 0         |      | 4     | 1.0         | True      |
  | 5  | m1.xlarge | 16384     | 160  | 0         |      | 8     | 1.0         | True      |
  +----+-----------+-----------+------+-----------+------+-------+-------------+-----------+

11. Now you can start the Compute node setup.

ipv6_opnfv_project/setup_osodl_ctrlnwcom_node.txt · Last modified: 2015/10/16 03:58 by Bin Hu