Re: XenServer Agent is not coming up after upgrading from 7.1 to 8.2
What he said ^^^, as the XenServer upgrade effectively does backup of the old partition data, and installs a brand new OS - with no ACS plugins/scripts - so you have to initialise the host, to force ACS to copy again all the binaries. Best, On Thu, 2 Jun 2022 at 06:14, Harikrishna Patnala < harikrishna.patn...@shapeblue.com> wrote: > Hi Vivek, > > Please check the CloudStack detected Xenserver version in either UI or > database. > > You may try an option to reinitialize the Xenserver host by clearing the > tags on the host and try reconnecting from CloudStack UI. > Run the following command on Xenserver and reconnect the host. > > # for host in $(xe host-list | grep ^uuid | awk '{print $NF}') ; do xe > host-param-clear uuid=$host param-name=tags; done; > > Hope this helps. > > Regards, > Harikrishna > > From: Suresh Anaparti > Sent: Wednesday, June 1, 2022 3:07 PM > To: users@cloudstack.apache.org > Subject: Re: XenServer Agent is not coming up after upgrading from 7.1 to > 8.2 > > Hi Vivek, > > This discussion thread might provide you some inputs: > https://lists.apache.org/thread/7q6yybm3qcms21qcd8945kvrygpr1v86 > > Also, check the docs here: > http://docs.cloudstack.apache.org/en/4.16.1.0/installguide/hypervisor/xenserver.html#upgrading-xenserver-versions, > and see if you have missed any upgrade step. > > > Regards, > Suresh > > On 01/06/22, 2:17 PM, "Vivek Kumar" > wrote: > > Hello Guys, > > > We have recently upgraded our XenServer from 7.1 to 8.2. We are using > CloudStack 4.16.1. But after the upgradation my status of host is showing > alert. I have gone through the logs getting below error. Can someone help > me out for this. > > > > — > > > > rZCUKmFN6d4veFOrfeDI3u_9aDd-feyXbqPD-9Ua0Le6m9_Y7LciAVHmSw&command=listSystemVms&response=json&signatureVersion=3&expires=2022-06-01T08%3A43%3A33%2B&signature=x7KQg4LW2XPtTf%2BHHVn0Fm599xA%3D > 2022-06-01 14:00:51,613 DEBUG [c.c.u.s.SSHCmdHelper] > (DirectAgent-13:ctx-797e05c2) (logid:3256e16e) Executing cmd: rm -f > /opt/xensource/sm/hostvmstats.py > /opt/xensource/bin/copy_vhd_to_secondarystorage.sh > /opt/xensource/bin/copy_vhd_from_secondarystorage.sh > /opt/xensource/bin/create_privatetemplate_from_snapshot.sh > /opt/xensource/bin/vhd-util /opt/cloud/bin/copy_vhd_to_secondarystorage.sh > /opt/cloud/bin/copy_vhd_from_secondarystorage.sh > /opt/cloud/bin/create_privatetemplate_from_snapshot.sh > /opt/cloud/bin/vhd-util > 2022-06-01 14:00:52,750 DEBUG [c.c.a.ApiServlet] > (qtp1850777594-19:ctx-5c391d12) (logid:fb2dbf4b) ===START=== 172.31.29.44 > -- GET > listall=True&apiKey=W0EWPYRPQu51YPDQ8s_0b4wDDuSqrZCUKmFN6d4veFOrfeDI3u_9aDd-feyXbqPD-9Ua0Le6m9_Y7LciAVHmSw&command=listVpnConnections&response=json&signatureVersion=3&expires=2022-06-01T08%3A43%3A35%2B&signature=TBKYjvgMLESFTna9iXeGTJdKtc0%3D > 2022-06-01 14:00:52,756 DEBUG [c.c.a.ApiServer] > (qtp1850777594-19:ctx-5c391d12 ctx-9cd12123) (logid:fb2dbf4b) CIDRs from > which account 'Acct[0d808973-19be-11eb-9555-005056961200-admin] -- Account > {"id": 2, "name": "admin", "uuid": "0d808973-19be-11eb-9555-005056961200"}' > is allowed to perform API calls: 0.0.0.0/0,::/0 > 2022-06-01 14:00:52,761 DEBUG [c.c.a.ApiServlet] > (qtp1850777594-19:ctx-5c391d12 ctx-9cd12123 ctx-6326bb8c) (logid:fb2dbf4b) > ===END=== 172.31.29.44 -- GET > listall=True&apiKey=W0EWPYRPQu51YPDQ8s_0b4wDDuSqrZCUKmFN6d4veFOrfeDI3u_9aDd-feyXbqPD-9Ua0Le6m9_Y7LciAVHmSw&command=listVpnConnections&response=json&signatureVersion=3&expires=2022-06-01T08%3A43%3A35%2B&signature=TBKYjvgMLESFTna9iXeGTJdKtc0%3D > 2022-06-01 14:00:52,862 INFO [c.c.h.x.r.CitrixResourceBase] > (DirectAgent-13:ctx-797e05c2) (logid:3256e16e) Host 172.31.21.5 > OpaqueRef:d1a2d70a-25bd-37b3-c581-2249ccf88fc0: Host 172.31.21.5 is already > setup. > 2022-06-01 14:00:52,868 WARN [c.c.h.x.r.CitrixResourceBase] > (DirectAgent-13:ctx-797e05c2) (logid:3256e16e) callHostPlugin failed for > cmd: setIptables with args due to The requested plugin could not be found. > 2022-06-01 14:00:52,869 WARN > [c.c.h.x.r.w.x.CitrixSetupCommandWrapper] (DirectAgent-13:ctx-797e05c2) > (logid:3256e16e) Unable to setup > com.cloud.utils.exception.CloudRuntimeException: callHostPlugin failed > for cmd: setIptables with args due to The requested plugin could not be > found. > at > com.cloud.hypervisor.xenserver.resource.CitrixResourceBase.callHostPlugin(CitrixResourceBase.java
Re: XenServer Agent is not coming up after upgrading from 7.1 to 8.2
Hi Vivek, Please check the CloudStack detected Xenserver version in either UI or database. You may try an option to reinitialize the Xenserver host by clearing the tags on the host and try reconnecting from CloudStack UI. Run the following command on Xenserver and reconnect the host. # for host in $(xe host-list | grep ^uuid | awk '{print $NF}') ; do xe host-param-clear uuid=$host param-name=tags; done; Hope this helps. Regards, Harikrishna From: Suresh Anaparti Sent: Wednesday, June 1, 2022 3:07 PM To: users@cloudstack.apache.org Subject: Re: XenServer Agent is not coming up after upgrading from 7.1 to 8.2 Hi Vivek, This discussion thread might provide you some inputs: https://lists.apache.org/thread/7q6yybm3qcms21qcd8945kvrygpr1v86 Also, check the docs here: http://docs.cloudstack.apache.org/en/4.16.1.0/installguide/hypervisor/xenserver.html#upgrading-xenserver-versions, and see if you have missed any upgrade step. Regards, Suresh On 01/06/22, 2:17 PM, "Vivek Kumar" wrote: Hello Guys, We have recently upgraded our XenServer from 7.1 to 8.2. We are using CloudStack 4.16.1. But after the upgradation my status of host is showing alert. I have gone through the logs getting below error. Can someone help me out for this. — rZCUKmFN6d4veFOrfeDI3u_9aDd-feyXbqPD-9Ua0Le6m9_Y7LciAVHmSw&command=listSystemVms&response=json&signatureVersion=3&expires=2022-06-01T08%3A43%3A33%2B&signature=x7KQg4LW2XPtTf%2BHHVn0Fm599xA%3D 2022-06-01 14:00:51,613 DEBUG [c.c.u.s.SSHCmdHelper] (DirectAgent-13:ctx-797e05c2) (logid:3256e16e) Executing cmd: rm -f /opt/xensource/sm/hostvmstats.py /opt/xensource/bin/copy_vhd_to_secondarystorage.sh /opt/xensource/bin/copy_vhd_from_secondarystorage.sh /opt/xensource/bin/create_privatetemplate_from_snapshot.sh /opt/xensource/bin/vhd-util /opt/cloud/bin/copy_vhd_to_secondarystorage.sh /opt/cloud/bin/copy_vhd_from_secondarystorage.sh /opt/cloud/bin/create_privatetemplate_from_snapshot.sh /opt/cloud/bin/vhd-util 2022-06-01 14:00:52,750 DEBUG [c.c.a.ApiServlet] (qtp1850777594-19:ctx-5c391d12) (logid:fb2dbf4b) ===START=== 172.31.29.44 -- GET listall=True&apiKey=W0EWPYRPQu51YPDQ8s_0b4wDDuSqrZCUKmFN6d4veFOrfeDI3u_9aDd-feyXbqPD-9Ua0Le6m9_Y7LciAVHmSw&command=listVpnConnections&response=json&signatureVersion=3&expires=2022-06-01T08%3A43%3A35%2B&signature=TBKYjvgMLESFTna9iXeGTJdKtc0%3D 2022-06-01 14:00:52,756 DEBUG [c.c.a.ApiServer] (qtp1850777594-19:ctx-5c391d12 ctx-9cd12123) (logid:fb2dbf4b) CIDRs from which account 'Acct[0d808973-19be-11eb-9555-005056961200-admin] -- Account {"id": 2, "name": "admin", "uuid": "0d808973-19be-11eb-9555-005056961200"}' is allowed to perform API calls: 0.0.0.0/0,::/0 2022-06-01 14:00:52,761 DEBUG [c.c.a.ApiServlet] (qtp1850777594-19:ctx-5c391d12 ctx-9cd12123 ctx-6326bb8c) (logid:fb2dbf4b) ===END=== 172.31.29.44 -- GET listall=True&apiKey=W0EWPYRPQu51YPDQ8s_0b4wDDuSqrZCUKmFN6d4veFOrfeDI3u_9aDd-feyXbqPD-9Ua0Le6m9_Y7LciAVHmSw&command=listVpnConnections&response=json&signatureVersion=3&expires=2022-06-01T08%3A43%3A35%2B&signature=TBKYjvgMLESFTna9iXeGTJdKtc0%3D 2022-06-01 14:00:52,862 INFO [c.c.h.x.r.CitrixResourceBase] (DirectAgent-13:ctx-797e05c2) (logid:3256e16e) Host 172.31.21.5 OpaqueRef:d1a2d70a-25bd-37b3-c581-2249ccf88fc0: Host 172.31.21.5 is already setup. 2022-06-01 14:00:52,868 WARN [c.c.h.x.r.CitrixResourceBase] (DirectAgent-13:ctx-797e05c2) (logid:3256e16e) callHostPlugin failed for cmd: setIptables with args due to The requested plugin could not be found. 2022-06-01 14:00:52,869 WARN [c.c.h.x.r.w.x.CitrixSetupCommandWrapper] (DirectAgent-13:ctx-797e05c2) (logid:3256e16e) Unable to setup com.cloud.utils.exception.CloudRuntimeException: callHostPlugin failed for cmd: setIptables with args due to The requested plugin could not be found. at com.cloud.hypervisor.xenserver.resource.CitrixResourceBase.callHostPlugin(CitrixResourceBase.java:367) at com.cloud.hypervisor.xenserver.resource.CitrixResourceBase.setIptables(CitrixResourceBase.java:4706) at com.cloud.hypervisor.xenserver.resource.wrapper.xenbase.CitrixSetupCommandWrapper.execute(CitrixSetupCommandWrapper.java:63) at com.cloud.hypervisor.xenserver.resource.wrapper.xenbase.CitrixSetupCommandWrapper.execute(CitrixSetupCommandWrapper.java:45) at com.cloud.hypervisor.xenserver.resource.wrapper.xenbase.CitrixRequestWrapper.execute(CitrixRequestWrapper.java:122) at com.cloud.hypervisor.xenserver.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:1758) at com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:315) at org.apache.cloudstack.managed.context.
Re: XenServer Agent is not coming up after upgrading from 7.1 to 8.2
Hi Vivek, This discussion thread might provide you some inputs: https://lists.apache.org/thread/7q6yybm3qcms21qcd8945kvrygpr1v86 Also, check the docs here: http://docs.cloudstack.apache.org/en/4.16.1.0/installguide/hypervisor/xenserver.html#upgrading-xenserver-versions, and see if you have missed any upgrade step. Regards, Suresh On 01/06/22, 2:17 PM, "Vivek Kumar" wrote: Hello Guys, We have recently upgraded our XenServer from 7.1 to 8.2. We are using CloudStack 4.16.1. But after the upgradation my status of host is showing alert. I have gone through the logs getting below error. Can someone help me out for this. — rZCUKmFN6d4veFOrfeDI3u_9aDd-feyXbqPD-9Ua0Le6m9_Y7LciAVHmSw&command=listSystemVms&response=json&signatureVersion=3&expires=2022-06-01T08%3A43%3A33%2B&signature=x7KQg4LW2XPtTf%2BHHVn0Fm599xA%3D 2022-06-01 14:00:51,613 DEBUG [c.c.u.s.SSHCmdHelper] (DirectAgent-13:ctx-797e05c2) (logid:3256e16e) Executing cmd: rm -f /opt/xensource/sm/hostvmstats.py /opt/xensource/bin/copy_vhd_to_secondarystorage.sh /opt/xensource/bin/copy_vhd_from_secondarystorage.sh /opt/xensource/bin/create_privatetemplate_from_snapshot.sh /opt/xensource/bin/vhd-util /opt/cloud/bin/copy_vhd_to_secondarystorage.sh /opt/cloud/bin/copy_vhd_from_secondarystorage.sh /opt/cloud/bin/create_privatetemplate_from_snapshot.sh /opt/cloud/bin/vhd-util 2022-06-01 14:00:52,750 DEBUG [c.c.a.ApiServlet] (qtp1850777594-19:ctx-5c391d12) (logid:fb2dbf4b) ===START=== 172.31.29.44 -- GET listall=True&apiKey=W0EWPYRPQu51YPDQ8s_0b4wDDuSqrZCUKmFN6d4veFOrfeDI3u_9aDd-feyXbqPD-9Ua0Le6m9_Y7LciAVHmSw&command=listVpnConnections&response=json&signatureVersion=3&expires=2022-06-01T08%3A43%3A35%2B&signature=TBKYjvgMLESFTna9iXeGTJdKtc0%3D 2022-06-01 14:00:52,756 DEBUG [c.c.a.ApiServer] (qtp1850777594-19:ctx-5c391d12 ctx-9cd12123) (logid:fb2dbf4b) CIDRs from which account 'Acct[0d808973-19be-11eb-9555-005056961200-admin] -- Account {"id": 2, "name": "admin", "uuid": "0d808973-19be-11eb-9555-005056961200"}' is allowed to perform API calls: 0.0.0.0/0,::/0 2022-06-01 14:00:52,761 DEBUG [c.c.a.ApiServlet] (qtp1850777594-19:ctx-5c391d12 ctx-9cd12123 ctx-6326bb8c) (logid:fb2dbf4b) ===END=== 172.31.29.44 -- GET listall=True&apiKey=W0EWPYRPQu51YPDQ8s_0b4wDDuSqrZCUKmFN6d4veFOrfeDI3u_9aDd-feyXbqPD-9Ua0Le6m9_Y7LciAVHmSw&command=listVpnConnections&response=json&signatureVersion=3&expires=2022-06-01T08%3A43%3A35%2B&signature=TBKYjvgMLESFTna9iXeGTJdKtc0%3D 2022-06-01 14:00:52,862 INFO [c.c.h.x.r.CitrixResourceBase] (DirectAgent-13:ctx-797e05c2) (logid:3256e16e) Host 172.31.21.5 OpaqueRef:d1a2d70a-25bd-37b3-c581-2249ccf88fc0: Host 172.31.21.5 is already setup. 2022-06-01 14:00:52,868 WARN [c.c.h.x.r.CitrixResourceBase] (DirectAgent-13:ctx-797e05c2) (logid:3256e16e) callHostPlugin failed for cmd: setIptables with args due to The requested plugin could not be found. 2022-06-01 14:00:52,869 WARN [c.c.h.x.r.w.x.CitrixSetupCommandWrapper] (DirectAgent-13:ctx-797e05c2) (logid:3256e16e) Unable to setup com.cloud.utils.exception.CloudRuntimeException: callHostPlugin failed for cmd: setIptables with args due to The requested plugin could not be found. at com.cloud.hypervisor.xenserver.resource.CitrixResourceBase.callHostPlugin(CitrixResourceBase.java:367) at com.cloud.hypervisor.xenserver.resource.CitrixResourceBase.setIptables(CitrixResourceBase.java:4706) at com.cloud.hypervisor.xenserver.resource.wrapper.xenbase.CitrixSetupCommandWrapper.execute(CitrixSetupCommandWrapper.java:63) at com.cloud.hypervisor.xenserver.resource.wrapper.xenbase.CitrixSetupCommandWrapper.execute(CitrixSetupCommandWrapper.java:45) at com.cloud.hypervisor.xenserver.resource.wrapper.xenbase.CitrixRequestWrapper.execute(CitrixRequestWrapper.java:122) at com.cloud.hypervisor.xenserver.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:1758) at com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:315) at org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:48) at org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:55) at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:102) at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:52) at org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:45) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$S
XenServer Agent is not coming up after upgrading from 7.1 to 8.2
Hello Guys, We have recently upgraded our XenServer from 7.1 to 8.2. We are using CloudStack 4.16.1. But after the upgradation my status of host is showing alert. I have gone through the logs getting below error. Can someone help me out for this. — rZCUKmFN6d4veFOrfeDI3u_9aDd-feyXbqPD-9Ua0Le6m9_Y7LciAVHmSw&command=listSystemVms&response=json&signatureVersion=3&expires=2022-06-01T08%3A43%3A33%2B&signature=x7KQg4LW2XPtTf%2BHHVn0Fm599xA%3D 2022-06-01 14:00:51,613 DEBUG [c.c.u.s.SSHCmdHelper] (DirectAgent-13:ctx-797e05c2) (logid:3256e16e) Executing cmd: rm -f /opt/xensource/sm/hostvmstats.py /opt/xensource/bin/copy_vhd_to_secondarystorage.sh /opt/xensource/bin/copy_vhd_from_secondarystorage.sh /opt/xensource/bin/create_privatetemplate_from_snapshot.sh /opt/xensource/bin/vhd-util /opt/cloud/bin/copy_vhd_to_secondarystorage.sh /opt/cloud/bin/copy_vhd_from_secondarystorage.sh /opt/cloud/bin/create_privatetemplate_from_snapshot.sh /opt/cloud/bin/vhd-util 2022-06-01 14:00:52,750 DEBUG [c.c.a.ApiServlet] (qtp1850777594-19:ctx-5c391d12) (logid:fb2dbf4b) ===START=== 172.31.29.44 -- GET listall=True&apiKey=W0EWPYRPQu51YPDQ8s_0b4wDDuSqrZCUKmFN6d4veFOrfeDI3u_9aDd-feyXbqPD-9Ua0Le6m9_Y7LciAVHmSw&command=listVpnConnections&response=json&signatureVersion=3&expires=2022-06-01T08%3A43%3A35%2B&signature=TBKYjvgMLESFTna9iXeGTJdKtc0%3D 2022-06-01 14:00:52,756 DEBUG [c.c.a.ApiServer] (qtp1850777594-19:ctx-5c391d12 ctx-9cd12123) (logid:fb2dbf4b) CIDRs from which account 'Acct[0d808973-19be-11eb-9555-005056961200-admin] -- Account {"id": 2, "name": "admin", "uuid": "0d808973-19be-11eb-9555-005056961200"}' is allowed to perform API calls: 0.0.0.0/0,::/0 2022-06-01 14:00:52,761 DEBUG [c.c.a.ApiServlet] (qtp1850777594-19:ctx-5c391d12 ctx-9cd12123 ctx-6326bb8c) (logid:fb2dbf4b) ===END=== 172.31.29.44 -- GET listall=True&apiKey=W0EWPYRPQu51YPDQ8s_0b4wDDuSqrZCUKmFN6d4veFOrfeDI3u_9aDd-feyXbqPD-9Ua0Le6m9_Y7LciAVHmSw&command=listVpnConnections&response=json&signatureVersion=3&expires=2022-06-01T08%3A43%3A35%2B&signature=TBKYjvgMLESFTna9iXeGTJdKtc0%3D 2022-06-01 14:00:52,862 INFO [c.c.h.x.r.CitrixResourceBase] (DirectAgent-13:ctx-797e05c2) (logid:3256e16e) Host 172.31.21.5 OpaqueRef:d1a2d70a-25bd-37b3-c581-2249ccf88fc0: Host 172.31.21.5 is already setup. 2022-06-01 14:00:52,868 WARN [c.c.h.x.r.CitrixResourceBase] (DirectAgent-13:ctx-797e05c2) (logid:3256e16e) callHostPlugin failed for cmd: setIptables with args due to The requested plugin could not be found. 2022-06-01 14:00:52,869 WARN [c.c.h.x.r.w.x.CitrixSetupCommandWrapper] (DirectAgent-13:ctx-797e05c2) (logid:3256e16e) Unable to setup com.cloud.utils.exception.CloudRuntimeException: callHostPlugin failed for cmd: setIptables with args due to The requested plugin could not be found. at com.cloud.hypervisor.xenserver.resource.CitrixResourceBase.callHostPlugin(CitrixResourceBase.java:367) at com.cloud.hypervisor.xenserver.resource.CitrixResourceBase.setIptables(CitrixResourceBase.java:4706) at com.cloud.hypervisor.xenserver.resource.wrapper.xenbase.CitrixSetupCommandWrapper.execute(CitrixSetupCommandWrapper.java:63) at com.cloud.hypervisor.xenserver.resource.wrapper.xenbase.CitrixSetupCommandWrapper.execute(CitrixSetupCommandWrapper.java:45) at com.cloud.hypervisor.xenserver.resource.wrapper.xenbase.CitrixRequestWrapper.execute(CitrixRequestWrapper.java:122) at com.cloud.hypervisor.xenserver.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:1758) at com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:315) at org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:48) at org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:55) at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:102) at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:52) at org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:45) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:834) 2022-06-01 14:00:52,869 DEBUG [c.c.a.m.DirectAgentAttache] (DirectAgent-13:ctx-797e05c2) (logid:3256e16e) Seq 1-2294302535168557057: Response Received: 2022-06-01 14:00:52,