在Devstack上快速部署Murano和使用

1.Murano installation 

    1.1 download devstack source code from github 

           git clone https://github.com/openstack-dev/devstack.git

 

    1.2 download some files that installing murano need on https://github.com/openstack/murano/tree/master/contrib/devstack

           then   cp files/apts/murano ${DEVSTACK_DIR}/files/debs

                     cp files/rpms/murano ${DEVSTACK_DIR}/files/rpms

                     cp lib/murano ${DEVSTACK_DIR}/lib

                     cp lib/murano-dashboard ${DEVSTACK_DIR}/lib

                     cp extras.d/70-murano.sh ${DEVSTACK_DIR}/extras.d

         1.3 edit the "localrc" file that run "stack.sh" need, whose content is as following:

              

DATABASE_PASSWORD=123456
RABBIT_PASSWORD=123456
SERVICE_TOKEN=123456
SERVICE_PASSWORD=123456
ADMIN_PASSWORD=123456

disable_service n-net
enable_service q-svc
enable_service q-agt
enable_service q-dhcp
enable_service q-l3
enable_service q-meta
enable_service q-lbaas
enable_service q-vpn

DEST=/home/OpenStack/workspace

DATA_DIR=$DEST/data
SERVICE_DIR=$DEST

LOGDIR=/home/OpenStack/workspace/logs
LOGFILE=$LOGDIR/stack.sh.log
VERBOSE=True
LOG_COLOR=True
SCREEN_LOGDIR=$LOGDIR/screens

Q_PLUGIN=ml2
ENABLE_TENANT_VLANS=True

LOGDAYS=1

#RECLONE=True
#OFFLINE=True

GIT_BASE="http://github.com"

IMAGE_URLS=http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img

# Enable Heat
enable_service heat h-api h-api-cfn h-api-cw h-eng

# Enable Murano
enable_service murano murano-api murano-engine

DOWNLOAD_DEFAULT_IMAGES=False

 

1.4 finally run "./stack.sh",the devstack with murano will be installed in about 20 mins.

 

1.5 problems
      when access the link "pypi.python.org" ,the shell may be timed out for some internet reason, and add an https_proxy to environment variable  will be helpful.

 

2.Murano Test

To test Murano,we will create an environment and add apps to it, then deploy it on installed OpenStack。I will show all operations on UI.

2.1 Mark  image

When an app is to be deployed, it will launch an instance with an image, so we must mark it, and if the image is not in glance we should registry it to glance.

    

 

 

click "manage-image"

 

 

 

“mark image”

 

 

 

fill all need information and "Mark Image", the image that apps deploy need will be ready.

 

2.2 create an environment

Before deploy an app we must create an environment at "Application Catalog-Environment"

 

click "Add New" 

fill Env name

 

an empty env is created!

 

2.3 import apps to Murano

In "Manage-Package Defination", Murano support 3 ways to import app package.

 

Here we choose "File" and we can import an package which is at our PC.

 

An app named "Apache HTTP Server" has been imported.

 

2.4 Deploy apps on OpenStack

In "Manage-Environment", We can add apps to Environment

Fill apps name or use default name.

 

 

Choose app configuration before deploy it.

 

 

Then we can deploy this environment

 

 

wait for some minutes, we will see the result is as following:

 

now the apps is deployed successfully!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值