DevOpsDays Amsterdam Cosmic workshop

  • View
    2.378

  • Download
    1

Embed Size (px)

Text of DevOpsDays Amsterdam Cosmic workshop

  • @remibergsma @neubauerf

    Workshop Build your own Cloud in record time with Cosmic

    June 29th, 2016Amsterdam, NL

    http://twitter.com/remibergsmahttp://twitter.com/neubauerfhttps://github.com/MissionCriticalCloud/cosmic

  • @remibergsma @neubauerf

    Cosmic Cloud delivers high quality Cloud Orchestration software to run Mission Critical workloads.

    What is Cosmic?

    http://twitter.com/remibergsmahttp://twitter.com/neubauerfhttps://github.com/MissionCriticalCloud/cosmic

  • @remibergsma @neubauerf

    What is Cosmic?

    http://twitter.com/remibergsmahttp://twitter.com/neubauerfhttp://www.networkworld.com/article/3028065/hybrid-cloud/schuberg-philis-forks-cloudstack-what-happens-next.htmlhttps://cupfighter.net/2016/01/welcome-mission-critical-cloud

  • @remibergsma @neubauerf

    cosmiccloud.io

    http://twitter.com/remibergsmahttp://twitter.com/neubauerfhttp://cosmiccloud.io

  • @remibergsma @neubauerf

    What is Cosmic?

    Lots of fast paced releases. 5.1.0.0 marks a milestone.

    http://twitter.com/remibergsmahttp://twitter.com/neubauerfhttps://cupfighter.net/2016/06/cosmic-5-1-released

  • @remibergsma @neubauerf

    Cosmic projects

    Cosmic Cloud Orchestrating SoftwarePackaging for Cosmic

    SystemVM template Packer builderThe Bubble - easy integration testing

    Toolkit for The Bubble

    http://twitter.com/remibergsmahttp://twitter.com/neubauerfhttps://github.com/MissionCriticalCloud/cosmichttps://github.com/MissionCriticalCloud/packaginghttps://github.com/MissionCriticalCloud/systemvm-packerhttps://github.com/MissionCriticalCloud/bubble-cookbookhttps://github.com/MissionCriticalCloud/bubble-toolkithttps://github.com/MissionCriticalCloud/cosmic

  • @remibergsma @neubauerf

    Cloudy building blocks

    To build a Cloud we need: - primary storage - secondary storage - zone | pod | cluster - at least 1 hypervisor

    http://twitter.com/remibergsmahttp://twitter.com/neubauerf

  • @remibergsma @neubauerf

    Get a copy of the slides to copy/paste the commands

    Getting the slides

    Slides are here: http://www.slideshare.net/remibergsma

    http://twitter.com/remibergsmahttp://twitter.com/neubauerfhttp://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.

    http://twitter.com/remibergsmahttp://twitter.com/neubauerfhttps://www.schubergphilis.com/https://github.com/MissionCriticalCloud/bubble-cookbookhttps://github.com/MissionCriticalCloud/bubble-toolkit

  • @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/24Public 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

    http://twitter.com/remibergsmahttp://twitter.com/neubauerf

  • @remibergsma @neubauerf

    Bubbles available:devops-cosmic01 devops-cosmic06

    devops-cosmic02 devops-cosmic07

    devops-cosmic03 devops-cosmic08

    devops-cosmic04 devops-cosmic09

    devops-cosmic05 devops-cosmic10

    http://twitter.com/remibergsmahttp://twitter.com/neubauerf

  • @remibergsma @neubauerf

    Workshop VPN

    Remote IP: 85.222.238.190 username: vpn@cosmicXX (01 to 12)password: Preshared key: DevopsDays2016

    Guide for MacOSX Guide for Windows

    http://twitter.com/remibergsmahttp://twitter.com/neubauerfhttps://www.softether.org/4-docs/2-howto/9.L2TPIPsec_Setup_Guide_for_SoftEther_VPN_Server/5.Mac_OS_X_L2TP_Client_Setuphttps://www.softether.org/4-docs/2-howto/9.L2TPIPsec_Setup_Guide_for_SoftEther_VPN_Server/4.Windows_L2TP_Client_Setup

  • @remibergsma @neubauerf

    Workshop Terminal / Xwindows

    Windows: MobaXterm: Mac: Xquartz

    Combined with Terminal.app

    http://twitter.com/remibergsmahttp://twitter.com/neubauerfhttp://mobaxterm.mobatek.net/https://www.xquartz.org

  • @remibergsma @neubauerf

    Workshop SSH config

    Host cloudhostname 192.168.22.1ForwardX11 yesForwardX11Trusted yesForwardAgent yesStrictHostKeyChecking noUserKnownHostsFile=/dev/null

    On OSX and Linux, add this to ~/.ssh/config:

    http://twitter.com/remibergsmahttp://twitter.com/neubauerf

  • @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:

    http://twitter.com/remibergsmahttp://twitter.com/neubauerf

  • @remibergsma @neubauerf

    Connecting

    ssh 192.168.22.1

    byobu-enable to confirm

    http://twitter.com/remibergsmahttp://twitter.com/neubauerf

  • @remibergsma @neubauerf

    Automation!

    http://twitter.com/remibergsmahttp://twitter.com/neubauerf

  • @remibergsma @neubauerf

    Automation!

    Well show you some manual steps, that have been automated. For the fun of it, and to learn a thing or two, well show you the steps ;-)

    http://twitter.com/remibergsmahttp://twitter.com/neubauerf

  • @remibergsma @neubauerf

    Prepare virtual infra

    Press 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

    http://twitter.com/remibergsmahttp://twitter.com/neubauerf

  • @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 offNote: kvm1: Running postboot script: /data/shared/deploy/default/postboot/post_detect_reboot.sh kvm1Note: 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 offNote: kvm2: Running postboot script: /data/shared/deploy/default/postboot/post_detect_reboot.sh kvm2Note: kvm2: Waiting for the VM to boot...Note: cs1: Running postboot script: /data/shared/deploy/default/postboot/post_detect_reboot.sh cs1Note: cs1: Waiting for the VM to boot...Note: kvm1: Installing and configuringNote: kvm1: This will take some time. You may send this to the background.Note: kvm2: Installing and configuringNote: kvm2: This will take some time. You may send this to the background.Note: cs1: Installing and configuringNote: cs1: This will take some time. You may send this to the background.Note: kvm1: RebootingNote: kvm2: RebootingNote: kvm1: Ready for duty!Note: kvm2: Ready for duty!Note: cs1: RebootingNote: cs1: Ready for duty!

    http://twitter.com/remibergsmahttp://twitter.com/neubauerf

  • @remibergsma @neubauerf

    [root@mct-devops1 deploy]# virsh listId 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..

    http://twitter.com/remibergsmahttp://twitter.com/neubauerf

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

    http://twitter.com/remibergsmahttp://twitter.com/neubauerf

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

    http://twitter.com/remibergsmahttp://twitter.com/neubauerfcs1.cloud.lan:8080/client/

  • @remibergsma @neubauerf

    Deploy your CloudDeploy data center..[INFO] 2016-06-2