Status timeout collecting logs prevents teardown

Bug #1638893 reported by Martin Packman
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-ci-tools
Fix Released
High
Martin Packman

Bug Description

If the status call as part of the log collection step fails, CI can error out and fail to destroy the controller. See for instance:

<http://reports.vapour.ws/releases/4551/job/functional-ha-recovery/attempt/3877>

2016-11-02 20:22:54 WARNING Failed to retrieve status for dumping logs: Timed out waiting for juju status to succeed
Traceback (most recent call last):
  File "/var/lib/jenkins/juju-ci-tools/assess_recovery.py", line 203, in <module>
    main(sys.argv[1:])
  File "/var/lib/jenkins/juju-ci-tools/assess_recovery.py", line 199, in main
    assess_recovery(bs_manager, args.strategy, args.charm_series)
  File "/usr/lib/python2.7/contextlib.py", line 35, in __exit__
    self.gen.throw(type, value, traceback)
  File "/mnt/jenkins/juju-ci-tools/deploy_stack.py", line 893, in booted_context
    yield machines
  File "/usr/lib/python2.7/contextlib.py", line 35, in __exit__
    self.gen.throw(type, value, traceback)
  File "/mnt/jenkins/juju-ci-tools/deploy_stack.py", line 802, in runtime_context
    self.dump_all_logs()
  File "/mnt/jenkins/juju-ci-tools/deploy_stack.py", line 848, in dump_all_logs
    client, artifacts_dir, runtime_config, known_hosts)
  File "/mnt/jenkins/juju-ci-tools/deploy_stack.py", line 220, in dump_env_logs_known_hosts
    remote_machines = get_remote_machines(client, known_hosts)
  File "/mnt/jenkins/juju-ci-tools/deploy_stack.py", line 275, in get_remote_machines
    machines[machine_id] = remote_from_address(address)
  File "/mnt/jenkins/juju-ci-tools/remote.py", line 39, in remote_from_address
    return remotecls(None, None, address, series=series)
  File "/mnt/jenkins/juju-ci-tools/remote.py", line 49, in __init__
    raise ValueError("Remote needs either address or client and unit")
ValueError: Remote needs either address or client and unit

Related branches

Martin Packman (gz)
Changed in juju-ci-tools:
assignee: nobody → Martin Packman (gz)
status: Triaged → In Progress
Martin Packman (gz)
Changed in juju-ci-tools:
status: In Progress → 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.