Giter VIP home page Giter VIP logo

Comments (12)

robhaswell avatar robhaswell commented on August 17, 2024

If a local volume is deleted what happens to volumes on remote nodes?

My opinion is that remote copies of volumes should aim to track the masters - so that if the master is deleted all remote copies are deleted as well. This would avoid confusing conflicts when a volume is deleted and created again with the same name.

from flocker.

itamarst avatar itamarst commented on August 17, 2024

That makes sense. On the other hand: imagine a host gets taken over by an attacker. You don't want data to be automatically destroyed on other hosts if one host is compromised. Maybe when master deletes it the remotes should rename it? Or maybe ZFS-level names should be UUIDs, and then just because name chosen by human is reused there's still no conflicts (but that may result in confusing UI).

In any case this is out of scope for this issue, which is just the low-level single node delete operation.

from flocker.

robhaswell avatar robhaswell commented on August 17, 2024

I would be in favour of renames. One of the lessons I'd like to take away from HybridCluster is that having opaque data structures does not make administration easy. I'm referring here to the unix timestamp snapshot names. It's easy to say that the tools should be able to perform all the tasks you would want to perform but that isn't realistic for a constrained developer team.

Either way I'll make a story.

from flocker.

itamarst avatar itamarst commented on August 17, 2024

Actually, probably not strictly necessary for first release.

from flocker.

itamarst avatar itamarst commented on August 17, 2024

Or, might turn out to be when we do push back and forth between two nodes, but not sure yet so not going to start on this.

from flocker.

itamarst avatar itamarst commented on August 17, 2024

Jean-Paul had some vague notion of a flocker-clean command...

from flocker.

itamarst avatar itamarst commented on August 17, 2024

The basic logic for deleting a ZFS IFilesystem instance would be:

  1. Delete all snapshots that do not have clones off of them.
  2. If the filesystem has an origin snapshot, and that snapshot has no other clones, delete the snapshot.
  3. Delete the filesystem.

This will result in both clones and non-clones cleaning up all references that they own. Clone logic may be something to spin off into different issue.

from flocker.

itamarst avatar itamarst commented on August 17, 2024

The logic above would probably be exposed via flocker-volume only, for now:

$ flocker-volume delete <owner uuid> <name>

from flocker.

exarkun avatar exarkun commented on August 17, 2024

is this for user-facing functionality? We don't really have docs for flocker-volume yet - so we also need to add some if we're going to expose user-facing functionality this way.

from flocker.

itamarst avatar itamarst commented on August 17, 2024

Quite possibly, it's not clear to me yet how deletion would work on level of flocker-deploy (merely doing a handoff shouldn't necessarily delete origin, e.g.).

from flocker.

itamarst avatar itamarst commented on August 17, 2024

I guess probably not user facing now; will file issue for the the user-facing command separately.

from flocker.

adamtheturtle avatar adamtheturtle commented on August 17, 2024

We are moving our development planning to JIRA. This issue is now being tracked at https://clusterhq.atlassian.net/browse/FLOC-14. You are welcome to file additional issues in GitHub if that's easier for you.

from flocker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.