non-disruptive upgrade to suse openstack cloud 7 · upgrading the administration node preliminary...

45
Non-disruptive upgrade to SUSE® OpenStack Cloud 7 Nanuk Krinner Rick Salevsky SUSE Cloud Engineer SUSE Cloud Engineer [email protected] [email protected]

Upload: others

Post on 13-Aug-2020

8 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Non-disruptive upgrade to SUSE OpenStack Cloud 7 · Upgrading the Administration Node Preliminary Checks Non-disruptive Mode or Normal Mode Begin Upgrade Decouple node from crowbar

Non-disruptive upgrade to

SUSE® OpenStack Cloud 7

Nanuk Krinner Rick Salevsky

SUSE Cloud Engineer SUSE Cloud Engineer

[email protected] [email protected]

Page 2: Non-disruptive upgrade to SUSE OpenStack Cloud 7 · Upgrading the Administration Node Preliminary Checks Non-disruptive Mode or Normal Mode Begin Upgrade Decouple node from crowbar

Introduction

2

Page 3: Non-disruptive upgrade to SUSE OpenStack Cloud 7 · Upgrading the Administration Node Preliminary Checks Non-disruptive Mode or Normal Mode Begin Upgrade Decouple node from crowbar

Speakers

● Nanuk Krinner○ Cloud Developer at SUSE

○ Systems Management Engineer

● Rick Salevsky○ Cloud Engineer at SUSE

○ Release Coordinator

● SUSE OpenStack Cloud

3

Page 4: Non-disruptive upgrade to SUSE OpenStack Cloud 7 · Upgrading the Administration Node Preliminary Checks Non-disruptive Mode or Normal Mode Begin Upgrade Decouple node from crowbar

Agenda● Upgrading

● Why and What

● Non-disruptive Upgrade

○ Process

○ Requirements

○ Upgrading the Administration Node

○ Preparing the Client Nodes

○ Upgrading the Controller Nodes

○ Upgrading the Compute Nodes

○ Finalizing Upgrade

● Goals4

Page 5: Non-disruptive upgrade to SUSE OpenStack Cloud 7 · Upgrading the Administration Node Preliminary Checks Non-disruptive Mode or Normal Mode Begin Upgrade Decouple node from crowbar

Upgrading?

5

Page 6: Non-disruptive upgrade to SUSE OpenStack Cloud 7 · Upgrading the Administration Node Preliminary Checks Non-disruptive Mode or Normal Mode Begin Upgrade Decouple node from crowbar

Upgrading?

6

Day 1

Deploy

Page 7: Non-disruptive upgrade to SUSE OpenStack Cloud 7 · Upgrading the Administration Node Preliminary Checks Non-disruptive Mode or Normal Mode Begin Upgrade Decouple node from crowbar

Upgrading?

7

Day 1

Deploy

Day 2

Operate

Page 8: Non-disruptive upgrade to SUSE OpenStack Cloud 7 · Upgrading the Administration Node Preliminary Checks Non-disruptive Mode or Normal Mode Begin Upgrade Decouple node from crowbar

Upgrading?

8

Day 1

Deploy

Day 2

Operate

Day 3

Upgrade

Page 9: Non-disruptive upgrade to SUSE OpenStack Cloud 7 · Upgrading the Administration Node Preliminary Checks Non-disruptive Mode or Normal Mode Begin Upgrade Decouple node from crowbar

Why and What

9

Page 10: Non-disruptive upgrade to SUSE OpenStack Cloud 7 · Upgrading the Administration Node Preliminary Checks Non-disruptive Mode or Normal Mode Begin Upgrade Decouple node from crowbar

Why upgrading?

● Security fixes

● Stability improvements

● Performance improvements

● Closely follow upstream development

● New features

● Stay on a supported release

10

Page 11: Non-disruptive upgrade to SUSE OpenStack Cloud 7 · Upgrading the Administration Node Preliminary Checks Non-disruptive Mode or Normal Mode Begin Upgrade Decouple node from crowbar

Problems while upgrading?

● Downtime

● Preparation

● Testing

● Adapting workflows

● Bugs

● Data loss

11

OpenStack User Survey April 2016

Page 12: Non-disruptive upgrade to SUSE OpenStack Cloud 7 · Upgrading the Administration Node Preliminary Checks Non-disruptive Mode or Normal Mode Begin Upgrade Decouple node from crowbar

Customer demands

● Rolling upgrade

● Non-disruptive upgrade

● Easy way to cancel

● Clear documentation of what is happening

● Upgrade while skipping one or more releases

12

Page 13: Non-disruptive upgrade to SUSE OpenStack Cloud 7 · Upgrading the Administration Node Preliminary Checks Non-disruptive Mode or Normal Mode Begin Upgrade Decouple node from crowbar

Upgrade marathon

13

ReleaseEvaluating the

release

Planning the

upgrade

Testing the

upgrade

Fine tuningIntegrating

new featuresUpgrade

Page 14: Non-disruptive upgrade to SUSE OpenStack Cloud 7 · Upgrading the Administration Node Preliminary Checks Non-disruptive Mode or Normal Mode Begin Upgrade Decouple node from crowbar

Upgrade marathon

14

ReleaseEvaluating the

release

Planning the

upgrade

Testing the

upgrade

Fine tuning

Maybe not

this time?

Integrating

new featuresUpgrade

Page 15: Non-disruptive upgrade to SUSE OpenStack Cloud 7 · Upgrading the Administration Node Preliminary Checks Non-disruptive Mode or Normal Mode Begin Upgrade Decouple node from crowbar

Non-disruptive Upgrade

15

Page 16: Non-disruptive upgrade to SUSE OpenStack Cloud 7 · Upgrading the Administration Node Preliminary Checks Non-disruptive Mode or Normal Mode Begin Upgrade Decouple node from crowbar

Process

16

Page 17: Non-disruptive upgrade to SUSE OpenStack Cloud 7 · Upgrading the Administration Node Preliminary Checks Non-disruptive Mode or Normal Mode Begin Upgrade Decouple node from crowbar

Process

● Non-disruptive for workloads○ HA as requirement

○ network downtime without HA

● Tools○ WebUI

○ command line tool (crowbarctl)

○ new REST-API (for manual upgrade)

17

Page 18: Non-disruptive upgrade to SUSE OpenStack Cloud 7 · Upgrading the Administration Node Preliminary Checks Non-disruptive Mode or Normal Mode Begin Upgrade Decouple node from crowbar

Requirements

18

Page 19: Non-disruptive upgrade to SUSE OpenStack Cloud 7 · Upgrading the Administration Node Preliminary Checks Non-disruptive Mode or Normal Mode Begin Upgrade Decouple node from crowbar

Requirements

● Maintenance Updates installed

● Cloud Network Services are healthy

● Pacemaker is available and healthy

● Ceph is healthy

● Compute Resources are available

19

Page 20: Non-disruptive upgrade to SUSE OpenStack Cloud 7 · Upgrading the Administration Node Preliminary Checks Non-disruptive Mode or Normal Mode Begin Upgrade Decouple node from crowbar

Upgrading the Administration Node

20

Page 21: Non-disruptive upgrade to SUSE OpenStack Cloud 7 · Upgrading the Administration Node Preliminary Checks Non-disruptive Mode or Normal Mode Begin Upgrade Decouple node from crowbar

Upgrading the Administration Node

● Preliminary Checks

● Non-disruptive Mode or Normal Mode

● Begin Upgrade○ Decouple node from crowbar

○ Disabling chef on nodes

○ Freezing the Cloud in the current state

● Backup of the admin node○ Optional but recommended

○ In case the admin node upgrade fails

21

Page 22: Non-disruptive upgrade to SUSE OpenStack Cloud 7 · Upgrading the Administration Node Preliminary Checks Non-disruptive Mode or Normal Mode Begin Upgrade Decouple node from crowbar

Upgrading the Administration Node

● Update Repositories○ Manual by the Administrator

○ SLES 12 SP2

○ SUSE OpenStack Cloud 7

○ Updates Repositories

● Upgrade Administration Node OS○ Background Script

○ Stops chef-client service

○ Dumps current database

○ Executes zypper dist-upgrade

● Rebooting22

Page 23: Non-disruptive upgrade to SUSE OpenStack Cloud 7 · Upgrading the Administration Node Preliminary Checks Non-disruptive Mode or Normal Mode Begin Upgrade Decouple node from crowbar

Upgrading the Administration Node

● Creating PostgreSQL database ○ Create new local database

○ Connect to existing database

● Migrating old data to new database

23

Page 24: Non-disruptive upgrade to SUSE OpenStack Cloud 7 · Upgrading the Administration Node Preliminary Checks Non-disruptive Mode or Normal Mode Begin Upgrade Decouple node from crowbar

Preparing the Client Nodes

24

Page 25: Non-disruptive upgrade to SUSE OpenStack Cloud 7 · Upgrading the Administration Node Preliminary Checks Non-disruptive Mode or Normal Mode Begin Upgrade Decouple node from crowbar

Preparing the Client Nodes

Before Upgrading

● Backup all important OpenStack data

● Create snapshots from important instances

● Last chance to update OpenStack resources

25

Page 26: Non-disruptive upgrade to SUSE OpenStack Cloud 7 · Upgrading the Administration Node Preliminary Checks Non-disruptive Mode or Normal Mode Begin Upgrade Decouple node from crowbar

Preparing the Client Nodes

● Prepare client node repositories○ SLES 12 SP2

○ SUSE OpenStack Cloud 7

○ SLES 12 SP2 Height Availability Extension

○ Updates Repositories

● Automatic disabling old Repositories○ SUSE OpenStack Cloud 6

○ SLES 12 SP1

26

Page 27: Non-disruptive upgrade to SUSE OpenStack Cloud 7 · Upgrading the Administration Node Preliminary Checks Non-disruptive Mode or Normal Mode Begin Upgrade Decouple node from crowbar

Preparing the Client Nodes

● Stopping Services○ Irrelevant OpenStack services → network

○ Related OpenStack services

● Creating backup of the OpenStack database○ Backup is stored on the Administration Node

● OpenStack API will is mostly unavailable

27

Page 28: Non-disruptive upgrade to SUSE OpenStack Cloud 7 · Upgrading the Administration Node Preliminary Checks Non-disruptive Mode or Normal Mode Begin Upgrade Decouple node from crowbar

Upgrading the Controller

Nodes

28

Page 29: Non-disruptive upgrade to SUSE OpenStack Cloud 7 · Upgrading the Administration Node Preliminary Checks Non-disruptive Mode or Normal Mode Begin Upgrade Decouple node from crowbar

SLES 12 SP1

Upgrading the Controller Nodes

29

DHCP

Neutron

OVS

L3

RabbitMQ

Keystone

DB

SLES 12 SP2

Admin Network

P

a

c

e

m

a

k

e

r

P

a

c

e

m

a

k

e

r

Page 30: Non-disruptive upgrade to SUSE OpenStack Cloud 7 · Upgrading the Administration Node Preliminary Checks Non-disruptive Mode or Normal Mode Begin Upgrade Decouple node from crowbar

Upgrading the Controller Nodes

● First node to upgrade will a non master node

● Migrating neutron l3-agent

● Shutdown Pacemaker services

● Upgrade Controller Node OS

● Reboot but not start any services

● Prevent Pacemaker of running services on non

upgraded nodes

● Core API downtime start now → all services

30

Page 31: Non-disruptive upgrade to SUSE OpenStack Cloud 7 · Upgrading the Administration Node Preliminary Checks Non-disruptive Mode or Normal Mode Begin Upgrade Decouple node from crowbar

SLES 12 SP1

Upgrading the Controller Nodes

31

DHCP

Neutron

OVS

L3

RabbitMQ

Keystone

DB

SLES 12 SP2

Admin Network

P

a

c

e

m

a

k

e

r

P

a

c

e

m

a

k

e

r

Page 32: Non-disruptive upgrade to SUSE OpenStack Cloud 7 · Upgrading the Administration Node Preliminary Checks Non-disruptive Mode or Normal Mode Begin Upgrade Decouple node from crowbar

Upgrading the Controller Nodes

● Start Pacemaker Services

● Update all configurations via crowbar

● Stop synchronizing HA ressources

● Promote upgrades node to master

● Start all services on the upgraded node

● Core API downtime ends here

32

Page 33: Non-disruptive upgrade to SUSE OpenStack Cloud 7 · Upgrading the Administration Node Preliminary Checks Non-disruptive Mode or Normal Mode Begin Upgrade Decouple node from crowbar

SLES 12 SP1

Upgrading the Controller Nodes

33

DHCP

Neutron

OVS

L3

RabbitMQ

Keystone

DB

SLES 12 SP2

Admin Network

P

a

c

e

m

a

k

e

r

P

a

c

e

m

a

k

e

r

Neutron

RabbitMQ

Keystone

DB

DHCP

OVS

L3

Page 34: Non-disruptive upgrade to SUSE OpenStack Cloud 7 · Upgrading the Administration Node Preliminary Checks Non-disruptive Mode or Normal Mode Begin Upgrade Decouple node from crowbar

Upgrading the Controller Nodes

For all other controller nodes each at a time:

● All services are already stopped

● Moving network traffic to upgraded node

● Sync HA slave with master

● Stopping cluster stack

● Upgrade Controller Node OS

34

Page 35: Non-disruptive upgrade to SUSE OpenStack Cloud 7 · Upgrading the Administration Node Preliminary Checks Non-disruptive Mode or Normal Mode Begin Upgrade Decouple node from crowbar

Upgrading the Controller Nodes

Normal Mode (non High Availability case)

● Several Network outages will happen

● Specially during network migrations

35

Page 36: Non-disruptive upgrade to SUSE OpenStack Cloud 7 · Upgrading the Administration Node Preliminary Checks Non-disruptive Mode or Normal Mode Begin Upgrade Decouple node from crowbar

Upgrading the Compute

Nodes

36

Page 37: Non-disruptive upgrade to SUSE OpenStack Cloud 7 · Upgrading the Administration Node Preliminary Checks Non-disruptive Mode or Normal Mode Begin Upgrade Decouple node from crowbar

Upgrading the Compute Nodes

For all compute nodes each at a time:

● Disabling nova hypervisor

● Live migrate instances to another compute node

● Stop Pacemaker remote

● Upgrading node OS

● Rebooting node

● Update all configurations via crowbar

● Adding node to pacemaker cluster

37

Page 38: Non-disruptive upgrade to SUSE OpenStack Cloud 7 · Upgrading the Administration Node Preliminary Checks Non-disruptive Mode or Normal Mode Begin Upgrade Decouple node from crowbar

Finalizing Upgrade

38

Page 39: Non-disruptive upgrade to SUSE OpenStack Cloud 7 · Upgrading the Administration Node Preliminary Checks Non-disruptive Mode or Normal Mode Begin Upgrade Decouple node from crowbar

Finalizing Upgrade

● Reapplying all barclamps

● Showing the barclamps page

39

Page 40: Non-disruptive upgrade to SUSE OpenStack Cloud 7 · Upgrading the Administration Node Preliminary Checks Non-disruptive Mode or Normal Mode Begin Upgrade Decouple node from crowbar

Issues● Configuration file migration

● Migrations

● All or nothing

● Predefined upgrades

● Create backups!

40

Page 41: Non-disruptive upgrade to SUSE OpenStack Cloud 7 · Upgrading the Administration Node Preliminary Checks Non-disruptive Mode or Normal Mode Begin Upgrade Decouple node from crowbar

Goals

41

Page 42: Non-disruptive upgrade to SUSE OpenStack Cloud 7 · Upgrading the Administration Node Preliminary Checks Non-disruptive Mode or Normal Mode Begin Upgrade Decouple node from crowbar

Goals

● Finish non-disruptive upgrade for other services

● No downtime of important services

● Migrating existing data from every point

● Cancel upgrade in every step

● Rollback upgrade

42

Page 43: Non-disruptive upgrade to SUSE OpenStack Cloud 7 · Upgrading the Administration Node Preliminary Checks Non-disruptive Mode or Normal Mode Begin Upgrade Decouple node from crowbar

Questions?

43

Nanuk Krinner Rick Salevsky

SUSE Cloud Engineer SUSE Cloud Engineer

[email protected] [email protected]

Page 44: Non-disruptive upgrade to SUSE OpenStack Cloud 7 · Upgrading the Administration Node Preliminary Checks Non-disruptive Mode or Normal Mode Begin Upgrade Decouple node from crowbar

Thank you!

44

Nanuk Krinner Rick Salevsky

SUSE Cloud Engineer SUSE Cloud Engineer

[email protected] [email protected]

Page 45: Non-disruptive upgrade to SUSE OpenStack Cloud 7 · Upgrading the Administration Node Preliminary Checks Non-disruptive Mode or Normal Mode Begin Upgrade Decouple node from crowbar