Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed paasta_metastatus -vv when there are no mesos slaves #174

Merged
merged 3 commits into from
Jan 21, 2016

Conversation

mjksmith
Copy link
Contributor

Running paasta metastatus -vv on a cluster with no mesos slaves will no longer throw an exception (hopefully)

This also takes into account running paasta metastatus on a mesos setup with no frameworks, or no tasks in a framework.

@mjksmith mjksmith self-assigned this Jan 21, 2016
))
output = '\n'.join((' %s' % row for row in format_table(rows)))[2:]
else:
output = ' No mesos slaves on this cluster'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to return False, as this is a very bad condition

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also say it with an exclamation mark!!!

Be more specific like: "No mesos slaves registered in this cluster!!!"

Reverted a change that allowed get_extra_mesos_slave_data to operate malformed mesos states

Made assert_extra_mesos_slave_data return False if there are no slaves on the cluster and made the error message more exciting
@Rob-Johnson
Copy link
Contributor

can you paste you running this locally here? ship if it works 👍

@solarkennedy
Copy link
Contributor

ship

mjksmith added a commit that referenced this pull request Jan 21, 2016
fixed paasta_metastatus -vv when there are no mesos slaves
@mjksmith mjksmith merged commit f4835d1 into master Jan 21, 2016
@mjksmith mjksmith deleted the fix_metastatus_vvv_no_slaves branch January 21, 2016 19:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants