Oracle® OpenStack - Installation and Deployment Guide ?· 4.11 Setting up Cinder ... Oracle OpenStack…

  • View
    220

  • Download
    0

Embed Size (px)

Transcript

  • Oracle OpenStack

    Installation and Deployment Guide for Release 3.0

    E78304-04July 2017

  • Oracle Legal Notices

    Copyright 2016, 2017 Oracle and/or its affiliates. All rights reserved.

    This software and related documentation are provided under a license agreement containing restrictions on use and disclosure and are protectedby intellectual property laws. Except as expressly permitted in your license agreement or allowed by law, you may not use, copy, reproduce,translate, broadcast, modify, license, transmit, distribute, exhibit, perform, publish, or display any part, in any form, or by any means. Reverseengineering, disassembly, or decompilation of this software, unless required by law for interoperability, is prohibited.

    The information contained herein is subject to change without notice and is not warranted to be error-free. If you find any errors, please report themto us in writing.

    If this is software or related documentation that is delivered to the U.S. Government or anyone licensing it on behalf of the U.S. Government, thenthe following notice is applicable:

    U.S. GOVERNMENT END USERS: Oracle programs, including any operating system, integrated software, any programs installed on the hardware,and/or documentation, delivered to U.S. Government end users are "commercial computer software" pursuant to the applicable Federal AcquisitionRegulation and agency-specific supplemental regulations. As such, use, duplication, disclosure, modification, and adaptation of the programs,including any operating system, integrated software, any programs installed on the hardware, and/or documentation, shall be subject to licenseterms and license restrictions applicable to the programs. No other rights are granted to the U.S. Government.

    This software or hardware is developed for general use in a variety of information management applications. It is not developed or intended foruse in any inherently dangerous applications, including applications that may create a risk of personal injury. If you use this software or hardwarein dangerous applications, then you shall be responsible to take all appropriate fail-safe, backup, redundancy, and other measures to ensure itssafe use. Oracle Corporation and its affiliates disclaim any liability for any damages caused by use of this software or hardware in dangerousapplications.

    Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.

    Intel and Intel Xeon are trademarks or registered trademarks of Intel Corporation. All SPARC trademarks are used under license and aretrademarks or registered trademarks of SPARC International, Inc. AMD, Opteron, the AMD logo, and the AMD Opteron logo are trademarks orregistered trademarks of Advanced Micro Devices. UNIX is a registered trademark of The Open Group.

    This software or hardware and documentation may provide access to or information about content, products, and services from third parties.Oracle Corporation and its affiliates are not responsible for and expressly disclaim all warranties of any kind with respect to third-party content,products, and services unless otherwise set forth in an applicable agreement between you and Oracle. Oracle Corporation and its affiliates will notbe responsible for any loss, costs, or damages incurred due to your access to or use of third-party content, products, or services, except as setforth in an applicable agreement between you and Oracle.

  • iii

    Table of ContentsAbout This Document ......................................................................................................................... v1 Introduction to Oracle OpenStack .................................................................................................... 1

    1.1 Introduction to OpenStack ..................................................................................................... 11.2 Introduction to Oracle VM Server .......................................................................................... 4

    2 Getting Started ................................................................................................................................ 72.1 Getting Started with Deployment ........................................................................................... 72.2 Using Groups to Deploy Services .......................................................................................... 82.3 Using the kollacli Command ................................................................................................ 10

    3 Preparing the Basic Environment ................................................................................................... 133.1 System Requirements ......................................................................................................... 133.2 OpenStack Data Storage .................................................................................................... 143.3 Host Network Requirements ................................................................................................ 153.4 About the OpenStack Kolla User ......................................................................................... 173.5 Preparing Oracle Linux Nodes ............................................................................................ 183.6 Preparing Oracle VM Server Nodes .................................................................................... 283.7 Preparing a Separate Master Node ..................................................................................... 35

    4 Setting up a Deployment ............................................................................................................... 394.1 Setting up Target Nodes ..................................................................................................... 404.2 Setting up Services ............................................................................................................ 424.3 Setting up the Docker Registry ............................................................................................ 444.4 Example Setup for an Initial Deployment ............................................................................. 454.5 Setting Properties for Groups or Hosts ................................................................................ 48

    4.5.1 Dealing With Variable Network Interface Names ........................................................ 504.6 Setting up Keystone ........................................................................................................... 52

    4.6.1 Configuring OpenStack Service Endpoints ................................................................ 524.6.2 Configuring OpenStack Service Users and Passwords ............................................... 53

    4.7 Setting up Glance ............................................................................................................... 544.8 Setting up Nova ................................................................................................................. 55

    4.8.1 Automatic Hypervisor Configuration .......................................................................... 554.8.2 Preparing a Compute Node ...................................................................................... 56

    4.9 Setting up Neutron ............................................................................................................. 574.9.1 Configuring VLAN Networks ..................................................................................... 574.9.2 Setting up Multiple External Network Interfaces ......................................................... 584.9.3 Enabling Distributed Virtual Routing (DVR) ................................................................ 584.9.4 Enabling Neutron Agent High Availability .................................................................. 594.9.5 Setting the Network Maximum Transmission Unit (MTU) ............................................ 60

    4.10 Setting up Ceph ............................................................................................................... 604.10.1 Ceph Partition Options ........................................................................................... 614.10.2 Setting up Ceph Storage ........................................................................................ 634.10.3 Setting up Ceph Cache Tiering ............................................................................... 644.10.4 Ceph Deployment Example .................................................................................... 654.10.5 Setting up an Erasure Code Pool ........................................................................... 664.10.6 Setting up Oracle VM Server as a Ceph OSD ......................................................... 674.10.7 Adding a Ceph Node ............................................................................................. 674.10.8 Running Ceph Commands ..................................................................................... 674.10.9 Removing a Ceph Node ......................................................................................... 68

    4.11 Setting up Cinder .............................................................................................................. 694.11.1 Using the LVM Volume Driver for Cinder Volumes ................................................... 704.11.2 Using External iSCSI Storage for Cinder Volumes ................................................... 714.11.3 Configuring the iSCSI Initiator Name and iSCSI Multipath ........................................ 724.11.4 Using the NFS Backup Driver for Cinder Backup ....................