Hello World for Murano End to end process







































- Slides: 39
Hello World for Murano End to end process in easy steps and more…
Presenters 2 Julio Colon Lida He Consultant Software Engineer Dell | EMC Senior Consultant Software Engineer Dell | EMC © Copyright 2016 Dell Inc. Magdy Salem Consultant Software Engineer
Agenda 3 • Quick Review • Challenges • Containers • Deploying App Catalog • QA © Copyright 2016 Dell Inc.
Quick Review • Architecture 4 © Copyright 2016 Dell Inc.
Quick Review • What is Murano? • What is its value? 5 © Copyright 2016 Dell Inc.
Challenges Why installing Murano is challenging? • Many steps to follow • • Conflicting/incompatible packages • • • Native package management vs python pip Modify requirements. txt to specify versions of some packages on ubuntu Configurations can be tricky/subtle • • 6 Non-trivial for those just want to explore Murano features ASAP Local My. SQL Local Rabbit. MQ Keystone Existing Open. Stack Rabbit. MQ Insecure vs SSL Murano API, engine, service endpoint Murano dashboard in Horizon … © Copyright 2016 Dell Inc.
Challenges – Still not working! 7 © Copyright 2016 Dell Inc.
Challenges – Still not working! 8 © Copyright 2016 Dell Inc.
Challenges – Still not working! 9 © Copyright 2016 Dell Inc.
Challenges – Still not working! 10 © Copyright 2016 Dell Inc.
Container Approach Goals • Stand-up Murano against existing Open. Stack with minimal effort. • Serve as a springboard for further customization or deployment in production Advantages with Docker images and containers • Isolate dependencies to minimize potential conflicts between various packages • Automate the configurations between various components • Etched in stone a working combination of various packages 11 © Copyright 2016 Dell Inc.
Helloworld - Murano in a Docker container VM murano agent murano-engine heat murano-api keystone Rabbit. MQ horizon muranodashboard 12 © Copyright 2016 Dell Inc. ……. .
Prerequisites • Docker-Engine • Open. Stack Environment • Neutron network with internet access • User with heat_stack_owner role 13 © Copyright 2016 Dell Inc.
Run the container 14 © Copyright 2016 Dell Inc.
Run the container 15 © Copyright 2016 Dell Inc.
Connect to dashboard http: //<container_ip>: 8000 http: //docs. openstack. org/developer/murano/draft/enduser-guide/quickstart. html 16 © Copyright 2016 Dell Inc.
Create Environment 17 © Copyright 2016 Dell Inc.
Add a component to Environment 18 © Copyright 2016 Dell Inc.
Deploy an environment 19 © Copyright 2016 Dell Inc.
20 © Copyright 2016 Dell Inc.
If Everything works! 21 © Copyright 2016 Dell Inc.
Murano CLI 22 © Copyright 2016 Dell Inc.
Troubleshooting Log files on container host Files to check on VM /var/log/murano-agent. log /etc/resolv. conf <----- Verify DNS servers are set correctly here /etc/murano/agent. conf <----- Verify rabbitmq configuration is correct 23 © Copyright 2016 Dell Inc.
Troubleshooting – Common Issues • Incorrect Open. Stack username/password, auth URL, project. Check murano-init. log • Incorrect rabbitmq username/password or firewall blocks rabbitmq port (default 5672). Check muranoapi. log or murano-engine. log • DNS servers not configured for the subnet. This will cause VM not being able to pull packages from the Internet. • Time skew in docker host and Open. Stack hosts. This may show up as SSL error or 403 Proxy unacknowledged in /var/log/murano-agent. log on the VM. 24 © Copyright 2016 Dell Inc.
Deploying the App Catalog • Create Murano application package • Import application into Open. Stack • Deploy application into environment 25 © Copyright 2016 Dell Inc.
Create Murano application package Murano. PL class definition Deployment Script Execution plan template Dynamic UI yaml defination Application Entry point Logo. png List of images if required 26 © Copyright 2016 Dell Inc.
Murano application package Layout Example 27 © Copyright 2016 Dell Inc.
Build Sample Application Catalog 28 © Copyright 2016 Dell Inc.
Import Application Catalog 29 © Copyright 2016 Dell Inc.
Application Catalogs 30 © Copyright 2016 Dell Inc.
Application Catalogs 31 © Copyright 2016 Dell Inc.
Application Catalogs 32 © Copyright 2016 Dell Inc.
Application Catalogs 33 © Copyright 2016 Dell Inc.
Application Catalogs 34 © Copyright 2016 Dell Inc.
Accessing the App 35 © Copyright 2016 Dell Inc.
Create image with murano-agent Follow the simple instructions on this page: http: //docs. openstack. org/developer/murano/image_builders/linux. html # export GITDIR=~/git # mkdir -p $GITDIR # cd $GITDIR # git clone https: //github. com/openstack/murano-agent # git clone https: //github. com/openstack/diskimage-builder # sudo pip install diskimage-builder # sudo apt-get install qemu-utils curl python-tox # export ELEMENTS_PATH=$GITDIR/murano/contrib/elements: $GITDIR/muranoagent/contrib/elements # export DIB_MURANO_AGENT_REPO=http: //git. openstack. org/openstack/murano-agent # disk-image-create vm ubuntu murano-agent -o murano-agent. qcow 2 36 © Copyright 2016 Dell Inc.
For more information • Github: https: //github. com/hldnova/murano-helloworld • Docker hub for automated image build: https: //hub. docker. com/r/lidaheemc/murano-helloworld/ • Contact: • • • 37 Magdy Salem: magdy. salem@dell. com Julio colon: julio. colon@dell. com Lida He: lida. he@dell. com © Copyright 2016 Dell Inc.
Visit us at Booth # A 1 Meet with our experts to learn about what we are Meet doing around Open. Stack #Dell. EMC #Open. Stack