important servers should have backups

Bug #1010621 reported by James E. Blair on 2012-06-08
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Core Infrastructure
In Progress

Bug Description

cloud image snapshots aren't as reliable as one would hope. We should have a backup system in place to do off-site backups.

Consider obnam:

Ideally, we should backup cross-provider (rax <-> hp), or at least to different data centers.

Monty Taylor (mordred) on 2012-06-14
Changed in openstack-ci:
status: Triaged → In Progress
Monty Taylor (mordred) on 2012-10-10
Changed in openstack-ci:
milestone: folsom → grizzly
James E. Blair (corvus) wrote :

Monty, I think this is waiting on you to work out the best way to backup mysql dbs.

Changed in openstack-ci:
assignee: James E. Blair (corvus) → Monty Taylor (mordred)
milestone: grizzly → havana
Patrick Crews (patrick-crews) wrote :

Here is a script I wrote that can backup a mysql database via innobackupex and upload it to a specified swift container.
It assumes there is a pw file and that the swift container already exists...might be useful for this

python --os_username=USER --os_password=PASSWORD --os_tenant_name=USER-tenant1 --swift_store_name='mahtester' --backup_name='db_backup_stage' --pass_file=pw_file.dat --db_backup_path=/var/lib/mysql/ --os_auth_url=

Creating encrypted backup up MySQL database via innobackupex...
Backup name: db_backup_stage-20130423-21-27-05.tar.gz.des3
Command: innobackupex --stream=tar /var/lib/mysql/ | gzip - | openssl des3 -salt -kfile pw_file.dat > db_backup_stage-20130423-21-27-05.tar.gz.des3
Status: 0

InnoDB Backup Utility v1.5.1-xtrabackup; Copyright 2003, 2009 Innobase Oy
and Percona Ireland Ltd 2009-2012. All Rights Reserved.

innobackupex: Backup created in directory '/var/lib/mysql'
innobackupex: MySQL binlog position: filename '', position
innobackupex: You must use -i (--ignore-zeros) option for extraction of the tar stream.
130423 21:27:29 innobackupex: completed OK!
Swift store result:

Listing all objects in store...

Removing backup file: db_backup_stage-20130423-21-27-05.tar.gz.des3

Patrick Crews (patrick-crews) wrote :

updated backup + store script. cleanups of encryption + uploads to swift

Clark Boylan (cboylan) on 2013-09-10
Changed in openstack-ci:
assignee: Monty Taylor (mordred) → Clark Boylan (cboylan)
Clark Boylan (cboylan) wrote :

Status report:

There appear to be two major pieces to this bug. 1. Backup MySQL server contents (output with mysqldump) offsite 2. Backup actual server filesystems offsite.

MySQL backups have been sorted with a puppet manifest that runs mysqldump against the local mysqld keeping a 30 day rotation of these dumps. The offsite backup system, bup, then performs offsite backups of server filesystems including the mysqldumps.

This is in place on wiki.o.o, jenkins-dev.o.o, and review-dev.o.o. Backups will be added for review.o.o, jenkins.o.o, and zuul.o.o shortly.

Clark Boylan (cboylan) wrote :

The decision was made not to backup the jenkins masters and zuul.o.o as they can be rebuilt from scratch easily without the need of backups. review.o.o and etherpad.o.o are now being backed up to the rackspace backup host. The last remaining host that needs backups is the puppetmaster, fungi has thoughts on how to do this.

We should also work on getting the second backup host running in HP.

Changed in openstack-ci:
milestone: havana → icehouse
Jeremy Stanley (fungi) wrote :

Basically I think we backup the puppetmaster with bup just like any other server, with the following caveats:

exclude places where sensitive plaintext credentials reside (/etc/puppet/heiradata, /root/ci-launch, /etc/ssl/private, what have you) and then whip up a little cron job to encrypt copies of these to multiple root admin OpenPGP keys when they change and stash the results in a place bup will back up. This doesn't take advantage of the gitishness of bup's protocol for those particular files because they're represented by one or more encrypted blobs which change in their entirety, but they will be smal and this provides a minimum divergence from our normal backup and recovery strategy.

Clark Boylan (cboylan) wrote :

Should also bup eavesdrop to backup the IRC and meeting logs.

Jeremy Stanley (fungi) on 2014-10-27
Changed in openstack-ci:
milestone: icehouse → kilo
Tom Fifield (fifieldt) wrote :

Have all the important servers got backups now?

Changed in openstack-ci:
assignee: Clark Boylan (cboylan) → nobody
assignee: nobody → Clark Boylan (cboylan)
Nazeema Begum (nazeema) on 2016-12-05
Changed in openstack-ci:
assignee: Clark Boylan (cboylan) → Nazeema Begum (nazeema)
assignee: Nazeema Begum (nazeema) → nobody
iliul (iliul) on 2017-08-03
Changed in openstack-ci:
assignee: nobody → iliul (iliul)
assignee: iliul (iliul) → nobody
Changed in openstack-ci:
assignee: nobody → simon yang (yang-chenjun)
iliul (iliul) on 2017-08-03
Changed in openstack-ci:
assignee: simon yang (yang-chenjun) → iliul (iliul)
Changed in openstack-ci:
assignee: iliul (iliul) → nobody
Changed in openstack-ci:
assignee: nobody → simon yang (yang-chenjun)
assignee: simon yang (yang-chenjun) → nobody
Changed in openstack-ci:
assignee: nobody → simon yang (yang-chenjun)
assignee: simon yang (yang-chenjun) → nobody
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers