通过RDO安装Openstack ICE House版本的问题及解决

来源:互联网 发布:js数组的sort 编辑:程序博客网 时间:2024/05/29 06:58

RDO安装Openstack适合快速搭建测试环境,特别是all in one的环境搭建,当然也适合分布式部署的方式。具体可以参考官网 https://openstack.redhat.com/Quickstart

这里的测试环境为一台物理服务器192.168.10.80/24,通过跳板机192.168.10.8/24访问internet,获取安装源。物理服务器OS为CentOS 6.5 x86 64


  • 安装步骤:

1. 配置物理机环境

    这里主要是需要拿跳板机做代理访问internet,跳板机上安装了squid做为代理服务器,端口号3128

物理机需要有下面两个配置

    a: yum proxy 

    在/etc/yum.conf 末尾添加下面行

    proxy=http://192.168.10.9:3128/

    b: http proxy

    在/root/.bash_profile末尾添加下面行

export http_proxy="http://192.168.10.9:3128"
export https_proxy="https://192.168.10.9:3128"


2. 安装rdo源

https://repos.fedorapeople.org/repos/openstack/openstack-icehouse/rdo-release-icehouse-4.noarch.rpm


3.安装packstack

yum install -y openstack-packstack


4.执行安装 packstack

packstack --answer-file packstack-answers-icehouse.txt


5.检查安装情况

[root@os-dev install]# nova-manage version 
2014.1.3-3.el6


  • 安装中遇到的问题及解决

1. 安装配置文件中需要加上下面行

CONFIG_SWIFT_STORAGES=


2. mariadb fail

[answer]
remove mysql package


  • 安装完成后部署

1. 通过Glance导入Image

2. 安装Network

3. 启动Instance


RDO自动应答文件

packstack-answers-icehouse.txt

[general]# Path to a Public key to install on servers. If a usable key has not# been installed on the remote servers the user will be prompted for a# password and this key will be installed so the password will not be# required againCONFIG_SSH_KEY=/root/.ssh/id_dsa.pub# Set to 'y' if you would like Packstack to install MySQLCONFIG_MYSQL_INSTALL=y# Set to 'y' if you would like Packstack to install OpenStack Image# Service (Glance)CONFIG_GLANCE_INSTALL=y# Set to 'y' if you would like Packstack to install OpenStack Block# Storage (Cinder)CONFIG_CINDER_INSTALL=y# Set to 'y' if you would like Packstack to install OpenStack Compute# (Nova)CONFIG_NOVA_INSTALL=y# Set to 'y' if you would like Packstack to install OpenStack# Networking (Neutron)CONFIG_NEUTRON_INSTALL=y# Set to 'y' if you would like Packstack to install OpenStack# Dashboard (Horizon)CONFIG_HORIZON_INSTALL=y# Set to 'y' if you would like Packstack to install OpenStack Object# Storage (Swift)CONFIG_SWIFT_INSTALL=y# Set to 'y' if you would like Packstack to install OpenStack# Metering (Ceilometer)CONFIG_CEILOMETER_INSTALL=y# Set to 'y' if you would like Packstack to install OpenStack# Orchestration (Heat)CONFIG_HEAT_INSTALL=n# Set to 'y' if you would like Packstack to install the OpenStack# Client packages. An admin "rc" file will also be installedCONFIG_CLIENT_INSTALL=y# Comma separated list of NTP servers. Leave plain if Packstack# should not install ntpd on instances.CONFIG_NTP_SERVERS=192.168.10.9# Set to 'y' if you would like Packstack to install Nagios to monitor# OpenStack hostsCONFIG_NAGIOS_INSTALL=n# Comma separated list of servers to be excluded from installation in# case you are running Packstack the second time with the same answer# file and don't want Packstack to touch these servers. Leave plain if# you don't need to exclude any server.EXCLUDE_SERVERS=# Set to 'y' if you want to run OpenStack services in debug mode.# Otherwise set to 'n'.CONFIG_DEBUG_MODE=n# Set to 'y' if you want to use VMware vCenter as hypervisor and# storageOtherwise set to 'n'.CONFIG_VMWARE_BACKEND=n# The IP address of the server on which to install MySQLCONFIG_MYSQL_HOST=192.168.10.80# Username for the MySQL admin userCONFIG_MYSQL_USER=root# Password for the MySQL admin userCONFIG_MYSQL_PW=60c3d6358d5e4dbf# The IP address of the server on which to install the QPID serviceCONFIG_QPID_HOST=192.168.10.80# Enable SSL for the QPID serviceCONFIG_QPID_ENABLE_SSL=n# Enable Authentication for the QPID serviceCONFIG_QPID_ENABLE_AUTH=n# The password for the NSS certificate database of the QPID serviceCONFIG_QPID_NSS_CERTDB_PW=367eb64127a64da096fde8fa715cb9a2# The port in which the QPID service listens to SSL connectionsCONFIG_QPID_SSL_PORT=5671# The filename of the certificate that the QPID service is going to# useCONFIG_QPID_SSL_CERT_FILE=/etc/pki/tls/certs/qpid_selfcert.pem# The filename of the private key that the QPID service is going to# useCONFIG_QPID_SSL_KEY_FILE=/etc/pki/tls/private/qpid_selfkey.pem# Auto Generates self signed SSL certificate and keyCONFIG_QPID_SSL_SELF_SIGNED=y# User for qpid authenticationCONFIG_QPID_AUTH_USER=qpid_user# Password for user authenticationCONFIG_QPID_AUTH_PASSWORD=8a389c2e9dd84b9d# The IP address of the server on which to install KeystoneCONFIG_KEYSTONE_HOST=192.168.10.80# The password to use for the Keystone to access DBCONFIG_KEYSTONE_DB_PW=503be32a931f4a70# The token to use for the Keystone service apiCONFIG_KEYSTONE_ADMIN_TOKEN=ab0904f6c0bf425fb0f88c7638973611# The password to use for the Keystone admin userCONFIG_KEYSTONE_ADMIN_PW=password# The password to use for the Keystone demo userCONFIG_KEYSTONE_DEMO_PW=f006156a4e114d25# Kestone token format. Use either UUID or PKICONFIG_KEYSTONE_TOKEN_FORMAT=PKI# The IP address of the server on which to install GlanceCONFIG_GLANCE_HOST=192.168.10.80# The password to use for the Glance to access DBCONFIG_GLANCE_DB_PW=209905924efa476b# The password to use for the Glance to authenticate with KeystoneCONFIG_GLANCE_KS_PW=0e1ba19b8a1a4304# The IP address of the server on which to install CinderCONFIG_CINDER_HOST=192.168.10.80# The password to use for the Cinder to access DBCONFIG_CINDER_DB_PW=3681a707b85342c6# The password to use for the Cinder to authenticate with KeystoneCONFIG_CINDER_KS_PW=833594d310ac423d# The Cinder backend to use, valid options are: lvm, gluster, nfs,# vmdkCONFIG_CINDER_BACKEND=lvm# Create Cinder's volumes group. This should only be done for testing# on a proof-of-concept installation of Cinder.  This will create a# file-backed volume group and is not suitable for production usage.CONFIG_CINDER_VOLUMES_CREATE=y# Cinder's volumes group size. Note that actual volume size will be# extended with 3% more space for VG metadata.CONFIG_CINDER_VOLUMES_SIZE=20G# A single or comma separated list of gluster volume shares to mount,# eg: ip-address:/vol-name, domain:/vol-nameCONFIG_CINDER_GLUSTER_MOUNTS=# A single or comma seprated list of NFS exports to mount, eg: ip-# address:/export-nameCONFIG_CINDER_NFS_MOUNTS=# The IP address of the VMware vCenter datastoreCONFIG_VCENTER_HOST=# The username to authenticate to VMware vCenter datastoreCONFIG_VCENTER_USER=# The password to authenticate to VMware vCenter datastoreCONFIG_VCENTER_PASSWORD=# The IP address of the server on which to install the Nova API# serviceCONFIG_NOVA_API_HOST=192.168.10.80# The IP address of the server on which to install the Nova Cert# serviceCONFIG_NOVA_CERT_HOST=192.168.10.80# The IP address of the server on which to install the Nova VNC proxyCONFIG_NOVA_VNCPROXY_HOST=192.168.10.80# A comma separated list of IP addresses on which to install the Nova# Compute servicesCONFIG_NOVA_COMPUTE_HOSTS=192.168.10.80# The IP address of the server on which to install the Nova Conductor# serviceCONFIG_NOVA_CONDUCTOR_HOST=192.168.10.80# The password to use for the Nova to access DBCONFIG_NOVA_DB_PW=d02fad56b6f04340# The password to use for the Nova to authenticate with KeystoneCONFIG_NOVA_KS_PW=9cdd49d0f9b349e2# The IP address of the server on which to install the Nova Scheduler# serviceCONFIG_NOVA_SCHED_HOST=192.168.10.80# The overcommitment ratio for virtual to physical CPUs. Set to 1.0# to disable CPU overcommitmentCONFIG_NOVA_SCHED_CPU_ALLOC_RATIO=16.0# The overcommitment ratio for virtual to physical RAM. Set to 1.0 to# disable RAM overcommitmentCONFIG_NOVA_SCHED_RAM_ALLOC_RATIO=1.5# Private interface for Flat DHCP on the Nova compute serversCONFIG_NOVA_COMPUTE_PRIVIF=eth1# The list of IP addresses of the server on which to install the Nova# Network serviceCONFIG_NOVA_NETWORK_HOSTS=192.168.10.80# Nova network managerCONFIG_NOVA_NETWORK_MANAGER=nova.network.manager.FlatDHCPManager# Public interface on the Nova network serverCONFIG_NOVA_NETWORK_PUBIF=eth0# Private interface for network manager on the Nova network serverCONFIG_NOVA_NETWORK_PRIVIF=eth1# IP Range for network managerCONFIG_NOVA_NETWORK_FIXEDRANGE=192.168.32.0/22# IP Range for Floating IP'sCONFIG_NOVA_NETWORK_FLOATRANGE=10.3.4.0/22# Name of the default floating pool to which the specified floating# ranges are added toCONFIG_NOVA_NETWORK_DEFAULTFLOATINGPOOL=nova# Automatically assign a floating IP to new instancesCONFIG_NOVA_NETWORK_AUTOASSIGNFLOATINGIP=n# First VLAN for private networksCONFIG_NOVA_NETWORK_VLAN_START=100# Number of networks to supportCONFIG_NOVA_NETWORK_NUMBER=1# Number of addresses in each private subnetCONFIG_NOVA_NETWORK_SIZE=255# The IP address of the VMware vCenter serverCONFIG_VCENTER_HOST=# The username to authenticate to VMware vCenter serverCONFIG_VCENTER_USER=# The password to authenticate to VMware vCenter serverCONFIG_VCENTER_PASSWORD=# The name of the vCenter clusterCONFIG_VCENTER_CLUSTER_NAME=# The IP addresses of the server on which to install the Neutron# serverCONFIG_NEUTRON_SERVER_HOST=192.168.10.80# The password to use for Neutron to authenticate with KeystoneCONFIG_NEUTRON_KS_PW=d6043edd07324e26# The password to use for Neutron to access DBCONFIG_NEUTRON_DB_PW=f10dbca890744d3e# A comma separated list of IP addresses on which to install Neutron# L3 agentCONFIG_NEUTRON_L3_HOSTS=192.168.10.80# The name of the bridge that the Neutron L3 agent will use for# external traffic, or 'provider' if using provider networksCONFIG_NEUTRON_L3_EXT_BRIDGE=br-ex# A comma separated list of IP addresses on which to install Neutron# DHCP agentCONFIG_NEUTRON_DHCP_HOSTS=192.168.10.80# A comma separated list of IP addresses on which to install Neutron# LBaaS agentCONFIG_NEUTRON_LBAAS_HOSTS=# The name of the L2 plugin to be used with NeutronCONFIG_NEUTRON_L2_PLUGIN=openvswitch# A comma separated list of IP addresses on which to install Neutron# metadata agentCONFIG_NEUTRON_METADATA_HOSTS=192.168.10.80# A comma separated list of IP addresses on which to install Neutron# metadata agentCONFIG_NEUTRON_METADATA_PW=361e03068d7b4e4c# A comma separated list of network type driver entrypoints to be# loaded from the neutron.ml2.type_drivers namespace.CONFIG_NEUTRON_ML2_TYPE_DRIVERS=local# A comma separated ordered list of network_types to allocate as# tenant networks. The value 'local' is only useful for single-box# testing but provides no connectivity between hosts.CONFIG_NEUTRON_ML2_TENANT_NETWORK_TYPES=local# A comma separated ordered list of networking mechanism driver# entrypoints to be loaded from the neutron.ml2.mechanism_drivers# namespace.CONFIG_NEUTRON_ML2_MECHANISM_DRIVERS=openvswitch# A comma separated  list of physical_network names with which flat# networks can be created. Use * to allow flat networks with arbitrary# physical_network names.CONFIG_NEUTRON_ML2_FLAT_NETWORKS=*# A comma separated list of <physical_network>:<vlan_min>:<vlan_max># or <physical_network> specifying physical_network names usable for# VLAN provider and tenant networks, as well as ranges of VLAN tags on# each available for allocation to tenant networks.CONFIG_NEUTRON_ML2_VLAN_RANGES=# A comma separated list of <tun_min>:<tun_max> tuples enumerating# ranges of GRE tunnel IDs that are available for tenant network# allocation. Should be an array with tun_max +1 - tun_min > 1000000CONFIG_NEUTRON_ML2_TUNNEL_ID_RANGES=# Multicast group for VXLAN. If unset, disables VXLAN enable sending# allocate broadcast traffic to this multicast group. When left# unconfigured, will disable multicast VXLAN mode. Should be an# Multicast IP (v4 or v6) address.CONFIG_NEUTRON_ML2_VXLAN_GROUP=# A comma separated list of <vni_min>:<vni_max> tuples enumerating# ranges of VXLAN VNI IDs that are available for tenant network# allocation. Min value is 0 and Max value is 16777215.CONFIG_NEUTRON_ML2_VNI_RANGES=# The name of the L2 agent to be used with NeutronCONFIG_NEUTRON_L2_AGENT=openvswitch# The type of network to allocate for tenant networks (eg. vlan,# local)CONFIG_NEUTRON_LB_TENANT_NETWORK_TYPE=local# A comma separated list of VLAN ranges for the Neutron linuxbridge# plugin (eg. physnet1:1:4094,physnet2,physnet3:3000:3999)CONFIG_NEUTRON_LB_VLAN_RANGES=# A comma separated list of interface mappings for the Neutron# linuxbridge plugin (eg. physnet1:br-eth1,physnet2:br-eth2,physnet3# :br-eth3)CONFIG_NEUTRON_LB_INTERFACE_MAPPINGS=# Type of network to allocate for tenant networks (eg. vlan, local,# gre, vxlan)CONFIG_NEUTRON_OVS_TENANT_NETWORK_TYPE=local# A comma separated list of VLAN ranges for the Neutron openvswitch# plugin (eg. physnet1:1:4094,physnet2,physnet3:3000:3999)CONFIG_NEUTRON_OVS_VLAN_RANGES=# A comma separated list of bridge mappings for the Neutron# openvswitch plugin (eg. physnet1:br-eth1,physnet2:br-eth2,physnet3# :br-eth3)CONFIG_NEUTRON_OVS_BRIDGE_MAPPINGS=# A comma separated list of colon-separated OVS bridge:interface# pairs. The interface will be added to the associated bridge.CONFIG_NEUTRON_OVS_BRIDGE_IFACES=# A comma separated list of tunnel ranges for the Neutron openvswitch# plugin (eg. 1:1000)CONFIG_NEUTRON_OVS_TUNNEL_RANGES=# The interface for the OVS tunnel. Packstack will override the IP# address used for tunnels on this hypervisor to the IP found on the# specified interface. (eg. eth1)CONFIG_NEUTRON_OVS_TUNNEL_IF=# VXLAN UDP portCONFIG_NEUTRON_OVS_VXLAN_UDP_PORT=4789# The IP address of the server on which to install the OpenStack# client packages. An admin "rc" file will also be installedCONFIG_OSCLIENT_HOST=192.168.10.80# The IP address of the server on which to install HorizonCONFIG_HORIZON_HOST=192.168.10.80# To set up Horizon communication over https set this to "y"CONFIG_HORIZON_SSL=n# PEM encoded certificate to be used for ssl on the https server,# leave blank if one should be generated, this certificate should not# require a passphraseCONFIG_SSL_CERT=# Keyfile corresponding to the certificate if one was enteredCONFIG_SSL_KEY=# The IP address on which to install the Swift proxy service# (currently only single proxy is supported)CONFIG_SWIFT_PROXY_HOSTS=192.168.10.80# The password to use for the Swift to authenticate with KeystoneCONFIG_SWIFT_KS_PW=abe38aa708ec4628# A comma separated list of IP addresses on which to install the# Swift Storage services, each entry should take the format# <ipaddress>[/dev], for example 127.0.0.1/vdb will install /dev/vdb# on 127.0.0.1 as a swift storage device(packstack does not create the# filesystem, you must do this first), if /dev is omitted Packstack# will create a loopback device for a test setupCONFIG_SWIFT_STORAGE_HOSTS=192.168.10.80# Number of swift storage zones, this number MUST be no bigger than# the number of storage devices configuredCONFIG_SWIFT_STORAGE_ZONES=1# Number of swift storage replicas, this number MUST be no bigger# than the number of storage zones configuredCONFIG_SWIFT_STORAGE_REPLICAS=1# FileSystem type for storage nodesCONFIG_SWIFT_STORAGE_FSTYPE=ext4# Shared secret for SwiftCONFIG_SWIFT_HASH=f08835bdc5b84dab# Size of the swift loopback file storage deviceCONFIG_SWIFT_STORAGE_SIZE=2GCONFIG_SWIFT_STORAGES=# Whether to provision for demo usage and testing. Note that# provisioning is only supported for all-in-one installations.CONFIG_PROVISION_DEMO=n# Whether to configure tempest for testing. Note that provisioning is# only supported for all-in-one installations.CONFIG_PROVISION_TEMPEST=n# The CIDR network address for the floating IP subnetCONFIG_PROVISION_DEMO_FLOATRANGE=172.24.4.224/28# The uri of the tempest git repository to useCONFIG_PROVISION_TEMPEST_REPO_URI=https://github.com/openstack/tempest.git# The revision of the tempest git repository to useCONFIG_PROVISION_TEMPEST_REPO_REVISION=stable/havana# Whether to configure the ovs external bridge in an all-in-one# deploymentCONFIG_PROVISION_ALL_IN_ONE_OVS_BRIDGE=n# The IP address of the server on which to install Heat serviceCONFIG_HEAT_HOST=192.168.10.80# The password used by Heat user to authenticate against MySQLCONFIG_HEAT_DB_PW=7571f06c8cef4fe9# The encryption key to use for authentication info in databaseCONFIG_HEAT_AUTH_ENC_KEY=b44cac9039704875# The password to use for the Heat to authenticate with KeystoneCONFIG_HEAT_KS_PW=bbc39ef5093145bf# Set to 'y' if you would like Packstack to install Heat CloudWatch# APICONFIG_HEAT_CLOUDWATCH_INSTALL=n# Set to 'y' if you would like Packstack to install Heat# CloudFormation APICONFIG_HEAT_CFN_INSTALL=n# The IP address of the server on which to install Heat CloudWatch# API serviceCONFIG_HEAT_CLOUDWATCH_HOST=192.168.10.80# The IP address of the server on which to install Heat# CloudFormation API serviceCONFIG_HEAT_CFN_HOST=192.168.10.80# The IP address of the server on which to install CeilometerCONFIG_CEILOMETER_HOST=192.168.10.80# Secret key for signing metering messages.CONFIG_CEILOMETER_SECRET=f4f4ee97011149a0# The password to use for Ceilometer to authenticate with KeystoneCONFIG_CEILOMETER_KS_PW=d31756cb9e26448e# The IP address of the server on which to install the Nagios serverCONFIG_NAGIOS_HOST=192.168.10.80# The password of the nagiosadmin user on the Nagios serverCONFIG_NAGIOS_PW=183662cea1d94821# To subscribe each server to EPEL enter "y"CONFIG_USE_EPEL=y# A comma separated list of URLs to any additional yum repositories# to installCONFIG_REPO=# To subscribe each server with Red Hat subscription manager, include# this with CONFIG_RH_PWCONFIG_RH_USER=# To subscribe each server with Red Hat subscription manager, include# this with CONFIG_RH_USERCONFIG_RH_PW=# To subscribe each server to Red Hat Enterprise Linux 6 Server Beta# channel (only needed for Preview versions of RHOS) enter "y"CONFIG_RH_BETA_REPO=n# To subscribe each server with RHN Satellite,fill Satellite's URL# here. Note that either satellite's username/password or activation# key has to be providedCONFIG_SATELLITE_URL=# Username to access RHN SatelliteCONFIG_SATELLITE_USER=# Password to access RHN SatelliteCONFIG_SATELLITE_PW=# Activation key for subscription to RHN SatelliteCONFIG_SATELLITE_AKEY=# Specify a path or URL to a SSL CA certificate to useCONFIG_SATELLITE_CACERT=# If required specify the profile name that should be used as an# identifier for the system in RHN SatelliteCONFIG_SATELLITE_PROFILE=# Comma separated list of flags passed to rhnreg_ks. Valid flags are:# novirtinfo, norhnsd, nopackagesCONFIG_SATELLITE_FLAGS=# Specify a HTTP proxy to use with RHN SatelliteCONFIG_SATELLITE_PROXY=# Specify a username to use with an authenticated HTTP proxyCONFIG_SATELLITE_PROXY_USER=# Specify a password to use with an authenticated HTTP proxy.CONFIG_SATELLITE_PROXY_PW=



0 0
原创粉丝点击