openstack O版 配置compute节点 nova 和 Neutron安装
admin
2023-04-02 14:42:04
0
  1. 配置nova.conf
    [root@compute ~]# yum install openstack-selinux python-openstackclient yum-plugin-priorities openstack-nova-compute openstack-utils ntpdate -y
    [root@compute ~]# cp /etc/nova/nova.conf /etc/nova/nova.conf.bak
    [root@compute ~]# >/etc/nova/nova.conf
    [DEFAULT]
    auth_strategy = keystone
    my_ip = 192.168.0.112
    use_neutron = True
    firewall_driver = nova.virt.firewall.NoopFirewallDriver
    transport_url = rabbit://openstack:devops@controller
    [keystone_authtoken]
    auth_uri = http://controller:5000
    auth_url = http://controller:35357
    memcached_servers = controller:11211
    auth_type = password
    project_domain_name = default
    user_domain_name = default
    project_name = service
    username = nova
    password = devops
    [placement]
    auth_uri = http://controller:5000
    auth_url = http://controller:35357
    memcached_servers = controller:11211
    auth_type = password
    project_domain_name = default
    user_domain_name = default
    project_name = service
    username = placement
    password = devops
    os_region_name = RegionOne
    [vnc]
    enabled = True
    keymap = en-us
    vncserver_listen = 0.0.0.0
    vncserver_proxyclient_address = 192.168.0.112
    novncproxy_base_url = http://192.168.0.111:6080/vnc_auto.html
    [glance]
    api_servers = http://controller:9292
    [oslo_concurrency]
    lock_path = /var/lib/nova/tmp
    [libvirt]
    virt_type = qemu
  2. 设置libvirtd.service 和openstack-nova-compute.service开机启动
    [root@compute ~]# systemctl enable libvirtd.service openstack-nova-compute.service
    [root@compute ~]# systemctl restart libvirtd.service openstack-nova-compute.service
    [root@compute ~]# systemctl status libvirtd.service openstack-nova-compute.service
  3. 到controller上执行验证
    [root@controller ~]# source admin-openrc
    [root@controller ~]# openstack compute service list
    openstack  O版  配置compute节点  nova 和 Neutron安装
    二、安装Neutron
  4. 安装相关软件包
    [root@compute ~]# yum install openstack-neutron-linuxbridge ebtables ipset -y
    [root@compute ~]# cp /etc/neutron/neutron.conf /etc/neutron/neutron.conf.bak
    [root@compute ~]# >/etc/neutron/neutron.conf
    [DEFAULT]
    auth_strategy = keystone
    advertise_mtu = True
    dhcp_agents_per_network = 2
    control_exchange = neutron
    nova_url = http://controller:8774/v2
    transport_url = rabbit://openstack:devops@controller
    [keystone_authtoken]
    auth_uri = http://controller:5000
    auth_url = http://controller:35357
    memcached_servers = controller:11211
    auth_type = password
    project_domain_name = default
    user_domain_name = default
    project_name = service
    username = neutron
    password = devops
    [oslo_concurrency]
    lock_path = /var/lib/neutron/tmp
  5. 配置/etc/neutron/plugins/ml2/linuxbridge_agent.ini
    [root@compute ~]# cat /etc/neutron/plugins/ml2/linuxbridge_agent.ini | grep -v "^#" | grep -v "^$"
    [DEFAULT]
    [agent]
    [linux_bridge]
    physical_interface_mappings = provider:ens33
    [securitygroup]
    enable_security_group = True
    firewall_driver = neutron.agent.linux.iptables_firewall.IptablesFirewallDriver
    [vxlan]
    enable_vxlan = True
    local_ip = 192.168.0.112
    l2_population = True
  6. 配置nova.conf
    [neutron]
    url = http://controller:9696
    auth_url = http://controller:35357
    auth_type = password
    project_domain_name = default
    user_domain_name = default
    region_name = RegionOne
    project_name = service
    username = nova
    password = devops
  7. 重启和enable相关服务
    [root@compute ~]# systemctl restart libvirtd.service openstack-nova-compute.service
    [root@compute ~]# systemctl enable neutron-linuxbridge-agent.service
    [root@compute ~]# systemctl restart neutron-linuxbridge-agent.service
    [root@compute ~]# systemctl status libvirtd.service openstack-nova-compute.service neutron-linuxbridge-agent.service
    三.在controler上执行验证
    [root@controller ~]# source admin-openrc
    [root@controller ~]# neutron agent-list
    openstack  O版  配置compute节点  nova 和 Neutron安装
    [root@controller ~]# nova host-list
    openstack  O版  配置compute节点  nova 和 Neutron安装

相关内容

热门资讯

17岁高中生写作业至凌晨,外出... 5月11日,据青海大通县融媒体中心消息:大通县公安局表示,5月8日6时15分,大通县公安局桥头派出所...
天猫“国货严选”纯棉一次性内裤... 淘宝天猫国货严选旗舰店内一次性内裤宣称“纯棉”,“假一赔十”,实际收到商品为“100%聚酯纤维”。近...
字节砍掉30%的AI项目?背后... 来源:市场资讯 (来源:钛媒体APP) 5月9日,一则关于字节跳动AI战略的消息,在社交媒体上迅速发...
戴尔电脑频繁出现蓝屏死机、重启... IT之家 5 月 11 日消息,Windows 11 更新时常出故障并引发各类问题,其中最让用户恼火...
分享PD氮化镓快充哪个品牌款式... 现在不少小伙伴选氮化镓快充头,尤其是苹果用户,找来找去都会纠结:PD氮化镓快充哪个品牌款式多,苹果氮...
激光近视手术和ICL晶体植入哪... 很多想摘镜的朋友都会纠结:选激光手术,还是ICL晶体植入?到底哪种更安全、更适合自己?广州英华眼科蔡...
原创 天... 备受科技圈关注的联发科技 MTK 天玑开发者大会即将启幕,# 天玑开发者大会# 话题提前霸占数码热搜...
量子力学如何开辟了人类认识和改... 量子力学是 20 世纪最具颠覆性、最具奠基性的基础科学革命成果,与相对论共同构筑起现代物理学两大支柱...
广西企业储存罐爆裂,大量棕褐色... 5月11日,贵港市港北区应急管理局发布情况通报:2026年5月11日14时许,广西对比生物科技有限公...
涉及文物归还,马克龙:这一进程... 据法新社报道,法国总统马克龙当地时间5月11日在肯尼亚内罗毕举行的经济峰会上表示,归还殖民时期掠夺的...