SlideShare ist ein Scribd-Unternehmen logo
1 von 49
Downloaden Sie, um offline zu lesen
@remibergsma@neubauerf
Workshop 

Build your own Cloud
in record time with Cosmic
June 29th, 2016
Amsterdam, NL
@remibergsma@neubauerf
Cosmic Cloud delivers high quality Cloud Orchestration
software to run Mission Critical workloads.
What is Cosmic?
@remibergsma@neubauerf
What is Cosmic?
@remibergsma@neubauerf
cosmiccloud.io
@remibergsma@neubauerf
What is Cosmic?
Lots of fast paced releases.
5.1.0.0 marks a milestone.
@remibergsma@neubauerf
Cosmic projects
Cosmic Cloud Orchestrating Software
Packaging for Cosmic
SystemVM template Packer builder
The Bubble - easy integration testing
Toolkit for The Bubble
@remibergsma@neubauerf
Cloudy building blocks
To build a Cloud we need:
- primary storage
- secondary storage
- zone | pod | cluster
- at least 1 hypervisor
@remibergsma@neubauerf
Get a copy of the slides to copy/paste the commands
Getting the slides
Slides are here: http://www.slideshare.net/remibergsma
@remibergsma@neubauerf
Workshop environment
You will get a Bubble, hosted in the
Schuberg Philis Mission Critical Cloud.
Remember: you can later create your
very own Bubble with the
provided cookbooks and scripts.
@remibergsma@neubauerf
Workshop environment
L0: KVM hypervisor
in Schuberg Philis Cloud
L1: devops-cosmic0x hypervisor
L2: KVM
hypervisors
systemvm
L3: uservm
L2: KVM
hypervisors
systemvm
L3: uservm
Cosmic Mgt server
Services in box:
VPN
NFS / WEB
SSH
Ipsec VPN connection to 85.222.238.190
SSH to 192.168.22.1 over vpn
Management network: 192.168.22.0/24
Public network : 192.168.23.0/24
192.168.22.1
All L3 VMs reachable via public network
All L2 VMs reachable via mgt network
Other VMs if needed
@remibergsma@neubauerf
Bubbles available:
devops-cosmic01 devops-cosmic06
devops-cosmic02 devops-cosmic07
devops-cosmic03 devops-cosmic08
devops-cosmic04 devops-cosmic09
devops-cosmic05 devops-cosmic10
@remibergsma@neubauerf
WorkshopVPN
Remote IP: 85.222.238.190
username: vpn@cosmicXX (01 to 12)
password: <please ask>
Preshared key: DevopsDays2016
Guide for MacOSX Guide for Windows
@remibergsma@neubauerf
Workshop Terminal / Xwindows
Windows: MobaXterm: Mac: Xquartz
Combined with Terminal.app
@remibergsma@neubauerf
Workshop SSH config
Host cloud
hostname 192.168.22.1
ForwardX11 yes
ForwardX11Trusted yes
ForwardAgent yes
StrictHostKeyChecking no
UserKnownHostsFile=/dev/null
On OSX and Linux, add this to ~/.ssh/config:
@remibergsma@neubauerf
Workshop Routes
sudo route add -net 192.168.23.0/24 gw 192.168.22.1
sudo route -n add -net 192.168.23.0./24 192.168.22.1
route add 192.168.23.0 mask 255.255.255.0 192.168.22.1
Linux:
Mac OSX:
Windows:
@remibergsma@neubauerf
Connecting…
ssh 192.168.22.1
byobu-enable <enter> to confirm
@remibergsma@neubauerf
Automation!
@remibergsma@neubauerf
Automation!
We’ll show you some manual steps,
that have been automated. For the
fun of it, and to learn a thing or
two, we’ll show you the steps ;-)
@remibergsma@neubauerf
Prepare virtual infra
Press <F2> for a new tab, then type: virt-manager
$ /data/shared/deploy/kvm_local_deploy.py -m /data/shared/marvin/
mct-zone1-kvm1-kvm2-v2.cfg --force
@remibergsma@neubauerf
Prepare virtual infraNote: kvm1: Running pre_boot script: virt-customize -d kvm1 --firstboot /data/shared/deploy/default/firstboot/centos7-kvm-ovs.sh
[ 0.0] Examining the guest ...
Note: kvm2: Running pre_boot script: virt-customize -d kvm2 --firstboot /data/shared/deploy/default/firstboot/centos7-kvm-ovs.sh
[ 0.0] Examining the guest ...
Note: cs1: Running pre_boot script: virt-customize -d cs1 --firstboot /data/shared/deploy/default/firstboot/centos7-cloudstack-
dev.sh
[ 0.0] Examining the guest ...
[ 10.0] Setting a random seed
[ 10.0] Installing firstboot script: [1] /data/shared/deploy/default/firstboot/centos7-kvm-ovs.sh
[ 10.0] Finishing off
Note: kvm1: Running postboot script: /data/shared/deploy/default/postboot/post_detect_reboot.sh kvm1
Note: kvm1: Waiting for the VM to boot...
[ 11.0] Setting a random seed
[ 11.0] Installing firstboot script: [1] /data/shared/deploy/default/firstboot/centos7-kvm-ovs.sh
[ 10.0] Setting a random seed
[ 10.0] Installing firstboot script: [1] /data/shared/deploy/default/firstboot/centos7-cloudstack-dev.sh
[ 11.0] Finishing off
[ 10.0] Finishing off
Note: kvm2: Running postboot script: /data/shared/deploy/default/postboot/post_detect_reboot.sh kvm2
Note: kvm2: Waiting for the VM to boot...
Note: cs1: Running postboot script: /data/shared/deploy/default/postboot/post_detect_reboot.sh cs1
Note: cs1: Waiting for the VM to boot...
Note: kvm1: Installing and configuring
Note: kvm1: This will take some time. You may send this to the background.
Note: kvm2: Installing and configuring
Note: kvm2: This will take some time. You may send this to the background.
Note: cs1: Installing and configuring
Note: cs1: This will take some time. You may send this to the background.
Note: kvm1: Rebooting
Note: kvm2: Rebooting
Note: kvm1: Ready for duty!
Note: kvm2: Ready for duty!
Note: cs1: Rebooting
Note: cs1: Ready for duty!
@remibergsma@neubauerf
[root@mct-devops1 deploy]# virsh list
Id Name State
----------------------------------------------------
3 cs1 running
4 kvm1 running
5 kvm2 running
Your cloud for today
KVM hypervisors
Cosmic management
Give it some time to finish the setup..
@remibergsma@neubauerf
[root@devops-cosmic99 deploy]# ssh root@cs1 (password=password)

[root@cs1 ~]# cd /data/shared/helper_scripts/cosmic
[root@cs1 ~]# ./prepare_cosmic_compile.sh
Prepare Mgt Server
This will setup all dependencies
@remibergsma@neubauerf
[root@cs1 ~]# cd /data/git/$HOSTNAME/cosmic
[root@cs1 ~]# cd /data/shared/helper_scripts/cosmic
[root@cs1 ~]# ./build_run_deploy_test.sh -m /data/shared/marvin/mct-
zone1-kvm1-kvm2-v2.cfg
Compile Cosmic mgt
Compile in done!
The UI should be up after a few minutes, available from your Mac: http://cs1.cloud.lan:8080/client/
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6:24.846s
[INFO] Finished at: Tue Jun 28 17:15:15 CEST 2016
[INFO] Final Memory: 92M/351M
[INFO] ------------------------------------------------------------------------
Compile Cosmic, Build RPM packages for KVM, Start Mgt server, Deploy Cloud
@remibergsma@neubauerf
Deploy your Cloud
Deploy data center..
[INFO] 2016-06-28 17:45:45,452 - marvin - Parsing Test data successful
[INFO] 2016-06-28 17:45:45,719 - marvin - === Test Client Creation Successful ===
[INFO] 2016-06-28 17:45:45,728 - marvin - === Deploy DC Started ===
[INFO] 2016-06-28 17:45:46,191 - marvin - === Create Zone Successful ===
[INFO] 2016-06-28 17:45:51,409 - marvin - === Creating Physical Network Name : mcct-pnet Id : 6d4920bd-
a52a-49a4-91df-826f3d37ee85 Successful ===
[INFO] 2016-06-28 17:46:16,913 - marvin - === Update Network Service Provider Successfull ===
[INFO] 2016-06-28 17:46:27,086 - marvin - === Update Network Service Provider Successfull ===
[INFO] 2016-06-28 17:46:37,270 - marvin - === Update Network Service Provider Successfull ===
[INFO] 2016-06-28 17:47:46,764 - marvin - === Add Host Successful ===
[INFO] 2016-06-28 17:48:50,170 - marvin - === Add Host Successful ===
[INFO] 2016-06-28 17:49:50,717 - marvin - === Creating Storage Pool Successful ===
[INFO] 2016-06-28 17:49:50,881 - marvin - === Add Image Store Successful ===
[INFO] 2016-06-28 17:49:50,932 - marvin - === Enable Zone Successful ===
[INFO] 2016-06-28 17:49:50,935 - marvin - === Data Center Settings are dumped to dc_entries_Jun_28_2016_17_49_50.obj ===
[INFO] 2016-06-28 17:49:50,942 - marvin - === Deploy DC Successful ===
Tue Jun 28 17:49:50 CEST 2016
Checking template status..
Tue Jun 28 17:56:06 2016 At least template 'tiny linux kvm' is not Ready
http://localhost:8096/client/api?command=listTemplates&templatefilter=all&response=json
Tue Jun 28 17:56:21 2016 All templates are ready!
True
Tue Jun 28 17:56:22 CEST 2016
Not running tests (use -t flag to run them)
Finished
Tue Jun 28 17:56:22 CEST 2016
Fully automatic….
@remibergsma@neubauerf
Cosmic UI
user: admin
pass: password
domain: <empty>
@remibergsma@neubauerf
Check Cosmic UI
@remibergsma@neubauerf
Check Cosmic UI
Wait until the systemVMs are ready.This may take ~5 minutes.
@remibergsma@neubauerf
Check Cosmic UI
@remibergsma@neubauerf
Starting your firstVM
@remibergsma@neubauerf
Templates
The only template
available is ‘Tiny’,
which is a very small
template.
It is registered
without a password
service.
The default user/pass is
root/password.
@remibergsma@neubauerf
Template properties
Let’s edit the template
properties and check the
‘password enabled’
checkbox.
Click to save.
@remibergsma@neubauerf
Copy/paste to use later on (root passwd)
Random password
@remibergsma@neubauerf
Console Proxy VM serves this console
Accessing the console
@remibergsma@neubauerf
Global settings
We may want to bump this setting to 12
We’ll show you how to make that easy..
@remibergsma@neubauerf
We started the Mgt server using Jetty.
Cosmic is a Java app. So, let’s stop Jetty and start Tomcat.
That makes stop/start easier :-)
$ ssh cs1
$ killall -9 java
$ ps aux | grep java
$ cp /data/git/cs1/cosmic/cosmic-client/target/cloud-*.war ~tomcat/
webapps/client.war
$ systemctl start tomcat
We’ll drop the war we compiled before into Tomcat
It’s Java!
Make sure all is gone..
@remibergsma@neubauerf
It’s Java!
[root@cs1 webapps]# systemctl status tomcat
● tomcat.service - Apache Tomcat Web Application Container
Loaded: loaded (/usr/lib/systemd/system/tomcat.service; disabled; vendor preset: disabled)
Active: active (running) since Tue 2016-06-28 20:58:10 CEST; 11min ago
$ systemctl status tomcat
The UI / API will be back in a few minutes…
$ tail -n 100 /var/log/cosmic/management/management-server.log
@remibergsma@neubauerf
Copy/paste to use later on (root passwd)
Random (longer) password
@remibergsma@neubauerf
Metrics
@remibergsma@neubauerf
Forwarding a port
We’ll set up port forwarding
Click Networking, select your network, then IP Addresses
We’ll open the port in the firewall
@remibergsma@neubauerf
Forwarding a port
Fill-in this form to forward SSH
Result looks like this
Fill-in this form to open firewall for SSH
Result looks like this
@remibergsma@neubauerf
SSH to yourVM
Test from your laptop or from devops box
@remibergsma@neubauerf
Using the API
@remibergsma@neubauerf
Learn API calls using FireBug
API docs:

https://cloudstack.apache.org/api/apidocs-4.4/TOC_Root_Admin.html
https://getfirebug.com/releases/lite/chrome/
Use this icon to start FireBug
Install using this page
@remibergsma@neubauerf
Play with CloudMonkey
It has been pre-setup on your cs1 VM
(local) 🐵 > set display table
(local) 🐵 > list virtualmachines filter=name,state,hypervisor,templatename,instancename,
count = 6
virtualmachine:
+------------+---------+--------------+----------------------+----------------+
| hypervisor | state | instancename | name | templatename |
+------------+---------+--------------+----------------------+----------------+
| KVM | Running | i-2-10-VM | devops006 | tiny linux kvm |
| KVM | Running | i-2-8-VM | devops005 | tiny linux kvm |
| KVM | Running | i-2-7-VM | devops-with-password | tiny linux kvm |
| KVM | Running | i-2-6-VM | devops003 | tiny linux kvm |
| KVM | Running | i-2-5-VM | devops002 | tiny linux kvm |
| KVM | Running | i-2-3-VM | devops001 | tiny linux kvm |
+------------+---------+--------------+----------------------+----------------+
(local) 🐵 >
(local) 🐵 > list networks filter=name,networkdomain,vlan,cidr
count = 1
network:
+-------------+---------------+------------+------+
| cidr | networkdomain | name | vlan |
+-------------+---------------+------------+------+
| 10.1.1.0/24 | cs2cloud | devopsdays | 115 |
+-------------+---------------+------------+------+
(local) 🐵 >
@remibergsma@neubauerf
Deploy with CloudMonkey
Deploy another VM in the same network, using CloudMonkey.
Exercise:
TIP: You may want to deploy one via UI first and watch FireBug send API calls…
TIP: You can do this by sending just one API call.
<tab><tab>
@remibergsma@neubauerf
CloudStackOps:
Operating
CloudStack
made easy.
https://github.com/schubergphilis/cloudstackOps
@remibergsma@neubauerf
CloudStackOps
[root@cs1 ~]# cd /data/shared/helper_scripts/cosmic
[root@cs1 cloudstack]# ./setup_cloudstackOps.sh
[root@cs1 cloudstack]# source /data/git/cs1/python_cloud/bin/activate
[root@cs1 cloudstack]# cd /data/git/cs1/cloudstackOps
[root@cs1 cloudstack]# python listVirtualMachines.py -o MCCT-KVM-1
@remibergsma@neubauerf
More exercises
Setup multiple tenants
Create a new network from the API
Explore VPC
Add another cluster to Cosmic
Create HA service offering and apply it to Tiny VM
What happens when a hypervisor crashes?
…… Have fun!
Get in touch!
blog.remibergsma.com
rbergsma@schubergphilis.com
@remibergsma
fneubauer@schubergphilis.com
@neubauerf

Weitere ähnliche Inhalte

Was ist angesagt?

Troubleshooting Strategies for CloudStack Installations by Kirk Kosinski
Troubleshooting Strategies for CloudStack Installations by Kirk Kosinski Troubleshooting Strategies for CloudStack Installations by Kirk Kosinski
Troubleshooting Strategies for CloudStack Installations by Kirk Kosinski buildacloud
 
Behind the Scenes at LiveJournal: Scaling Storytime
Behind the Scenes at LiveJournal: Scaling StorytimeBehind the Scenes at LiveJournal: Scaling Storytime
Behind the Scenes at LiveJournal: Scaling StorytimeSergeyChernyshev
 
Automating the Network
Automating the NetworkAutomating the Network
Automating the NetworkPuppet
 
Salt conf 2014-installing-openstack-using-saltstack-v02
Salt conf 2014-installing-openstack-using-saltstack-v02Salt conf 2014-installing-openstack-using-saltstack-v02
Salt conf 2014-installing-openstack-using-saltstack-v02Yazz Atlas
 
(SDD419) Amazon EC2 Networking Deep Dive and Best Practices | AWS re:Invent 2014
(SDD419) Amazon EC2 Networking Deep Dive and Best Practices | AWS re:Invent 2014(SDD419) Amazon EC2 Networking Deep Dive and Best Practices | AWS re:Invent 2014
(SDD419) Amazon EC2 Networking Deep Dive and Best Practices | AWS re:Invent 2014Amazon Web Services
 
Running Cloud Foundry for 12 months - An experience report | anynines
Running Cloud Foundry for 12 months - An experience report | anyninesRunning Cloud Foundry for 12 months - An experience report | anynines
Running Cloud Foundry for 12 months - An experience report | anyninesanynines GmbH
 
SaltConf14 - Ben Cane - Using SaltStack in High Availability Environments
SaltConf14 - Ben Cane - Using SaltStack in High Availability EnvironmentsSaltConf14 - Ben Cane - Using SaltStack in High Availability Environments
SaltConf14 - Ben Cane - Using SaltStack in High Availability EnvironmentsSaltStack
 
(WEB401) Optimizing Your Web Server on AWS | AWS re:Invent 2014
(WEB401) Optimizing Your Web Server on AWS | AWS re:Invent 2014(WEB401) Optimizing Your Web Server on AWS | AWS re:Invent 2014
(WEB401) Optimizing Your Web Server on AWS | AWS re:Invent 2014Amazon Web Services
 
OSv at Cassandra Summit
OSv at Cassandra SummitOSv at Cassandra Summit
OSv at Cassandra SummitDon Marti
 
How To Set Up SQL Load Balancing with HAProxy - Slides
How To Set Up SQL Load Balancing with HAProxy - SlidesHow To Set Up SQL Load Balancing with HAProxy - Slides
How To Set Up SQL Load Balancing with HAProxy - SlidesSeveralnines
 
Delivering a production Cloud Foundry Environment with Bosh | anynines
Delivering a production Cloud Foundry Environment with Bosh | anyninesDelivering a production Cloud Foundry Environment with Bosh | anynines
Delivering a production Cloud Foundry Environment with Bosh | anyninesanynines GmbH
 
One-click Hadoop Cluster Deployment on OpenPOWER Systems
One-click Hadoop Cluster Deployment on OpenPOWER SystemsOne-click Hadoop Cluster Deployment on OpenPOWER Systems
One-click Hadoop Cluster Deployment on OpenPOWER SystemsPradeep Kumar
 
Couch to OpenStack: Nova - July, 30, 2013
Couch to OpenStack: Nova - July, 30, 2013Couch to OpenStack: Nova - July, 30, 2013
Couch to OpenStack: Nova - July, 30, 2013Trevor Roberts Jr.
 
Salt conf 2014 - Using SaltStack in high availability environments
Salt conf 2014 - Using SaltStack in high availability environmentsSalt conf 2014 - Using SaltStack in high availability environments
Salt conf 2014 - Using SaltStack in high availability environmentsBenjamin Cane
 
Experience Report: Cloud Foundry Open Source Operations | anynines
Experience Report: Cloud Foundry Open Source Operations | anyninesExperience Report: Cloud Foundry Open Source Operations | anynines
Experience Report: Cloud Foundry Open Source Operations | anyninesanynines GmbH
 
Apache Traffic Server & Lua
Apache Traffic Server & LuaApache Traffic Server & Lua
Apache Traffic Server & LuaKit Chan
 
SaltConf14 - Oz Akan, Rackspace - Deploying OpenStack Marconi with SaltStack
SaltConf14 - Oz Akan, Rackspace - Deploying OpenStack Marconi with SaltStackSaltConf14 - Oz Akan, Rackspace - Deploying OpenStack Marconi with SaltStack
SaltConf14 - Oz Akan, Rackspace - Deploying OpenStack Marconi with SaltStackSaltStack
 
Switch as a Server - PuppetConf 2014 - Leslie Carr
Switch as a Server - PuppetConf 2014 - Leslie CarrSwitch as a Server - PuppetConf 2014 - Leslie Carr
Switch as a Server - PuppetConf 2014 - Leslie CarrCumulus Networks
 

Was ist angesagt? (20)

Troubleshooting Strategies for CloudStack Installations by Kirk Kosinski
Troubleshooting Strategies for CloudStack Installations by Kirk Kosinski Troubleshooting Strategies for CloudStack Installations by Kirk Kosinski
Troubleshooting Strategies for CloudStack Installations by Kirk Kosinski
 
Behind the Scenes at LiveJournal: Scaling Storytime
Behind the Scenes at LiveJournal: Scaling StorytimeBehind the Scenes at LiveJournal: Scaling Storytime
Behind the Scenes at LiveJournal: Scaling Storytime
 
Automating the Network
Automating the NetworkAutomating the Network
Automating the Network
 
Salt conf 2014-installing-openstack-using-saltstack-v02
Salt conf 2014-installing-openstack-using-saltstack-v02Salt conf 2014-installing-openstack-using-saltstack-v02
Salt conf 2014-installing-openstack-using-saltstack-v02
 
(SDD419) Amazon EC2 Networking Deep Dive and Best Practices | AWS re:Invent 2014
(SDD419) Amazon EC2 Networking Deep Dive and Best Practices | AWS re:Invent 2014(SDD419) Amazon EC2 Networking Deep Dive and Best Practices | AWS re:Invent 2014
(SDD419) Amazon EC2 Networking Deep Dive and Best Practices | AWS re:Invent 2014
 
Running Cloud Foundry for 12 months - An experience report | anynines
Running Cloud Foundry for 12 months - An experience report | anyninesRunning Cloud Foundry for 12 months - An experience report | anynines
Running Cloud Foundry for 12 months - An experience report | anynines
 
SaltConf14 - Ben Cane - Using SaltStack in High Availability Environments
SaltConf14 - Ben Cane - Using SaltStack in High Availability EnvironmentsSaltConf14 - Ben Cane - Using SaltStack in High Availability Environments
SaltConf14 - Ben Cane - Using SaltStack in High Availability Environments
 
(WEB401) Optimizing Your Web Server on AWS | AWS re:Invent 2014
(WEB401) Optimizing Your Web Server on AWS | AWS re:Invent 2014(WEB401) Optimizing Your Web Server on AWS | AWS re:Invent 2014
(WEB401) Optimizing Your Web Server on AWS | AWS re:Invent 2014
 
OSv at Cassandra Summit
OSv at Cassandra SummitOSv at Cassandra Summit
OSv at Cassandra Summit
 
How To Set Up SQL Load Balancing with HAProxy - Slides
How To Set Up SQL Load Balancing with HAProxy - SlidesHow To Set Up SQL Load Balancing with HAProxy - Slides
How To Set Up SQL Load Balancing with HAProxy - Slides
 
Delivering a production Cloud Foundry Environment with Bosh | anynines
Delivering a production Cloud Foundry Environment with Bosh | anyninesDelivering a production Cloud Foundry Environment with Bosh | anynines
Delivering a production Cloud Foundry Environment with Bosh | anynines
 
One-click Hadoop Cluster Deployment on OpenPOWER Systems
One-click Hadoop Cluster Deployment on OpenPOWER SystemsOne-click Hadoop Cluster Deployment on OpenPOWER Systems
One-click Hadoop Cluster Deployment on OpenPOWER Systems
 
Couch to OpenStack: Nova - July, 30, 2013
Couch to OpenStack: Nova - July, 30, 2013Couch to OpenStack: Nova - July, 30, 2013
Couch to OpenStack: Nova - July, 30, 2013
 
Monkey man
Monkey manMonkey man
Monkey man
 
Salt conf 2014 - Using SaltStack in high availability environments
Salt conf 2014 - Using SaltStack in high availability environmentsSalt conf 2014 - Using SaltStack in high availability environments
Salt conf 2014 - Using SaltStack in high availability environments
 
Experience Report: Cloud Foundry Open Source Operations | anynines
Experience Report: Cloud Foundry Open Source Operations | anyninesExperience Report: Cloud Foundry Open Source Operations | anynines
Experience Report: Cloud Foundry Open Source Operations | anynines
 
Apache Traffic Server & Lua
Apache Traffic Server & LuaApache Traffic Server & Lua
Apache Traffic Server & Lua
 
SaltConf14 - Oz Akan, Rackspace - Deploying OpenStack Marconi with SaltStack
SaltConf14 - Oz Akan, Rackspace - Deploying OpenStack Marconi with SaltStackSaltConf14 - Oz Akan, Rackspace - Deploying OpenStack Marconi with SaltStack
SaltConf14 - Oz Akan, Rackspace - Deploying OpenStack Marconi with SaltStack
 
Switch as a Server - PuppetConf 2014 - Leslie Carr
Switch as a Server - PuppetConf 2014 - Leslie CarrSwitch as a Server - PuppetConf 2014 - Leslie Carr
Switch as a Server - PuppetConf 2014 - Leslie Carr
 
ReplacingSquidWithATS
ReplacingSquidWithATSReplacingSquidWithATS
ReplacingSquidWithATS
 

Ähnlich wie DevOpsDays Amsterdam Cosmic workshop

introduction-infra-as-a-code using terraform
introduction-infra-as-a-code using terraformintroduction-infra-as-a-code using terraform
introduction-infra-as-a-code using terraformniyof97
 
How Puppet Enables the Use of Lightweight Virtualized Containers - PuppetConf...
How Puppet Enables the Use of Lightweight Virtualized Containers - PuppetConf...How Puppet Enables the Use of Lightweight Virtualized Containers - PuppetConf...
How Puppet Enables the Use of Lightweight Virtualized Containers - PuppetConf...Puppet
 
Kubernetes laravel and kubernetes
Kubernetes   laravel and kubernetesKubernetes   laravel and kubernetes
Kubernetes laravel and kubernetesWilliam Stewart
 
Virtual Infrastructure
Virtual InfrastructureVirtual Infrastructure
Virtual InfrastructureBryan McLellan
 
Varnish Configuration Step by Step
Varnish Configuration Step by StepVarnish Configuration Step by Step
Varnish Configuration Step by StepKim Stefan Lindholm
 
Infrastructureascode slideshare-160331143725
Infrastructureascode slideshare-160331143725Infrastructureascode slideshare-160331143725
Infrastructureascode slideshare-160331143725miguel dominguez
 
Infrastructureascode slideshare-160331143725
Infrastructureascode slideshare-160331143725Infrastructureascode slideshare-160331143725
Infrastructureascode slideshare-160331143725MortazaJohari
 
Infrastructure as code: running microservices on AWS using Docker, Terraform,...
Infrastructure as code: running microservices on AWS using Docker, Terraform,...Infrastructure as code: running microservices on AWS using Docker, Terraform,...
Infrastructure as code: running microservices on AWS using Docker, Terraform,...Yevgeniy Brikman
 
Vagrant - Version control your dev environment
Vagrant - Version control your dev environmentVagrant - Version control your dev environment
Vagrant - Version control your dev environmentbocribbz
 
Immutable kubernetes architecture by linuxkit
Immutable kubernetes architecture by linuxkitImmutable kubernetes architecture by linuxkit
Immutable kubernetes architecture by linuxkit어형 이
 
(ARC402) Deployment Automation: From Developers' Keyboards to End Users' Scre...
(ARC402) Deployment Automation: From Developers' Keyboards to End Users' Scre...(ARC402) Deployment Automation: From Developers' Keyboards to End Users' Scre...
(ARC402) Deployment Automation: From Developers' Keyboards to End Users' Scre...Amazon Web Services
 
Capifony. Minsk PHP MeetUp #11
Capifony. Minsk PHP MeetUp #11Capifony. Minsk PHP MeetUp #11
Capifony. Minsk PHP MeetUp #11Yury Pliashkou
 
Assembling an Open Source Toolchain to Manage Public, Private and Hybrid Clou...
Assembling an Open Source Toolchain to Manage Public, Private and Hybrid Clou...Assembling an Open Source Toolchain to Manage Public, Private and Hybrid Clou...
Assembling an Open Source Toolchain to Manage Public, Private and Hybrid Clou...POSSCON
 
Deploying Kubernetes on GCP with Kubespray
Deploying Kubernetes on GCP with KubesprayDeploying Kubernetes on GCP with Kubespray
Deploying Kubernetes on GCP with KubesprayAltoros
 
Postgres the hardway
Postgres the hardwayPostgres the hardway
Postgres the hardwayDave Pitts
 
Capistrano deploy Magento project in an efficient way
Capistrano deploy Magento project in an efficient wayCapistrano deploy Magento project in an efficient way
Capistrano deploy Magento project in an efficient waySylvain Rayé
 

Ähnlich wie DevOpsDays Amsterdam Cosmic workshop (20)

introduction-infra-as-a-code using terraform
introduction-infra-as-a-code using terraformintroduction-infra-as-a-code using terraform
introduction-infra-as-a-code using terraform
 
How Puppet Enables the Use of Lightweight Virtualized Containers - PuppetConf...
How Puppet Enables the Use of Lightweight Virtualized Containers - PuppetConf...How Puppet Enables the Use of Lightweight Virtualized Containers - PuppetConf...
How Puppet Enables the Use of Lightweight Virtualized Containers - PuppetConf...
 
Kubernetes laravel and kubernetes
Kubernetes   laravel and kubernetesKubernetes   laravel and kubernetes
Kubernetes laravel and kubernetes
 
Virtual Infrastructure
Virtual InfrastructureVirtual Infrastructure
Virtual Infrastructure
 
Varnish Configuration Step by Step
Varnish Configuration Step by StepVarnish Configuration Step by Step
Varnish Configuration Step by Step
 
One-Man Ops
One-Man OpsOne-Man Ops
One-Man Ops
 
Infrastructureascode slideshare-160331143725
Infrastructureascode slideshare-160331143725Infrastructureascode slideshare-160331143725
Infrastructureascode slideshare-160331143725
 
Infrastructureascode slideshare-160331143725
Infrastructureascode slideshare-160331143725Infrastructureascode slideshare-160331143725
Infrastructureascode slideshare-160331143725
 
Infrastructure as code: running microservices on AWS using Docker, Terraform,...
Infrastructure as code: running microservices on AWS using Docker, Terraform,...Infrastructure as code: running microservices on AWS using Docker, Terraform,...
Infrastructure as code: running microservices on AWS using Docker, Terraform,...
 
Vagrant - Version control your dev environment
Vagrant - Version control your dev environmentVagrant - Version control your dev environment
Vagrant - Version control your dev environment
 
Immutable kubernetes architecture by linuxkit
Immutable kubernetes architecture by linuxkitImmutable kubernetes architecture by linuxkit
Immutable kubernetes architecture by linuxkit
 
Vagrant and chef
Vagrant and chefVagrant and chef
Vagrant and chef
 
(ARC402) Deployment Automation: From Developers' Keyboards to End Users' Scre...
(ARC402) Deployment Automation: From Developers' Keyboards to End Users' Scre...(ARC402) Deployment Automation: From Developers' Keyboards to End Users' Scre...
(ARC402) Deployment Automation: From Developers' Keyboards to End Users' Scre...
 
Capifony. Minsk PHP MeetUp #11
Capifony. Minsk PHP MeetUp #11Capifony. Minsk PHP MeetUp #11
Capifony. Minsk PHP MeetUp #11
 
Assembling an Open Source Toolchain to Manage Public, Private and Hybrid Clou...
Assembling an Open Source Toolchain to Manage Public, Private and Hybrid Clou...Assembling an Open Source Toolchain to Manage Public, Private and Hybrid Clou...
Assembling an Open Source Toolchain to Manage Public, Private and Hybrid Clou...
 
Deploying Kubernetes on GCP with Kubespray
Deploying Kubernetes on GCP with KubesprayDeploying Kubernetes on GCP with Kubespray
Deploying Kubernetes on GCP with Kubespray
 
kubernetes practice
kubernetes practicekubernetes practice
kubernetes practice
 
Postgres the hardway
Postgres the hardwayPostgres the hardway
Postgres the hardway
 
Introduction to Vagrant
Introduction to VagrantIntroduction to Vagrant
Introduction to Vagrant
 
Capistrano deploy Magento project in an efficient way
Capistrano deploy Magento project in an efficient wayCapistrano deploy Magento project in an efficient way
Capistrano deploy Magento project in an efficient way
 

Kürzlich hochgeladen

Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$
Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$
Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$kojalkojal131
 
How is AI changing journalism? (v. April 2024)
How is AI changing journalism? (v. April 2024)How is AI changing journalism? (v. April 2024)
How is AI changing journalism? (v. April 2024)Damian Radcliffe
 
Networking in the Penumbra presented by Geoff Huston at NZNOG
Networking in the Penumbra presented by Geoff Huston at NZNOGNetworking in the Penumbra presented by Geoff Huston at NZNOG
Networking in the Penumbra presented by Geoff Huston at NZNOGAPNIC
 
Russian Call girl in Ajman +971563133746 Ajman Call girl Service
Russian Call girl in Ajman +971563133746 Ajman Call girl ServiceRussian Call girl in Ajman +971563133746 Ajman Call girl Service
Russian Call girl in Ajman +971563133746 Ajman Call girl Servicegwenoracqe6
 
FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607
FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607
FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607dollysharma2066
 
✂️ 👅 Independent Andheri Escorts With Room Vashi Call Girls 💃 9004004663
✂️ 👅 Independent Andheri Escorts With Room Vashi Call Girls 💃 9004004663✂️ 👅 Independent Andheri Escorts With Room Vashi Call Girls 💃 9004004663
✂️ 👅 Independent Andheri Escorts With Room Vashi Call Girls 💃 9004004663Call Girls Mumbai
 
Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
AlbaniaDreamin24 - How to easily use an API with Flows
AlbaniaDreamin24 - How to easily use an API with FlowsAlbaniaDreamin24 - How to easily use an API with Flows
AlbaniaDreamin24 - How to easily use an API with FlowsThierry TROUIN ☁
 
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girl
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call GirlVIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girl
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girladitipandeya
 
SEO Growth Program-Digital optimization Specialist
SEO Growth Program-Digital optimization SpecialistSEO Growth Program-Digital optimization Specialist
SEO Growth Program-Digital optimization SpecialistKHM Anwar
 
horny (9316020077 ) Goa Call Girls Service by VIP Call Girls in Goa
horny (9316020077 ) Goa  Call Girls Service by VIP Call Girls in Goahorny (9316020077 ) Goa  Call Girls Service by VIP Call Girls in Goa
horny (9316020077 ) Goa Call Girls Service by VIP Call Girls in Goasexy call girls service in goa
 
Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.soniya singh
 
Call Now ☎ 8264348440 !! Call Girls in Green Park Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Green Park Escort Service Delhi N.C.R.Call Now ☎ 8264348440 !! Call Girls in Green Park Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Green Park Escort Service Delhi N.C.R.soniya singh
 
Best VIP Call Girls Noida Sector 75 Call Me: 8448380779
Best VIP Call Girls Noida Sector 75 Call Me: 8448380779Best VIP Call Girls Noida Sector 75 Call Me: 8448380779
Best VIP Call Girls Noida Sector 75 Call Me: 8448380779Delhi Call girls
 
Enjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort Service
Enjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort ServiceEnjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort Service
Enjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort ServiceDelhi Call girls
 
Lucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRL
Lucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRLLucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRL
Lucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRLimonikaupta
 
Call Girls In Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Defence Colony Delhi 💯Call Us 🔝8264348440🔝Call Girls In Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Defence Colony Delhi 💯Call Us 🔝8264348440🔝soniya singh
 

Kürzlich hochgeladen (20)

Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$
Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$
Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$
 
How is AI changing journalism? (v. April 2024)
How is AI changing journalism? (v. April 2024)How is AI changing journalism? (v. April 2024)
How is AI changing journalism? (v. April 2024)
 
Networking in the Penumbra presented by Geoff Huston at NZNOG
Networking in the Penumbra presented by Geoff Huston at NZNOGNetworking in the Penumbra presented by Geoff Huston at NZNOG
Networking in the Penumbra presented by Geoff Huston at NZNOG
 
Russian Call girl in Ajman +971563133746 Ajman Call girl Service
Russian Call girl in Ajman +971563133746 Ajman Call girl ServiceRussian Call girl in Ajman +971563133746 Ajman Call girl Service
Russian Call girl in Ajman +971563133746 Ajman Call girl Service
 
FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607
FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607
FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607
 
✂️ 👅 Independent Andheri Escorts With Room Vashi Call Girls 💃 9004004663
✂️ 👅 Independent Andheri Escorts With Room Vashi Call Girls 💃 9004004663✂️ 👅 Independent Andheri Escorts With Room Vashi Call Girls 💃 9004004663
✂️ 👅 Independent Andheri Escorts With Room Vashi Call Girls 💃 9004004663
 
Call Girls In Noida 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SERVICE
Call Girls In Noida 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SERVICECall Girls In Noida 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SERVICE
Call Girls In Noida 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SERVICE
 
Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝
 
AlbaniaDreamin24 - How to easily use an API with Flows
AlbaniaDreamin24 - How to easily use an API with FlowsAlbaniaDreamin24 - How to easily use an API with Flows
AlbaniaDreamin24 - How to easily use an API with Flows
 
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girl
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call GirlVIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girl
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girl
 
Dwarka Sector 26 Call Girls | Delhi | 9999965857 🫦 Vanshika Verma More Our Se...
Dwarka Sector 26 Call Girls | Delhi | 9999965857 🫦 Vanshika Verma More Our Se...Dwarka Sector 26 Call Girls | Delhi | 9999965857 🫦 Vanshika Verma More Our Se...
Dwarka Sector 26 Call Girls | Delhi | 9999965857 🫦 Vanshika Verma More Our Se...
 
SEO Growth Program-Digital optimization Specialist
SEO Growth Program-Digital optimization SpecialistSEO Growth Program-Digital optimization Specialist
SEO Growth Program-Digital optimization Specialist
 
horny (9316020077 ) Goa Call Girls Service by VIP Call Girls in Goa
horny (9316020077 ) Goa  Call Girls Service by VIP Call Girls in Goahorny (9316020077 ) Goa  Call Girls Service by VIP Call Girls in Goa
horny (9316020077 ) Goa Call Girls Service by VIP Call Girls in Goa
 
Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.
 
Call Now ☎ 8264348440 !! Call Girls in Green Park Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Green Park Escort Service Delhi N.C.R.Call Now ☎ 8264348440 !! Call Girls in Green Park Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Green Park Escort Service Delhi N.C.R.
 
Best VIP Call Girls Noida Sector 75 Call Me: 8448380779
Best VIP Call Girls Noida Sector 75 Call Me: 8448380779Best VIP Call Girls Noida Sector 75 Call Me: 8448380779
Best VIP Call Girls Noida Sector 75 Call Me: 8448380779
 
Enjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort Service
Enjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort ServiceEnjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort Service
Enjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort Service
 
Rohini Sector 22 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 22 Call Girls Delhi 9999965857 @Sabina Saikh No AdvanceRohini Sector 22 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 22 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
 
Lucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRL
Lucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRLLucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRL
Lucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRL
 
Call Girls In Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Defence Colony Delhi 💯Call Us 🔝8264348440🔝Call Girls In Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Defence Colony Delhi 💯Call Us 🔝8264348440🔝
 

DevOpsDays Amsterdam Cosmic workshop

  • 1. @remibergsma@neubauerf Workshop 
 Build your own Cloud in record time with Cosmic June 29th, 2016 Amsterdam, NL
  • 2. @remibergsma@neubauerf Cosmic Cloud delivers high quality Cloud Orchestration software to run Mission Critical workloads. What is Cosmic?
  • 5. @remibergsma@neubauerf What is Cosmic? Lots of fast paced releases. 5.1.0.0 marks a milestone.
  • 6. @remibergsma@neubauerf Cosmic projects Cosmic Cloud Orchestrating Software Packaging for Cosmic SystemVM template Packer builder The Bubble - easy integration testing Toolkit for The Bubble
  • 7. @remibergsma@neubauerf Cloudy building blocks To build a Cloud we need: - primary storage - secondary storage - zone | pod | cluster - at least 1 hypervisor
  • 8. @remibergsma@neubauerf Get a copy of the slides to copy/paste the commands Getting the slides Slides are here: http://www.slideshare.net/remibergsma
  • 9. @remibergsma@neubauerf Workshop environment You will get a Bubble, hosted in the Schuberg Philis Mission Critical Cloud. Remember: you can later create your very own Bubble with the provided cookbooks and scripts.
  • 10. @remibergsma@neubauerf Workshop environment L0: KVM hypervisor in Schuberg Philis Cloud L1: devops-cosmic0x hypervisor L2: KVM hypervisors systemvm L3: uservm L2: KVM hypervisors systemvm L3: uservm Cosmic Mgt server Services in box: VPN NFS / WEB SSH Ipsec VPN connection to 85.222.238.190 SSH to 192.168.22.1 over vpn Management network: 192.168.22.0/24 Public network : 192.168.23.0/24 192.168.22.1 All L3 VMs reachable via public network All L2 VMs reachable via mgt network Other VMs if needed
  • 11. @remibergsma@neubauerf Bubbles available: devops-cosmic01 devops-cosmic06 devops-cosmic02 devops-cosmic07 devops-cosmic03 devops-cosmic08 devops-cosmic04 devops-cosmic09 devops-cosmic05 devops-cosmic10
  • 12. @remibergsma@neubauerf WorkshopVPN Remote IP: 85.222.238.190 username: vpn@cosmicXX (01 to 12) password: <please ask> Preshared key: DevopsDays2016 Guide for MacOSX Guide for Windows
  • 13. @remibergsma@neubauerf Workshop Terminal / Xwindows Windows: MobaXterm: Mac: Xquartz Combined with Terminal.app
  • 14. @remibergsma@neubauerf Workshop SSH config Host cloud hostname 192.168.22.1 ForwardX11 yes ForwardX11Trusted yes ForwardAgent yes StrictHostKeyChecking no UserKnownHostsFile=/dev/null On OSX and Linux, add this to ~/.ssh/config:
  • 15. @remibergsma@neubauerf Workshop Routes sudo route add -net 192.168.23.0/24 gw 192.168.22.1 sudo route -n add -net 192.168.23.0./24 192.168.22.1 route add 192.168.23.0 mask 255.255.255.0 192.168.22.1 Linux: Mac OSX: Windows:
  • 18. @remibergsma@neubauerf Automation! We’ll show you some manual steps, that have been automated. For the fun of it, and to learn a thing or two, we’ll show you the steps ;-)
  • 19. @remibergsma@neubauerf Prepare virtual infra Press <F2> for a new tab, then type: virt-manager $ /data/shared/deploy/kvm_local_deploy.py -m /data/shared/marvin/ mct-zone1-kvm1-kvm2-v2.cfg --force
  • 20. @remibergsma@neubauerf Prepare virtual infraNote: kvm1: Running pre_boot script: virt-customize -d kvm1 --firstboot /data/shared/deploy/default/firstboot/centos7-kvm-ovs.sh [ 0.0] Examining the guest ... Note: kvm2: Running pre_boot script: virt-customize -d kvm2 --firstboot /data/shared/deploy/default/firstboot/centos7-kvm-ovs.sh [ 0.0] Examining the guest ... Note: cs1: Running pre_boot script: virt-customize -d cs1 --firstboot /data/shared/deploy/default/firstboot/centos7-cloudstack- dev.sh [ 0.0] Examining the guest ... [ 10.0] Setting a random seed [ 10.0] Installing firstboot script: [1] /data/shared/deploy/default/firstboot/centos7-kvm-ovs.sh [ 10.0] Finishing off Note: kvm1: Running postboot script: /data/shared/deploy/default/postboot/post_detect_reboot.sh kvm1 Note: kvm1: Waiting for the VM to boot... [ 11.0] Setting a random seed [ 11.0] Installing firstboot script: [1] /data/shared/deploy/default/firstboot/centos7-kvm-ovs.sh [ 10.0] Setting a random seed [ 10.0] Installing firstboot script: [1] /data/shared/deploy/default/firstboot/centos7-cloudstack-dev.sh [ 11.0] Finishing off [ 10.0] Finishing off Note: kvm2: Running postboot script: /data/shared/deploy/default/postboot/post_detect_reboot.sh kvm2 Note: kvm2: Waiting for the VM to boot... Note: cs1: Running postboot script: /data/shared/deploy/default/postboot/post_detect_reboot.sh cs1 Note: cs1: Waiting for the VM to boot... Note: kvm1: Installing and configuring Note: kvm1: This will take some time. You may send this to the background. Note: kvm2: Installing and configuring Note: kvm2: This will take some time. You may send this to the background. Note: cs1: Installing and configuring Note: cs1: This will take some time. You may send this to the background. Note: kvm1: Rebooting Note: kvm2: Rebooting Note: kvm1: Ready for duty! Note: kvm2: Ready for duty! Note: cs1: Rebooting Note: cs1: Ready for duty!
  • 21. @remibergsma@neubauerf [root@mct-devops1 deploy]# virsh list Id Name State ---------------------------------------------------- 3 cs1 running 4 kvm1 running 5 kvm2 running Your cloud for today KVM hypervisors Cosmic management Give it some time to finish the setup..
  • 22. @remibergsma@neubauerf [root@devops-cosmic99 deploy]# ssh root@cs1 (password=password)
 [root@cs1 ~]# cd /data/shared/helper_scripts/cosmic [root@cs1 ~]# ./prepare_cosmic_compile.sh Prepare Mgt Server This will setup all dependencies
  • 23. @remibergsma@neubauerf [root@cs1 ~]# cd /data/git/$HOSTNAME/cosmic [root@cs1 ~]# cd /data/shared/helper_scripts/cosmic [root@cs1 ~]# ./build_run_deploy_test.sh -m /data/shared/marvin/mct- zone1-kvm1-kvm2-v2.cfg Compile Cosmic mgt Compile in done! The UI should be up after a few minutes, available from your Mac: http://cs1.cloud.lan:8080/client/ [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 6:24.846s [INFO] Finished at: Tue Jun 28 17:15:15 CEST 2016 [INFO] Final Memory: 92M/351M [INFO] ------------------------------------------------------------------------ Compile Cosmic, Build RPM packages for KVM, Start Mgt server, Deploy Cloud
  • 24. @remibergsma@neubauerf Deploy your Cloud Deploy data center.. [INFO] 2016-06-28 17:45:45,452 - marvin - Parsing Test data successful [INFO] 2016-06-28 17:45:45,719 - marvin - === Test Client Creation Successful === [INFO] 2016-06-28 17:45:45,728 - marvin - === Deploy DC Started === [INFO] 2016-06-28 17:45:46,191 - marvin - === Create Zone Successful === [INFO] 2016-06-28 17:45:51,409 - marvin - === Creating Physical Network Name : mcct-pnet Id : 6d4920bd- a52a-49a4-91df-826f3d37ee85 Successful === [INFO] 2016-06-28 17:46:16,913 - marvin - === Update Network Service Provider Successfull === [INFO] 2016-06-28 17:46:27,086 - marvin - === Update Network Service Provider Successfull === [INFO] 2016-06-28 17:46:37,270 - marvin - === Update Network Service Provider Successfull === [INFO] 2016-06-28 17:47:46,764 - marvin - === Add Host Successful === [INFO] 2016-06-28 17:48:50,170 - marvin - === Add Host Successful === [INFO] 2016-06-28 17:49:50,717 - marvin - === Creating Storage Pool Successful === [INFO] 2016-06-28 17:49:50,881 - marvin - === Add Image Store Successful === [INFO] 2016-06-28 17:49:50,932 - marvin - === Enable Zone Successful === [INFO] 2016-06-28 17:49:50,935 - marvin - === Data Center Settings are dumped to dc_entries_Jun_28_2016_17_49_50.obj === [INFO] 2016-06-28 17:49:50,942 - marvin - === Deploy DC Successful === Tue Jun 28 17:49:50 CEST 2016 Checking template status.. Tue Jun 28 17:56:06 2016 At least template 'tiny linux kvm' is not Ready http://localhost:8096/client/api?command=listTemplates&templatefilter=all&response=json Tue Jun 28 17:56:21 2016 All templates are ready! True Tue Jun 28 17:56:22 CEST 2016 Not running tests (use -t flag to run them) Finished Tue Jun 28 17:56:22 CEST 2016 Fully automatic….
  • 27. @remibergsma@neubauerf Check Cosmic UI Wait until the systemVMs are ready.This may take ~5 minutes.
  • 30. @remibergsma@neubauerf Templates The only template available is ‘Tiny’, which is a very small template. It is registered without a password service. The default user/pass is root/password.
  • 31. @remibergsma@neubauerf Template properties Let’s edit the template properties and check the ‘password enabled’ checkbox. Click to save.
  • 32. @remibergsma@neubauerf Copy/paste to use later on (root passwd) Random password
  • 33. @remibergsma@neubauerf Console Proxy VM serves this console Accessing the console
  • 34. @remibergsma@neubauerf Global settings We may want to bump this setting to 12 We’ll show you how to make that easy..
  • 35. @remibergsma@neubauerf We started the Mgt server using Jetty. Cosmic is a Java app. So, let’s stop Jetty and start Tomcat. That makes stop/start easier :-) $ ssh cs1 $ killall -9 java $ ps aux | grep java $ cp /data/git/cs1/cosmic/cosmic-client/target/cloud-*.war ~tomcat/ webapps/client.war $ systemctl start tomcat We’ll drop the war we compiled before into Tomcat It’s Java! Make sure all is gone..
  • 36. @remibergsma@neubauerf It’s Java! [root@cs1 webapps]# systemctl status tomcat ● tomcat.service - Apache Tomcat Web Application Container Loaded: loaded (/usr/lib/systemd/system/tomcat.service; disabled; vendor preset: disabled) Active: active (running) since Tue 2016-06-28 20:58:10 CEST; 11min ago $ systemctl status tomcat The UI / API will be back in a few minutes… $ tail -n 100 /var/log/cosmic/management/management-server.log
  • 37. @remibergsma@neubauerf Copy/paste to use later on (root passwd) Random (longer) password
  • 39. @remibergsma@neubauerf Forwarding a port We’ll set up port forwarding Click Networking, select your network, then IP Addresses We’ll open the port in the firewall
  • 40. @remibergsma@neubauerf Forwarding a port Fill-in this form to forward SSH Result looks like this Fill-in this form to open firewall for SSH Result looks like this
  • 41. @remibergsma@neubauerf SSH to yourVM Test from your laptop or from devops box
  • 43. @remibergsma@neubauerf Learn API calls using FireBug API docs:
 https://cloudstack.apache.org/api/apidocs-4.4/TOC_Root_Admin.html https://getfirebug.com/releases/lite/chrome/ Use this icon to start FireBug Install using this page
  • 44. @remibergsma@neubauerf Play with CloudMonkey It has been pre-setup on your cs1 VM (local) 🐵 > set display table (local) 🐵 > list virtualmachines filter=name,state,hypervisor,templatename,instancename, count = 6 virtualmachine: +------------+---------+--------------+----------------------+----------------+ | hypervisor | state | instancename | name | templatename | +------------+---------+--------------+----------------------+----------------+ | KVM | Running | i-2-10-VM | devops006 | tiny linux kvm | | KVM | Running | i-2-8-VM | devops005 | tiny linux kvm | | KVM | Running | i-2-7-VM | devops-with-password | tiny linux kvm | | KVM | Running | i-2-6-VM | devops003 | tiny linux kvm | | KVM | Running | i-2-5-VM | devops002 | tiny linux kvm | | KVM | Running | i-2-3-VM | devops001 | tiny linux kvm | +------------+---------+--------------+----------------------+----------------+ (local) 🐵 > (local) 🐵 > list networks filter=name,networkdomain,vlan,cidr count = 1 network: +-------------+---------------+------------+------+ | cidr | networkdomain | name | vlan | +-------------+---------------+------------+------+ | 10.1.1.0/24 | cs2cloud | devopsdays | 115 | +-------------+---------------+------------+------+ (local) 🐵 >
  • 45. @remibergsma@neubauerf Deploy with CloudMonkey Deploy another VM in the same network, using CloudMonkey. Exercise: TIP: You may want to deploy one via UI first and watch FireBug send API calls… TIP: You can do this by sending just one API call. <tab><tab>
  • 47. @remibergsma@neubauerf CloudStackOps [root@cs1 ~]# cd /data/shared/helper_scripts/cosmic [root@cs1 cloudstack]# ./setup_cloudstackOps.sh [root@cs1 cloudstack]# source /data/git/cs1/python_cloud/bin/activate [root@cs1 cloudstack]# cd /data/git/cs1/cloudstackOps [root@cs1 cloudstack]# python listVirtualMachines.py -o MCCT-KVM-1
  • 48. @remibergsma@neubauerf More exercises Setup multiple tenants Create a new network from the API Explore VPC Add another cluster to Cosmic Create HA service offering and apply it to Tiny VM What happens when a hypervisor crashes? …… Have fun!