Ubuntu: not able to download correct bionic image

Bug #1856295 reported by Rishabh Sikka
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
diskimage-builder
Fix Committed
Undecided
Unassigned

Bug Description

Hi All,

Disk Image builder is not able to download correct bionic image from ubuntu archive. Although it is all happening on the fly when we are trying to create the image.
2019-12-12 23:04:46,923 INFO nodepool.image.build.dpc: + /opt/dib_tmp/dib_build.UYO4aIIL/hooks/bin/cache-url:main:82 : '[' -f /opt/dib_cache/bionic-server-cloudimg-am
d64-root.tar.gz -a -s /opt/dib_cache/bionic-server-cloudimg-amd64-root.tar.gz ']'
2019-12-12 23:04:46,927 INFO nodepool.image.build.dpc: + /opt/dib_tmp/dib_build.UYO4aIIL/hooks/bin/cache-url:main:86 : success='Downloaded and cached http://cloud-ima
ges.ubuntu.com/bionic/current/bionic-server-cloudimg-amd64-root.tar.gz for the first time'
2019-12-12 23:04:46,932 INFO nodepool.image.build.dpc: ++ /opt/dib_tmp/dib_build.UYO4aIIL/hooks/bin/cache-url:main:89 : eval curl -v -L -o /opt/dib_cache/.download.hI
pcP5DY -w '%{http_code}' http://cloud-images.ubuntu.com/bionic/current/bionic-server-cloudimg-amd64-root.tar.gz
2019-12-12 23:04:46,937 INFO nodepool.image.build.dpc: +++ /opt/dib_tmp/dib_build.UYO4aIIL/hooks/bin/cache-url:main:89 : curl -v -L -o /opt/dib_cache/.download.hIpcP5
DY -w '%{http_code}' http://cloud-images.ubuntu.com/bionic/current/bionic-server-cloudimg-amd64-root.tar.gz
2019-12-12 23:04:46,946 INFO nodepool.image.build.dpc: * Hostname was NOT found in DNS cache
2019-12-12 23:04:46,946 INFO nodepool.image.build.dpc: % Total % Received % Xferd Average Speed Time Time Time Current
2019-12-12 23:04:46,946 INFO nodepool.image.build.dpc: Dload Upload Total Spent Left Speed
2019-12-12 23:04:47,199 INFO nodepool.image.build.dpc: 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Trying 16.167.28.210...
2019-12-12 23:04:47,214 INFO nodepool.image.build.dpc: * Connected to web-proxy.in.hpecorp.net (16.167.28.210) port 8080 (#0)
2019-12-12 23:04:47,214 INFO nodepool.image.build.dpc: > GET http://cloud-images.ubuntu.com/bionic/current/bionic-server-cloudimg-amd64-root.tar.gz HTTP/1.1
2019-12-12 23:04:47,214 INFO nodepool.image.build.dpc: > User-Agent: curl/7.35.0
2019-12-12 23:04:47,214 INFO nodepool.image.build.dpc: > Host: cloud-images.ubuntu.com
2019-12-12 23:04:47,214 INFO nodepool.image.build.dpc: > Accept: */*
2019-12-12 23:04:47,215 INFO nodepool.image.build.dpc: > Proxy-Connection: Keep-Alive
2019-12-12 23:04:47,215 INFO nodepool.image.build.dpc: >
2019-12-12 23:04:47,614 INFO nodepool.image.build.dpc: < HTTP/1.1 404 Not Found
2019-12-12 23:04:47,614 INFO nodepool.image.build.dpc: < Date: Thu, 12 Dec 2019 17:53:06 GMT
2019-12-12 23:04:47,614 INFO nodepool.image.build.dpc: * Server Apache is not blacklisted
2019-12-12 23:04:47,614 INFO nodepool.image.build.dpc: < Server: Apache
2019-12-12 23:04:47,614 INFO nodepool.image.build.dpc: < Vary: Accept-Encoding
2019-12-12 23:04:47,614 INFO nodepool.image.build.dpc: < Content-Length: 253
2019-12-12 23:04:47,615 INFO nodepool.image.build.dpc: < Content-Type: text/html; charset=iso-8859-1
2019-12-12 23:04:47,615 INFO nodepool.image.build.dpc: < Proxy-Connection: Keep-Alive
2019-12-12 23:04:47,615 INFO nodepool.image.build.dpc: < Connection: Keep-Alive
2019-12-12 23:04:47,615 INFO nodepool.image.build.dpc: <
2019-12-12 23:04:47,615 INFO nodepool.image.build.dpc: { [data not shown]
2019-12-12 23:04:47,615 INFO nodepool.image.build.dpc: 100 253 100 253 0 0 378 0 --:--:-- --:--:-- --:--:-- 379
2019-12-12 23:04:47,615 INFO nodepool.image.build.dpc: * Connection #0 to host web-proxy.in.hpecorp.net left intact
2019-12-12 23:04:47,621 INFO nodepool.image.build.dpc: + /opt/dib_tmp/dib_build.UYO4aIIL/hooks/bin/cache-url:main:89 : rcode=404
2019-12-12 23:04:47,626 INFO nodepool.image.build.dpc: + /opt/dib_tmp/dib_build.UYO4aIIL/hooks/bin/cache-url:main:90 : '[' 404 == 200 -o http:// == file:// ']'
2019-12-12 23:04:47,630 INFO nodepool.image.build.dpc: + /opt/dib_tmp/dib_build.UYO4aIIL/hooks/bin/cache-url:main:108 : '[' 404 = 304 -o 404 = 213 ']'
2019-12-12 23:04:47,635 INFO nodepool.image.build.dpc: + /opt/dib_tmp/dib_build.UYO4aIIL/hooks/bin/cache-url:main:112 : echo 'Server returned an unexpected response co
de. [404]'
2019-12-12 23:04:47,635 INFO nodepool.image.build.dpc: Server returned an unexpected response code. [404]
2019-12-12 23:04:47,639 INFO nodepool.image.build.dpc: + /opt/dib_tmp/dib_build.UYO4aIIL/hooks/bin/cache-url:main:113 : rm -f /opt/dib_cache/.download.hIpcP5DY
2019-12-12 23:04:47,645 INFO nodepool.image.build.dpc: + /opt/dib_tmp/dib_build.UYO4aIIL/hooks/bin/cache-url:main:115 : '[' 404 = 404 ']'
2019-12-12 23:04:47,649 INFO nodepool.image.build.dpc: + /opt/dib_tmp/dib_build.UYO4aIIL/hooks/bin/cache-url:main:116 : exit 44
2019-12-12 23:04:47,656 INFO nodepool.image.build.dpc: + /usr/local/lib/python2.7/dist-packages/diskimage_builder/lib/common-functions:run_d:1 : trap_cleanup
2019-12-12 23:04:47,661 INFO nodepool.image.build.dpc: + /usr/local/lib/python2.7/dist-packages/diskimage_builder/lib/img-functions:trap_cleanup:47 : exitval=1

##########################################
so the above package bionic-server-cloudimg-amd64-root.tar.gz is not available on ubuntu archive.

Changed in diskimage-builder:
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.