Hi, I've been trying to study how System VMs work in CloudStack code. Tracing the creation of SSVM and CPVM was not a problem. It has to do with updateZone API (&allocationstate=Enabled) and SystemVmLoadScanner.java for both secondary storage and console proxy.
But the next usage case, registering a template, was not as straightforward. Tracing the registerTemplate API lead me to a dead end in the send() method in cloud-utils -> com.cloud.utils.nio.Link.java, whose previous step is _link.send(req.toBytes()) in cloud-server -> com.cloud.agent.manager.ConnectedAgentAttache.java. >From the MS log, it seems after the DownloadCommand is sent in agent.transport.Request, the registerTemplate API ends. http://apaste.info/pM1E So how do I trace the next Java steps on the SSVM part? Is it possible to connect Eclipse debugger to System VMs? Or what is the best way to trace the interaction between MS and System VMs that involves an agent command? Thanks ------------------------------------------------------------------------------------------- Yu-Heng (Ryan) Lei, Associate Reasearcher Chunghwa Telecom Laboratories / Cloud Computing Laboratory ryan...@cht.com.tw<https://email.cht.com.tw/owa/redir.aspx?C=-wE1FEC3G0SWYpVkiWo8SsDdf3ZqO9AIuAPTzRnFYCUi-z4YljtI_hyVKkNHfn9F1Bn-vUWJnQ4.&URL=mailto%3aryanlei%40cht.com.tw> or ryanlei750...@gmail.com