Skip to content
This repository has been archived by the owner on Apr 27, 2022. It is now read-only.

node_delete should do more error checking #464

Closed
zenhack opened this issue Jul 29, 2015 · 7 comments
Closed

node_delete should do more error checking #464

zenhack opened this issue Jul 29, 2015 · 7 comments
Assignees
Labels
Milestone

Comments

@zenhack
Copy link
Contributor

zenhack commented Jul 29, 2015

in particular, we should require that a node is not part of a project before deleting it (this will transitively cover requirements like not being connected to a network...)

@zenhack
Copy link
Contributor Author

zenhack commented Jul 29, 2015

Opinions: should we maybe impose the same constraint for node_delete_nic?

//cc @gsilvis @henn @lokI8

@henn
Copy link
Contributor

henn commented Jul 30, 2015

That could work, or we could have cascading deletions. Doing the latter
might get complicated, though, since part of the deletion could be
resetting the switch port (an asynchronous operation).

@gsilvis
Copy link
Contributor

gsilvis commented Jul 30, 2015

So far we've always required deleting subcomponents first. I'm definitely against deletion having an effect on the switch.

@henn
Copy link
Contributor

henn commented Jul 30, 2015

It brings up the interesting problem of how we deal with switch
problems- if the switch is down and I want to move a physical cable to
another node as a workaround, I currently can't without some database
hackery. The node is connected to a nic, which is connected to a
network, which will never disconnect because the switch is down.

I could go either way, but agree with George in principle for now since
addressing switch failures is a bigger problem that should addressed.

@zenhack
Copy link
Contributor Author

zenhack commented Aug 7, 2015

Okay, so it sounds like we're all okay with requiring everything be disconnected first (in both cases)? If so I'll go ahead and remove the discuss label. I'm tempted to mark this easy too.

@henn
Copy link
Contributor

henn commented Aug 7, 2015

Does anyone know what will happen if I try to disconnect a network from a broken switch port? If it completes, then I agree that we should impose this restriction on both.

We've already had switch ports die, so this isn't a hypothetical issue.

@kylehogan kylehogan modified the milestone: 0.3 Mar 29, 2016
@zenhack
Copy link
Contributor Author

zenhack commented Jun 6, 2017

Related: #788.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants