加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

neutron计算节点

发布时间:2020-12-16 01:44:12 所属栏目:安全 来源:网络整理
导读:第一步:下载 [[email?protected] ~]# yum install openvswitch openstack-neutron-openvswitch ebtables ipset -y 第二步:配置neutron的文件 [[email?protected] ~]# egrep -v ‘(^#|^$)‘ /etc/nova/nova.conf [DEFAULT] enabled_apis = osapi_compute,me

第一步:下载
[[email?protected] ~]# yum install openvswitch openstack-neutron-openvswitch ebtables ipset -y

第二步:配置neutron的文件
[[email?protected] ~]# egrep -v ‘(^#|^$)‘ /etc/nova/nova.conf
[DEFAULT]
enabled_apis = osapi_compute,metadata
transport_url = rabbit://openstack:[email?protected]
my_ip = 192.168.126.6
use_neutron = True
firewall_driver = nova.virt.firewall.NoopFirewallDriver
[api]
auth_strategy = keystone
[api_database]
[barbican]
[cache]
[cells]
[cinder]
[cloudpipe]
[conductor]
[console]
[consoleauth]
[cors]
[cors.subdomain]
[crypto]
[database]
[ephemeral_storage_encryption]
[filter_scheduler]
[glance]
api_servers = http://zxw6:9292
[guestfs]
[healthcheck]
[hyperv]
[image_file_url]
[ironic]
[key_manager]
[keystone_authtoken]
auth_uri = http://zxw6:5000
auth_url = http://zxw6:35357
memcached_servers = zxw6:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = nova
password = zxw6
[libvirt]
virt_type = qemu
[matchmaker_redis]
[metrics]
[mks]
[neutron]
url = http://zxw6:9696
auth_url = http://zxw6:35357
auth_type = password
project_domain_name = default
user_domain_name = default
region_name = RegionOne
project_name = service
username = neutron
password = zxw6
[notifications]
[osapi_v21]
[oslo_concurrency]
lock_path = /var/lib/nova/tmp
[oslo_messaging_amqp]
[oslo_messaging_kafka]
[oslo_messaging_notifications]
[oslo_messaging_rabbit]
[oslo_messaging_zmq]
[oslo_middleware]
[oslo_policy]
[pci]
[placement]
os_region_name = RegionOne
project_domain_name = Default
project_name = service
auth_type = password
user_domain_name = Default
auth_url = http://zxw6:35357/v3
username = placement
password = zxw6
[quota]
[rdp]
[remote_debug]
[scheduler]
[serial_console]
[service_user]
[spice]
[ssl]
[trusted_computing]
[upgrade_levels]
[vendordata_dynamic_auth]
[vmware]
[vnc]
enabled = True
vncserver_listen = 0.0.0.0
vncserver_proxyclient_address = $my_ip
novncproxy_base_url = http://192.168.126.6:6080/vnc_auto.html
[workarounds]
[wsgi]
[xenserver]
[xvp]

第三步:修改哦ovs的配置文件
[[email?protected] ~]# cat /etc/neutron/plugins/ml2/openvswitch_agent.ini
[DEFAULT]

[agent]
tunnel_types = vxlan
l2_population = True

[ovs]
tunnel_bridge = br-tun
local_ip = 192.168.92.134
bridge_mappings =

[securitygroup]
firewall_driver = iptables_hybrid
enable_security_group = true

[xenapi]

?

?

第四步:重启nova
[[email?protected] ~]# systemctl restart openstack-nova-compute.service

?

第五步:重启ovs并开机自启
[[email?protected] ~]# systemctl start openvswitch neutron-openvswitch-agent

[[email?protected] ~]# systemctl enable openvswitch neutron-openvswitch-agent

?

控制节点查看
[[email?protected] ~]# neutron agent-list
neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
+------------------------+--------------------+------+-------------------+-------+----------------+-------------------------+
| id | agent_type | host | availability_zone | alive | admin_state_up | binary |
+------------------------+--------------------+------+-------------------+-------+----------------+-------------------------+
| 482328bc-05b9-473d- | Open vSwitch agent | zxw8 | | :-) | True | neutron-openvswitch- |
| a3a2-e686b1525f25 | | | | | | agent |
| 5e559f85-fabf-4695-a75 | DHCP agent | zxw6 | nova | :-) | True | neutron-dhcp-agent |
| 8-95a605c374e6 | | | | | | |
| 6d9dd18e-bba8-4546-99e | Open vSwitch agent | zxw6 | | :-) | True | neutron-openvswitch- |
| 4-d4cfe27bfea9 | | | | | | agent |
| 81607355-1258-4904 | L3 agent | zxw6 | nova | :-) | True | neutron-l3-agent |
| -83fb-4b084b2ef6ee | | | | | | |
| 835300f9-0c75-40a6 | Open vSwitch agent | zxw7 | | :-) | True | neutron-openvswitch- |
| -ae4a-56968f676fe6 | | | | | | agent |
| 98ce7a22-eae1-4727-811 | Metadata agent | zxw6 | | :-) | True | neutron-metadata-agent |
| 4-eed65c1703f3 | | | | | | |
+------------------------+--------------------+------+-------------------+-------+----------------+-------------------------+

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读