BenoitLair commented on issue #6349:
URL: https://github.com/apache/cloudstack/issues/6349#issuecomment-1116350165

   Hi @AlexanderKgr 
   There is too a topic in the ACS Mailing list here : 
[https://lists.apache.org/thread/jompt5z3hdpf2949sqd6gdly4w6frfgx](url)
   
   Xcp-ng 8.2 which is fully supported by Cloudstack
   His hypervisor capabilities are available trough `hypervisor_capabilities`
   
   There are description of Xenserver capabilities with a version 8.2.0
   
   However after updating trough official process of xcp-ng, a yum update 
caused to change the minor version of the hypervisor
   
   Now it has changed from 8.2.0 to 8.2.1
   
   When Cloudstack management server is reconnecting to Hypervisors, the `host` 
table, field `hypervisor_version` is updated with value 8.2.1
   This is causing this error message on Cloudstack management server : 
   
   `2022-05-02 15:52:33,157 ERROR [c.c.s.ManagementServerImpl]
   (qtp1850777594-186961:ctx-2ee90dcf ctx-d6c062ae) (logid:1b094155)
   Capabilities for host Host {"id": "2", "name": "xcp-cluster1-node2",
   "uuid": "ae51578b-928c-4d25-9164-3bd7ca0afed4", "type"="Routing"} couldn't
   be retrieved.
   2022-05-02 15:52:33,157 INFO [c.c.s.ManagementServerImpl]
   (qtp1850777594-186961:ctx-2ee90dcf ctx-d6c062ae) (logid:1b094155) Volume
   Vol[320|vm=191|DATADISK] is attached to a running vm and the hypervisor
   doesn't support storage motion.`
   
   The Xen live storage migration is no more available
   
   I used this fix to have fully features working with xcp-ng 8.2.1 and ACS 
4.16.0
   
   `#add hypervisor xcp 8.2.1 to acs 4.16
   INSERT IGNORE INTO `cloud`.`hypervisor_capabilities`(uuid, hypervisor_type, 
   hypervisor_version, max_guests_limit, max_data_volumes_limit, 
   max_hosts_per_cluster, storage_motion_supported) values (UUID(), 
'XenServer', 
   '8.2.1', 1000, 253, 64, 1);
   
   +-- Copy XenServer 8.1.0 hypervisor guest OS mappings to XenServer 8.2.0
   +INSERT IGNORE INTO `cloud`.`guest_os_hypervisor` (uuid,hypervisor_type, 
   hypervisor_version, guest_os_name, guest_os_id, created, is_user_defined) 
   SELECT UUID(),'Xenserver', '8.2.1', guest_os_name, guest_os_id, 
   utc_timestamp(), 0 FROM `cloud`.`guest_os_hypervisor` WHERE 
   hypervisor_type='Xenserver' AND hypervisor_version='8.2.0';`
   
   I used xcp-ng 8.2.0 capabilities in order to create xcp-ng 8.2.1 entries


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to