官术网_书友最值得收藏!

  • Ceph Cookbook
  • Karan Singh
  • 262字
  • 2021-07-16 13:01:19

Setting up OpenStack

OpenStack setup and configuration is beyond the scope of this book, however, for ease of demonstration, we will use a virtual machine preinstalled with the OpenStack RDO Juno release. If you like, you can also use your own OpenStack environment and can perform Ceph integration.

How to do it…

In this recipe, we will demonstrate setting up a preconfigured OpenStack environment using Vagrant and accessing it via CLI and GUI:

  1. Launch openstack-node1 using Vagrantfile as we did for Ceph nodes in the last chapter. Make sure that you are on the host machine and are under the ceph-cookbook repository before bringing up openstack-node1 using Vagrant:
    # cd ceph-cookbook
    # vagrant up openstack-node1
    
  2. Once openstack-node1 is up, check the Vagrant status, and log in to the node:
    $ vagrant status openstack-node1
    $ vagrant ssh openstack-node1
    
  3. We assume that you have some knowledge of OpenStack and are aware of its operations. We will source the keystone_admin file, which has been placed under /root, and to do this, we need to switch to root:
    $ sudo su -
    $ source keystone_admin
    

    We will now run some native OpenStack commands to make sure that OpenStack is set up correctly. Please note that some of these commands do not show any information, since this is a fresh OpenStack environment and does not have instances or volumes created:

    # nova list
    # cinder list
    # glance image-list
    
  4. You can also log in to the OpenStack horizon web interface (https://192.168.1.111/dashboard) with the username as admin and password as vagrant.
  5. After logging in, the Overview page opens:
主站蜘蛛池模板: 府谷县| 额尔古纳市| 芮城县| 南召县| 深圳市| 宁国市| 漠河县| 延吉市| 通辽市| 正宁县| 郎溪县| 弥渡县| 永定县| 靖远县| 连云港市| 彰化县| 永嘉县| 新营市| 天津市| 商丘市| 鹰潭市| 泸溪县| 丹江口市| 同仁县| 长治县| 杨浦区| 利辛县| 益阳市| 隆德县| 仁布县| 莎车县| 泸水县| 青川县| 昭通市| 华坪县| 行唐县| 甘泉县| 象州县| 霍邱县| 奎屯市| 资兴市|