test failures without working network connection

Bug #1312463 reported by Dimiter Naydenov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-core
Fix Released
High
Ian Booth

Bug Description

Several tests in the maas provider are trying to access simplestreams over the network, and they fail without a working network connection. We should mock out these URLs for the tests, or perhaps only run them when asked with a specific flag.

----------------------------------------------------------------------
FAIL: environ_whitebox_test.go:599: environSuite.TestConstraintsValidator

[LOG] 0:00.099 DEBUG juju.environs.simplestreams fetchData failed for "images/streams/v1/index.sjson": file 'dfb69555-0bc4-4d1f-85f2-4ee390974984-images/streams/v1/index.sjson' not found not found
[LOG] 0:00.099 DEBUG juju.environs.simplestreams cannot load index "streams/v1/index.sjson": invalid URL "images/streams/v1/index.sjson" not found
[LOG] 0:00.100 DEBUG juju.environs.simplestreams fetchData failed for "images/streams/v1/index.json": file 'dfb69555-0bc4-4d1f-85f2-4ee390974984-images/streams/v1/index.json' not found not found
[LOG] 0:00.100 DEBUG juju.environs.simplestreams cannot load index "streams/v1/index.json": invalid URL "images/streams/v1/index.json" not found
[LOG] 0:00.100 INFO juju.utils hostname SSL verification enabled
[LOG] 0:20.119 DEBUG juju.environs.simplestreams Got error requesting "http://cloud-images.ubuntu.com/releases/streams/v1/index.sjson": Get http://cloud-images.ubuntu.com/releases/streams/v1/index.sjson: dial tcp: lookup cloud-images.ubuntu.com: no such host
[LOG] 0:20.119 DEBUG juju.environs.simplestreams fetchData failed for "http://cloud-images.ubuntu.com/releases/streams/v1/index.sjson": invalid URL "http://cloud-images.ubuntu.com/releases/streams/v1/index.sjson" not found
[LOG] 0:20.119 DEBUG juju.environs.simplestreams cannot load index "http://cloud-images.ubuntu.com/releases/streams/v1/index.sjson": invalid URL "http://cloud-images.ubuntu.com/releases/streams/v1/index.sjson" not found
[LOG] 0:20.119 INFO juju.utils hostname SSL verification enabled
[LOG] 0:40.135 DEBUG juju.environs.simplestreams Got error requesting "http://cloud-images.ubuntu.com/releases/streams/v1/index.json": Get http://cloud-images.ubuntu.com/releases/streams/v1/index.json: dial tcp: lookup cloud-images.ubuntu.com: no such host
[LOG] 0:40.135 DEBUG juju.environs.simplestreams fetchData failed for "http://cloud-images.ubuntu.com/releases/streams/v1/index.json": invalid URL "http://cloud-images.ubuntu.com/releases/streams/v1/index.json" not found
[LOG] 0:40.135 DEBUG juju.environs.simplestreams cannot load index "http://cloud-images.ubuntu.com/releases/streams/v1/index.json": invalid URL "http://cloud-images.ubuntu.com/releases/streams/v1/index.json" not found
environ_whitebox_test.go:602:
    c.Assert(err, gc.IsNil)
... value *errors.notFound = &errors.notFound{wrapper:errors.wrapper{err:error(nil), msg:"invalid URL \"http://cloud-images.ubuntu.com/releases/streams/v1/index.json\" not found"}} ("invalid URL \"http://cloud-images.ubuntu.com/releases/streams/v1/index.json\" not found")

----------------------------------------------------------------------
FAIL: environ_whitebox_test.go:609: environSuite.TestConstraintsValidatorVocab

[LOG] 0:00.095 DEBUG juju.environs.simplestreams fetchData failed for "images/streams/v1/index.sjson": file 'dfb69555-0bc4-4d1f-85f2-4ee390974984-images/streams/v1/index.sjson' not found not found
[LOG] 0:00.095 DEBUG juju.environs.simplestreams cannot load index "streams/v1/index.sjson": invalid URL "images/streams/v1/index.sjson" not found
[LOG] 0:00.097 DEBUG juju.environs.simplestreams fetchData failed for "images/streams/v1/index.json": file 'dfb69555-0bc4-4d1f-85f2-4ee390974984-images/streams/v1/index.json' not found not found
[LOG] 0:00.097 DEBUG juju.environs.simplestreams cannot load index "streams/v1/index.json": invalid URL "images/streams/v1/index.json" not found
[LOG] 0:00.097 INFO juju.utils hostname SSL verification enabled
[LOG] 0:20.113 DEBUG juju.environs.simplestreams Got error requesting "http://cloud-images.ubuntu.com/releases/streams/v1/index.sjson": Get http://cloud-images.ubuntu.com/releases/streams/v1/index.sjson: dial tcp: lookup cloud-images.ubuntu.com: no such host
[LOG] 0:20.113 DEBUG juju.environs.simplestreams fetchData failed for "http://cloud-images.ubuntu.com/releases/streams/v1/index.sjson": invalid URL "http://cloud-images.ubuntu.com/releases/streams/v1/index.sjson" not found
[LOG] 0:20.113 DEBUG juju.environs.simplestreams cannot load index "http://cloud-images.ubuntu.com/releases/streams/v1/index.sjson": invalid URL "http://cloud-images.ubuntu.com/releases/streams/v1/index.sjson" not found
[LOG] 0:20.113 INFO juju.utils hostname SSL verification enabled
[LOG] 0:40.129 DEBUG juju.environs.simplestreams Got error requesting "http://cloud-images.ubuntu.com/releases/streams/v1/index.json": Get http://cloud-images.ubuntu.com/releases/streams/v1/index.json: dial tcp: lookup cloud-images.ubuntu.com: no such host
[LOG] 0:40.129 DEBUG juju.environs.simplestreams fetchData failed for "http://cloud-images.ubuntu.com/releases/streams/v1/index.json": invalid URL "http://cloud-images.ubuntu.com/releases/streams/v1/index.json" not found
[LOG] 0:40.129 DEBUG juju.environs.simplestreams cannot load index "http://cloud-images.ubuntu.com/releases/streams/v1/index.json": invalid URL "http://cloud-images.ubuntu.com/releases/streams/v1/index.json" not found
environ_whitebox_test.go:612:
    c.Assert(err, gc.IsNil)
... value *errors.notFound = &errors.notFound{wrapper:errors.wrapper{err:error(nil), msg:"invalid URL \"http://cloud-images.ubuntu.com/releases/streams/v1/index.json\" not found"}} ("invalid URL \"http://cloud-images.ubuntu.com/releases/streams/v1/index.json\" not found")

----------------------------------------------------------------------
FAIL: environ_whitebox_test.go:592: environSuite.TestSupportedArchitectures

[LOG] 0:00.060 DEBUG juju.environs.simplestreams fetchData failed for "images/streams/v1/index.sjson": file 'dfb69555-0bc4-4d1f-85f2-4ee390974984-images/streams/v1/index.sjson' not found not found
[LOG] 0:00.060 DEBUG juju.environs.simplestreams cannot load index "streams/v1/index.sjson": invalid URL "images/streams/v1/index.sjson" not found
[LOG] 0:00.061 DEBUG juju.environs.simplestreams fetchData failed for "images/streams/v1/index.json": file 'dfb69555-0bc4-4d1f-85f2-4ee390974984-images/streams/v1/index.json' not found not found
[LOG] 0:00.061 DEBUG juju.environs.simplestreams cannot load index "streams/v1/index.json": invalid URL "images/streams/v1/index.json" not found
[LOG] 0:00.061 INFO juju.utils hostname SSL verification enabled
[LOG] 0:20.079 DEBUG juju.environs.simplestreams Got error requesting "http://cloud-images.ubuntu.com/releases/streams/v1/index.sjson": Get http://cloud-images.ubuntu.com/releases/streams/v1/index.sjson: dial tcp: lookup cloud-images.ubuntu.com: no such host
[LOG] 0:20.079 DEBUG juju.environs.simplestreams fetchData failed for "http://cloud-images.ubuntu.com/releases/streams/v1/index.sjson": invalid URL "http://cloud-images.ubuntu.com/releases/streams/v1/index.sjson" not found
[LOG] 0:20.079 DEBUG juju.environs.simplestreams cannot load index "http://cloud-images.ubuntu.com/releases/streams/v1/index.sjson": invalid URL "http://cloud-images.ubuntu.com/releases/streams/v1/index.sjson" not found
[LOG] 0:20.079 INFO juju.utils hostname SSL verification enabled
[LOG] 0:40.094 DEBUG juju.environs.simplestreams Got error requesting "http://cloud-images.ubuntu.com/releases/streams/v1/index.json": Get http://cloud-images.ubuntu.com/releases/streams/v1/index.json: dial tcp: lookup cloud-images.ubuntu.com: no such host
[LOG] 0:40.094 DEBUG juju.environs.simplestreams fetchData failed for "http://cloud-images.ubuntu.com/releases/streams/v1/index.json": invalid URL "http://cloud-images.ubuntu.com/releases/streams/v1/index.json" not found
[LOG] 0:40.094 DEBUG juju.environs.simplestreams cannot load index "http://cloud-images.ubuntu.com/releases/streams/v1/index.json": invalid URL "http://cloud-images.ubuntu.com/releases/streams/v1/index.json" not found
environ_whitebox_test.go:595:
    c.Assert(err, gc.IsNil)
... value *errors.notFound = &errors.notFound{wrapper:errors.wrapper{err:error(nil), msg:"invalid URL \"http://cloud-images.ubuntu.com/releases/streams/v1/index.json\" not found"}} ("invalid URL \"http://cloud-images.ubuntu.com/releases/streams/v1/index.json\" not found")

OOPS: 88 passed, 3 FAILED
--- FAIL: TestMAAS (135.57 seconds)
FAIL
FAIL launchpad.net/juju-core/provider/maas 135.773s

Related branches

Changed in juju-core:
milestone: none → 1.19.1
Curtis Hovey (sinzui)
Changed in juju-core:
milestone: 1.19.1 → 1.20.0
Revision history for this message
Curtis Hovey (sinzui) wrote :

TestConstraintsValidator is still callout out the the net. This is only of the bugs that blocks ppc44el

tags: added: ppc64el
summary: - provider/maas test failures without working network connection
+ test failures without working network connection
Ian Booth (wallyworld)
Changed in juju-core:
milestone: 1.20.0 → 1.19.3
Ian Booth (wallyworld)
Changed in juju-core:
assignee: nobody → Ian Booth (wallyworld)
status: Triaged → In Progress
Ian Booth (wallyworld)
Changed in juju-core:
status: In Progress → Fix Committed
Curtis Hovey (sinzui)
Changed in juju-core:
status: Fix Committed → Fix Released
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.