• Openstack(十)部署nova服务(计算节点)


    在计算节点安装

    10.1安装nova计算服务

    # 阿里云源详见2.3配置

    # yum install openstack-nova-compute

    10.2配置nova计算服务

    10.2.1配置nova.conf

    # vim /etc/nova/nova.conf

    1:[DEFAULT]

    2306:use_neutron=true

    2465:firewall_driver=nova.virt.firewall.NoopFirewallDriver

    2629:enabled_apis=osapi_compute,metadata

    3021:transport_url = rabbit://openstack:123456@192.168.10.205

    3069:[api]

    3085:auth_strategy=keystone

    4937:[glance]

    4955:api_servers=http://192.168.10.100:9292

    5596:[keystone_authtoken]

    5597:auth_uri = http://192.168.10.100:5000

    5598:auth_url = http://192.168.10.100:35357

    5599:memcached_servers = 192.168.10.100:11211

    5600:auth_type = password

    5601:project_domain_name = default

    5602:user_domain_name = default

    5603:project_name = service

    5604:username = nova

    5605:password = nova

    7233:[oslo_concurrency]

    7248:lock_path=/var/lib/nova/tmp

    8079:[placement]

    8080:os_region_name = RegionOne

    8081:project_domain_name = Default

    8082:project_name = service

    8083:auth_type = password

    8084:user_domain_name = Default

    8085:auth_url = http://192.168.10.100:35357/v3

    8086:username = placement

    8087:password = placement

    9667:[vnc]

    9683:enabled=true

    9706:vncserver_listen=0.0.0.0

    9718:vncserver_proxyclient_address=192.168.10.202

    9738:novncproxy_base_url=http://192.168.10.100:6080/vnc_auto.html

    10.2.2确认计算节点是否支持硬件加速

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

    40

    10.3启动nova计算服务并设置为开机启动

    # systemctl enable libvirtd.service openstack-nova-compute.service

    # systemctl start libvirtd.service openstack-nova-compute.service

    10.4添加计算服务到cell数据库

    # 在控制端配置

    # source  admin-openstack.sh

    #定期主动发现:

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

    # openstack hypervisor list

    +----+-------------------------+-----------------+----------------+-------+

    | ID | Hypervisor Hostname     | Hypervisor Type | Host IP        | State |

    +----+-------------------------+-----------------+----------------+-------+

    |  1 | linux-host2.exmaple.com | QEMU            | 192.168.10.202 | up    |

    +----+-------------------------+-----------------+----------------+-------+

    # 设置定期主动发现

    # vim /etc/nova/nova.conf

    8577 [scheduler]

    8684 discover_hosts_in_cells_interval=300

    #重启nova服务

    # bash nova- restart.sh

    10.5验证计算节点

    # nova host-list

    # nova service-list

    # openstack image list

    #  openstack compute service list

    #列出服务组件是否成功注册

    # nova-status upgrade check

    # openstack catalog list

    #列出keystone服务中的端点,以验证keystone的连通性

  • 相关阅读:
    Docker大会的新福利:LinuxKit 和 Moby 开源项目
    NS3
    (OK) NS3
    MPTCP
    Utilizing multi-core processors in NS-2
    (OK) Fedora 24
    error compiling gcc: undefined reference to libc_name_p
    gccxml
    NS3
    NS3
  • 原文地址:https://www.cnblogs.com/wangshuyang/p/8671054.html
Copyright © 2020-2023  润新知