aurora-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Robinson (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AURORA-252) admin's maintenance commands don't handle scheduler downtime/failovers cleanly
Date Fri, 07 Mar 2014 20:50:42 GMT
David Robinson created AURORA-252:
-------------------------------------

             Summary: admin's maintenance commands don't handle scheduler downtime/failovers
cleanly
                 Key: AURORA-252
                 URL: https://issues.apache.org/jira/browse/AURORA-252
             Project: Aurora
          Issue Type: Task
          Components: Maintenance
            Reporter: David Robinson
            Priority: Minor


The admin's perform maintenance command crashes during scheduler failover. It ought to retry
and backoff upon failure.

{noformat}
[drobinson@server ~]$ aurora_admin perform_maintenance_hosts --filename=servers_to_drain.txt
--post_drain_script=./stop_slave.sh datacenter
 INFO] Maintenance status for: ['server1234']
Traceback (most recent call last):
  File "/usr/bin/aurora_admin/twitter/common/app/application.py", line 738, in _wrap_method
    return_code = method()
  File "/usr/bin/aurora_admin/twitter/common/app/application.py", line 760, in <lambda>
    main = lambda: main_method(*args, **kwargs)
  File "/usr/bin/aurora_admin/.deps/apache.aurora.client-0.5.0_DEV1392148931-py2.6.egg/apache/aurora/client/base.py",
line 73, in wrapped_function
    return fn(*args)
  File "/usr/bin/aurora_admin/.deps/apache.aurora.client-0.5.0_DEV1392148931-py2.6.egg/apache/aurora/client/commands/admin.py",
line 254, in perform_maintenance_hosts
    grouping_function=options.grouping)
  File "/usr/bin/aurora_admin/.deps/apache.aurora.client-0.5.0_DEV1392148931-py2.6.egg/apache/aurora/admin/mesos_maintenance.py",
line 118, in perform_maintenance
    self._drain_hosts(hosts)
  File "/usr/bin/aurora_admin/.deps/apache.aurora.client-0.5.0_DEV1392148931-py2.6.egg/apache/aurora/admin/mesos_maintenance.py",
line 76, in _drain_hosts
    if not resp.result.maintenanceStatusResult.statuses:
AttributeError: 'NoneType' object has no attribute 'maintenanceStatusResult'
{noformat}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message