记一次云计算测试实验-openstack-icehouse-compute节点-安装neutron

现在在compute完成一下比较轻松的操作

yum install openstack-neutron-ml2 openstack-neutron-openvswitch -y

openstack-config --set /etc/neutron/neutron.conf DEFAULT auth_strategy keystone

openstack-config --set /etc/neutron/neutron.conf keystone_authtoken auth_uri http://controller:5000

openstack-config --set /etc/neutron/neutron.conf keystone_authtoken auth_host controller

openstack-config --set /etc/neutron/neutron.conf keystone_authtoken auth_protocol http

openstack-config --set /etc/neutron/neutron.conf keystone_authtoken auth_port 35357

openstack-config --set /etc/neutron/neutron.conf keystone_authtoken admin_tenant_name service

openstack-config --set /etc/neutron/neutron.conf keystone_authtoken admin_user neutron

openstack-config --set /etc/neutron/neutron.conf keystone_authtoken admin_password 000000

openstack-config --set /etc/neutron/neutron.conf DEFAULT rpc_backend neutron.openstack.common.rpc.impl_qpid

openstack-config --set /etc/neutron/neutron.conf DEFAULT qpid_hostname controller

openstack-config --set /etc/nova/nova.conf DEFAULT network_api_class nova.network.neutronv2.api.API

openstack-config --set /etc/nova/nova.conf DEFAULT neutron_url http://controller:9696

openstack-config --set /etc/nova/nova.conf DEFAULT neutron_auth_strategy keystone

openstack-config --set /etc/nova/nova.conf DEFAULT neutron_admin_tenant_name service

openstack-config --set /etc/nova/nova.conf DEFAULT neutron_admin_username neutron

openstack-config --set /etc/nova/nova.conf DEFAULT neutron_admin_password 000000

openstack-config --set /etc/nova/nova.conf DEFAULT neutron_admin_auth_url http://controller:35357/v2.0

openstack-config --set /etc/nova/nova.conf DEFAULT linuxnet_interface_driver nova.network.linux_net.LinuxOVSInterfaceDriver

openstack-config --set /etc/nova/nova.conf DEFAULT firewall_driver nova.virt.firewall.NoopFirewallDriver

openstack-config --set /etc/nova/nova.conf DEFAULT security_group_api neutron

openstack-config --set /etc/nova/nova.conf DEFAULT vif_plugging_is_fatal False

openstack-config --set /etc/nova/nova.conf DEFAULT vif_plugging_timeout 0

openstack-config --set /etc/neutron/neutron.conf DEFAULT core_plugin ml2

openstack-config --set /etc/neutron/neutron.conf DEFAULT service_plugins router

openstack-config --set /etc/neutron/plugins/ml2/ml2_conf.ini ml2 type_drivers flat,gre

openstack-config --set /etc/neutron/plugins/ml2/ml2_conf.ini ml2 tenant_network_types flat,gre

openstack-config --set /etc/neutron/plugins/ml2/ml2_conf.ini ml2 mechanism_drivers openvswitch

openstack-config --set /etc/neutron/plugins/ml2/ml2_conf.ini securitygroup firewall_driver neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver

openstack-config --set /etc/neutron/plugins/ml2/ml2_conf.ini securitygroup enable_security_group True

openstack-config --set /etc/neutron/plugins/ml2/ml2_conf.ini ml2_type_gre tunnel_id_ranges 1:1000

openstack-config --set /etc/neutron/plugins/ml2/ml2_conf.ini ovs local_ip 192.168.100.20

openstack-config --set /etc/neutron/plugins/ml2/ml2_conf.ini ovs tunnel_type gre

openstack-config --set /etc/neutron/plugins/ml2/ml2_conf.ini ovs enable_tunneling True

openstack-config --set /etc/neutron/plugins/ml2/ml2_conf.ini ml2_type_flat flat_networks physnet1

openstack-config --set /etc/neutron/plugins/ml2/ml2_conf.ini ovs flat_networks physnet1

openstack-config --set /etc/neutron/plugins/ml2/ml2_conf.ini ovs bridge_mappings physnet1:br-ex

ln -s /etc/neutron/plugins/ml2/ml2_conf.ini /etc/neutron/plugin.ini

cp /etc/init.d/neutron-openvswitch-agent /etc/init.d/neutron-openvswitch-agent.orig

sed -i ‘s,plugins/openvswitch/ovs_neutron_plugin.ini,plugin.ini,g‘ /etc/init.d/neutron-openvswitch-agent

vi /etc/sysctl.conf

net.ipv4.ip_forward = 1

net.ipv4.conf.all.rp_filter = 0

net.ipv4.conf.default.rp_filter = 0

sysctl -p

vi /etc/sysconfig/network-scripts/ifcfg-br-ex

DEVICE=br-ex

ONBOOT=yes

NM_CONTROLLED=no

BOOTPROTO=static

DEFROUTE=yes

NAME="System br-ex"

IPADDR=192.168.200.20

GATEWAY=192.168.200.1

NETMASK=255.255.255.0

cp /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-eth0.bak

service openvswitch restart

chkconfig openvswitch on

ovs-vsctl add-br br-int

ovs-vsctl add-br br-ex

ovs-vsctl add-port br-ex eth1

ethtool -K eth1 gro off

service network restart

openstack-config --set /etc/neutron/dhcp_agent.ini DEFAULT interface_driver neutron.agent.linux.interface.OVSInterfaceDriver

openstack-config --set /etc/neutron/dhcp_agent.ini DEFAULT dhcp_driver neutron.agent.linux.dhcp.Dnsmasq

openstack-config --set /etc/neutron/dhcp_agent.ini DEFAULT use_namespaces True

openstack-config --set /etc/neutron/metadata_agent.ini DEFAULT auth_url http://controller:5000/v2.0

openstack-config --set /etc/neutron/metadata_agent.ini DEFAULT auth_region regionOne

openstack-config --set /etc/neutron/metadata_agent.ini DEFAULT admin_tenant_name service

openstack-config --set /etc/neutron/metadata_agent.ini DEFAULT admin_user neutron

openstack-config --set /etc/neutron/metadata_agent.ini DEFAULT admin_password 000000

openstack-config --set /etc/neutron/metadata_agent.ini DEFAULT nova_metadata_ip controller

openstack-config --set /etc/neutron/metadata_agent.ini DEFAULT metadata_proxy_shared_secret METADATA_SECRET

service openstack-nova-compute restart

service neutron-openvswitch-agent restart

service neutron-dhcp-agent restart

service neutron-metadata-agent restart

chkconfig neutron-openvswitch-agent on

chkconfig neutron-dhcp-agent on

chkconfig neutron-metadata-agent on

时间: 2024-11-12 01:34:47

记一次云计算测试实验-openstack-icehouse-compute节点-安装neutron的相关文章

记一次云计算测试实验-openstack-icehouse-环境初始化

为了方便实验的进行. 将镜像文件使用winscp上传到controller节点的/opt. 配置本地源. compute节点采用ftp源. centos6.5镜像文件自己准备即可.6.3到6.6之间都可以的 既然做了云计算实验,那我就默认是你懂得Linux基础了.所以什么命令找不到了路径不存在了之类的,有些文件名字请根据自己实际情况,下面内容仅供参考.没学过Linux不要轻易做云计算实验,要不你会发现还是vmware省事. 也可以采用阿里镜像的网络源,记得添加epel源. iaas资源镜像下载

记一次云计算测试实验-openstack-icehouse-环境介绍

统一centos6.5 minimal 一台浪潮服务器,8g内存,2t硬盘,raid1,controller节点 一台浪潮服务器,8g内存,3t硬盘,raid5,compute节点 因为thinkserver的噪音比这两天小浪潮的大的多,所以本着做实验的原则,选择性能不是太高的. 一台DCRS-5750 一台DCFW-1800-E3000  (可以在实验中不用.自选)

记一次云计算测试实验-openstack-icehouse-安装nova

cd source admin-openrc.sh yum install -y openstack-nova-api openstack-nova-cert openstack-nova-conductor openstack-nova-console openstack-nova-novncproxy openstack-nova-scheduler python-novaclient openstack-config --set /etc/nova/nova.conf database c

记一次云计算测试实验-openstack-icehouse-安装neutron

现在,我们回到controller节点 source admin-openrc.sh keystone user-create --name neutron --pass 000000 --email [email protected] keystone user-role-add --user neutron --tenant service --role admin keystone service-create --name neutron --type network --descrip

记一次云计算测试实验-openstack-icehouse-安装keystone

mysql -uroot -p000000 CREATE DATABASE keystone; CREATE DATABASE glance; CREATE DATABASE nova; CREATE DATABASE neutron; CREATE DATABASE cinder; GRANT ALL PRIVILEGES ON keystone.* TO 'keystone'@'localhost' IDENTIFIED BY '000000'; GRANT ALL PRIVILEGES O

记一次云计算测试实验-openstack-icehouse-安装glance

source admin-openrc.sh yum install openstack-glance python-glanceclient -y openstack-config --set /etc/glance/glance-api.conf database connection mysql://glance:[email protected]/glance openstack-config --set /etc/glance/glance-registry.conf database

记一次云计算测试实验-openstack-icehouse-安装swift

----------------------- controller : --------------------------------- source admin-openrc.sh keystone user-create --name=swift --pass=000000 [email protected] keystone user-role-add --user=swift --tenant=service --role=admin keystone role-create --n

记一次云计算测试实验-openstack-icehouse-安装dashboard

来到controller节点,完成这个重要的操作. yum install -y memcached python-memcached mod_wsgi openstack-dashboard vi /etc/openstack-dashboard/local_settings TIME_ZONE = "Asia/Shanghai" ALLOWED_HOSTS = ['*'] OPENSTACK_HOST = "controller" setsebool -P ht

记一次云计算测试实验-openstack-icehouse-安装ntp-qpid-mysql

mysql可以用mariadb替代 先前在51cto博客看到一位老师写了七版本的部署方案,写的很赞,已经收藏. yum install ntp -y vi /etc/ntp.conf #server 0.centos.pool.ntp.org iburst #server 1.centos.pool.ntp.org iburst #server 2.centos.pool.ntp.org iburst #server 3.centos.pool.ntp.org iburst restrict 1