HttpS links were not supported (at least up to 4.8 release - I have to
always use plain HTTP).

Cheers

On Mon, Jul 16, 2018, 12:43 Paul Angus <paul.an...@shapeblue.com> wrote:

> Hi Adam,
> Have you tried this with 4.11.1?
>
>
> Kind regards,
>
> Paul Angus
>
> paul.an...@shapeblue.com
> www.shapeblue.com
> 53 Chandos Place, Covent Garden, London  WC2N 4HSUK
> @shapeblue
>
>
>
>
> -----Original Message-----
> From: Adam Witwicki <awitwi...@oakfordis.com>
> Sent: 16 July 2018 11:22
> To: users@cloudstack.apache.org
> Subject: RE: Unable to upload volumes 4.11.0
>
> Hi Paul
>
> That was accepted but returned this error, cert issue.
>
> Failed to upload volume: e6638e70-f346-4a98-aab7-91046e9fcfc7 with error:
> sun.security.validator.ValidatorException: PKIX path building failed:
> sun.security.provider.certpath.SunCertPathBuilderException: unable to find
> valid certification path to requested target
>
> Yet I am able to import as a template from the same source.....?
> A confusing one
>
> Thanks
>
> Adam
>
> -----Original Message-----
> From: Paul Angus <paul.an...@shapeblue.com>
> Sent: 16 July 2018 11:06
> To: users@cloudstack.apache.org
> Subject: RE: Unable to upload volumes 4.11.0
>
> ** This mail originated from OUTSIDE the Oakford corporate network. Treat
> hyperlinks and attachments in this email with caution. **
>
> Full disclosure - I used 4.11.1 but I uploaded a 'volume' from centos
> without a problem.
> Could you test the same link?
> https://cloud.centos.org/centos/7/images/CentOS-7-x86_64-GenericCloud.qcow2
>
>
> Kind regards,
>
> Paul Angus
>
> paul.an...@shapeblue.com
> www.shapeblue.com
> 53 Chandos Place, Covent Garden, London  WC2N 4HSUK @shapeblue
>
>
>
>
> -----Original Message-----
> From: Adam Witwicki <awitwi...@oakfordis.com>
> Sent: 16 July 2018 08:02
> To: users@cloudstack.apache.org
> Subject: RE: Unable to upload volumes 4.11.0
>
> Hi Paul,
>
> The SSVM can curl the file, and the template import (add) works without
> issue, it’s the volume import (add) that fails
>
> Thanks
>
> Adam
>
> -----Original Message-----
> From: Paul Angus <paul.an...@shapeblue.com>
> Sent: 14 July 2018 07:36
> To: users@cloudstack.apache.org
> Subject: RE: Unable to upload volumes 4.11.0
>
> ** This mail originated from OUTSIDE the Oakford corporate network. Treat
> hyperlinks and attachments in this email with caution. **
>
> Hi Adam,
>
> That error is coming from:
>
> if (httpClient.executeMethod(httphead) != HttpStatus.SC_OK) {
>                     throw new IllegalArgumentException("Invalid URL: " +
> url);
>
> have you tried checking that you can reach the download from the
> management server and the SSVM?
>
> Also does the hostname resolve to an IP which is within the cloudstack
> management networks? If so you need to add the IP(s) to
> secstorage.allowed.internal.sites
>
>
>
>
> paul.an...@shapeblue.com
> www.shapeblue.com
> 53 Chandos Place, Covent Garden, London  WC2N 4HSUK @shapeblue
>
>
>
>
> -----Original Message-----
> From: Adam Witwicki <awitwi...@oakfordis.com>
> Sent: 13 July 2018 09:21
> To: users@cloudstack.apache.org
> Subject: Unable to upload volumes 4.11.0
>
> Hello
>
> I cant seem to upload (add) a qcow2 volume via a URL, any ideas or other
> methods? we really need to import other systems disks.
>
> I get this in the logs
>
> 2018-07-13 09:08:18,435 DEBUG [c.c.s.VolumeApiServiceImpl]
> (API-Job-Executor-42:ctx-a1afd9f2 job-6668 ctx-7da8ec40) (logid:d97e88ec)
> Checking url:
> http://ingestion.xxxxxxx.com/Flowmon/Flowmon_Collector_Virtual_All_Plugins-disk-1.qcow2
> 2018-07-13
> <http://ingestion.xxxxxxx.com/Flowmon/Flowmon_Collector_Virtual_All_Plugins-disk-1.qcow22018-07-13>
> 09:08:18,509 ERROR [c.c.a.ApiAsyncJobDispatcher]
> (API-Job-Executor-42:ctx-a1afd9f2 job-6668) (logid:d97e88ec) Unexpected
> exception while executing
> org.apache.cloudstack.api.command.user.volume.UploadVolumeCmd
> java.lang.IllegalArgumentException: Invalid URL:
> http://ingestion.xxxxxx.com/Flowmon/Flowmon_Collector_Virtual_All_Plugins-disk-1.qcow2
>         at com.cloud.utils.UriUtils.checkUrlExistence(UriUtils.java:395)
>         at
> com.cloud.storage.VolumeApiServiceImpl.validateVolume(VolumeApiServiceImpl.java:415)
>         at
> com.cloud.storage.VolumeApiServiceImpl.uploadVolume(VolumeApiServiceImpl.java:296)
>         at
> com.cloud.storage.VolumeApiServiceImpl.uploadVolume(VolumeApiServiceImpl.java:179)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:498)
>         at
> org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:338)
>         at
> org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:197)
>         at
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
>         at
> org.apache.cloudstack.network.contrail.management.EventUtils$EventInterceptor.invoke(EventUtils.java:107)
>         at
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:174)
>         at
> com.cloud.event.ActionEventInterceptor.invoke(ActionEventInterceptor.java:51)
>         at
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:174)
>         at
> org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)
>         at
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)
>         at
> org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)
>         at com.sun.proxy.$Proxy201.uploadVolume(Unknown Source)
>         at
> org.apache.cloudstack.api.command.user.volume.UploadVolumeCmd.execute(UploadVolumeCmd.java:145)
>         at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:150)
>         at
> com.cloud.api.ApiAsyncJobDispatcher.runJob(ApiAsyncJobDispatcher.java:108)
>         at
> org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.runInContext(AsyncJobManagerImpl.java:581)
>         at
> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
>         at
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
>         at
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
>         at
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
>         at
> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
>         at
> org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.run(AsyncJobManagerImpl.java:529)
>         at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>         at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>         at java.lang.Thread.run(Thread.java:748)
> 2018-07-13 09:08:18,511 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl]
> (API-Job-Executor-42:ctx-a1afd9f2 job-6668) (logid:d97e88ec) Complete async
> job-6668, jobStatus: FAILED, resultCode: 530, result:
> org.apache.cloudstack.api.response.ExceptionResponse/null/{"uuidList":[],"errorcode":530,"errortext":"Invalid
> URL:
> http://ingestion.xxxxx.com/Flowmon/Flowmon_Collector_Virtual_All_Plugins-disk-1.qcow2
> "}
>
>
>
> Disclaimer Notice:
> This email has been sent by Oakford Technology Limited, while we have
> checked this e-mail and any attachments for viruses, we can not guarantee
> that they are virus-free. You must therefore take full responsibility for
> virus checking.
> This message and any attachments are confidential and should only be read
> by those to whom they are addressed. If you are not the intended recipient,
> please contact us, delete the message from your computer and destroy any
> copies. Any distribution or copying without our prior permission is
> prohibited.
> Internet communications are not always secure and therefore Oakford
> Technology Limited does not accept legal responsibility for this message.
> The recipient is responsible for verifying its authenticity before acting
> on the contents. Any views or opinions presented are solely those of the
> author and do not necessarily represent those of Oakford Technology Limited.
> Registered address: Oakford Technology Limited, 10 Prince Maurice Court,
> Devizes, Wiltshire. SN10 2RT.
> Registered in England and Wales No. 5971519
>
> Disclaimer Notice:
> This email has been sent by Oakford Technology Limited, while we have
> checked this e-mail and any attachments for viruses, we can not guarantee
> that they are virus-free. You must therefore take full responsibility for
> virus checking.
> This message and any attachments are confidential and should only be read
> by those to whom they are addressed. If you are not the intended recipient,
> please contact us, delete the message from your computer and destroy any
> copies. Any distribution or copying without our prior permission is
> prohibited.
> Internet communications are not always secure and therefore Oakford
> Technology Limited does not accept legal responsibility for this message.
> The recipient is responsible for verifying its authenticity before acting
> on the contents. Any views or opinions presented are solely those of the
> author and do not necessarily represent those of Oakford Technology Limited.
> Registered address: Oakford Technology Limited, 10 Prince Maurice Court,
> Devizes, Wiltshire. SN10 2RT.
> Registered in England and Wales No. 5971519
>
> Disclaimer Notice:
> This email has been sent by Oakford Technology Limited, while we have
> checked this e-mail and any attachments for viruses, we can not guarantee
> that they are virus-free. You must therefore take full responsibility for
> virus checking.
> This message and any attachments are confidential and should only be read
> by those to whom they are addressed. If you are not the intended recipient,
> please contact us, delete the message from your computer and destroy any
> copies. Any distribution or copying without our prior permission is
> prohibited.
> Internet communications are not always secure and therefore Oakford
> Technology Limited does not accept legal responsibility for this message.
> The recipient is responsible for verifying its authenticity before acting
> on the contents. Any views or opinions presented are solely those of the
> author and do not necessarily represent those of Oakford Technology Limited.
> Registered address: Oakford Technology Limited, 10 Prince Maurice Court,
> Devizes, Wiltshire. SN10 2RT.
> Registered in England and Wales No. 5971519
>
>

Reply via email to