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: Can ping DNS server
================================================
Good: DNS resolves download.cloud.com
================================================
NFS is currently mounted
Mount point is /mnt/SecStorage/87d42d71-bb1f-3572-af86-17add6e61e15
Good: Can write to mount point
================================================
Management server is 10.129.151.57. Checking connectivity.
Good: Can connect to management server port 8250
================================================
Good: Java process is running
================================================
Tests Complete. Look for ERROR or WARNING above.


I have spent lot of time to resolve this issue but no success.
Please Need help on this.


Regards,
Tejas

Reply via email to