欧美一区二区三区老妇人-欧美做爰猛烈大尺度电-99久久夜色精品国产亚洲a-亚洲福利视频一区二区

OpenStackstein安裝(六)novaoncompute

Install and configure components
  1. Install the packages:
    # yum install openstack-nova-compute
  2. Edit the /etc/nova/nova.conf file and complete the following actions:

    網(wǎng)站建設(shè)哪家好,找成都創(chuàng)新互聯(lián)公司!專注于網(wǎng)頁設(shè)計(jì)、網(wǎng)站建設(shè)、微信開發(fā)、重慶小程序開發(fā)公司、集團(tuán)企業(yè)網(wǎng)站建設(shè)等服務(wù)項(xiàng)目。為回饋新老客戶創(chuàng)新互聯(lián)還提供了麗水免費(fèi)建站歡迎大家使用!

    ○ In the [DEFAULT] section, enable only the compute and metadata APIs:
        [DEFAULT]
        # ...
        enabled_apis = osapi_compute,metadata
    
    ○ In the [DEFAULT] section, configure RabbitMQ message queue access:
        [DEFAULT]
        # …
        transport_url=rabbit://openstack:openstack123@dbs.flex.net
    
    ○ In the [api] and [keystone_authtoken] sections, configure Identity service access::
        [api]
        # ...
        auth_strategy = keystone
    
        [keystone_authtoken]
        # ...
        auth_url = http://stack.flex.net:5000/v3
        memcached_servers = dbs.flex.net:11211
        auth_type = password
        project_domain_name = Default
        user_domain_name = Default
        project_name = service
        username = nova
        password = nova123
        注意: 注釋或移除在掉在[keystone_authtoken]區(qū)域中的其它的選項(xiàng)
    
    ○ In the [DEFAULT] section, configure the my_ip option:
        [DEFAULT]
        # ...
        my_ip = 192.168.205.187
    注意:使用管理接口的IP在你的計(jì)算節(jié)點(diǎn)上.
    
    ○ In the [DEFAULT] section, enable support for the Networking service:
        [DEFAULT]
        # ...
        use_neutron = true
        firewall_driver = nova.virt.firewall.NoopFirewallDriver
    注意:缺省的,計(jì)算節(jié)點(diǎn)使用一內(nèi)部的防火墻驅(qū)動(dòng),因?yàn)榫W(wǎng)絡(luò)服務(wù)包含了一個(gè)防火墻驅(qū)動(dòng),你必須禁用防火墻驅(qū)動(dòng)并使用nova.virt.firewall.NoopFirewallDriver firewall driver
    
    ○ In the [vnc] section, enable and configure remote console access:
        [vnc]
        # ...
        enabled = true
        server_listen = 0.0.0.0
        server_proxyclient_address = $my_ip
        novncproxy_base_url = http://stack.flex.net:6080/vnc_auto.html
    
        服務(wù)器組件監(jiān)聽所有IP地址,代理組件只監(jiān)聽計(jì)算節(jié)點(diǎn)的管理接口IP地址。基本URL指示可以使用web瀏覽器訪問此計(jì)算節(jié)點(diǎn)上實(shí)例的遠(yuǎn)程控制臺(tái)的位置。
    注意:如果要訪問遠(yuǎn)程控制臺(tái)的web瀏覽器駐留在無法解析控制器主機(jī)名的主機(jī)上,則必須使用控制器節(jié)點(diǎn)的管理接口IP地址替換控制器。
    
    ○ In the [glance] section, configure the location of the Image service API:
        [glance]
        # ...
        api_servers = http://stack.flex.net:9292
    
    ○ In the [oslo_concurrency] section, configure the lock path:
        [oslo_concurrency]
        # ...
        lock_path = /var/lib/nova/tmp
    
    ○ In the [placement] section, configure the Placement API:
        [placement]
        # ...
        region_name = RegionOne
        project_domain_name = Default
        project_name = service
        auth_type = password
        user_domain_name = Default
        auth_url = http://stack.flex.net:5000/v3
        username = placement
        password = placement123
    Finalize installation
  3. Determine whether your compute node supports hardware acceleration for virtual machines:

    $ egrep -c '(vmx|svm)' /proc/cpuinfo
    
    如果這個(gè)命令返回1或大于1的值,你的計(jì)算節(jié)點(diǎn)支持硬件加速,通常不需要額外的配置,通常如果你的計(jì)算節(jié)點(diǎn)使用的是Vmware Workstation虛擬機(jī),你可以充許virtuallze Intel VT-x/EPT or AMD-V/RVI這樣打開虛擬化設(shè)置
    
    如果這個(gè)命令返回一個(gè)0值,你的計(jì)算節(jié)點(diǎn)不支持硬件加速,并且你必須配置libvirt使用QEMU取代KVM, 編輯文件/etc/nova/nova.conf文件如下:
    [libvirt]
    # ...
    virt_type = qemu
  4. Start the Compute service including its dependencies and configure them to start automatically when the system boots:

    # systemctl enable libvirtd.service openstack-nova-compute.service
    # systemctl start libvirtd.service openstack-nova-compute.service
    
    注意:如果nova-compute服務(wù)無法啟動(dòng),請(qǐng)檢查/var/log/nova/nova- computer .log。controller:5672上的錯(cuò)誤消息AMQP服務(wù)器不可訪問,這可能表明控制器節(jié)點(diǎn)上的防火墻正在阻止對(duì)端口5672的訪問。將防火墻配置為打開控制器節(jié)點(diǎn)上的端口5672并在計(jì)算節(jié)點(diǎn)上重新啟動(dòng)nova-compute服務(wù)。
    Add the compute node to the cell database
  5. Source the admin credentials to enable admin-only CLI commands, then confirm there are compute hosts in the database:

    $ . admin-openrc
    
    $ openstack compute service list --service nova-compute
    +----+-------+--------------+------+-------+---------+----------------------------+
    | ID | Host  | Binary       | Zone | State | Status  | Updated At                 |
    +----+-------+--------------+------+-------+---------+----------------------------+
    | 1  | node1 | nova-compute | nova | up    | enabled | 2017-04-14T15:30:44.000000 |
    +----+-------+--------------+------+-------+---------+----------------------------+
  6. Discover compute hosts:

    # su -s /bin/sh -c "nova-manage cell_v2 discover_hosts --verbose" nova
    
    Found 2 cell mappings.
    Skipping cell0 since it does not contain hosts.
    Getting compute nodes from cell 'cell1': ad5a5985-a719-4567-98d8-8d148aaae4bc
    Found 1 computes in cell: ad5a5985-a719-4567-98d8-8d148aaae4bc
    Checking host mapping for compute host 'compute': fe58ddc1-1d65-4f87-9456-bc040dc106b3
    Creating host mapping for compute host 'compute': fe58ddc1-1d65-4f87-9456-bc040dc106b3
    注意:當(dāng)你添加新的計(jì)算節(jié)點(diǎn),你必須運(yùn)行nova-manage cell_v2 discover_hosts在控制器上注冊(cè)新的計(jì)算節(jié)點(diǎn),替代方法為你可以在/etc/nova/nova.conf中設(shè)置一個(gè)適當(dāng)?shù)拈g間隔自動(dòng)發(fā)現(xiàn)計(jì)算節(jié)點(diǎn):
    [scheduler]
    discover_hosts_in_cells_interval = 300
    Verify operation

    Verify operation of the Compute service.
    Note: Perform these commands on the controller node.

  7. Source the admin credentials to gain access to admin-only CLI commands:
    $ . admin-openrc
  8. List service components to verify successful launch and registration of each process:

    $ openstack compute service list
    
    +----+--------------------+------------+----------+---------+-------+----------------------------+
    | Id | Binary             | Host       | Zone     | Status  | State | Updated At                 |
    +----+--------------------+------------+----------+---------+-------+----------------------------+
    |  1 | nova-scheduler     | controller | internal | enabled | up    | 2016-02-09T23:11:15.000000 |
    |  2 | nova-conductor     | controller | internal | enabled | up    | 2016-02-09T23:11:16.000000 |
    |  3 | nova-compute       | compute1   | nova     | enabled | up    | 2016-02-09T23:11:20.000000 |
    +----+--------------------+------------+----------+---------+-------+----------------------------+
    
    Note: This output should indicate two service components enabled on the controller node and one service component enabled on the compute node.
  9. List API endpoints in the Identity service to verify connectivity with the Identity service:
    $ openstack catalog list
    +-----------+-----------+---------------------------------------------+
    | Name      | Type      | Endpoints                                   |
    +-----------+-----------+---------------------------------------------+
    | placement | placement | RegionOne                                   |
    |           |           |   admin: http://stack.flex.net:8778         |
    |           |           | RegionOne                                   |
    |           |           |   internal: http://stack.flex.net:8778      |
    |           |           | RegionOne                                   |
    |           |           |   public: http://stack.flex.net:8778        |
    |           |           |                                             |
    | glance    | image     | RegionOne                                   |
    |           |           |   admin: http://stack.flex.net:9292         |
    |           |           | RegionOne                                   |
    |           |           |   public: http://stack.flex.net:9292        |
    |           |           | RegionOne                                   |
    |           |           |   internal: http://stack.flex.net:9292      |
    |           |           |                                             |
    | nova      | compute   | RegionOne                                   |
    |           |           |   public: http://stack.flex.net:8774/v2.1   |
    |           |           | RegionOne                                   |
    |           |           |   internal: http://stack.flex.net:8774/v2.1 |
    |           |           | RegionOne                                   |
    |           |           |   admin: http://stack.flex.net:8774/v2.1    |
    |           |           |                                             |
    | keystone  | identity  | RegionOne                                   |
    |           |           |   public: http://stack.flex.net:5000/v3/    |
    |           |           | RegionOne                                   |
    |           |           |   admin: http://stack.flex.net:5000/v3/     |
    |           |           | RegionOne                                   |
    |           |           |   internal: http://stack.flex.net:5000/v3/  |
    |           |           |                                             |
    +-----------+-----------+---------------------------------------------+
  10. List images in the Image service to verify connectivity with the Image service:

    $ openstack image list
    
    +--------------------------------------+-------------+-------------+
    | ID                                   | Name        | Status      |
    +--------------------------------------+-------------+-------------+
    | 9a76d9f9-9620-4f2e-8c69-6c5691fae163 | cirros      | active      |
    +--------------------------------------+-------------+-------------+
  11. Check the cells and placement API are working successfully and that other necessary prerequisites are in place:

    # nova-status upgrade check
    
    +--------------------------------------------------------------------+
    | Upgrade Check Results                                              |
    +--------------------------------------------------------------------+
    | Check: Cells v2                                                    |
    | Result: Success                                                    |
    | Details: None                                                      |
    +--------------------------------------------------------------------+
    | Check: Placement API                                               |
    | Result: Success                                                    |
    | Details: None                                                      |
    +--------------------------------------------------------------------+
    | Check: Ironic Flavor Migration                                     |
    | Result: Success                                                    |
    | Details: None                                                      |
    +--------------------------------------------------------------------+
    | Check: Request Spec Migration                                      |
    | Result: Success                                                    |
    | Details: None                                                      |
    +--------------------------------------------------------------------+
    | Check: Console Auths                                               |
    | Result: Success                                                    |
    | Details: None                                                      |
    +--------------------------------------------------------------------+

文章名稱:OpenStackstein安裝(六)novaoncompute
URL鏈接:http://www.chinadenli.net/article26/gocecg.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供外貿(mào)網(wǎng)站建設(shè)品牌網(wǎng)站制作ChatGPT網(wǎng)站改版營(yíng)銷型網(wǎng)站建設(shè)域名注冊(cè)

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)

成都app開發(fā)公司