You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2021/12/20 17:09:58 UTC
[GitHub] [cloudstack] GabrielBrascher opened a new issue #5794: Feature proposal/discussion -- create API command that "migrates" a hosts from a cluster to another
GabrielBrascher opened a new issue #5794:
URL: https://github.com/apache/cloudstack/issues/5794
<!--
Verify first that your issue/request is not already reported on GitHub.
Also test if the latest release and main branch are affected too.
Always add information AFTER of these HTML comments, but no need to delete the comments.
-->
##### ISSUE TYPE
<!-- Pick one below and delete the rest -->
* Feature Idea
##### COMPONENT NAME
<!--
Categorize the issue, e.g. API, VR, VPN, UI, etc.
-->
~~~
API
~~~
##### CLOUDSTACK VERSION
<!--
New line separated list of affected versions, commit ID for issues on main branch.
-->
~~~
4.17
~~~
##### CONFIGURATION
<!--
Information about the configuration if relevant, e.g. basic network, advanced networking, etc. N/A otherwise
-->
KVM
##### OS / ENVIRONMENT
<!--
Information about the environment if relevant, N/A otherwise
-->
N/A
##### SUMMARY
<!-- Explain the problem/feature briefly -->
CloudStack does not allow to migrate hosts from clusters. This Issue raises the feature idea of migrating hosts between clusters.
In KVM at least this is quite easy to be done. Basically, it can be done by changing the agent.properties and updating a few tables in the DB.
At first, I would propose creating such an API command only for KVM. As far as I know, `XenServer` & `VMware` aren't as simple. Quite a long time since I played with Xen or VMware, so I am not raising them here. But anyone interested in discussing raising it. feel free.
The idea is that such a host should be placed into maintenance, making sure that no VMs will be running.
If the host is in Maintenance, then the API command would run the needed changes in order to have the host available at other cluster.
This would require Admins to ensure that the shared storage pool is available at the zone-wide level.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [cloudstack] nvazquez commented on issue #5794: Feature proposal/discussion -- create API command that "migrates" a hosts from a cluster to another
Posted by GitBox <gi...@apache.org>.
nvazquez commented on issue #5794:
URL: https://github.com/apache/cloudstack/issues/5794#issuecomment-1029549629
Thanks @GabrielBrascher for the proposal. IMO this would not feasible for Vmware or Xen, they would require to be externally handled by the administrator on the hypervisor side. For example on Vmware, putting the host on maintenance, unmounting the datastores on the host which belong to the 'old' cluster and mounting the datastores from the 'new' cluster, check portgroups, would need to be handled externally. However, I do think it is a good idea for KVM - should this API have any prerequisite besides the host being on maintenance?
Opinions? @rohityadavcloud @borisstoyanov @sureshanaparti @andrijapanicsb @DaanHoogland
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [cloudstack] GabrielBrascher commented on issue #5794: Feature proposal/discussion -- create API command that "migrates" a hosts from a cluster to another
Posted by GitBox <gi...@apache.org>.
GabrielBrascher commented on issue #5794:
URL: https://github.com/apache/cloudstack/issues/5794#issuecomment-1049726719
Closed for now. Thanks for participating in this discussion :)
Please let me know if this issue makes sense or if any of you see interesting things that we could do in this context.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [cloudstack] DaanHoogland commented on issue #5794: Feature proposal/discussion -- create API command that "migrates" a hosts from a cluster to another
Posted by GitBox <gi...@apache.org>.
DaanHoogland commented on issue #5794:
URL: https://github.com/apache/cloudstack/issues/5794#issuecomment-1048180209
> @DaanHoogland this rarely happens. But decided to open a discussion as I've seen it happen. It is quite fun to move hosts around CloudStack "logical" clusters.
>
> To "move" a host between clusters it is needed just a few changes in DB and host's `agent.properties`. It is not hard to do it "manually" so I'm not sure if it justifies an API call. But I rather first hear what you guys have in mind and if this could maybe add some interesting dynamic for operating KVM-based clusters.
>
> Keep in mind that a Pod is a "DC Rack" that contains one or multiple "clusters". In that sense, KVM hosts can easily be changed from clusters when residing in the same Pod as they are using the same switch (L2 network). Therefore, no networking nor pool changes are required in such cases, neither unplugging/plugging hosts in different racks.
Yes, so that would limit changing clusters within a pod, would it? As said and though I like the idea from a logical point of view, I fear it will not be used as much as it would seem at first sight.
If however it is persistently done manually it does justify an API endpoint as manual DB manipulation should be avoided.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [cloudstack] DaanHoogland commented on issue #5794: Feature proposal/discussion -- create API command that "migrates" a hosts from a cluster to another
Posted by GitBox <gi...@apache.org>.
DaanHoogland commented on issue #5794:
URL: https://github.com/apache/cloudstack/issues/5794#issuecomment-1047509096
Added bonus of that
> Would this basically be an automated shortcut for removing and adding the host, or is there a benefit of actually moving it, like retaining the host's ID or history?
is that the comments/annotations on the host would be retained. I like the idea but fear this will be worked on more than it will be used. In a datacenter a cluster would typically be organised around which hosts sit together in the top, middle or bottom of which rack/pod. a re-clustering would mean physical moving usually and the removing/adding would make more sense. Of course you might have different experiences @GabrielBrascher @mlsorensen ... ?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [cloudstack] andrijapanicsb commented on issue #5794: Feature proposal/discussion -- create API command that "migrates" a hosts from a cluster to another
Posted by GitBox <gi...@apache.org>.
andrijapanicsb commented on issue #5794:
URL: https://github.com/apache/cloudstack/issues/5794#issuecomment-1029712776
While I appreciate that the feature might be interesting for KVM, I don't think it's worth the effort since other hypervisors can't be migrated and for KVM a simpe DB changes will do.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [cloudstack] mlsorensen commented on issue #5794: Feature proposal/discussion -- create API command that "migrates" a hosts from a cluster to another
Posted by GitBox <gi...@apache.org>.
mlsorensen commented on issue #5794:
URL: https://github.com/apache/cloudstack/issues/5794#issuecomment-1047059475
Would this basically be an automated shortcut for removing and adding the host, or is there a benefit of actually moving it, like retaining the host's ID or history?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [cloudstack] GabrielBrascher closed issue #5794: Feature proposal/discussion -- create API command that "migrates" a hosts from a cluster to another
Posted by GitBox <gi...@apache.org>.
GabrielBrascher closed issue #5794:
URL: https://github.com/apache/cloudstack/issues/5794
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [cloudstack] GabrielBrascher commented on issue #5794: Feature proposal/discussion -- create API command that "migrates" a hosts from a cluster to another
Posted by GitBox <gi...@apache.org>.
GabrielBrascher commented on issue #5794:
URL: https://github.com/apache/cloudstack/issues/5794#issuecomment-1047995910
@nvazquez @andrijapanicsb that's true, it would be focused specifically on KVM. Definitelly not a good idea for VMware and XenServer.
@mlsorensen indeed, it is a shortcut for removing and adding a host from CloudStack.
Also, I don't think it would cause downtime for VMs, as long as they are allocated either on local storage and/or zone-wide shared pools. Host IP addresses, connected pools, and guest networks could remain the same in such cases.
@DaanHoogland this rarely happens. But decided to open a discussion as I've seen it happen. It is quite fun to move hosts around CloudStack "logical" clusters.
To "move" a host between clusters it is needed just a few changes in DB and host's `agent.properties`. It is not hard to do it "manually" so I'm not sure if it justifies an API call. But I rather first hear what you guys have in mind and if this could maybe add some interesting dynamic for operating KVM-based clusters.
Keep in mind that a Pod is a "DC Rack" that contains one or multiple "clusters". In that sense, KVM hosts can easily be changed from clusters when residing in the same Pod as they are using the same switch (L2 network). Therefore, no networking nor pool changes are required in such cases, neither unplugging/plugging hosts in different racks.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [cloudstack] GabrielBrascher commented on issue #5794: Feature proposal/discussion -- create API command that "migrates" a hosts from a cluster to another
Posted by GitBox <gi...@apache.org>.
GabrielBrascher commented on issue #5794:
URL: https://github.com/apache/cloudstack/issues/5794#issuecomment-1048237839
Agree, let's not proceed with creating a new API command then.
Eventually, if this becomes a common case, then it would make sense to consider an API endpoint.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org