`

在OpenStack上安装Stratos2

 
阅读更多

You can use any OpenStack configured IaaS. We have tested Stratos 2.0 with Essex and Folsom which are versions of OpensStack. We recommend the SUSE Cloud since it has a production ready OpenStack IaaS. You can use a single node or multi node OpenStack environment. You can install WSO2 Stratos 2.0 servers into the same single node or on a separate node. 

  1. Install OpenStack Iaas.
  2. Download wso2s2-openstack-1.0.0.zip.
  3. Extract  wso2s2-openstack-1.0.0.zip on your OpenStack installed server.
  4. Follow the instructions in the README.txt file.
  5. Install Java in your server. 
    Copy the JDK to any preferred location and export environment variable JAVA_HOME to point to your java run-time. We recommend that you use Java 6.0.   
         

    export JAVA_HOME="/opt/jdk1.6.0_24"

     

  6. Download mysql-connector-java-5.1.17-bin.jar
  7. Copy the jar inside wso2s2-openstack-1.0.0
    If you intend to use a different MySQL connector version then make sure you update the following line in the wso2s2-openstack-1.0.0 /conf/setup.conf file.

    export mysql_connector_jar="mysql-connector-java-5.1.24.jar"

     

  8. Configure MySQL to allow requests from Cartridges as follows:

    • Add the following entry to the /etc/hosts file.

      <host_ip> stratos.wso2.com
    • Add the following entry to the /etc/mysql/my.cnf file.

      bind-address = 0.0.0.0
    • Restart MySQL using the following command:

      sudo service mysql restart
  9. Create a public key to use with OpenStack
    Do not enter any passwords while creating the public key, to ensure ease of use. Just press ENTER

    $ ssh-keygen -t rsa

    You can check the created public key as follows:

    $ cat ~/.ssh/id_rsa.pub

      
    Edit   wso2s2-openstack-1.0.0 conf/setup.conf   according to your environment. 
    When editing, you need to provide information about your OpenStack environment. 

    Ensure to give the following information in the wso2s2-openstack-1.0.0 / conf/setup.conf .

    openstack_public_key="/.ssh/id_ras.pub"

    File path of the public key location.        

    Make sure that the conf/setup.conf is according to your environment (specially the “General configuration” section and “OpenStack” section). You can accept the default values for most of the parameters.
    The parameter descriptions are as follows:

    Parameter Description
    hostip IP of the machine where you setup Stratos2 packs
    stratos2_domain Define your own domain
    agent_hostname Hostname of the agent
    bam_hostname Hostname of the bam
    cc_hostname Hostname of Cloud Controller
    s2_db_hostname Hostname of the database
    sc_hostname Hostname of the Stratos Controller
    userstore_db_hostname Hostname of the userstore
    userstore_db_schema Schema name of the userstore
    userstore_db_port Port of userstore database
    userstore_db_user User of the userstore database
    userstore_db_pass Password of the userstore database
    s2_db_hostname Hostname of the Stratos2 foundation databse
    s2_db_schema Schema of the Stratos2 foundation databse
    s2_db_port Port of the Stratos2 foundation database
    s2_db_user User of the Stratos2 foundation databse
    s2_db_pass Password of the Stratos2 foundation databse
    git_user Username of the Git
    email email
     git_hostname Hostname of the Git
    git_ip IP of the Git server
    openstack_provider_enable Default value should be "true" when using OpenStack
    openstack_identity Openstack login username
    openstack_credential OpenStack login password
    openstack_tenant OpenStack project name
    openstack_project_id ID of the Openstack project
    openstack_api_key Defualt should be "openstack"
    openstack_jclouds_endpoint jclouds endpoint URL e.g., http://10.100.0.29:5000/
    openstack_scaleup_order Scale up order
    openstack_scaledown_order Scale down order
    openstack_keypair_name Keypair used in OpenStack
    openstack_region OpenStack region provided in the setup
    openstack_instance_type_tiny Type of instance (tiny) spawed in OpenStack
    openstack_instance_type_small Type of instance (small) spawed in OpenStack (will be used by Carbon Cartridges)
    openstack_security_group Security group name in OpenStack
    php_cartridge_image_id PHP Cartridge image ID
    carbon_cartridge_image_id Carbon Cartridge image ID
    mysql_cartridge_image_id MySQL Cartridge image ID
  10. Run the setup.sh (given below) inside wso2s2-openstack-1.0.0 as a root user to install Stratos2 Paas with Openstack demo.
    When you enable the Stratos2 demo, it will upload images of all out of the box Carbon and Non-Carbon Cartridges provided into the glance image server.

    sudo JAVA_HOME=/opt/jdk1.6.0_24 ./setup.sh -d openstack -p"all"

    Command Argument Description

    Syntax Description
    -d
    The IaaS that is used.
    -p
    All components in Stratos 2

    You can see the logs at:

    $ tail -f /var/log/s2/s2.log
    $ tail -f /var/log/s2/s2-openstack.log

     

  11. If you want to re-do the Stratos2 setup by running the setup.sh, first you need to clean the existing setup by using clean.sh and then if you enabled Stratos2 Openstack demo clean_openstack.sh. The commands are as follows:

    sudo ./clean.sh -a<hostname> -b<host_user> -c<Openstack mysql root user> -d<Openstack mysql password>

    Example:

    sudo ./clean.sh -as2demo -bwso2 -croot -dopenstack

     

 
分享到:
评论

相关推荐

    Openstack图文安装详细步骤教程(亲自安装并截图整理).pdf

    最终经过夜以继日的尝试和配置,终于在某一天的深夜,安装成功了,我把安装成功的过程和配置以及图片都一步一步的记录下来,希望能报道大家。 ps: 安装过程中,需要注意的地方均以使用红色高亮字体标出, 切记一定...

    OpenStack 完整安装手册

    OpenStack 完整安装手册 安装指南,操作简单 易懂

    基于centos7的单实例openstack安装

    描述: 本文将介绍如何在 CentOS 7 上安装单实例 OpenStack,这种安装方法也是概念验证(POC)的最佳方法。单实例 OpenStack 安装将所有基本功能(如计算、网络、存储和仪表板)安装在同一台机器上。 标签: ...

    centos7 openstack ocata安装

    这个项目将向你展示如何在CentOS 7上安装和配置OpenStack Ocata。以下是一步步的详细过程。 首先,我们需要进行【一、环境准备】。确保你的系统是最新的,并且满足OpenStack Ocata的硬件和软件要求。更新你的CentOS...

    openstack一键安装(1)

    【2】openstack一键安装(2) 【3】openstack一键安装(3) 注意:下载完整后,请放在同一目录下解压 ==================================================== | 安装说明 | ====================================...

    openstack搭建安装详解

    在安装过程中,你可能会遇到各种提示和确认,按照指南进行操作即可。一旦安装完成,你将拥有一个基本的OpenStack环境,可以开始创建虚拟机、分配网络资源和管理存储。 总结来说,OpenStack的安装涉及硬件配置、网络...

    openstack quantum安装文档

    - 详细介绍了在 Ubuntu 上安装 Quantum 所需的步骤,包括安装依赖包、配置数据库、设置身份认证服务等。 - 包括了如何通过 apt-get 命令安装 Quantum 相关的软件包。 - **安装包(Fedora)** - 对 Fedora 用户...

    openstack安装

    里面详细讲述了openstack的安装过程,但是这个版本是关于openstack icehouse的安装

    OpenStack完整安装手册

    1. **前提工作**:在安装OpenStack之前,你需要确保所有服务器都运行在同一操作系统上,这里使用的是CentOS 6.2。同时,硬件配置应满足OpenStack的最低要求,包括足够的CPU、内存和磁盘空间。 2. **NTP时钟服务安装...

    OpenStack全套安装教程.rar

    OpenStack是一款开源的云计算...通过这个OpenStack全套安装教程,你将全面了解OpenStack的架构和安装过程,掌握如何构建一个完整的云计算环境。不过,OpenStack的学习和实践永无止境,不断探索和优化是持续进步的关键。

    openstack一键安装(2)

    【2】openstack一键安装(2) 【3】openstack一键安装(3) 注意:下载完整后,请放在同一目录下解压 ==================================================== | 安装说明 | ====================================...

    openstack一键安装3

    (2.openstack一键安装2 (3.openstack一键安装3 注意:下载完整后,请放在同一目录下解压 ==================================================== | 安装说明 | ================================================...

    OpenStack安装部署.docx

    OpenStack安装部署知识点总结 OpenStack是一种开源的云计算平台,旨在提供一个可扩展、可靠、可管理的云计算环境。以下是从OpenStack安装部署文件中提炼出来的知识点总结: 一、虚拟机安装与配置 * 安装Virtual ...

    openstack_queens安装

    在安装前,需要做一些基本的系统配置。首先,关闭SELinux,因为它可能会阻止OpenStack服务正常运行。在/etc/sysconfig/selinux文件中,将SELINUX设置为disabled。接着,配置主机名,确保每台服务器的hostname与IP...

    Openstack Icehouse版本安装指南

    OpenStack Icehouse版本安装指南是一份指导性文档,它详细描述了如何在Ubuntu 12.04或Ubuntu 14.04 LTS(长期支持版)操作系统上安装OpenStack Icehouse版本的步骤和配置要求。OpenStack Icehouse是OpenStack项目的...

    openstack queens 安装手册

    在所有节点上安装 OpenStack 服务: 1. 下载并安装 OpenStack 源(Queens 版本):使用 `yum install centos-release-openstack-queens` 命令下载并安装 OpenStack 源。 2. 更新 yum repository:使用 `yum upgrade...

    详细讲解OpenStack3安装配置指南

    在安装配置OpenStack时,除了上述数据库和消息代理的安装外,还需要配置身份服务 Keystone、计算服务 Nova、镜像服务 Glance、网络服务 Neutron、块存储服务 Cinder等核心组件。每个组件都需要根据自己的使用场景...

    openstack安装部署详细步骤,带图

    在安装完成后,OpenStack 的各种组件都将被安装和配置好,可以通过 Web 界面或命令行工具来管理云端的资源池。 OpenStack 的架构主要包括以下几个组件: * Controller 节点:负责控制和管理云端的资源池。 * ...

    openstack安装windows虚拟机的方法(Hyperisor为kvm)

    - 如果在安装过程中遇到任何问题,建议查看OpenStack文档或寻求技术支持的帮助。 - 对于其他版本的Windows系统,也可以采用类似的方法进行安装。 通过以上步骤,用户可以在OpenStack环境下成功地安装并配置Windows...

    openstack 官方安装手册翻译

    这是openstack官方安装手册翻译 希望能够给需要的人一些帮助

Global site tag (gtag.js) - Google Analytics