aboutsummaryrefslogtreecommitdiffstats
path: root/patches/fuel-plugin-opendaylight/0003-FIXME-ODL-wget-no-check-certificate-for-cache.patch
blob: b57de5033ccbc75fcd3dacca34726c3d33a7be5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
From: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
Date: Tue, 12 Jul 2016 14:26:22 +0200
Subject: [PATCH] FIXME: ODL wget: --no-check-certificate for cache.

ODL tarball is normally fetched from nexus.opendaylight.org domain,
which has a very limited bandwidth, taking up to 10-15mins for our
build server to download the ODL archive at each ISO build.
This adds up to 15-25% of each ISO build time spent on downloading
ODL archive.
Therefore, we chose to set up a local HTTPS cache of nexus repos,
(just for the sake of not hardcoding the URL in our Makefile),
and just disable certificate check for wget from local URL.

Allow using a HTTPS local cache, so we don't override the whole
URL of the ODL archive. Our local cache has HTTPS enabled, but the
certificate won't match the domain name.

FIXME: This patch is only needed if you have a local cache of
nexus.opendaylight.org!

Only use this option if you are otherwise convinced of the site's
authenticity, or if you really don't care about the validity of
its certificate.

Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
---
 pre_build_hook | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pre_build_hook b/pre_build_hook
index 4785917..c3dd664 100755
--- a/pre_build_hook
+++ b/pre_build_hook
@@ -64,7 +64,7 @@ function cleanup {
 }
 
 function download {
-  wget "$1" -qO $2
+  wget --no-check-certificate "$1" -qO $2
 }
 
 function unpack {
pan>. 3. Select format "QCOW2", select Public, then click Create Image. 4. Now click Project -> Network -> Networks, click Create Network. 5. Enter a name "internal", click Next. 6. Enter a subnet name "internal_subnet", and enter Network Address ``172.16.1.0/24``, click Next. 7. Now go to Project -> Compute -> Instances, click Launch Instance. 8. Enter Instance Name "first_instance", select Instance Boot Source "Boot from image", and then select Image Name "cirros". 9. Click Launch, status will cycle though a couple states before becoming "Active". 10. Steps 7 though 9 can be repeated to launch more instances. 11. Once an instance becomes "Active" their IP addresses will display on the Instances page. 12. Click the name of an instance, then the "Console" tab and login as "cirros"/"cubswin:)" 13. To verify storage is working, click Project -> Compute -> Volumes, Create Volume 14. Give the volume a name and a size of 1 GB 15. Once the volume becomes "Available" click the dropdown arrow and attach it to an instance. Congratulations you have successfully installed OPNFV!