Re: downloading iso to secondary storage

2018-02-18 Thread Swastik Mittal
hey,

I tried with system VM template version 4.4 and it works fine. Earlier I
was using system VM template 4.6. Also when I used console to access SSVM
installed from 4.6 system VM template, each time I pressed enter after
entering the password machine used to reboot by itself. I used to access
SSVM through ssh from my local system and not console of management server.

Regards
Swastik

On Mon, Feb 19, 2018 at 10:52 AM, Swastik Mittal 
wrote:

> Hey,
>
> I am downloading iso from local http server to secondary storage. Iso gets
> registered succesfully but it does not show any status and is not
> downloaded. After some time (~5-6 hrs) iso displays successfully installed.
> Initially I was facing this error but that time iso was not getting
> downloaded at all and it was because sshd service was not enabled on
> secondary storage server. Generally status shows downloading percentage
> when getting downloaded but my management server shows nothing. My
> cloud.out does show no credentials configured for host but I can connect to
> management and secondary storage from ssvm using ssh and in case of the iso
> successfully installed same status "no credentials configured for host" was
> shown. I am not able to identify whether iso is really getting installed or
> there has been some connection problem because of which I have to wait for
> hours. My secondary storage is mounted and the mounted directory have 777
> permission. Any idea?
>


downloading iso to secondary storage

2018-02-18 Thread Swastik Mittal
Hey,

I am downloading iso from local http server to secondary storage. Iso gets
registered succesfully but it does not show any status and is not
downloaded. After some time (~5-6 hrs) iso displays successfully installed.
Initially I was facing this error but that time iso was not getting
downloaded at all and it was because sshd service was not enabled on
secondary storage server. Generally status shows downloading percentage
when getting downloaded but my management server shows nothing. My
cloud.out does show no credentials configured for host but I can connect to
management and secondary storage from ssvm using ssh and in case of the iso
successfully installed same status "no credentials configured for host" was
shown. I am not able to identify whether iso is really getting installed or
there has been some connection problem because of which I have to wait for
hours. My secondary storage is mounted and the mounted directory have 777
permission. Any idea?


Re: System VM Issues 4.11?

2018-02-18 Thread Rohit Yadav
Thanks Kristian,


Please confirm:

- Did you see the new 4.11 systemvmtemplate and tried to destroy old systemvms 
and/or virtual routers?

- Are all the xenserver hosts version 7.0 in all your clusters?

- Was the upgrade in-place (on the same host), or on a different server?

- Is dynamic roles enabled or you're still using the old/deprecated static 
roles i.e. commands.properties file?

- Did you try accessing the UI in incognito mode or after clearing the browser 
cache?


Looking at the logs, some errors:


>  2018-01-01 00:01:22,481 ERROR [c.c.u.s.SshHelper] 
> (DirectAgent-29:ctx-62676ad7) (logid:48c55dee) SSH execution of command 
> /opt/cloud/bin/router_proxy.sh netusage.sh 169.254.3.20 -g has an error 
> status code in return. Result output: /root/func.sh: line 61: 
> /tmp/1514746614947437999-28844-biglock.lock: Read-only file system

> 2018-01-01 00:01:22,482 WARN  
> [c.c.h.x.r.w.x.XenServer56NetworkUsageCommandWrapper] 
> (DirectAgent-29:ctx-62676ad7) (logid:48c55dee) Failed to get network usage


This looks like a case where an old (pre 4.11) or new (4.11) based virtual 
router ended up having read-only file system. If there are old virtual routers 
they need to be removed, restart network with cleanup=true.


> 2018-01-01 00:01:24,503 DEBUG [c.c.h.x.r.XenServerConnectionPool] 
> (ClusteredAgentManager Timer:ctx-198e0371) (logid:509434bb) Unable to create 
> master connection to host(172.16.10.13) , due to 
> org.apache.xmlrpc.XmlRpcException: Failed to read server's response: connect 
> timed out  > 2018-01-01 00:01:24,503 DEBUG 
> [c.c.h.Status] (ClusteredAgentManager Timer:ctx-198e0371) (logid:509434bb) 
> Transition:[Resource state = Enabled, Agent event = AgentDisconnected, Host 
> id = 864, name = xen-13-10-b1-khi02]

I'm not sure why your mgmt server was unable to make a connection with existing 
xenserver host. After a major version upgrade, on reconnection scripts will be 
copied to your xenserver host. In case that failed (because I don't have your 
upgrade logs), you'll need to reset host flags and reconnect on all such hosts.

> 2018-01-01 00:01:26,367 ERROR [c.c.u.s.SshHelper] 
> (AgentTaskPool-12:ctx-cfea21e4) (logid:c2b516fe) SSH execution of command xe 
> sm-list | grep "resigning of duplicates" has an error status code in return. 
> Result output:


Not sure about these ones.


> 2018-01-01 00:40:09,411 WARN  [c.c.h.x.r.CitrixResourceBase] 
> (DirectAgent-271:ctx-c9e202e1) (logid:1f6aafe2) Unable to start 
> i-1744-15758-VM due to-

com.cloud.utils.exception.CloudRuntimeException: createIsoSRbyURI failed! 
mountpoint: 172.16.2.37/nfs/KHI03/template/tmpl/1326/465 due to 
SR_BACKEND_FAILURE_222Could not mount the directory specified in Device 
Configuration
>---at 
>com.cloud.hypervisor.xenserver.resource.CitrixResourceBase.createIsoSRbyURI(CitrixResourceBase.java:988)

Can you check if your storage pools are accessible to your hosts?


Lastly, if you attempt upgrade again (or perhaps on a test environment), do 
keep the logs for future reference for example sharing with us in case it fails 
for you again.



- Rohit






From: Kristian Liivak 
Sent: Saturday, February 17, 2018 8:49:26 PM
To: users
Subject: Re: System VM Issues 4.11?

Hi Rohit

Here it is https://wavecom.ee/files/management-server.rar
Log beginning little bit earlier then upgrade.
I did,nt fallow errors during gui access this time.
If it helps i can allways revert management server where i was in that moment 
and grab more info.

Lugupidamisega / Regards

Kristian Liivak

WaveCom As
Endla 16, 10142 Tallinn
Estonia
Tel: +3726850001
Gsm: +37256850001
E-mail: k...@wavecom.ee
Skype: kristian.liivak
http://www.wavecom.ee
http://www.facebook.com/wavecom.ee


rohit.ya...@shapeblue.comĀ 
www.shapeblue.com
53 Chandos Place, Covent Garden, London  WC2N 4HSUK
@shapeblue
  
 

- Original Message -
From: "rohit yadav" 
To: "users" 
Sent: Saturday, February 17, 2018 9:15:56 PM
Subject: Re: System VM Issues 4.11?

Hi Kristian,


Yes, can you share the logs and if you saw any sql/db or other errors when you 
tried to access the UI?


- Rohit






From: Kristian Liivak 
Sent: Saturday, February 17, 2018 3:07:04 PM
To: users
Subject: Re: System VM Issues 4.11?

Hi All

I also upgraded from 4.10->4.11 and had similar issues ,even more.
After upgrade, Gui under infrastructure i didnt show any host nor systemvm 
anymore , except VR
Destroyd consoleproxy, new was created but no network running.

Enviroment is Xenserver7 and i also runned before upgrade sql update mentioned 
below .
Before reverting back i grabbed all log files. If anyone is intrested i can 
make them downloadable.


Lugupidamisega / Regards

Kristian Liivak

WaveCom As
Endla 16, 10142 Tallinn
Estonia
Tel: +3726850001