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

contact point creation failed just after the organization is created #413

Open
rosh0450 opened this issue Dec 12, 2024 · 0 comments
Open

Comments

@rosh0450
Copy link

SUMMARY

When you try create contact points just after creating organizations, it result in error with:

statuscode: 500
message: No alertmanager configuration present in this organization
messageId: alerting.notification.configMissing

Now the organization have been created and contact points created failed, when I rerrun my playbook, contact point creation is a success.

ISSUE TYPE
  • Bug
COMPONENT NAME

Module name: community.grafana.grafana_contact_point

ANSIBLE VERSION
2.16.11
COLLECTION VERSION
# /home/rishavkumarj/.ansible/collections/ansible_collections
Collection        Version
----------------- -------
community.grafana 2.1.0
CONFIGURATION
CONFIG_FILE() = /home/rishavkumarj/repo/grafana/ansible.cfg
DEFAULT_LOG_PATH(/home/rishavkumarj/repo/grafana/ansible.cfg) = /home/rishavkumarj/repo/grafana/ansible.log
OS / ENVIRONMENT

NAME="AlmaLinux"
VERSION="9.4 (Seafoam Ocelot)"

STEPS TO REPRODUCE

variables:

grafana_organizations:
  - name: org1
    state: present
    
grafana_contact_points:
  - name: mimir-alertmanager-tenant_okd
    type: alertmanager
    alertmanager_url: http://mimir-gateway.mimir.svc.cluster.local:80/alertmanager
    alertmanager_username: tenant_okd
    alertmanager_password: "{{ lookup('file', 'objects/secrets/tenant_okd') }}"
    org_name: org1
    uid: mimir-alertmanager-tenant_okd
    disable_resolve_message: false
    validate_certs: false

playbook:

---
- name: Grafana
  roles:
    - role: community.grafana.grafana
EXPECTED RESULTS

Organizations and contact points should be created/configured.

ACTUAL RESULTS

Organization got created.
Contact points creation failed.


@rosh0450 rosh0450 changed the title contact poin creation failed just after organization is created contact point creation failed just after organization is created Dec 12, 2024
@rosh0450 rosh0450 changed the title contact point creation failed just after organization is created contact point creation failed just after the organization is created Dec 12, 2024
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

No branches or pull requests

1 participant