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

  • Published on
    11-Jun-2018

  • View
    214

  • 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 ..................................................... 72

  • Oracle OpenStack

    iv

    4.11.5 Using the Swift Backup Driver for Cinder Backup .................................................... 734.12 Setting up Swift ................................................................................................................ 73

    4.12.1 Preparing the Storage Devices ............................................................................... 734.12.2 Building the Swift Rings ......................................................................................... 744.12.3 Enabling and Configuring Swift ............................................................................... 77

    4.13 Setting up Ceilometer ....................................................................................................... 774.14 Setting up Murano ............................................................................................................ 79

    4.14.1 Creating Oracle Linux Murano-enabled Images ....................................................... 794.15 Setting up General Components ........................................................................................ 82

    4.15.1 Service Endpoint High Availability With Keepalived and HAProxy .............................. 824.15.2 Setting Up Central Logging .................................................................................... 85

    5 Deploying Services ........................................................................................................................ 875.1 Performing a Deployment ................................................................................................... 875.2 Making Configuration Changes After Deployment ................................................................. 885.3 Removing Services ............................................................................................................. 89

    6 Updating to a New Release of Oracle OpenStack ........................................................................... 916.1 Updating Oracle OpenStack Packages ................................................................................ 916.2 Updating Oracle OpenStack Containers ............................................................................... 93

    7 Using OpenStack CLIs .................................................................................................................. 957.1 Installing and Using docker-ostk .......................................................................................... 957.2 Installing OpenStack CLI Clients Manually ........................................................................... 977.3 Setting Environment Variables for OpenStack CLI Clients ................................................... 101

    8 Troubleshooting Deployment ........................................................................................................ 1058.1 Debugging a Deployment .................................................................................................. 1058.2 "Command Failed" Error When Starting the Ansible Container ............................................ 1058.3 Deployment Fails With "Fetching Ceph Keyrings No JSON Object Could be Decoded" ...... 1068.4 Collecting the Log Files .................................................................................................... 1078.5 Backing Up and Restoring the Database ........................................................................... 1078.6 Removing the Docker Images From a Node ...................................................................... 112

    A kollacli Command-Line Reference ................................................................................................ 113

  • v

    About This DocumentThis document is part of the documentation library for Oracle OpenStack Release 3.0, which is availableat:

    http://www.oracle.com/technetwork/server-storage/openstack/linux/documentation/

    The documentation library consists of the following items:

    Oracle OpenStack Release Notes

    The release notes provide a summary of the new features, changes, fixed bugs, and known issues inOracle OpenStack. It contains last-minute information, which may not be included in the main body ofdocumentation, and information on Oracle OpenStack support.Read this document before you install your environment.

    Oracle OpenStack Installation and Deployment Guide

    This document guides you through different options for installing and deploying Oracle OpenStack. It isintended for system administrators, and assumes that you are familiar with the Oracle Linux operatingsystem, virtualization in general, and web technologies.

    Oracle OpenStack Licensing Information User Manual

    This document provides licensing information for Oracle OpenStack.

    This document was generated on 25 July 2017 (revision: 983) .

    You can get the latest information on Oracle OpenStack at:

    http://www.oracle.com/us/technologies/linux/openstack/

    Conventions

    The following text conventions are used in this document:

    Convention Meaning

    boldface Boldface type indicates graphical user interface elements associated with anacti...

Recommended

View more >