设为首页 收藏本站
查看: 652|回复: 0

[经验分享] 在OpenStack上安装Stratos2

[复制链接]

尚未签到

发表于 2016-1-8 14:52:04 | 显示全部楼层 |阅读模式
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. 


  • Install OpenStack Iaas.

  • Download wso2s2-openstack-1.0.0.zip.
  • Extract  wso2s2-openstack-1.0.0.zip on your OpenStack installed server.

  • Follow the instructions in the README.txt file.

  • 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"











     


  • Download mysql-connector-java-5.1.17-bin.jar

  • 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"











     



  • 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






  • 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


  • 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










     



  • 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










     





 

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-161965-1-1.html 上篇帖子: Openstack(1)Installation 下篇帖子: 【OpenStack】【转】Openstack之Cinder服务初探
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表