Have questions? Stuck? Please check our FAQ for some common questions and answers.

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Next »

The demo server at ON.LAB (IP address 10.254.1.22, login: admin) currently runs XOS, the OpenStack controller services, and a nova-compute node in a VM.  For the demo it is also intended to run two ONOS instances but these have not been configured yet.  

VM Setup

Each service runs in its own KVM virtual machine.  Use virsh list to see a list of the running VMs, each named after the service it hosts:

admin@cordsrv01:~$ virsh list
Id    Name                    State
----------------------------------------------------
2     xos                     running
3     juju                    running
4     mysql                   running
5     rabbitmq-server         running
6     keystone                running
7     glance                  running
8     nova-cloud-controller   running
9     quantum-gateway         running
10    openstack-dashboard     running
11    ceilometer              running
12    nagios                  running
23    compute-1               running

All of the VMs are attached to bridge virbr0 with private addresses on the 192.168.122.0/24 subnet, and so are not reachable externally.  The IP addresses of the VMs are in /etc/hosts, or can be obtained using uvt-kvm ip <VM name>:

admin@cordsrv01:~$ uvt-kvm ip xos
192.168.122.37

Logging into a VM

Log in to a VM using ssh ubuntu@<VM name>.  The default SSH key for the admin user (/home/admin/.ssh/id_rsa.pub) has been added for the ubuntu user inside all the VMs, so this should just work:

admin@cordsrv01:~$ ssh ubuntu@compute-1
Welcome to Ubuntu 14.04.2 LTS (GNU/Linux 3.13.0-49-generic x86_64)
...
ubuntu@compute-1:~$

Creating new VMs

The existing VMs are created using the uvt-kvm tool.  To create a new VM (e.g., for ONOS) run uvt-kvm <VM name> --cpu=<num vCPUs> --memory=<memory MB> --disk=<disk GB>.  Be aware that this server has a small disk, though plenty of memory and CPU cores.

XOS Setup

The XOS GUI is at http://10.254.1.22:8000.  Contact Scott Baker or Andy Bavier for login credentials.

The changes to support vCPE creation are not yet installed in XOS.  Information on the vCPE service interface will be added soon.

OpenStack Setup

OpenStack services run in their own VMs.  Juju is used to install the services.  One feature of Juju is that it generates the OpenStack configuration files automatically – this means that all changes to the OpenStack configuration need to be implemented via Juju, or else they will be overwritten.  Contact Andy Bavier to discuss this.

Admin credentials for OpenStack can be found in /home/admin/admin-openrc.sh on the server.  The various OpenStack clients are installed and can be run with these credentials.  E.g.:

admin@cordsrv01:~$ source admin-openrc.sh
admin@cordsrv01:~$ nova service-list
+----------------+-----------------------+----------+---------+-------+----------------------------+-----------------+
| Binary         | Host                  | Zone     | Status  | State | Updated_at                 | Disabled Reason |
+----------------+-----------------------+----------+---------+-------+----------------------------+-----------------+
| nova-scheduler | nova-cloud-controller | internal | enabled | up    | 2015-04-17T19:29:34.000000 | -               |
| nova-cert      | nova-cloud-controller | internal | enabled | up    | 2015-04-17T19:29:36.000000 | -               |
| nova-conductor | nova-cloud-controller | internal | enabled | up    | 2015-04-17T19:29:40.000000 | -               |
| nova-compute   | compute-1             | nova     | enabled | up    | 2015-04-17T19:29:43.000000 | -               |
+----------------+-----------------------+----------+---------+-------+----------------------------+-----------------+

The installation is automated using Ansible so it's easy to tear down and recreate the OpenStack installation if required.  Talk to Andy Bavier about this.

 

  • No labels