Hi Simon thanks for your reply, so fresh 4.9.3 install of ACS management server and fresh install of kvm host, started and configured libvirt and started cs-agent just before I configured the first zone:
#tail -f agent.log 2018-01-07 00:46:17,410 INFO [utils.nio.NioClient] (Agent Timer:null) (logid:) Connecting to 172.16.10.5:8250 2018-01-07 00:46:17,522 INFO [utils.nio.NioClient] (Agent Timer:null) (logid:) SSL: Handshake done 2018-01-07 00:46:17,522 INFO [utils.nio.NioClient] (Agent Timer:null) (logid:) Connected to 172.16.10.5:8250 2018-01-07 00:46:17,526 WARN [kvm.resource.LibvirtComputingResource] (Agent-Handler-1:null) (logid:) Could not read cpuinfo_max_freq 2018-01-07 00:46:17,612 INFO [kvm.storage.LibvirtStorageAdaptor] (Agent-Handler-1:null) (logid:) Attempting to create storage pool (Filesystem) in libvirt 2018-01-07 00:46:17,614 WARN [kvm.storage.LibvirtStorageAdaptor] (Agent-Handler-1:null) (logid:) Storage pool was not found running in libvirt. Need to create it. 2018-01-07 00:46:17,614 INFO [kvm.storage.LibvirtStorageAdaptor] (Agent-Handler-1:null) (logid:) Didn't find an existing storage pool by UUID, checking for pools with duplicate paths 2018-01-07 00:46:17,616 ERROR [kvm.storage.LibvirtStorageAdaptor] (Agent-Handler-1:null) (logid:) org.libvirt.LibvirtException: XML error: missing pool source name element 2018-01-07 00:46:18,234 INFO [cloud.agent.Agent] (Agent-Handler-2:null) (logid:) Proccess agent startup answer, agent id = 0 2018-01-07 00:46:18,235 INFO [cloud.agent.Agent] (Agent-Handler-2:null) (logid:) Set agent id 0 2018-01-07 00:46:18,243 INFO [cloud.agent.Agent] (AgentShutdownThread:null) (logid:) Stopping the agent: Reason = sig.killVirsh pool-list is empty Wizard fails with: Something went wrong; please correct the following: Unable to add the host Which is obvious as the agent process seems to be stopped. Clicked on the "fix errors" button in the GUI and restarted the agent and I am now presented with the below error, but: Something went wrong; please correct the following: Guid is not updated for cluster with specified cluster id; need to wait for hosts in this cluster to come up #tail -f agent.log 2018-01-07 00:58:13,320 INFO [utils.nio.NioClient] (main:null) (logid:) Connecting to 172.16.10.5:8250 2018-01-07 00:58:13,521 INFO [utils.nio.NioClient] (main:null) (logid:) SSL: Handshake done 2018-01-07 00:58:13,521 INFO [utils.nio.NioClient] (main:null) (logid:) Connected to 172.16.10.5:8250 2018-01-07 00:58:13,530 WARN [kvm.resource.LibvirtComputingResource] (Agent-Handler-1:null) (logid:) Could not read cpuinfo_max_freq 2018-01-07 00:58:13,618 INFO [kvm.storage.LibvirtStorageAdaptor] (Agent-Handler-1:null) (logid:) Attempting to create storage pool 2ee07eab-3791-44b2-bed5-a516139142d7 (Filesystem) in libvirt 2018-01-07 00:58:13,623 WARN [kvm.storage.LibvirtStorageAdaptor] (Agent-Handler-1:null) (logid:) Storage pool 2ee07eab-3791-44b2-bed5-a516139142d7 was not found running in libvirt. Need to create it. 2018-01-07 00:58:13,623 INFO [kvm.storage.LibvirtStorageAdaptor] (Agent-Handler-1:null) (logid:) Didn't find an existing storage pool 2ee07eab-3791-44b2-bed5-a516139142d7 by UUID, checking for pools with duplicate paths 2018-01-07 00:58:13,628 INFO [kvm.storage.LibvirtStorageAdaptor] (Agent-Handler-1:null) (logid:) Trying to fetch storage pool 2ee07eab-3791-44b2-bed5-a516139142d7 from libvirt 2018-01-07 00:58:13,677 INFO [cloud.serializer.GsonHelper] (Agent-Handler-1:null) (logid:) Default Builder inited. #virsh pool-list Name State Autostart ------------------------------------------- 2ee07eab-3791-44b2-bed5-a516139142d7 active no And /etc/cloudstack/agent/agent.properties file has been populated with the below 2 fields: guid=1011d539-a2a9-3e89-a79c-281a1452f36d local.storage.uuid=2ee07eab-3791-44b2-bed5-a516139142d7 Cancelling the wizard will now take me to the infrastructure dashboard and the host is in fact added and I can continue with adding storage and instances. Future hosts will not have this problem as I now know the primary storage id which I can add in the agent.properties file but I would like to complete this procedure in a better way and also to update the official documentation with the correct steps Thanks in advance for any help -----Original Message----- From: Simon Weller [mailto:swel...@ena.com.INVALID] Sent: 06 January 2018 23:09 To: users@cloudstack.apache.org Subject: Re: new kvm setup storage pool On the subject of the xml error, make sure libvirt is being started before the cloudstack agent. The cloudstack agent talks to libvirt and will inject the storage pools. You can test this by restarting libvirt, do a virsh pool-list, then restart the cloudstack-agent and do another virsh pool-list and compare the two. If the agent is setup correctly, you should see your storage pool. - Si ________________________________ From: Luke Camilleri <luke.camill...@zylacomputing.com> Sent: Saturday, January 6, 2018 10:06 AM To: users@cloudstack.apache.org Subject: RE: new kvm setup storage pool Thanks Ivan, will test with 4.9.3 and let you know Regards -----Original Message----- From: Ivan Kudryavtsev [mailto:kudryavtsev...@bw-sw.com] Sent: 06 January 2018 12:37 To: users@cloudstack.apache.org Subject: Re: new kvm setup storage pool Hi, Luke. Don't recommend using 4.10, use 4.9.3 because it's stable and battle proven. 4.10 is very buggy. 6 янв. 2018 г. 18:17 пользователь "Luke Camilleri" < luke.camill...@zylacomputing.com> написал: > Hello everyone, I am following the guide to setup CS 4.10 with kvm hosts. > Upon adding my first zone at the add host step it fails and the > following is shown in the logs: > > 2018-01-06 12:06:13,460 ERROR [kvm.storage.LibvirtStorageAdaptor] > (Agent-Handler-1:null) (logid:) org.libvirt.LibvirtException: XML error: > missing pool source name element > > In the installation guide there is no mentioning of generating uuid's > for hosts or storage but it might have been sjipped by mistake or I am > doing something wrong here. > > Can anyone one please let me know what is going on?? > > Thanks >