NFP - Fix for wily base image path
Disk-image builder was looking for base ubuntu wily image from "http://cloud-images.ubuntu.com/" location and currently that image is not there. So changed image location in disk image create script. Change-Id: I9413be4a5be68e1d62ae6c88c34341f5649a026c Closes-bug: 1651740
This commit is contained in:
committed by
Subrahmanyam Ongole
parent
1eeb1d3b90
commit
35b53b56d6
@@ -129,6 +129,25 @@ def dib():
|
||||
image_name = 'nfp_reference_service'
|
||||
dib_args.append(str(image_name))
|
||||
|
||||
# wily support is removed from ubuntu 'current' release,
|
||||
# download/copy to loation as expected by diskimage-builder
|
||||
if conf['ubuntu_release']['release'] == "wily":
|
||||
import commands
|
||||
commands.getoutput("mkdir -p %s" % dib['cache_dir'])
|
||||
wily_SHA256SUMS = "%s/SHA256SUMS.ubuntu.wily.amd64" % dib['cache_dir']
|
||||
if not os.path.isfile(wily_SHA256SUMS):
|
||||
ret = subprocess.call(["wget", "http://cloud-images-archive.ubuntu.com/releases/wily/release-20160715/SHA1SUMS", "-r", "-O", wily_SHA256SUMS])
|
||||
if ret:
|
||||
print "ERROR: failed to download ubuntu wily image SHA256SUMS"
|
||||
return
|
||||
if ((not os.path.isfile(dib['cache_dir'] + '/wily-server-cloudimg-amd64-root.tar.gz')) or (not dib['offline'])):
|
||||
# wget the tar file and SHASUM file and save to dib['cache_dir']
|
||||
wily_image = "%s/wily-server-cloudimg-amd64-root.tar.gz" % dib['cache_dir']
|
||||
ret = subprocess.call(["wget", "http://cloud-images-archive.ubuntu.com/releases/wily/release-20160715/ubuntu-15.10-server-cloudimg-amd64-root.tar.gz", "-r", "-O", wily_image])
|
||||
if ret:
|
||||
print "ERROR: failed to download ubuntu wily image"
|
||||
return
|
||||
|
||||
os.chdir(cur_dir)
|
||||
out_dir = 'output'
|
||||
if not os.path.isdir(out_dir):
|
||||
|
||||
Reference in New Issue
Block a user