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

wsbroadcast better logging and behavior #6720

Conversation

chrismeyersfsu
Copy link
Member

@chrismeyersfsu chrismeyersfsu commented Apr 15, 2020

show user unsafe name

* We log stats using a safe hostname because of prometheus requirements.
However, when we display users the hostname we should use the Instance
hostname. This change outputs the Instance.hostname instead of the safe
prometheus name.
  • do not include iso nodes in wsbroadcast status
  • log file for wsbroadcast /var/log/tower/wsbroadcast.log
  • awx_manage run_wsbroadcast --status nice error message if someone
    failed to start awx services (i.e. redis)

* We log stats using a safe hostname because of prometheus requirements.
However, when we display users the hostname we should use the Instance
hostname. This change outputs the Instance.hostname instead of the safe
prometheus name.
* awx_manage run_wsbroadcast --status nice error message if someone
failed to start awx services (i.e. redis)
@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded.

@chrismeyersfsu chrismeyersfsu changed the title feature wsbroadcast better logging wsbroadcast better logging and behavior Apr 15, 2020
@@ -101,7 +108,7 @@ def handle(self, *arg, **options):
else:
data[family.name] = family.samples[0].value
me = Instance.objects.me()
hostnames = [i.hostname for i in Instance.objects.exclude(hostname=me.hostname)]
hostnames = [i.hostname for i in Instance.objects.exclude(Q(hostname=me.hostname) | Q(rampart_groups__controller__isnull=False))]
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@softwarefactory-project-zuul
Copy link
Contributor

Build failed (gate pipeline). For information on how to proceed, see
http://docs.openstack.org/infra/manual/developers.html#automated-testing

@chrismeyersfsu
Copy link
Member Author

regate

@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded (gate pipeline).

@softwarefactory-project-zuul softwarefactory-project-zuul bot merged commit 3683dfa into ansible:devel Apr 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants