zl程序教程

您现在的位置是:首页 >  前端

当前栏目

Openstack组件部署 — Networking service_Compute Node

Node组件部署 Service Openstack Compute networking
2023-09-27 14:28:47 时间
yum install openstack-neutron openstack-neutron-linuxbridge ebtables ipset -y

在[database] 部分,注释所有connection 项,因为计算节点不直接访问数据库。

在 [DEFAULT] 和[oslo_messaging_rabbit]部分,配置RabbitMQ消息队列访问:

[DEFAULT]

rpc_backend = rabbit

[oslo_messaging_rabbit]

rabbit_host = controller.jmilk.com

rabbit_userid = openstack

rabbit_password = fanguiju

auth_uri = http://controller.jmilk.com:5000 auth_url = http://controller.jmilk.com:35357 memcached_servers = controller.jmilk.com:11211 auth_plugin = password project_domain_id = default user_domain_id = default project_name = service username = neutron password = fanguiju

注:在 [keystone_authtoken] 中注释或者删除其他选项。


Linux桥接代理为实例创建包括私有网络的VXLAN隧道和处理安全组的layer-2(桥接/交换)虚拟网络设施。

编辑/etc/neutron/plugins/ml2/linuxbridge_agent.ini文件
vim /etc/neutron/plugins/ml2/linuxbridge_agent.ini


[linux_bridge]

physical_interface_mappings = provider:PROVIDER_INTERFACE_NAME

将PUBLIC_INTERFACE_NAME 替换为物理公共网络接口(网卡)。
Example:

[linux_bridge]

physical_interface_mappings = provider:eth1

在[vxlan]部分,启用VXLAN覆盖网络,配置处理覆盖网络和启用layer-2 的物理网络接口的IP地址:
[vxlan]

enable_vxlan = True

local_ip = OVERLAY_INTERFACE_IP_ADDRESS

l2_population = True

Replace OVERLAY_INTERFACE_IP_ADDRESS with the IP address of the underlying physical network interface that handles overlay networks. The example architecture uses the management interface to tunnel traffic to the other nodes. Therefore, replace OVERLAY_INTERFACE_IP_ADDRESS with each node’s own management IP address.
Example:


enable_security_group = True firewall_driver = neutron.agent.linux.iptables_firewall.IptablesFirewallDriver
systemctl enable neutron-linuxbridge-agent.service

systemctl start neutron-linuxbridge-agent.service

[root@controller ~]# neutron ext-list +---------------------------+-----------------------------------------------+ | alias | name | +---------------------------+-----------------------------------------------+ | default-subnetpools | Default Subnetpools | | network-ip-availability | Network IP Availability | | network_availability_zone | Network Availability Zone | | auto-allocated-topology | Auto Allocated Topology Services | | ext-gw-mode | Neutron L3 Configurable external gateway mode | | binding | Port Binding | | agent | agent | | subnet_allocation | Subnet Allocation | | l3_agent_scheduler | L3 Agent Scheduler | | tag | Tag support | | external-net | Neutron external network | | net-mtu | Network MTU | | availability_zone | Availability Zone | | quotas | Quota management support | | l3-ha | HA Router extension | | provider | Provider Network | | multi-provider | Multi Provider Network | | address-scope | Address scope | | extraroute | Neutron Extra Route | | timestamp_core | Time Stamp Fields addition for core resources | | router | Neutron L3 Router | | extra_dhcp_opt | Neutron Extra DHCP opts | | dns-integration | DNS Integration | | security-group | security-group | | dhcp_agent_scheduler | DHCP Agent Scheduler | | router_availability_zone | Router Availability Zone | | rbac-policies | RBAC Policies | | standard-attr-description | standard-attr-description | | port-security | Port Security | | allowed-address-pairs | Allowed Address Pairs | | dvr | Distributed Virtual Router | +---------------------------+-----------------------------------------------+ [root@controller ~]# neutron agent-list +--------------------------------------+--------------------+----------------------+-------------------+-------+----------------+---------------------------+ | id | agent_type | host | availability_zone | alive | admin_state_up | binary | +--------------------------------------+--------------------+----------------------+-------------------+-------+----------------+---------------------------+ | 0efbbdde-5aef-4efc-9b65-ec599c7f3786 | Linux bridge agent | compute1.jmilk.com | | :-) | True | neutron-linuxbridge-agent | | 54acdc63-0cd1-41a6-9761-2966e4730763 | L3 agent | controller.jmilk.com | nova | :-) | True | neutron-l3-agent | | 616b0ebd-b09f-4a0b-922a-59ace46d40e5 | DHCP agent | controller.jmilk.com | nova | :-) | True | neutron-dhcp-agent | | 80571b4a-7e8d-40f8-bcf4-9ec80566b01b | Metadata agent | controller.jmilk.com | | :-) | True | neutron-metadata-agent | | 98b23b97-d53e-4a0b-8799-f262bbd6bdff | Linux bridge agent | controller.jmilk.com | | :-) | True | neutron-linuxbridge-agent | +--------------------------------------+--------------------+----------------------+-------------------+-------+----------------+---------------------------+

该输出应该显示在控制节点上有四个代理,在每个计算节点上有一个代理。


Docker 部署Node服务 以前部署项目时候总会遇到本地环境和线上环境不一致产生排查困难的问题。在使用window系统的电脑开发学习时,但想要学习linux系统的一些操作或者项目的部署时,还需要一台服务器或者一个虚拟机,而Docker不仅部署方便而且更安全,Docker容器是个比较轻量的,占用资源少,成本低等等众多优势。所以,Docker 势必是程序员必会的一个工具之一。
宝塔node项目的部署 前段时间部署node项目的时候出现了一点问题,就是宝塔https一直开启不了,开启了显示time out,最后解决办法很简单,就换成443监听即可,不过不忍心一句话加一张插图完成一篇文章,所以给大家带来宝塔部署node项目的流程,并且开启https访问。
centos 部署node环境 pm2 安装 最近在服务器迁移,安装node环境也遇到些问题,本来想着安装个低版本的,但是一升级 npm, 就报错了 npm WARN npm npm does not support Node.js v8.11.1, 错误的意思很明显是 npm 在node 的版本不支持。所以没办法,自己搞,先卸载,后安装。
ECS服务器使用体验-16.4Ubuntu 系统上部署vue+node项目 简单的介绍了一下第一次使用阿里云ECS的一些经历体验和感受,以及分享一些实践过程中get到的技能和知识点. 主要包括1.环境搭建2.项目远程拉取3.安装依赖4.运行项目5. nginx 配置