OpenStack_Havana_Install_Guide 多节点安装总结3

来源:互联网 发布:ui用什么软件 编辑:程序博客网 时间:2024/06/06 09:05

7. 安装Neutron

# apt-get install neutron-server

编辑 /etc/neutron/neutron.conf
core_plugin = neutron.plugins.openvswitch.ovs_neutron_plugin.OVSNeutronPluginV2
auth_strategy = keystone
#fake_rabbit = False
rabbit_password = guest
control_exchange = neutron
notification_driver = neutron.openstack.common.notifier.rabbit_notifier

[keystone_authtoken]
auth_host = 128.6.3.33
auth_port = 35357
auth_protocol = http
admin_tenant_name = service
admin_user = neutron
admin_password = tsj
signing_dir = /var/lib/neutron/keystone-signing

connection = mysql://neutron:tsj@128.6.3.33/neutron

 

编辑 /etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini
[DATABASE]
sql_connection = mysql://neutron:tsj@128.6.3.33/neutron

 

[OVS]
tenant_network_type = gre
tunnel_id_ranges = 1:1000
enable_tunneling = True

#Firewall driver for realizing neutron security group function
[SECURITYGROUP]
firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver

编辑 /etc/neutron/api-paste.ini
[filter:authtoken]
paste.filter_factory = keystoneclient.middleware.auth_token:filter_factory
auth_host = 128.6.3.33
auth_port = 35357
auth_protocol = http
admin_tenant_name = service
admin_user = neutron
admin_password = tsj

重启
service neutron-server restart

8. 安装Nova

# apt-get install nova-api nova-cert novnc nova-consoleauth nova-scheduler nova-novncproxy nova-doc nova-conductor

编辑 /etc/nova/nova.conf (没有的就新增)
[database]
connection=mysql://nova:tsj@128.6.3.33/nova

[DEFAULT]

#vnc For Both Control & Compute node
novnc_enabled=true
novncproxy_base_url=http://128.6.3.33:6080/vnc_auto.html
my_ip=128.6.3.33
vncserver_listen=128.6.3.33
vncserver_proxyclient_address=128.6.3.33

#auth
auth_strategy=keystone

#api_paste
api_paste_config=/etc/nova/api-paste.ini

#rabbit
rpc_backend=nova.rpc.impl_kombu
rabbit_host=128.6.3.33

# FOR Compute Node
glance_host=128.6.3.33

#neutron For Control Node
network_api_class=nova.network.neutronv2.api.API
neutron_url=http://128.6.3.33:9696
neutron_auth_strategy=keystone
neutron_admin_tenant_name=service
neutron_admin_username=neutron
neutron_admin_password=tsj
neutron_admin_auth_url=http://128.6.3.33:35357/v2.0
firewall_driver=nova.virt.firewall.NoopFirewallDriver
security_group_api=neutron

 

编辑 /etc/nova/api-paste.ini
[filter:authtoken]
paste.filter_factory=keystoneclient.middleware.auth_token:filter_factory
auth_host=128.6.3.33
auth_port=35357
auth_protocol=http
admin_tenant_name=service
admin_user=nova
admin_password=tsj

 

同步
# nova-manage db sync

重启
cd /etc/init.d/; for i in $( ls nova-* ); do sudo service $i restart; done


原创粉丝点击