Not able to download CentOS template

2014-03-24 Thread Tejas Gadaria
Hi,

After CS installation I am unable to download CentOS template. SSVM and
CPVM public IP's are not pinging.

I am following this Doc..
https://cwiki.apache.org/confluence/display/CLOUDSTACK/SSVM%2C+templates%2C+Secondary+storage+troubleshooting

1) Not able to login from Management server to SSVM with SSVM private ip.



*ssh -i /root/.ssh/id_rsa.cloud -p 3922 10.129.151.96ssh: connect to host
10.129.151.96 port 3922: Connection refused*
2)
*ssh root@169.254.2.113 root@169.254.2.113 (Link local ip from Xenserver
host)ssh: connect to host 169.254.2.113 169.254.2.113 port 22: Connection
timed out*

I management server log it does not shows any error, except template NOT
DOWNLOADED error

Then I took console in xencenter and check the SSVM log,

07:21:48,210  INFO Agent:154 - id is 3
07:21:48,251  INFO NfsSecondaryStorageResource:2046 - config_ssl.sh found
in /us r/local/cloud/systemvm/config_ssl.sh
07:21:48,251  INFO NfsSecondaryStorageResource:2051 - config_auth.sh found
in /u sr/local/cloud/systemvm/config_auth.sh
07:21:48,252  INFO NfsSecondaryStorageResource:2056 - _configIpFirewallScr
found in /usr/local/cloud/systemvm/ipfirewall.sh
07:21:48,255  INFO NfsSecondaryStorageResource:2070 - Secondary storage
runs in role templateProcessor
07:21:48,298  INFO DownloadManagerImpl:1014 - DownloadManager: starting
additional services since we are inside system vm
07:21:48,850  INFO DownloadManagerImpl:1034 - listvmtmplt.sh found in
/usr/local/cloud/systemvm/scripts/storage/secondary/listvmtmplt.sh
07:21:48,851  INFO DownloadManagerImpl:1040 - createtmplt.sh found in
/usr/local/cloud/systemvm/scripts/storage/secondary/createtmplt.sh
07:21:48,853  INFO DownloadManagerImpl:1046 - listvolume.sh found in
/usr/local/cloud/systemvm/scripts/storage/secondary/listvolume.sh
07:21:48,853  INFO DownloadManagerImpl:1052 - createvolume.sh found in
/usr/local/cloud/systemvm/scripts/storage/secondary/createvolume.sh
07:21:48,863  INFO UploadManagerImpl:477 - UploadManager: starting
additional services since we are inside system vm
07:21:49,031  INFO GsonHelper:53 - Default Builder inited.
07:21:49,042  INFO Agent:182 - Agent [id = 3 : type =
PremiumSecondaryStorageResource : zone = 1 : pod = 1 : workers = 5 : host =
10.129.151.57 : port = 8250
07:21:49,064  INFO NioClient:54 - Connecting to 10.129.151.57:8250
07:21:49,515  INFO NioClient:80 - SSL: Handshake done
07:21:49,515  INFO NioClient:81 - Connected to 10.129.151.57:8250
07:21:49,623  INFO Agent:445 - Proccess agent startup answer, agent id = 0
07:21:49,623  INFO Agent:291 - Set agent id 0
07:21:49,629  INFO Agent:455 - Startup Response Received: agent id = 0
07:21:49,841  INFO NfsSecondaryStorageResource:2365 - snapshots directory
created/exists on Secondary Storage.
07:21:49,842  INFO NfsSecondaryStorageResource:2365 - volumes directory
created/exists on Secondary Storage.
07:21:51,702  INFO DownloadManagerImpl:799 - found 0 volumes[]
07:21:51,851  INFO DownloadManagerImpl:811 - found 2
templates[/mnt/SecStorage/87d42d71-bb1f-3572-af86-17add6e61e15/template/tmpl/1/5/,
/mnt/SecStorage/87d42d71-bb1f-3572-af86-17add6e61e15/template/tmpl/1/1/b36ee4f8-0afb-49e5-918a-a4f31b00b02a.vhd]

07:21:51,856  WARN DownloadManagerImpl:830 - Post download installation was
not completed for
/mnt/SecStorage/87d42d71-bb1f-3572-af86-17add6e61e15/template/tmpl/1/5
07:21:52,010  INFO Agent:592 - Proccess agent ready command, agent id = 3
07:21:52,011  INFO Agent:291 - Set agent id 3
07:21:52,011  INFO Agent:596 - Ready command is processed: agent id = 3
07:21:52,060  INFO Agent:592 - Proccess agent ready command, agent id = 3
07:21:52,060  INFO Agent:291 - Set agent id 3
07:21:52,060  INFO Agent:596 - Ready command is processed: agent id = 3
07:21:52,204  INFO HttpTemplateDownloader:147 - No credentials configured
for host=download.cloud.com:80


*07:21:55,243  INFO HttpMethodDirector:439 - I/O exception
(java.net.NoRouteToHostException) caught when processing request: No route
to host 07:21:55,243  INFO HttpMethodDirector:445 - Retrying request
07:21:58,251  INFO DownloadManagerImpl:268 - Download Completion for jobId:
99e4ca29-e97f-4550-a13f-85d10e44ab0b, status=UNRECOVERABLE_ERROR *
07:21:58,252  INFO DownloadManagerImpl:269 - local:
/mnt/SecStorage/87d42d71-bb1f-3572-af86-17add6e61e15/null/dnld1959129797294693271tmp_,
bytes=0, error=No route to host, pct=0


I am using Local storage as primary storage and NFS as secondary storage
for Xen 6.0.2 on CS 4.2.1
CentOS template also shows *No route to host*  .

SSVM health check shows everything is fine,

root@s-1-VM:/usr/local/cloud/systemvm# sh ssvm-check.sh

First DNS server is  8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
64 bytes from 8.8.8.8: icmp_seq=0 ttl=56 time=176.230 ms
64 bytes from 8.8.8.8: icmp_seq=1 ttl=56 time=157.860 ms
--- 8.8.8.8 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max/stddev = 157.860/167.045/176.230/9.185 ms
Good: 

Re: Not able to download CentOS template

2014-03-24 Thread Osay Osman Yuuni
Try redownloading the template as per the documentation.  Don't forget to
use the -F to force the download.  Ensure that the template is successfully
installed (output of the command to install the template).  Check
SECSTORAGE/template/tmpl/1/ to see whether the template exists (should be
the uuid of the template with a .vhd extension).  There should also be a
template.properties file in there.

You can also check the through the management server GUI to see the status
of the template by clicking on it.  If it does not say ready then there
must be something wrong with your secondary storage.


On 24 March 2014 11:18, Tejas Gadaria refond.g...@gmail.com wrote:

 Hi,

 After CS installation I am unable to download CentOS template. SSVM and
 CPVM public IP's are not pinging.

 I am following this Doc..

 https://cwiki.apache.org/confluence/display/CLOUDSTACK/SSVM%2C+templates%2C+Secondary+storage+troubleshooting

 1) Not able to login from Management server to SSVM with SSVM private ip.



 *ssh -i /root/.ssh/id_rsa.cloud -p 3922 10.129.151.96ssh: connect to host
 10.129.151.96 port 3922: Connection refused*
 2)
 *ssh root@169.254.2.113 root@169.254.2.113 (Link local ip from Xenserver
 host)ssh: connect to host 169.254.2.113 169.254.2.113 port 22: Connection
 timed out*

 I management server log it does not shows any error, except template NOT
 DOWNLOADED error

 Then I took console in xencenter and check the SSVM log,

 07:21:48,210  INFO Agent:154 - id is 3
 07:21:48,251  INFO NfsSecondaryStorageResource:2046 - config_ssl.sh found
 in /us r/local/cloud/systemvm/config_ssl.sh
 07:21:48,251  INFO NfsSecondaryStorageResource:2051 - config_auth.sh found
 in /u sr/local/cloud/systemvm/config_auth.sh
 07:21:48,252  INFO NfsSecondaryStorageResource:2056 - _configIpFirewallScr
 found in /usr/local/cloud/systemvm/ipfirewall.sh
 07:21:48,255  INFO NfsSecondaryStorageResource:2070 - Secondary storage
 runs in role templateProcessor
 07:21:48,298  INFO DownloadManagerImpl:1014 - DownloadManager: starting
 additional services since we are inside system vm
 07:21:48,850  INFO DownloadManagerImpl:1034 - listvmtmplt.sh found in
 /usr/local/cloud/systemvm/scripts/storage/secondary/listvmtmplt.sh
 07:21:48,851  INFO DownloadManagerImpl:1040 - createtmplt.sh found in
 /usr/local/cloud/systemvm/scripts/storage/secondary/createtmplt.sh
 07:21:48,853  INFO DownloadManagerImpl:1046 - listvolume.sh found in
 /usr/local/cloud/systemvm/scripts/storage/secondary/listvolume.sh
 07:21:48,853  INFO DownloadManagerImpl:1052 - createvolume.sh found in
 /usr/local/cloud/systemvm/scripts/storage/secondary/createvolume.sh
 07:21:48,863  INFO UploadManagerImpl:477 - UploadManager: starting
 additional services since we are inside system vm
 07:21:49,031  INFO GsonHelper:53 - Default Builder inited.
 07:21:49,042  INFO Agent:182 - Agent [id = 3 : type =
 PremiumSecondaryStorageResource : zone = 1 : pod = 1 : workers = 5 : host =
 10.129.151.57 : port = 8250
 07:21:49,064  INFO NioClient:54 - Connecting to 10.129.151.57:8250
 07:21:49,515  INFO NioClient:80 - SSL: Handshake done
 07:21:49,515  INFO NioClient:81 - Connected to 10.129.151.57:8250
 07:21:49,623  INFO Agent:445 - Proccess agent startup answer, agent id = 0
 07:21:49,623  INFO Agent:291 - Set agent id 0
 07:21:49,629  INFO Agent:455 - Startup Response Received: agent id = 0
 07:21:49,841  INFO NfsSecondaryStorageResource:2365 - snapshots directory
 created/exists on Secondary Storage.
 07:21:49,842  INFO NfsSecondaryStorageResource:2365 - volumes directory
 created/exists on Secondary Storage.
 07:21:51,702  INFO DownloadManagerImpl:799 - found 0 volumes[]
 07:21:51,851  INFO DownloadManagerImpl:811 - found 2

 templates[/mnt/SecStorage/87d42d71-bb1f-3572-af86-17add6e61e15/template/tmpl/1/5/,

 /mnt/SecStorage/87d42d71-bb1f-3572-af86-17add6e61e15/template/tmpl/1/1/b36ee4f8-0afb-49e5-918a-a4f31b00b02a.vhd]

 07:21:51,856  WARN DownloadManagerImpl:830 - Post download installation was
 not completed for
 /mnt/SecStorage/87d42d71-bb1f-3572-af86-17add6e61e15/template/tmpl/1/5
 07:21:52,010  INFO Agent:592 - Proccess agent ready command, agent id = 3
 07:21:52,011  INFO Agent:291 - Set agent id 3
 07:21:52,011  INFO Agent:596 - Ready command is processed: agent id = 3
 07:21:52,060  INFO Agent:592 - Proccess agent ready command, agent id = 3
 07:21:52,060  INFO Agent:291 - Set agent id 3
 07:21:52,060  INFO Agent:596 - Ready command is processed: agent id = 3
 07:21:52,204  INFO HttpTemplateDownloader:147 - No credentials configured
 for host=download.cloud.com:80


 *07:21:55,243  INFO HttpMethodDirector:439 - I/O exception
 (java.net.NoRouteToHostException) caught when processing request: No route
 to host 07:21:55,243  INFO HttpMethodDirector:445 - Retrying request
 07:21:58,251  INFO DownloadManagerImpl:268 - Download Completion for jobId:
 99e4ca29-e97f-4550-a13f-85d10e44ab0b, status=UNRECOVERABLE_ERROR *
 07:21:58,252  INFO DownloadManagerImpl:269 - local:

 

Re: Not able to download CentOS template

2014-03-24 Thread Tejas Gadaria
Hi Osay,

I am running NFS server on top of Management server,
I have mounted nfs share..

[root@xen nfs]# mount
/dev/mapper/VolGroup-lv_root on / type ext4 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev/sda1 on /boot type ext4 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
/dev/sdb1 on /nfs type ext4 (rw)
nfsd on /proc/fs/nfsd type nfsd (rw)
10.129.151.57:/nfs/secondary on /mnt/secondary type nfs
(rw,vers=4,addr=10.129.151.57,clientaddr=10.129.151.57)

Systemvm template script..

/usr/share/cloudstack-common/scripts/storage/secondary/cloud-install-sys-tmplt
-m /mnt/secondary/ -f /home/systemvmtemplate-2013-07-12-master-xen.vhd.bz2
-h xenserver -F
Uncompressing to
/usr/share/cloudstack-common/scripts/storage/secondary/935313be-3da0-42ce-bc51-b608c34e5a2e.vhd.tmp
(type bz2)...could take a long time
Moving to
/mnt/secondary/template/tmpl/1/1///935313be-3da0-42ce-bc51-b608c34e5a2e.vhd...could
take a while
Successfully installed system VM template
/home/systemvmtemplate-2013-07-12-master-xen.vhd.bz2 to
/mnt/secondary/template/tmpl/1/1/

Template in NFS storage..

[root@xen ~]# ls -lR /nfs/secondary/
/nfs/secondary/:
total 4
drwxr-xr-x 3 root root 4096 Mar 24 18:29 template

/nfs/secondary/template:
total 4
drwxr-xr-x 3 root root 4096 Mar 24 18:29 tmpl

/nfs/secondary/template/tmpl:
total 4
drwxr-xr-x 3 root root 4096 Mar 24 18:29 1

/nfs/secondary/template/tmpl/1:
total 4
drwxr-xr-x 2 root root 4096 Mar 24 18:36 1

/nfs/secondary/template/tmpl/1/1:
total 2052016
-rw-r--r-- 1 root root 2101252608 Mar 24 18:32
a874c59d-ba92-4ab5-8aaf-c6142340f8cd.vhd
-rw-r--r-- 1 root root287 Mar 24 18:36 template.properties


Added Secondary Storage  Enabled the zone.
Still giving same error .!

Regards,
Tejas


Re: Not able to download CentOS template

2014-03-24 Thread Tejas Gadaria
Hi,

Also I have flush iptables in SSVM 'iptables -F'

service cloud stop
service cloud stop
service cloud start

Nothing happen..
Then restarted cloudstack-management service

Logs on Management server indicates ...

2014-03-25 09:16:59,188 DEBUG [agent.manager.AgentManagerImpl]
(AgentManager-Handler-11:null) SeqA 9-7087: Sending Seq 9-7087:  { Ans: ,
MgmtId: 345049296663, via: 9, Ver: v1, Flags: 100010,
[{com.cloud.agent.api.AgentControlAnswer:{result:true,wait:0}}] }
2014-03-25 09:17:02,444 DEBUG [storage.download.DownloadListener]
(Timer-9:null) Scheduling timeout at 3 ms, TEMPLATE: 5 at host 0
*2014-03-25 09:17:02,445 DEBUG [storage.download.DownloadListener]
(Timer-9:null) NOT_DOWNLOADED first timeout: checking again , TEMPLATE: 5
at host 0*
2014-03-25 09:17:09,182 DEBUG [agent.manager.AgentManagerImpl]
(AgentManager-Handler-12:null) SeqA 9-7088: Processing Seq 9-7088:  { Cmd ,
MgmtId: -1, via: 9, Ver: v1, Flags: 11,
[{com.cloud.agent.api.ConsoleProxyLoadReportCommand:{_proxyVmId:10,_loadInfo:{\n
\connections\: []\n},wait:0}}] }

After log in to CS, *Template status: ' Timeout waiting for response from
storage host'*

Need help on this


Regards,
Tejas