Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Patch 3 #10

Closed
wants to merge 36 commits into from

2 participants

@lvnilesh

No description provided.

and others added some commits
@mseknibilel Added new OVS single node guide 0febc3d
@mseknibilel Added :: 061fc85
@mseknibilel Fixed a bug 23e464e
@mseknibilel Update OpenStack_Grizzly_Install_Guide.rst 4623e0f
@mseknibilel Update OpenStack_Grizzly_Install_Guide.rst 63e4280
@mseknibilel Update OpenStack_Grizzly_Install_Guide.rst 607a094
@mseknibilel Update OpenStack_Grizzly_Install_Guide.rst 0fc84a7
@mseknibilel Update OpenStack_Grizzly_Install_Guide.rst f24c3ef
@mseknibilel Update OpenStack_Grizzly_Install_Guide.rst cb942f7
@mseknibilel Update OpenStack_Grizzly_Install_Guide.rst 2725620
@mseknibilel Update OpenStack_Grizzly_Install_Guide.rst d97f13b
@mseknibilel Update OpenStack_Grizzly_Install_Guide.rst 0bf0668
@mseknibilel Update OpenStack_Grizzly_Install_Guide.rst ee042e1
@mseknibilel Update OpenStack_Grizzly_Install_Guide.rst df6af68
@mseknibilel Update OpenStack_Grizzly_Install_Guide.rst 52e9af1
@mseknibilel Update OpenStack_Grizzly_Install_Guide.rst 188bd36
@mseknibilel Update OpenStack_Grizzly_Install_Guide.rst 431e9cb
@mseknibilel Update OpenStack_Grizzly_Install_Guide.rst 1aead5e
@mseknibilel Update OpenStack_Grizzly_Install_Guide.rst 3e57ce4
@mseknibilel Update OpenStack_Grizzly_Install_Guide.rst 7cd2474
@mseknibilel Update OpenStack_Grizzly_Install_Guide.rst c10750e
@mseknibilel Update OpenStack_Grizzly_Install_Guide.rst
Fixed a big bad typo in the cinder.conf, many thanks to 沈洋斌 !
b2b366a
@mseknibilel Update OpenStack_Grizzly_Install_Guide.rst 3d40268
@mseknibilel Update OpenStack_Grizzly_Install_Guide.rst 5560f20
@mseknibilel Update README.md 6a2f83a
@mseknibilel Update README.md 2e25d24
@mseknibilel Update README.md 0283dc8
@mseknibilel Update README.md b82b567
@mseknibilel Update OpenStack_Grizzly_Install_Guide.rst
Fixed the VNC problem, many thanks to Sam Stoelinga
81bb06a
@mseknibilel Edited management network to follow RFC private network addressing rules 65b91dd
@mseknibilel Update OpenStack_Grizzly_Install_Guide.rst 933d5bc
@mseknibilel Update OpenStack_Grizzly_Install_Guide.rst b0df35f
@mseknibilel Update OpenStack_Grizzly_Install_Guide.rst 6cb9944
@mseknibilel Update OpenStack_Grizzly_Install_Guide.rst 5463672
@mseknibilel Update OpenStack_Grizzly_Install_Guide.rst 8e6e44d
@lvnilesh lvnilesh Update OpenStack_Grizzly_Install_Guide.rst 9cc0ab1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 28, 2013
  1. Added ::

    authored
  2. Fixed a bug

    authored
Commits on Mar 29, 2013
Commits on Apr 2, 2013
  1. Update OpenStack_Grizzly_Install_Guide.rst

    authored
    Fixed a big bad typo in the cinder.conf, many thanks to 沈洋斌 !
  2. Update README.md

    authored
  3. Update README.md

    authored
  4. Update README.md

    authored
  5. Update README.md

    authored
Commits on Apr 3, 2013
  1. Update OpenStack_Grizzly_Install_Guide.rst

    authored
    Fixed the VNC problem, many thanks to Sam Stoelinga
Commits on Apr 4, 2013
Commits on Apr 5, 2013
Commits on Apr 9, 2013
  1. @lvnilesh
This page is out of date. Refresh to see the latest.
Showing with 147 additions and 68 deletions.
  1. +143 −67 OpenStack_Grizzly_Install_Guide.rst
  2. +4 −1 README.md
View
210 OpenStack_Grizzly_Install_Guide.rst
@@ -2,14 +2,14 @@
OpenStack Grizzly Install Guide
==========================================================
-:Version: 0.1
+:Version: 1.0
:Source: https://github.com/mseknibilel/OpenStack-Grizzly-Install-Guide
-:Keywords: Single node OpenStack, Grizzly, Quantum, Nova, Keystone, Glance, Horizon, Cinder, LinuxBridge, KVM, Ubuntu Server 12.04 (64 bits).
+:Keywords: Single node OpenStack, Grizzly, Quantum, Nova, Keystone, Glance, Horizon, Cinder, OpenVSwitch, KVM, Ubuntu Server 12.04 (64 bits).
Authors
==========
-`Bilel Msekni <http://www.linkedin.com/profile/view?id=136237741&trk=tab_pro>`_ <bilel.msekni@telecom-sudparis.eu> && Sandeep J Raman <sandeepr@hp.com>
+`Bilel Msekni <http://www.linkedin.com/profile/view?id=136237741&trk=tab_pro>`_ <bilel.msekni@telecom-sudparis.eu>
Contributors
==========
@@ -17,6 +17,7 @@ Contributors
=================================================== =======================================================
Houssem Medhioub <houssem.medhioub@it-sudparis.eu> Djamal Zeghlache <djamal.zeghlache@telecom-sudparis.eu>
+ Sandeep Raman <sandeepr@hp.com> Sam Stoelinga <sammiestoel@gmail.com>
=================================================== =======================================================
@@ -36,11 +37,12 @@ Table of Contents
6. Nova
7. Cinder
8. Horizon
- 9. Licensing
- 10. Contacts
- 11. Acknowledgement
- 12. Credits
- 13. To do
+ 9. Your first VM
+ 10. Licensing
+ 11. Contacts
+ 12. Acknowledgement
+ 13. Credits
+ 14. To do
0. What is it?
==============
@@ -56,7 +58,7 @@ Status: On Going Work
====================
:Node Role: NICs
-:Single Node: eth0 (100.10.10.51), eth1 (192.168.100.51)
+:Single Node: eth0 (10.10.100.51), eth1 (192.168.100.51)
**Note 1:** More guides for multi node deployments will be available soon.
@@ -64,12 +66,12 @@ Status: On Going Work
**Note 3:** This is my current network architecture, you can add as many compute node as you wish.
-.. image:: Image will be added Soon.
+.. image:: http://i.imgur.com/58Dr48n.jpg
2. Preparing your node
===============
-2.1. Preparing Ubuntu 12.10
+2.1. Preparing Ubuntu
-----------------
* After you install Ubuntu 12.04 Server 64bits, Go in sudo mode and don't leave it until the end of this guide::
@@ -78,9 +80,8 @@ Status: On Going Work
* Add Grizzly repositories::
- add-apt-repository ppa:openstack-ubuntu-testing/grizzly-build-depends
- add-apt-repository ppa:openstack-ubuntu-testing/grizzly-trunk-testing
- apt-get install ubuntu-cloud-keyring python-software-properties python-keyring
+ apt-get install ubuntu-cloud-keyring python-software-properties software-properties-common python-keyring
+ echo deb http://ubuntu-cloud.archive.canonical.com/ubuntu precise-updates/grizzly main >> /etc/apt/sources.list.d/grizzly.list
* Update your system::
@@ -104,7 +105,7 @@ Status: On Going Work
#Not internet connected(used for OpenStack management)
auto eth0
iface eth0 inet static
- address 100.10.10.51
+ address 10.10.100.51
netmask 255.255.255.0
* Restart the networking service::
@@ -165,7 +166,7 @@ Status: On Going Work
* Adapt the connection attribute in the /etc/keystone/keystone.conf to the new database::
- connection = mysql://keystoneUser:keystonePass@100.10.10.51/keystone
+ connection = mysql://keystoneUser:keystonePass@10.10.100.51/keystone
* Modify the keystone token type in the /etc/keystone/keystone.conf::
@@ -178,7 +179,7 @@ Status: On Going Work
* Fill up the keystone database using the two scripts available in the `Scripts folder <https://github.com/mseknibilel/OpenStack-Grizzly-Install-Guide/tree/master/KeystoneScripts>`_ of this git repository::
- #Modify the HOST_IP and HOST_IP_EXT variables before executing the scripts
+ #Modify the HOST_IP and EXT_HOST_IP variables before executing the scripts
chmod +x keystone_basic.sh
chmod +x keystone_endpoints_basic.sh
@@ -227,7 +228,7 @@ Status: On Going Work
[filter:authtoken]
paste.filter_factory = keystoneclient.middleware.auth_token:filter_factory
delay_auth_decision = true
- auth_host = 100.10.10.51
+ auth_host = 10.10.100.51
auth_port = 35357
auth_protocol = http
admin_tenant_name = service
@@ -238,7 +239,7 @@ Status: On Going Work
[filter:authtoken]
paste.filter_factory = keystone.middleware.auth_token:filter_factory
- auth_host = 100.10.10.51
+ auth_host = 10.10.100.51
auth_port = 35357
auth_protocol = http
admin_tenant_name = service
@@ -247,7 +248,7 @@ Status: On Going Work
* Update /etc/glance/glance-api.conf with::
- sql_connection = mysql://glanceUser:glancePass@100.10.10.51/glance
+ sql_connection = mysql://glanceUser:glancePass@10.10.100.51/glance
* And::
@@ -256,7 +257,7 @@ Status: On Going Work
* Update the /etc/glance/glance-registry.conf with::
- sql_connection = mysql://glanceUser:glancePass@100.10.10.51/glance
+ sql_connection = mysql://glanceUser:glancePass@10.10.100.51/glance
* And::
@@ -290,9 +291,27 @@ Status: On Going Work
5. Quantum
=============
+5.1. OpenVSwitch
+------------------
+
+* Install the openVSwitch::
+
+ apt-get install -y openvswitch-switch openvswitch-datapath-dkms
+
+* Create the bridges::
+
+ #br-int will be used for VM integration
+ ovs-vsctl add-br br-int
+
+ #br-ex is used to make to access the internet (not covered in this guide)
+ ovs-vsctl add-br br-ex
+
+5.2. Quantum-*
+------------------
+
* Install the Quantum components::
- apt-get install -y quantum-server quantum-plugin-linuxbridge quantum-plugin-linuxbridge-agent dnsmasq quantum-dhcp-agent quantum-l3-agent
+ apt-get install -y quantum-server quantum-plugin-openvswitch quantum-plugin-openvswitch-agent dnsmasq quantum-dhcp-agent quantum-l3-agent
* Create a database::
@@ -304,46 +323,59 @@ Status: On Going Work
* Verify all Quantum components are running::
cd /etc/init.d/; for i in $( ls quantum-* ); do sudo service $i status; done
-
-* Edit the /etc/quantum/quantum.conf file::
-
- core_plugin = quantum.plugins.linuxbridge.lb_quantum_plugin.LinuxBridgePluginV2
* Edit /etc/quantum/api-paste.ini ::
[filter:authtoken]
paste.filter_factory = keystone.middleware.auth_token:filter_factory
- auth_host = 100.10.10.51
+ auth_host = 10.10.100.51
auth_port = 35357
auth_protocol = http
admin_tenant_name = service
admin_user = quantum
admin_password = service_pass
-* Edit the LinuxBridge plugin config file /etc/quantum/plugins/linuxbridge/linuxbridge_conf.ini with::
+* Edit the OVS plugin configuration file /etc/quantum/plugins/openvswitch/ovs_quantum_plugin.ini with:::
- sql_connection = mysql://quantumUser:quantumPass@100.10.10.51/quantum
- physical_interface_mappings = physnet1:eth1
- tenant_network_type = vlan
- network_vlan_ranges = physnet1:1000:2999
+ #Under the database section
+ [DATABASE]
+ sql_connection = mysql://quantumUser:quantumPass@10.10.100.51/quantum
-* Edit the /etc/quantum/l3_agent.ini::
+ #Under the OVS section
+ [OVS]
+ tenant_network_type = gre
+ tunnel_id_ranges = 1:1000
+ integration_bridge = br-int
+ tunnel_bridge = br-tun
+ local_ip = 10.10.100.51
+ enable_tunneling = True
- interface_driver = quantum.agent.linux.interface.BridgeInterfaceDriver
- use_namespaces = False
+* Edit the /etc/quantum/l3_agent.ini::
# Paste this at the end of the file
- auth_url = http://100.10.10.51:35357/v2.0
+ auth_url = http://10.10.100.51:35357/v2.0
+ auth_region = RegionOne
+ admin_tenant_name = service
+ admin_user = quantum
+ admin_password = service_pass
+
+* Update /etc/quantum/metadata_agent.ini::
+
+ # The Quantum user information for accessing the Quantum API.
+ auth_url = http://10.10.100.51:35357/v2.0
auth_region = RegionOne
admin_tenant_name = service
admin_user = quantum
admin_password = service_pass
-* Edit the /etc/quantum/dhcp_agent.ini::
+ # IP address used by Nova metadata server
+ nova_metadata_ip = 127.0.0.1
+
+ # TCP Port used by Nova metadata server
+ nova_metadata_port = 8775
- interface_driver = quantum.agent.linux.interface.BridgeInterfaceDriver
- use_namespaces = False
+ metadata_proxy_shared_secret = helloOpenStack
* Restart all quantum services::
@@ -419,7 +451,7 @@ Status: On Going Work
[filter:authtoken]
paste.filter_factory = keystone.middleware.auth_token:filter_factory
- auth_host = 100.10.10.51
+ auth_host = 10.10.100.51
auth_port = 35357
auth_protocol = http
admin_tenant_name = service
@@ -431,16 +463,16 @@ Status: On Going Work
* Modify the /etc/nova/nova.conf like this::
- [DEFAULT]
+ [DEFAULT]
logdir=/var/log/nova
state_path=/var/lib/nova
lock_path=/run/lock/nova
verbose=True
api_paste_config=/etc/nova/api-paste.ini
compute_scheduler_driver=nova.scheduler.simple.SimpleScheduler
- rabbit_host=100.10.10.51
- nova_url=http://100.10.10.51:8774/v1.1/
- sql_connection=mysql://novaUser:novaPass@100.10.10.51/nova
+ rabbit_host=10.10.100.51
+ nova_url=http://10.10.100.51:8774/v1.1/
+ sql_connection=mysql://novaUser:novaPass@10.10.100.51/nova
root_helper=sudo nova-rootwrap /etc/nova/rootwrap.conf
# Auth
@@ -448,31 +480,38 @@ Status: On Going Work
auth_strategy=keystone
# Imaging service
- glance_api_servers=100.10.10.51:9292
+ glance_api_servers=10.10.100.51:9292
image_service=nova.image.glance.GlanceImageService
# Vnc configuration
novnc_enabled=true
- novncproxy_base_url=http://100.10.10.51:6080/vnc_auto.html
+ novncproxy_base_url=http://192.168.100.51:6080/vnc_auto.html
novncproxy_port=6080
- vncserver_proxyclient_address=100.10.10.51
+ vncserver_proxyclient_address=10.10.100.51
vncserver_listen=0.0.0.0
# Network settings
network_api_class=nova.network.quantumv2.api.API
- quantum_url=http://100.10.10.51:9696
+ quantum_url=http://10.10.100.51:9696
quantum_auth_strategy=keystone
quantum_admin_tenant_name=service
quantum_admin_username=quantum
quantum_admin_password=service_pass
- quantum_admin_auth_url=http://100.10.10.51:35357/v2.0
- libvirt_vif_driver=nova.virt.libvirt.vif.QuantumLinuxBridgeVIFDriver
- linuxnet_interface_driver=nova.network.linux_net.LinuxBridgeInterfaceDriver
+ quantum_admin_auth_url=http://10.10.100.51:35357/v2.0
+ libvirt_vif_driver=nova.virt.libvirt.vif.LibvirtHybridOVSBridgeDriver
+ linuxnet_interface_driver=nova.network.linux_net.LinuxOVSInterfaceDriver
firewall_driver=nova.virt.libvirt.firewall.IptablesFirewallDriver
+
+ #Metadata
+ service_quantum_metadata_proxy = True
+ quantum_metadata_proxy_shared_secret = helloOpenStack
+ metadata_host = 10.10.100.51
+ metadata_listen = 127.0.0.1
+ metadata_listen_port = 8775
# Compute #
compute_driver=libvirt.LibvirtDriver
-
+
# Cinder #
volume_api_class=nova.volume.cinder.API
osapi_volume_listen_port=5900
@@ -481,9 +520,10 @@ Status: On Going Work
[DEFAULT]
libvirt_type=kvm
- compute_driver=libvirt.LibvirtDriver
+ libvirt_ovs_bridge=br-int
libvirt_vif_type=ethernet
- libvirt_vif_driver=nova.virt.libvirt.vif.QuantumLinuxBridgeVIFDriver
+ libvirt_vif_driver=nova.virt.libvirt.vif.LibvirtHybridOVSBridgeDriver
+ libvirt_use_virtio_for_bridges=True
* Synchronize your database::
@@ -527,7 +567,7 @@ Status: On Going Work
service_protocol = http
service_host = 192.168.100.51
service_port = 5000
- auth_host = 100.10.10.51
+ auth_host = 10.10.100.51
auth_port = 35357
auth_protocol = http
admin_tenant_name = service
@@ -538,8 +578,8 @@ Status: On Going Work
[DEFAULT]
rootwrap_config=/etc/cinder/rootwrap.conf
- sql_connection = mysql://cinderUser:cinderPass@100.10.10.51/cinder
- api_paste_confg = /etc/cinder/api-paste.ini
+ sql_connection = mysql://cinderUser:cinderPass@10.10.100.51/cinder
+ api_paste_config = /etc/cinder/api-paste.ini
iscsi_helper=ietadm
volume_name_template = volume-%s
volume_group = cinder-volumes
@@ -598,7 +638,48 @@ Status: On Going Work
You can now access your OpenStack **192.168.100.51/horizon** with credentials **admin:admin_pass**.
-9. Licensing
+9. Your first VM
+================
+
+To start your first VM, we first need to create a new tenant, user and internal network.
+
+* Create a new tenant ::
+
+ keystone tenant-create --name project_one
+
+* Create a new user and assign the member role to it in the new tenant (keystone role-list to get the appropriate id)::
+
+ keystone user-create --name=user_one --pass=user_one --tenant-id $put_id_of_project_one --email=user_one@domain.com
+ keystone user-role-add --tenant-id $put_id_of_project_one --user-id $put_id_of_user_one --role-id $put_id_of_member_role
+
+* Create a new network for the tenant::
+
+ quantum net-create --tenant-id $put_id_of_project_one net_proj_one
+
+* Create a new subnet inside the new tenant network::
+
+ quantum subnet-create --tenant-id $put_id_of_project_one net_proj_one 50.50.1.0/24
+
+* Create a router for the new tenant::
+
+ quantum router-create --tenant-id $put_id_of_project_one router_proj_one
+
+* Add the router to the running l3 agent::
+
+ quantum agent-list (to get the l3 agent ID)
+ quantum l3-agent-router-add $l3_agent_ID router_proj_one
+
+* Add the router to the subnet::
+
+ quantum router-interface-add $put_router_proj_one_id_here $put_subnet_id_here
+
+* Restart all quantum services::
+
+ cd /etc/init.d/; for i in $( ls quantum-* ); do sudo service $i restart; done
+
+That's it ! Log on to your dashboard, create your secure key and modify your security groups then create your first VM.
+
+10. Licensing
============
OpenStack Grizzly Install Guide is licensed under a Creative Commons Attribution 3.0 Unported License.
@@ -606,29 +687,24 @@ OpenStack Grizzly Install Guide is licensed under a Creative Commons Attribution
.. image:: http://i.imgur.com/4XWrp.png
To view a copy of this license, visit [ http://creativecommons.org/licenses/by/3.0/deed.en_US ].
-10. Contacts
+11. Contacts
===========
Bilel Msekni : bilel.msekni@telecom-sudparis.eu
-Sandeep J Raman : sandeepr@hp.com
-
-11. Credits
+12. Credits
=================
This work has been based on:
* Bilel Msekni's Folsom Install guide [https://github.com/mseknibilel/OpenStack-Folsom-Install-guide]
+* OpenStack Grizzly Install Guide (Master Branch) [https://github.com/mseknibilel/OpenStack-Grizzly-Install-Guide]
-
-12. To do
+13. To do
=======
This guide is just a startup. Your suggestions are always welcomed.
-Some of this guide's needs might be:
-
-*
View
5 README.md
@@ -8,5 +8,8 @@ It's easy, simple and tested. Can't wait? Go check it out by yourself:
![ScreenShot](http://i.imgur.com/kTXM6F3.jpg)
-
+Guide Branch | Single/Multi Node | Quantum plugin | Direct Guide Link |
+------------- | ----------------- | --------------- | ------------------ |
+master | Single | Linux Bridge | https://github.com/mseknibilel/OpenStack-Grizzly-Install-Guide/blob/master/OpenStack_Grizzly_Install_Guide.rst |
+OVS_SingleNode| Single | OpenVSwitch | https://github.com/mseknibilel/OpenStack-Grizzly-Install-Guide/blob/OVS_SingleNode/OpenStack_Grizzly_Install_Guide.rst |
Something went wrong with that request. Please try again.