-
Notifications
You must be signed in to change notification settings - Fork 364
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
Should not be allowed to remove "default" storagepool and network #265
Comments
I think we should not allow the network or storage to be removed if there is any VM or template depending on it. That is definitely a bug. |
I think since all our vm depends on default pool and network, we may prefer not to deactive and delete them. |
Yes, I found a lot of dependency problems while testing yesterday. I am going to open bugs or send fixes. |
This issue is about not being allowed to remove the storage pool and network named "default", regardless of whether they are being used or not. Is this actually a problem? Are those elements special to Kimchi so we should not allow them do be deleted? If not, we should close this issue. The patch mentioned above does not allow removing a storage pool or network which is being used by some template/VM, regardless of their names. That fixes a different problem (the one that @sming56 described in his comment), not this one. |
I think we can remove the "default" safely. if no template or vms use it.
for the default storage pool there is also the similar problem. so I prefer we could allow to delete them safely as commit db954e9 @cd1 what about you? |
Actually, my point in this bug is: why remove default storagepool and/or default network if they are going to be recreated every time Kimchis restart ? If you make a test: remove both 'defaults' and then restart Kimchi. They will be there again. |
Please, see also the problem in #302 |
patch submit to fix #302 For this issue: |
In my opinion, we should have ways to mark all the storagepools and networks created by Kimchi. And only the storagepools and networks created by Kimchi can be removed by Kimchi. |
I don't think so. What if a user migrates to Kimchi? They will not be able to interact with what they have created before, and that does not make sense. |
I made some comments on #302 which applies to this issue too.
|
I thought more about that and while creating a template user only provides the ISO file and all other configuration is provided by kimchi. So yes, those resources should not be deactivated or removed otherwise we will create inconsistent templates from the scratch |
Network fixed in e6806e4 |
Currently, it is possible to remove "default storagepool" and "default network".
But, those come back next time Kimchi runs and libvirt gives error like:
""" libvir: Network Driver error : Network not found: no network with matching name 'default' """
The text was updated successfully, but these errors were encountered: