[
https://issues.apache.org/jira/browse/AURORA-252?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13980694#comment-13980694
]
Chris Lambert commented on AURORA-252:
--------------------------------------
[~wfarner], should we bump up the priority of this?
> 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)