zoukankan      html  css  js  c++  java
  • openstack Q版部署-----nova服务配置-计算节点(6)

    一、服务安装(计算节点)

    安装软件:

    yum install openstack-nova-compute -y

    编辑/etc/nova/nova.conf文件并设置如下内容:

    [DEFAULT]
    enabled_apis = osapi_compute,metadata
    transport_url = rabbit://openstack:openstack2018@10.1.80.110
    my_ip = 10.1.80.111
    use_neutron = True
    firewall_driver = nova.virt.firewall.NoopFirewallDriver
    [api]
    auth_strategy = keystone
    [keystone_authtoken]
    auth_uri = http://10.1.80.110:5000
    auth_url = http://10.1.80.110:35357
    memcached_servers = 10.1.80.110:11211
    auth_type = password
    project_domain_name = default
    user_domain_name = default
    project_name = service
    username = nova
    password = nova2018
    [vnc]
    enabled = True
    server_listen = 0.0.0.0
    server_proxyclient_address = $my_ip
    novncproxy_base_url = http://10.1.80.110:6080/vnc_auto.html
    [glance]
    api_servers = http://10.1.80.110:9292
    [oslo_concurrency]
    lock_path = /var/lib/nova/tmp
    [placement]
    os_region_name = RegionOne
    project_domain_name = Default
    project_name = service
    auth_type = password
    user_domain_name = Default
    auth_url = http://10.1.80.110:35357/v3
    username = placement
    password = placement2018

    检测当前计算节点是否支持硬件虚拟化

    egrep -c '(vmx|svm)' /proc/cpuinfo

    我使用的虚拟机,这里返回0,明显我不支持硬件虚拟化

    可以编辑/etc/nova/nova.conf文件设置qemu来提供软件虚拟化

    [libvirt]
    virt_type = qemu

    因为我这里使用的vmware虚拟化,我修改了虚拟化配置,使之可以支持硬件虚拟化(所有服务器执行)

    exsi5.5以上版本支持虚拟机的二次虚拟化

    设置服务的开机自启动,并启动计算服务:

    systemctl enable libvirtd.service openstack-nova-compute.service
    systemctl start libvirtd.service openstack-nova-compute.service
    systemctl status libvirtd.service openstack-nova-compute.service

    二、向cell数据库添加计算节点(控制节点)

    添加admin环境变量

    source admin-openrc

    执行下面的命令,查看计算节点信息是否已经在数据库

    openstack compute service list --service nova-compute

    发现计算节点

    su -s /bin/sh -c "nova-manage cell_v2 discover_hosts --verbose" nova

    三、验证可用性

    添加admin环境变量

    source admin-openrc

    列出计算服务的运行状态

    openstack compute service list

    列出认证服务的端口

    openstack catalog list

    列出镜像信息,确认能访问镜像服务

    openstack image list

    确认cells和placement api成功运行

    nova-status upgrade check

    ---当才华撑不起你的野心的时候,请努力!---
  • 相关阅读:
    地图初步
    多线程技术 初步
    核心动画 CAAnimation 进阶
    CALayer 进阶
    Quartz 2D 初步
    UIView 面面观
    CABasicAnimation 基础
    CGAffineTransform 放射变换解析 即矩阵变换
    RunTime 入门
    对Viewcontroller在UINavigationController中入栈出栈的一点点理解
  • 原文地址:https://www.cnblogs.com/jinyuanliu/p/10311897.html
Copyright © 2011-2022 走看看