environs/manual: test failure if host does not have a valid reverse dns record

Bug #1589339 reported by Dave Cheney
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Expired
Low
Unassigned

Bug Description

FAIL: provisioner_test.go:126: provisionerSuite.TestFinishInstancConfig

[LOG] 0:00.013 DEBUG juju.environs.tools reading v1.* tools
[LOG] 0:00.013 INFO juju.environs.testing uploading FAKE tools 2.0-beta9-precise-amd64
[LOG] 0:00.015 INFO juju.environs.testing uploading FAKE tools 2.0-beta9-trusty-amd64
[LOG] 0:00.016 INFO juju.environs.testing uploading FAKE tools 2.0-beta9-xenial-amd64
[LOG] 0:00.025 INFO juju.environs.tools Writing tools/streams/v1/index2.json
[LOG] 0:00.025 INFO juju.environs.tools Writing tools/streams/v1/index.json
[LOG] 0:00.025 INFO juju.environs.tools Writing tools/streams/v1/com.ubuntu.juju-released-tools.json
[LOG] 0:00.034 DEBUG juju.environs.simplestreams skipping index "file:///tmp/check-6488822211222402220/4/tools/streams/v1/index2.json" because of missing information: "content-download" data not found
[LOG] 0:00.034 DEBUG juju.environs.simplestreams skipping index "file:///tmp/check-6488822211222402220/4/tools/streams/v1/index2.json" because of missing information: "content-download" data not found
[LOG] 0:00.034 DEBUG juju.environs.simplestreams skipping index "file:///tmp/check-6488822211222402220/4/tools/streams/v1/index2.json" because of missing information: "content-download" data not found
[LOG] 0:00.035 INFO juju.environs.tools Metadata for stream "released" unchanged
[LOG] 0:00.035 INFO juju.environs.tools Writing tools/streams/v1/index2.json
[LOG] 0:00.035 INFO juju.environs.tools Writing tools/streams/v1/index.json
[LOG] 0:00.035 DEBUG juju.environs.tools reading v1.* tools
[LOG] 0:00.035 INFO juju.environs.testing uploading FAKE tools 2.0-beta9-precise-amd64
[LOG] 0:00.067 INFO juju.environs.testing uploading FAKE tools 2.0-beta9-trusty-amd64
[LOG] 0:00.069 INFO juju.environs.testing uploading FAKE tools 2.0-beta9-xenial-amd64
[LOG] 0:00.082 DEBUG juju.environs.simplestreams skipping index "file:///tmp/check-6488822211222402220/4/tools/streams/v1/index2.json" because of missing information: "content-download" data not found
[LOG] 0:00.083 DEBUG juju.environs.simplestreams skipping index "file:///tmp/check-6488822211222402220/4/tools/streams/v1/index2.json" because of missing information: "content-download" data not found
[LOG] 0:00.083 DEBUG juju.environs.simplestreams skipping index "file:///tmp/check-6488822211222402220/4/tools/streams/v1/index2.json" because of missing information: "content-download" data not found
[LOG] 0:00.083 INFO juju.environs.tools Writing tools/streams/v1/index2.json
[LOG] 0:00.083 INFO juju.environs.tools Writing tools/streams/v1/index.json
[LOG] 0:00.083 INFO juju.environs.tools Writing tools/streams/v1/com.ubuntu.juju-devel-tools.json
[LOG] 0:00.091 DEBUG juju.environs.simplestreams skipping index "file:///tmp/check-6488822211222402220/4/tools/streams/v1/index2.json" because of missing information: "content-download" data not found
[LOG] 0:00.091 DEBUG juju.environs.simplestreams skipping index "file:///tmp/check-6488822211222402220/4/tools/streams/v1/index2.json" because of missing information: "content-download" data not found
[LOG] 0:00.092 INFO juju.environs.tools Metadata for stream "devel" unchanged
[LOG] 0:00.092 INFO juju.environs.tools Writing tools/streams/v1/index2.json
[LOG] 0:00.092 INFO juju.environs.tools Writing tools/streams/v1/index.json
[LOG] 0:00.092 DEBUG juju.environs.bootstrap model "admin" supports service/machine networks: true
[LOG] 0:00.092 DEBUG juju.environs.bootstrap network management by juju enabled: true
[LOG] 0:00.092 INFO juju.environs.bootstrap looking for bootstrap tools: version=2.0-beta9
[LOG] 0:00.092 INFO juju.environs.tools finding tools in stream "devel"
[LOG] 0:00.092 INFO juju.environs.tools reading tools with major.minor version 2.0
[LOG] 0:00.092 INFO juju.environs.tools filtering tools by version: 2.0-beta9
[LOG] 0:00.097 INFO juju.provider.dummy would pick tools from 2.0-beta9-xenial-amd64
[LOG] 0:00.097 INFO juju.provider.dummy creating bootstrap instance
[LOG] 0:00.097 INFO juju.state opening state, mongo addresses: ["localhost:35361"]; entity <nil>
[LOG] 0:00.097 DEBUG juju.state dialing mongo
[LOG] 0:00.099 INFO juju.mongo dialled mongo successfully on address "127.0.0.1:35361"
[LOG] 0:00.099 DEBUG juju.state connection established
[LOG] 0:00.099 DEBUG juju.state mongodb login successful
[LOG] 0:00.121 INFO juju.mongo dialled mongo successfully on address "127.0.0.1:35361"
[LOG] 0:00.121 INFO juju.state initializing controller model deadbeef-0bad-400d-8000-4b1d0d06f00d
[LOG] 0:00.142 INFO juju.state running state anonymously; using unique client id
[LOG] 0:00.142 INFO juju.state starting standard state workers
[LOG] 0:00.142 DEBUG juju.state.workers starting leadership lease manager
[LOG] 0:00.143 INFO juju.mongo dialled mongo successfully on address "127.0.0.1:35361"
[LOG] 0:00.146 DEBUG juju.state.workers starting singular lease manager
[LOG] 0:00.146 DEBUG juju.worker.lease waking to check leases at 2016-06-06 02:31:47.894310722 +0000 UTC
[LOG] 0:00.148 DEBUG juju.state.workers starting transaction log watcher
[LOG] 0:00.148 DEBUG juju.state.workers starting presence watcher
[LOG] 0:00.148 DEBUG juju.worker.lease waking to check leases at 2016-06-06 02:31:47.896688714 +0000 UTC
[LOG] 0:00.148 INFO juju.state creating cloud image metadata storage
[LOG] 0:00.148 INFO juju.state started state for model-deadbeef-0bad-400d-8000-4b1d0d06f00d successfully
[LOG] 0:00.156 DEBUG juju.provider.dummy setting password for "admin" to "dummy-secret"
[LOG] 0:00.160 INFO juju.environs.bootstrap newest version: 2.0-beta9
[LOG] 0:00.160 INFO juju.environs.bootstrap picked bootstrap tools version: 2.0-beta9
[LOG] 0:00.160 INFO juju.apiserver listening on "[::]:53202"
[LOG] 0:00.161 INFO juju.state opening state, mongo addresses: ["localhost:35361"]; entity <nil>
[LOG] 0:00.161 DEBUG juju.state dialing mongo
[LOG] 0:00.162 ERROR juju.apiserver Unable to prime /tmp/check-6488822211222402220/3/logsink.log (proceeding anyway): chown /tmp/check-6488822211222402220/3/logsink.log: operation not permitted
[LOG] 0:00.162 DEBUG juju.apiserver Starting API http server on address "[::]:53202"
[LOG] 0:00.165 INFO juju.mongo dialled mongo successfully on address "127.0.0.1:35361"
[LOG] 0:00.165 DEBUG juju.state connection established
[LOG] 0:00.165 DEBUG juju.state mongodb login successful
[LOG] 0:00.176 INFO juju.mongo dialled mongo successfully on address "127.0.0.1:35361"
[LOG] 0:00.176 INFO juju.state running state anonymously; using unique client id
[LOG] 0:00.176 INFO juju.state starting standard state workers
[LOG] 0:00.177 DEBUG juju.state.workers starting leadership lease manager
[LOG] 0:00.177 DEBUG juju.state.workers starting singular lease manager
[LOG] 0:00.177 DEBUG juju.worker.lease waking to check leases at 2016-06-06 02:31:47.925774675 +0000 UTC
[LOG] 0:00.177 DEBUG juju.state.workers starting transaction log watcher
[LOG] 0:00.177 DEBUG juju.state.workers starting presence watcher
[LOG] 0:00.177 INFO juju.state creating cloud image metadata storage
[LOG] 0:00.177 INFO juju.state started state for model-deadbeef-0bad-400d-8000-4b1d0d06f00d successfully
[LOG] 0:00.177 DEBUG juju.worker.lease waking to check leases at 2016-06-06 02:31:47.926149545 +0000 UTC
[LOG] 0:00.179 INFO juju.mongo dialled mongo successfully on address "127.0.0.1:35361"
[LOG] 0:00.180 DEBUG juju.environs ControllerInstances returned: [localhost]
[LOG] 0:00.180 INFO juju.api dialing "wss://localhost:53202/model/deadbeef-0bad-400d-8000-4b1d0d06f00d/api"
[LOG] 0:00.198 INFO juju.apiserver [1] API connection from 127.0.0.1:59658, active connections: 1
[LOG] 0:00.199 DEBUG juju.apiserver validate model uuid: controller model - deadbeef-0bad-400d-8000-4b1d0d06f00d
[LOG] 0:00.199 INFO juju.api connection established to "wss://localhost:53202/model/deadbeef-0bad-400d-8000-4b1d0d06f00d/api"
[LOG] 0:00.199 DEBUG juju.apiserver <- [1] <unknown> {"RequestId":1,"Type":"Admin","Version":3,"Request":"Login","Params":"'params redacted'"}
[LOG] 0:00.203 DEBUG juju.apiserver hostPorts: []
[LOG] 0:00.204 DEBUG juju.apiserver -> [1] user-admin@local 4.635406ms {"RequestId":1,"Response":"'body redacted'"} Admin[""].Login
[LOG] 0:00.208 DEBUG juju.state setting API hostPorts: [[localhost:53202]]
[LOG] 0:00.213 INFO juju.environs.manual initialising "ip-172-30-0-190", user ""
[LOG] 0:00.213 DEBUG juju.utils.ssh using OpenSSH ssh client
[LOG] 0:00.216 INFO juju.environs.manual ubuntu user is already initialised
provisioner_test.go:135:
    c.Assert(err, jc.ErrorIsNil)
... value *errors.Err = &errors.Err{message:"failed to compute public address for \"ip-172-30-0-190\"", cause:(*net.DNSError)(0xc8208d71c0), previous:(*net.DNSError)(0xc8208d71c0), file:"github.com/juju/juju/environs/manual/provisioner.go", line:162} ("failed to compute public address for \"ip-172-30-0-190\": lookup ip-172-30-0-190 on 172.30.0.2:53: no such host")
... error stack:
        lookup ip-172-30-0-190 on 172.30.0.2:53: no such host
        github.com/juju/juju/environs/manual/provisioner.go:162: failed to compute public address for "ip-172-30-0-190"

[LOG] 0:00.218 DEBUG juju.api health ping failed: connection is shut down
[LOG] 0:00.218 INFO juju.apiserver [1] user-admin@local API connection terminated after 19.108379ms, active connections: 0
[LOG] 0:00.218 DEBUG juju.state.workers stopped state workers without error
[LOG] 0:00.218 DEBUG juju.state closed state without error
[LOG] 0:00.218 INFO juju.provider.dummy reset model
[LOG] 0:00.218 DEBUG juju.apiserver API http server exited, final error was: accept tcp [::]:53202: use of closed network connection
[LOG] 0:00.218 INFO juju.apiserver closed listening socket "[::]:53202" with final error: close tcp [::]:53202: use of closed network connection
[LOG] 0:00.218 DEBUG juju.state.workers stopped state workers without error
[LOG] 0:00.218 DEBUG juju.state closed state without error
[LOG] 0:00.218 DEBUG juju.state closed state without error
[LOG] 0:00.220 INFO juju.testing reset successfully reset admin password
[LOG] 0:00.337 INFO juju.testing reset successfully reset admin password
FAIL: provisioner_test.go:147: provisionerSuite.TestProvisioningScript

[LOG] 0:00.014 DEBUG juju.environs.tools reading v1.* tools
[LOG] 0:00.014 INFO juju.environs.testing uploading FAKE tools 2.0-beta9-precise-amd64
[LOG] 0:00.021 INFO juju.environs.testing uploading FAKE tools 2.0-beta9-trusty-amd64
[LOG] 0:00.022 INFO juju.environs.testing uploading FAKE tools 2.0-beta9-xenial-amd64
[LOG] 0:00.026 INFO juju.environs.tools Writing tools/streams/v1/index2.json
[LOG] 0:00.026 INFO juju.environs.tools Writing tools/streams/v1/index.json
[LOG] 0:00.026 INFO juju.environs.tools Writing tools/streams/v1/com.ubuntu.juju-released-tools.json
[LOG] 0:00.034 DEBUG juju.environs.simplestreams skipping index "file:///tmp/check-6488822211222402220/21/tools/streams/v1/index2.json" because of missing information: "content-download" data not found
[LOG] 0:00.034 DEBUG juju.environs.simplestreams skipping index "file:///tmp/check-6488822211222402220/21/tools/streams/v1/index2.json" because of missing information: "content-download" data not found
[LOG] 0:00.034 DEBUG juju.environs.simplestreams skipping index "file:///tmp/check-6488822211222402220/21/tools/streams/v1/index2.json" because of missing information: "content-download" data not found
[LOG] 0:00.035 INFO juju.environs.tools Metadata for stream "released" unchanged
[LOG] 0:00.035 INFO juju.environs.tools Writing tools/streams/v1/index2.json
[LOG] 0:00.035 INFO juju.environs.tools Writing tools/streams/v1/index.json
[LOG] 0:00.035 DEBUG juju.environs.tools reading v1.* tools
[LOG] 0:00.035 INFO juju.environs.testing uploading FAKE tools 2.0-beta9-precise-amd64
[LOG] 0:00.036 INFO juju.environs.testing uploading FAKE tools 2.0-beta9-trusty-amd64
[LOG] 0:00.046 INFO juju.environs.testing uploading FAKE tools 2.0-beta9-xenial-amd64
[LOG] 0:00.049 DEBUG juju.environs.simplestreams skipping index "file:///tmp/check-6488822211222402220/21/tools/streams/v1/index2.json" because of missing information: "content-download" data not found
[LOG] 0:00.050 DEBUG juju.environs.simplestreams skipping index "file:///tmp/check-6488822211222402220/21/tools/streams/v1/index2.json" because of missing information: "content-download" data not found
[LOG] 0:00.051 DEBUG juju.environs.simplestreams skipping index "file:///tmp/check-6488822211222402220/21/tools/streams/v1/index2.json" because of missing information: "content-download" data not found
[LOG] 0:00.051 INFO juju.environs.tools Writing tools/streams/v1/index2.json
[LOG] 0:00.051 INFO juju.environs.tools Writing tools/streams/v1/index.json
[LOG] 0:00.052 INFO juju.environs.tools Writing tools/streams/v1/com.ubuntu.juju-devel-tools.json
[LOG] 0:00.070 DEBUG juju.environs.simplestreams skipping index "file:///tmp/check-6488822211222402220/21/tools/streams/v1/index2.json" because of missing information: "content-download" data not found
[LOG] 0:00.070 DEBUG juju.environs.simplestreams skipping index "file:///tmp/check-6488822211222402220/21/tools/streams/v1/index2.json" because of missing information: "content-download" data not found
[LOG] 0:00.071 INFO juju.environs.tools Metadata for stream "devel" unchanged
[LOG] 0:00.071 INFO juju.environs.tools Writing tools/streams/v1/index2.json
[LOG] 0:00.072 INFO juju.environs.tools Writing tools/streams/v1/index.json
[LOG] 0:00.072 DEBUG juju.environs.bootstrap model "admin" supports service/machine networks: true
[LOG] 0:00.072 DEBUG juju.environs.bootstrap network management by juju enabled: true
[LOG] 0:00.072 INFO juju.environs.bootstrap looking for bootstrap tools: version=2.0-beta9
[LOG] 0:00.072 INFO juju.environs.tools finding tools in stream "devel"
[LOG] 0:00.072 INFO juju.environs.tools reading tools with major.minor version 2.0
[LOG] 0:00.072 INFO juju.environs.tools filtering tools by version: 2.0-beta9
[LOG] 0:00.075 INFO juju.provider.dummy would pick tools from 2.0-beta9-xenial-amd64
[LOG] 0:00.075 INFO juju.provider.dummy creating bootstrap instance
[LOG] 0:00.075 INFO juju.state opening state, mongo addresses: ["localhost:35361"]; entity <nil>
[LOG] 0:00.075 DEBUG juju.state dialing mongo
[LOG] 0:00.081 INFO juju.mongo dialled mongo successfully on address "127.0.0.1:35361"
[LOG] 0:00.081 DEBUG juju.state connection established
[LOG] 0:00.081 DEBUG juju.state mongodb login successful
[LOG] 0:00.134 INFO juju.mongo dialled mongo successfully on address "127.0.0.1:35361"
[LOG] 0:00.135 INFO juju.state initializing controller model deadbeef-0bad-400d-8000-4b1d0d06f00d
[LOG] 0:00.162 INFO juju.state running state anonymously; using unique client id
[LOG] 0:00.162 INFO juju.state starting standard state workers
[LOG] 0:00.162 DEBUG juju.state.workers starting leadership lease manager
[LOG] 0:00.176 INFO juju.mongo dialled mongo successfully on address "127.0.0.1:35361"
[LOG] 0:00.179 DEBUG juju.state.workers starting singular lease manager
[LOG] 0:00.179 DEBUG juju.worker.lease waking to check leases at 2016-06-06 02:31:48.64592523 +0000 UTC
[LOG] 0:00.181 DEBUG juju.state.workers starting transaction log watcher
[LOG] 0:00.181 DEBUG juju.state.workers starting presence watcher
[LOG] 0:00.181 INFO juju.state creating cloud image metadata storage
[LOG] 0:00.181 INFO juju.state started state for model-deadbeef-0bad-400d-8000-4b1d0d06f00d successfully
[LOG] 0:00.181 DEBUG juju.worker.lease waking to check leases at 2016-06-06 02:31:48.648268613 +0000 UTC
[LOG] 0:00.195 DEBUG juju.provider.dummy setting password for "admin" to "dummy-secret"
[LOG] 0:00.201 INFO juju.environs.bootstrap newest version: 2.0-beta9
[LOG] 0:00.201 INFO juju.environs.bootstrap picked bootstrap tools version: 2.0-beta9
[LOG] 0:00.201 INFO juju.apiserver listening on "[::]:53431"
[LOG] 0:00.201 ERROR juju.apiserver Unable to prime /tmp/check-6488822211222402220/20/logsink.log (proceeding anyway): chown /tmp/check-6488822211222402220/20/logsink.log: operation not permitted
[LOG] 0:00.201 DEBUG juju.apiserver Starting API http server on address "[::]:53431"
[LOG] 0:00.201 INFO juju.state opening state, mongo addresses: ["localhost:35361"]; entity <nil>
[LOG] 0:00.201 DEBUG juju.state dialing mongo
[LOG] 0:00.210 INFO juju.mongo dialled mongo successfully on address "127.0.0.1:35361"
[LOG] 0:00.212 DEBUG juju.state connection established
[LOG] 0:00.213 DEBUG juju.state mongodb login successful
[LOG] 0:00.236 INFO juju.mongo dialled mongo successfully on address "127.0.0.1:35361"
[LOG] 0:00.237 INFO juju.state running state anonymously; using unique client id
[LOG] 0:00.237 INFO juju.state starting standard state workers
[LOG] 0:00.237 DEBUG juju.state.workers starting leadership lease manager
[LOG] 0:00.238 DEBUG juju.state.workers starting singular lease manager
[LOG] 0:00.238 DEBUG juju.worker.lease waking to check leases at 2016-06-06 02:31:48.704698522 +0000 UTC
[LOG] 0:00.238 DEBUG juju.state.workers starting transaction log watcher
[LOG] 0:00.238 DEBUG juju.state.workers starting presence watcher
[LOG] 0:00.238 INFO juju.state creating cloud image metadata storage
[LOG] 0:00.238 INFO juju.state started state for model-deadbeef-0bad-400d-8000-4b1d0d06f00d successfully
[LOG] 0:00.239 DEBUG juju.worker.lease waking to check leases at 2016-06-06 02:31:48.706060335 +0000 UTC
[LOG] 0:00.240 DEBUG juju.environs ControllerInstances returned: [localhost]
[LOG] 0:00.241 INFO juju.api dialing "wss://localhost:53431/model/deadbeef-0bad-400d-8000-4b1d0d06f00d/api"
[LOG] 0:00.244 INFO juju.mongo dialled mongo successfully on address "127.0.0.1:35361"
[LOG] 0:00.245 INFO juju.apiserver [3] API connection from 127.0.0.1:59788, active connections: 1
[LOG] 0:00.245 DEBUG juju.apiserver validate model uuid: controller model - deadbeef-0bad-400d-8000-4b1d0d06f00d
[LOG] 0:00.245 INFO juju.api connection established to "wss://localhost:53431/model/deadbeef-0bad-400d-8000-4b1d0d06f00d/api"
[LOG] 0:00.245 DEBUG juju.apiserver <- [3] <unknown> {"RequestId":1,"Type":"Admin","Version":3,"Request":"Login","Params":"'params redacted'"}
[LOG] 0:00.248 DEBUG juju.apiserver hostPorts: []
[LOG] 0:00.248 DEBUG juju.apiserver -> [3] user-admin@local 2.909401ms {"RequestId":1,"Response":"'body redacted'"} Admin[""].Login
[LOG] 0:00.255 DEBUG juju.state setting API hostPorts: [[localhost:53431]]
[LOG] 0:00.276 INFO juju.environs.manual initialising "ip-172-30-0-190", user ""
[LOG] 0:00.276 DEBUG juju.utils.ssh using OpenSSH ssh client
[LOG] 0:00.319 INFO juju.environs.manual ubuntu user is already initialised
provisioner_test.go:157:
    c.Assert(err, jc.ErrorIsNil)
... value *errors.Err = &errors.Err{message:"failed to compute public address for \"ip-172-30-0-190\"", cause:(*net.DNSError)(0xc82095a040), previous:(*net.DNSError)(0xc82095a040), file:"github.com/juju/juju/environs/manual/provisioner.go", line:162} ("failed to compute public address for \"ip-172-30-0-190\": lookup ip-172-30-0-190 on 172.30.0.2:53: no such host")
... error stack:
        lookup ip-172-30-0-190 on 172.30.0.2:53: no such host
        github.com/juju/juju/environs/manual/provisioner.go:162: failed to compute public address for "ip-172-30-0-190"

[LOG] 0:00.322 INFO juju.apiserver [3] user-admin@local API connection terminated after 77.125339ms, active connections: 0
[LOG] 0:00.322 DEBUG juju.api health ping failed: connection is shut down
[LOG] 0:00.322 DEBUG juju.state.workers stopped state workers without error
[LOG] 0:00.322 DEBUG juju.state closed state without error
[LOG] 0:00.322 INFO juju.provider.dummy reset model
[LOG] 0:00.322 DEBUG juju.apiserver API http server exited, final error was: accept tcp [::]:53431: use of closed network connection
[LOG] 0:00.322 INFO juju.apiserver closed listening socket "[::]:53431" with final error: close tcp [::]:53431: use of closed network connection
[LOG] 0:00.322 DEBUG juju.state.workers stopped state workers without error
[LOG] 0:00.322 DEBUG juju.state closed state without error
[LOG] 0:00.322 DEBUG juju.state closed state without error
[LOG] 0:00.332 INFO juju.testing reset successfully reset admin password
[LOG] 0:00.459 INFO juju.testing reset successfully reset admin password
OOPS: 11 passed, 3 FAILED
--- FAIL: Test (1.74s)
FAIL
FAIL github.com/juju/juju/environs/manual 1.795s

Changed in juju-core:
status: New → Triaged
importance: Undecided → Medium
tags: added: tech-debt
affects: juju-core → juju
Revision history for this message
Anastasia (anastasia-macmood) wrote :

As this is a tech-debt item, I am lowering its Importance.

Changed in juju:
importance: Medium → Low
Revision history for this message
Canonical Juju QA Bot (juju-qa-bot) wrote :

This bug has not been updated in 5 years, so we're marking it Expired. If you believe this is incorrect, please update the status.

Changed in juju:
status: Triaged → Expired
tags: added: expirebugs-bot
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.