zoukankan      html  css  js  c++  java
  • Centos7安装部署openstack--nova计算服务(计算节点)

    一、安装服务

    yum install openstack-nova-compute -y
    yum install openstack-utils.noarch -y

    二、修改配置文件

     cp /etc/nova/nova.conf{,.bak}
     grep '^[a-z[]' /etc/nova/nova.conf.bak >/etc/nova/nova.conf
    
     openstack-config --set /etc/nova/nova.conf DEFAULT enabled_apis  osapi_compute,metadata
     openstack-config --set /etc/nova/nova.conf DEFAULT rpc_backend rabbit
     openstack-config --set /etc/nova/nova.conf DEFAULT auth_strategy keystone
     openstack-config --set /etc/nova/nova.conf DEFAULT my_ip 10.0.0.31
     openstack-config --set /etc/nova/nova.conf DEFAULT use_neutron True
     openstack-config --set /etc/nova/nova.conf DEFAULT firewall_driver nova.virt.firewall.NoopFirewallDriver
     openstack-config --set /etc/nova/nova.conf glance api_servers http://controller:9292
     openstack-config --set /etc/nova/nova.conf keystone_authtoken auth_uri http://controller:5000
     openstack-config --set /etc/nova/nova.conf keystone_authtoken auth_url http://controller:35357
     openstack-config --set /etc/nova/nova.conf keystone_authtoken memcached_servers controller:11211
     openstack-config --set /etc/nova/nova.conf keystone_authtoken auth_type password
     openstack-config --set /etc/nova/nova.conf keystone_authtoken project_domain_name default
     openstack-config --set /etc/nova/nova.conf keystone_authtoken user_domain_name default
     openstack-config --set /etc/nova/nova.conf keystone_authtoken project_name service
     openstack-config --set /etc/nova/nova.conf keystone_authtoken username nova
     openstack-config --set /etc/nova/nova.conf keystone_authtoken password NOVA_PASS
     openstack-config --set /etc/nova/nova.conf oslo_concurrency lock_path /var/lib/nova/tmp
     openstack-config --set /etc/nova/nova.conf oslo_messaging_rabbit rabbit_host controller
     openstack-config --set /etc/nova/nova.conf oslo_messaging_rabbit rabbit_userid openstack
     openstack-config --set /etc/nova/nova.conf oslo_messaging_rabbit rabbit_password RABBIT_PASS
     openstack-config --set /etc/nova/nova.conf vnc enabled True
     openstack-config --set /etc/nova/nova.conf vnc vncserver_listen 0.0.0.0
     openstack-config --set /etc/nova/nova.conf vnc vncserver_proxyclient_address '$my_ip'
     openstack-config --set /etc/nova/nova.conf vnc novncproxy_base_url http://controller:6080/vnc_auto.html

      记得添加placement的配置文件

    [DEFAULT]
    # ...
    transport_url = rabbit://openstack:RABBIT_PASS@controller
    [placement]
    # ...
    os_region_name = RegionOne
    project_domain_name = Default
    project_name = service
    auth_type = password
    user_domain_name = Default
    auth_url = http://controller:35357/v3
    username = placement
    password = PLACEMENT_PASS

    三、启动服务

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

    四、查看服务

     

     

  • 相关阅读:
    VB.Net计算含日文的字符串长度
    修改三个属性,就可以让错误提示更详细
    ORACLE分页查询SQL语法
    探知主力仓位的原理
    Linux手机研发五大难关
    当SNS在垂直行业嫁接电子商务
    实时股票数据获取方式
    商业周刊:网民周末更爱移动Web 分类信息超社交
    Linux下的C编程实战
    想起了赵丹阳
  • 原文地址:https://www.cnblogs.com/aqicheng/p/13268372.html
Copyright © 2011-2022 走看看