This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
copper:academy:congress:test [2015/12/10 03:33] Bryan Sullivan |
copper:academy:congress:test [2015/12/10 03:57] (current) Bryan Sullivan |
||
---|---|---|---|
Line 77: | Line 77: | ||
git clone https://github.com/openstack/python-congressclient.git | git clone https://github.com/openstack/python-congressclient.git | ||
cd python-congressclient | cd python-congressclient | ||
+ | git checkout stable/liberty | ||
+ | sudo pip install -r requirements.txt | ||
+ | sudo python setup.py install | ||
+ | openstack congress driver list | ||
+ | +------------+--------------------------------------------------------------------------+ | ||
+ | | id | description | | ||
+ | +------------+--------------------------------------------------------------------------+ | ||
+ | | ceilometer | Datasource driver that interfaces with ceilometer. | | ||
+ | | neutronv2 | Datasource driver that interfaces with OpenStack Networking aka Neutron. | | ||
+ | | nova | Datasource driver that interfaces with OpenStack Compute aka nova. | | ||
+ | | keystone | Datasource driver that interfaces with keystone. | | ||
+ | | cinder | Datasource driver that interfaces with OpenStack cinder. | | ||
+ | | glancev2 | Datasource driver that interfaces with OpenStack Images aka Glance. | | ||
+ | +------------+--------------------------------------------------------------------------+ | ||
+ | |||
+ | # Install and test Glance client | ||
+ | cd ~/git | ||
+ | git clone https://github.com/openstack/python-glanceclient.git | ||
+ | cd python-glanceclient | ||
+ | git checkout stable/liberty | ||
+ | sudo pip install -r requirements.txt | ||
+ | sudo python setup.py install | ||
+ | glance image-list | ||
+ | +--------------------------------------+---------------------+ | ||
+ | | ID | Name | | ||
+ | +--------------------------------------+---------------------+ | ||
+ | | 6ce4433e-65c0-4cd8-958d-b06e30c76241 | cirros-0.3.3-x86_64 | | ||
+ | +--------------------------------------+---------------------+ | ||
+ | |||
+ | # Install and test Neutron client | ||
+ | cd ~/git | ||
+ | git clone https://github.com/openstack/python-neutronclient.git | ||
+ | cd python-neutronclient | ||
+ | git checkout stable/liberty | ||
+ | sudo pip install -r requirements.txt | ||
+ | sudo python setup.py install | ||
+ | neutron net-list | ||
+ | +--------------------------------------+----------+------------------------------------------------------+ | ||
+ | | id | name | subnets | | ||
+ | +--------------------------------------+----------+------------------------------------------------------+ | ||
+ | | dc6227df-af41-439f-bd2c-c2c2f0fe7fc5 | public | 5745846c-dd79-4900-a7da-bf506348ceac 192.168.10.0/24 | | ||
+ | | a3f9f13a-5de9-4d3b-98c8-d2e40a2ef8e9 | internal | 5e0be862-90da-44ab-af43-56d5c65aa049 10.0.0.0/24 | | ||
+ | +--------------------------------------+----------+------------------------------------------------------+ | ||
+ | |||
+ | # Install and test Nova client | ||
+ | cd ~/git | ||
+ | git clone https://github.com/openstack/python-novaclient.git | ||
+ | cd python-novaclient | ||
+ | git checkout stable/liberty | ||
+ | sudo pip install -r requirements.txt | ||
+ | sudo python setup.py install | ||
+ | nova hypervisor-list | ||
+ | +----+---------------------+-------+---------+ | ||
+ | | ID | Hypervisor hostname | State | Status | | ||
+ | +----+---------------------+-------+---------+ | ||
+ | | 1 | compute1.maas | up | enabled | | ||
+ | +----+---------------------+-------+---------+ | ||
+ | |||
+ | # Install and test Keystone client | ||
+ | cd ~/git | ||
+ | git clone https://github.com/openstack/python-keystoneclient.git | ||
+ | cd python-keystoneclient | ||
git checkout stable/liberty | git checkout stable/liberty | ||
sudo pip install -r requirements.txt | sudo pip install -r requirements.txt | ||
Line 82: | Line 144: | ||
</code> | </code> | ||
+ | |||
+ | === Setup the Congress Test Webapp === | ||
+ | |||
+ | <code> | ||
+ | # Clone Copper (if not already cloned in user home) | ||
+ | cd ~/git | ||
+ | if [ ! -d ~/git/copper ]; then git clone https://gerrit.opnfv.org/gerrit/copper; fi | ||
+ | |||
+ | # Copy the Apache config | ||
+ | sudo cp ~/git/copper/components/congress/test-webapp/www/ubuntu-apache2.conf /etc/apache2/apache2.conf | ||
+ | |||
+ | # Point proxy.php to the Congress server per your install | ||
+ | sed -i -- "s/192.168.10.117/$CONGRESS_HOST/g" \ | ||
+ | ~/git/copper/components/congress/test-webapp/www/html/proxy/index.php | ||
+ | |||
+ | # Copy the webapp to the Apache root directory and fix permissions | ||
+ | sudo cp -R ~/git/copper/components/congress/test-webapp/www/html /var/www | ||
+ | sudo chmod 755 /var/www/html -R | ||
+ | |||
+ | # Make webapp log directory and set permissions | ||
+ | mkdir ~/logs | ||
+ | chmod 777 ~/logs | ||
+ | |||
+ | # Restart Apache | ||
+ | sudo service apache2 restart | ||
+ | </code> | ||
+ | |||
+ | === Using the Test Webapp === | ||
+ | Browse to the trusty-copper server IP address. | ||
+ | |||
+ | Interactive options are meant to be self-explanatory given a basic familiarity with the Congress service and data model. But the app will be developed with additional features and UI elements. |