Rule breaker! Upgrading an OpenStack Cloud while skipping a release - - PowerPoint PPT Presentation

rule breaker
SMART_READER_LITE
LIVE PREVIEW

Rule breaker! Upgrading an OpenStack Cloud while skipping a release - - PowerPoint PPT Presentation

Rule breaker! Upgrading an OpenStack Cloud while skipping a release Rick Salevsky Nanuk Krinner SUSE Cloud Engineer SUSE Cloud Engineer rsalevsky@suse.com nkrinner@suse.com Introduction Speakers Rick Salevsky SUSE Cloud Engineer


slide-1
SLIDE 1

Rule breaker!

Upgrading an OpenStack Cloud while skipping a release

Rick Salevsky Nanuk Krinner SUSE Cloud Engineer SUSE Cloud Engineer rsalevsky@suse.com nkrinner@suse.com

slide-2
SLIDE 2

Introduction

slide-3
SLIDE 3

3

Speakers

  • Rick Salevsky

– SUSE Cloud Engineer – Focus deployment solutions

  • Nanuk Krinner

– Cloud developer at SUSE – Systems Management Engineer

  • SUSE OpenStack Cloud
slide-4
SLIDE 4

4

Agenda

  • Why and What
  • Upgrade strategies
  • How we skipped a release
  • Where we want to go
slide-5
SLIDE 5

Why and What

slide-6
SLIDE 6

6

Why upgrading?

  • Security Fixes
  • Stability improvements
  • Performance improvements
  • Closely follow upstream development
  • New features
slide-7
SLIDE 7

7

Problems while upgrading?

  • Downtime
  • Preparation
  • Testing
  • Adapting workflows
  • Bugs
  • Data loss
slide-8
SLIDE 8

8

Customer demands

  • Reduced downtime
  • Live upgrade
  • Possible to roll back
  • Clear documentation of what is happening
  • Upgrading while skipping one or more releases
slide-9
SLIDE 9

9

Upgrade marathon

Release Evaluating the release Planning the upgrade Testing the upgrade Fine tuning Integrating new features Upgrade

slide-10
SLIDE 10

10

Upgrade marathon

Release Evaluating the release Planning the upgrade Testing the upgrade Fine tuning Maybe not this time? Integrating new features Upgrade

slide-11
SLIDE 11

11

  • OpenStack User Survey April 2016

No upgrade at all

slide-12
SLIDE 12

Upgrade strategies

slide-13
SLIDE 13

13

Official upgrade process

  • Always upgrade to next release
  • Release cycle of 6 months
  • Upgrades are required regularly
  • High maintenance cost

– Unexpected changes break upgrade – Lot’s of manual effort – Suffer the upgrade pain regularly – Staffing

Source: http://www.openstack.org/brand/openstack-logo/logo-download/

slide-14
SLIDE 14

14

Continuous Deployment

  • Risky
  • Needs a lot of development manpower
  • Extensive testing required
  • Always latest greatest
  • No big upgrade, incremental changes
  • Not enterprise ready

Source: https://wiki.jenkins-ci.

  • rg/display/JENKINS/Logo
slide-15
SLIDE 15

15

Start from scratch

  • Roll out a fresh deployment
  • Lots of duplicated work

– Set up projects, users, images…

  • Get rid of outdated artifacts
  • Run a parallel installation

– Move workload from old cloud to new cloud

  • Redundant hardware required
slide-16
SLIDE 16

16

Many self-made solutions

  • Own deployment solutions
  • Scenario-specific solutions
slide-17
SLIDE 17

How we skip a release

slide-18
SLIDE 18

18

High level overview

  • Upgrading from Juno to Liberty
  • Multistep process
  • Cloud is not fully functional
  • Upgrading OS along with OpenStack
slide-19
SLIDE 19

19

The idea

  • Orchestrated reinstallation
  • Ignoring OpenStack Kilo release
  • Migration handling
  • Config file management
  • Still Downtime and Disruptive
  • No extra hardware required
slide-20
SLIDE 20

20

Requirements

  • Orchestration mechanism
  • Configuration management
  • New OpenStack Packages are available
  • Enough disk space on Controller

– Duplicated database

  • Shared disk for nova-compute data
slide-21
SLIDE 21

21

Preparation

  • Stop configuration management
  • Update OpenStack configs
  • Check which migrations are needed
slide-22
SLIDE 22

22

Backup data

  • Disable (not stop) all OpenStack Services
  • Shutdown OpenStack on non DB nodes
  • Backup OpenStack database
  • Backup other important data if wanted
  • Finalize OpenStack Shutdown
slide-23
SLIDE 23

23

Setup new OpenStack Cloud

  • Reinstall Nodes with new OS if required
  • Install new OpenStack Packages
  • Start configuration management
  • Start database service
  • Restore backed up data
slide-24
SLIDE 24

24

Migrating OpenStack Services

  • Run all migrations as documented for a upgrade
  • Special commands need porting
  • Juno to Liberty exceptions

– Nova

slide-25
SLIDE 25

25

Migrating Nova Service

  • Migrate to last Kilo migration level

– Last kilo migration = 290 – ‘nova-manage db sync --version 290’

  • Migrate Flavor data

– Porting from Kilo to Liberty was required – ‘nova-manage db migrate_flavor_data’

  • Migrate to Liberty migration level

– ‘nova-manage db sync’

slide-26
SLIDE 26

26

Finalizing Upgrade

  • Start all OpenStack Services
  • Check if everything is running
slide-27
SLIDE 27

27

Issues

  • Configuration File migration
  • Migrations
  • All or nothing
  • Predefined Upgrades
slide-28
SLIDE 28

28

Do’s Dont’s

  • Backups
  • Test new configurations
  • Hope everything runs
slide-29
SLIDE 29

29

Do’s and Dont’s

slide-30
SLIDE 30

Where we want to go

slide-31
SLIDE 31

31

Outlook

  • Seamless Upgrade
  • No downtime of important services
  • Reverting upgrades
  • Better orchestration
slide-32
SLIDE 32

32

Call for Action

  • Config files (automatically) upgradeable
  • Uniform configuration files
  • Migrating existing data from every point
  • Rollback option
  • Non-disruptive upgrades
  • Integrating oslo version objects in every project
slide-33
SLIDE 33

33

Thank you.

Questions?

slide-34
SLIDE 34
slide-35
SLIDE 35

35

Real world issues

  • Skipped or delayed upgrades
  • Small operator teams
  • Downstream code changes
  • Ignoring recommended path
  • Services depending on the

cloud

OpenStack User Survey, April 2016