Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backup & Restore #1119

Closed
kcbabo opened this issue Jan 18, 2018 · 10 comments
Closed

Backup & Restore #1119

kcbabo opened this issue Jan 18, 2018 · 10 comments
Labels
cat/user-story User story as narrative closed/migrated Epic Use by ZenHub, typically also for user stories status/never-stale Marker that this issue should not be marked as stale target/7.x

Comments

@kcbabo
Copy link

kcbabo commented Jan 18, 2018

See also https://issues.jboss.org/browse/ENTESB-11551

As an expert integrator, I need the ability to backup and restore a Syndesis environment. Ideally, a single UI or tool can be used to create the backup and restore from backup. In the absence of a tool-driven approach, I need detailed instructions for the create and restore.

DoD:

  • The backup captures all configuration, history, metrics, logs and any other data available in my Syndesis environment.

  • Restoring from a backup results in an environment that is identical to the environment the backup was created from.

  • The feature owner has confirmed one of the following:
    -- There is an initial draft of the user doc for this feature.
    --The writer acknowledges receiving enough information from engineering to write the initial draft of the user doc for this feature.

@kcbabo kcbabo added the cat/user-story User story as narrative label Jan 18, 2018
@gashcrumb
Copy link
Contributor

Is this the same user story from #1118?

@kcbabo
Copy link
Author

kcbabo commented Jan 18, 2018

What the heck? Seems like the same description ended up in both. Fortunately, I have the user story save in a text editor as well. :-) I will update now.

@kcbabo
Copy link
Author

kcbabo commented Jan 18, 2018

OK, description updated.

@rhuss rhuss added target/tp4 Epic Use by ZenHub, typically also for user stories labels Feb 9, 2018
@rhuss rhuss changed the title As an expert integrator, backup and restore Syndesis environment Backup & Restore Feb 9, 2018
@rhuss
Copy link
Collaborator

rhuss commented Feb 28, 2018

@kcbabo The title is 'Backup & Restore', but the description is about upgrades. Is this intentional ?

Not sure whether we actually ever discussed about backup & restore already.

@kcbabo
Copy link
Author

kcbabo commented Feb 28, 2018

GitHub did something really weird when I created the upgrade and backup issues. It's almost like the issue description was cached when I created the individual issues as we also had the same issue with integration and infra upgrade issues. Anyway, I just updated the description to be the original text I had. Luckily, I still had it sitting around in a text editor tab.

@paoloantinori paoloantinori added this to the Sprint 25 milestone Mar 2, 2018
@paoloantinori
Copy link
Contributor

paoloantinori commented Mar 2, 2018

So, it's unlucky there have been issues with the details of this story, but I don't see this happening in the scope of tp4.

We currently have a light-weight implementation of the broader story, that allows exporting entirely an Integration + all the eventual extensions associated to it.

This is happening from the UI.

@heiko-braun
Copy link
Collaborator

@rhuss Do you know where we stand with this? Could you help break down the issue and assess the current state of things?

@heiko-braun heiko-braun added this to Backlog in Sprint 31 - Epics Jul 5, 2018
@heiko-braun heiko-braun moved this from Backlog to Blocked in Sprint 31 - Epics Jul 5, 2018
@rhuss
Copy link
Collaborator

rhuss commented Jul 10, 2018

There has no work done recently on the Backup/Restore story (although we already know how to backup & restore which is used for doing rollback on failed updates, its just not exposed as 'normal' backups).

Our idea is now that we have operators in place to implement Backup/Restore as part of the operator, as much as the the ectd operator does backup and restore.

However, since we are currently working on the foundations, this story is not target for 7.1

The alternative would be to expose the way how we do backup/restore as part of the update process to dedicated CLI commands which could be used from the outside. We probably would have to throw away that work later on, but with some pressure could get it into 7.1 (although not until the end of this week).

@rhuss
Copy link
Collaborator

rhuss commented Mar 21, 2019

I think this issue needs to be part of a larger discussion of how we want to have backup & restore be implemented from a UX POV.

One possible solution would be:

  • Extend the operator's CRD to hold a 'backup.schedule' field with a crontab expression and a backup.pvc with a reference to a pvc which should be used for storing the backup (plus other relevant entries like rotation and retention).
  • Trigger at the schedule to perform a backup automatically
  • Add the result of each backup to the CR's status field
  • The backup it self should do the same (or similar) steps like the backup that we do for the update in shell script. But better implemented within Golang
  • Restore should be an external script which does more or less the same steps that the update Pod does when doing a rollback because of a failed update step.

@rhuss rhuss added the status/never-stale Marker that this issue should not be marked as stale label Mar 21, 2019
@rhuss rhuss removed their assignment Mar 21, 2019
@heiko-braun
Copy link
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cat/user-story User story as narrative closed/migrated Epic Use by ZenHub, typically also for user stories status/never-stale Marker that this issue should not be marked as stale target/7.x
Projects
No open projects
Sprint 31 - Epics
  
Blocked
Development

No branches or pull requests

5 participants