Return-Path: X-Original-To: apmail-incubator-cloudstack-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-cloudstack-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A29ABD657 for ; Wed, 17 Oct 2012 22:30:04 +0000 (UTC) Received: (qmail 77103 invoked by uid 500); 17 Oct 2012 22:30:04 -0000 Delivered-To: apmail-incubator-cloudstack-dev-archive@incubator.apache.org Received: (qmail 77053 invoked by uid 500); 17 Oct 2012 22:30:04 -0000 Mailing-List: contact cloudstack-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cloudstack-dev@incubator.apache.org Delivered-To: mailing list cloudstack-dev@incubator.apache.org Received: (qmail 76976 invoked by uid 99); 17 Oct 2012 22:30:04 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Oct 2012 22:30:04 +0000 Date: Wed, 17 Oct 2012 22:30:03 +0000 (UTC) From: "edison su (JIRA)" To: cloudstack-dev@incubator.apache.org Message-ID: <648489060.60821.1350513004042.JavaMail.jiratomcat@arcas> In-Reply-To: <179638397.60459.1350509643593.JavaMail.jiratomcat@arcas> Subject: [jira] [Commented] (CLOUDSTACK-370) SSVM fails to download ISO using HTTP if hostname begins with FTP MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CLOUDSTACK-370?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13478458#comment-13478458 ] edison su commented on CLOUDSTACK-370: -------------------------------------- It's a "bug" in apache httpclient, which can't handle http redirect: http://mail-archives.apache.org/mod_mbox/hc-dev/200711.mbox/%3C32419602.1196098183970.JavaMail.jira@brutus%3E > SSVM fails to download ISO using HTTP if hostname begins with FTP > ----------------------------------------------------------------- > > Key: CLOUDSTACK-370 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-370 > Project: CloudStack > Issue Type: Bug > Components: ISO > Affects Versions: pre-4.0.0 > Environment: Running CloudStack-oss-3.0.2-1-rhel6.2 on CentOS 6.3 > Reporter: Clay B. > Priority: Minor > > I am trying to add the following ISO to my Cloud Stack ISOs: > http://ftp.linux.ncsu.edu/pub/CentOS/5.8/isos/x86_64/CentOS-5.8-x86_64-netinstall.iso > (Note it is using the HTTP protocol but the hostname starts with ftp.) > It works happily from http://mirror.nexcess.net/CentOS/5.8/isos/x86_64/CentOS-5.8-x86_64-netinstall.iso > I see the following on the UI under my attempted ISO add: > Status Failed to install: unsupported protocol: 'ftp' > I see the following error in my SSVM /var/log/cloud/cloud.log: > java.lang.IllegalStateException: unsupported protocol: 'ftp' > at org.apache.commons.httpclient.protocol.Protocol.lazyRegisterProtocol(Protocol.java:149) > at org.apache.commons.httpclient.protocol.Protocol.getProtocol(Protocol.java:117) > at org.apache.commons.httpclient.HttpHost.(HttpHost.java:107) > at org.apache.commons.httpclient.HttpMethodBase.setURI(HttpMethodBase.java:280) > at org.apache.commons.httpclient.HttpMethodDirector.processRedirectResponse(HttpMethodDirector.java:616) > at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:179) > at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397) > at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323) > at com.cloud.storage.template.HttpTemplateDownloader.download(HttpTemplateDownloader.java:225) > at com.cloud.storage.template.HttpTemplateDownloader.run(HttpTemplateDownloader.java:377) > at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) > at java.lang.Thread.run(Thread.java:662) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira