industrial tests do not know how to delete an azure controller

Bug #1624391 reported by Curtis Hovey
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-ci-tools
Fix Released
High
Curtis Hovey

Bug Description

As seen in
    http://juju-ci.vapour.ws/view/Weekly/job/industrial-test-azure/132/consoleFull

The test is attempting to delete the controller to test a restore, but it gets the wrongly identifies instance. Our scripts to instrument failure fail because the instance is not found by the substratre/winazurearm query of azure.

2016-09-15 17:44:12 INFO State-Server backup at /mnt/jenkins/workspace/industrial-test-azure/juju-backup-20160915-174327.tar.gz
2016-09-15 17:44:13 INFO Starting new HTTPS connection (1): management.core.windows.net
2016-09-15 17:44:13 ERROR Not Found
<Error xmlns="http://schemas.microsoft.com/windowsazure" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><Code>ResourceNotFound</Code><Message>The hosted service does not exist.</Message></Error>
Traceback (most recent call last):
  File "/mnt/jenkins/juju-ci-tools/deploy_stack.py", line 765, in runtime_context
    yield
  File "/mnt/jenkins/juju-ci-tools/industrial_test.py", line 916, in _iter_bs_manager_steps
    for result in attempt.iter_steps(client):
  File "/mnt/jenkins/juju-ci-tools/industrial_test.py", line 787, in iter_steps
    terminate_instances(controller_client.env, [instance_id])
  File "/mnt/jenkins/juju-ci-tools/substrate.py", line 70, in terminate_instances
    return substrate.terminate_instances(instance_ids)
  File "/mnt/jenkins/juju-ci-tools/substrate.py", line 430, in terminate_instances
    with self.terminate_instances_cxt(instance_ids):
  File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
    return self.gen.next()
  File "/mnt/jenkins/juju-ci-tools/substrate.py", line 397, in terminate_instances_cxt
    service, embed_detail=True)
  File "/usr/local/lib/python2.7/dist-packages/azure/servicemanagement/servicemanagementservice.py", line 341, in get_hosted_service_properties
    HostedService)
  File "/usr/local/lib/python2.7/dist-packages/azure/servicemanagement/servicemanagementclient.py", line 365, in _perform_get
    response = self.perform_get(path, x_ms_version)
  File "/usr/local/lib/python2.7/dist-packages/azure/servicemanagement/servicemanagementclient.py", line 175, in perform_get
    response = self._perform_request(request)
  File "/usr/local/lib/python2.7/dist-packages/azure/servicemanagement/servicemanagementclient.py", line 339, in _perform_request
    return _management_error_handler(ex)
  File "/usr/local/lib/python2.7/dist-packages/azure/servicemanagement/servicemanagementclient.py", line 419, in _management_error_handler
    return _general_error_handler(http_error)
  File "/usr/local/lib/python2.7/dist-packages/azure/servicemanagement/_common_error.py", line 34, in _general_error_handler
    raise AzureHttpError(message, http_error.status)
AzureMissingResourceHttpError: Not Found
<Error xmlns="http://schemas.microsoft.com/windowsazure" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><Code>ResourceNotFound</Code><Message>The hosted service does not exist.</Message></Error>
2016-09-15 17:44:14 INFO juju --show-log show-status -m parallel-azure-old:controller --format yaml

Related branches

Curtis Hovey (sinzui)
Changed in juju-ci-tools:
assignee: nobody → Curtis Hovey (sinzui)
status: Triaged → In Progress
Curtis Hovey (sinzui)
Changed in juju-ci-tools:
status: In Progress → Fix Committed
Curtis Hovey (sinzui)
Changed in juju-ci-tools:
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.