Comment 7 for bug 2052819

Revision history for this message
Martin Ananda Boeker (mboeker) wrote : Re: [Bug 2052819] Re: Deploying telegraf configs from etc/kayobe impossible?

Hi Will,

Getting this:

An error occurred
You might have not enough privileges. Error 404 (Not Found): Not found:
openstack/kayobe~90960 Endpoint: /changes/*~*/drafts

I signed in with my launchpad/ubuntu one login.

Sincerely | Mit freundlichen Grüßen

Martin Ananda Boeker
EDV-Consult IT GmbH

On Tue, Feb 20, 2024 at 6:15 PM Will Szumski <email address hidden>
wrote:

> Is it possible to try out
> https://review.opendev.org/c/openstack/kayobe/+/90960 to see if fixes
> your issue?
>
> You can use Download patch option from the UI to cherry-pick the change
> to your local checkout.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/2052819
>
> Title:
> Deploying telegraf configs from etc/kayobe impossible?
>
> Status in kayobe:
> In Progress
>
> Bug description:
> Env: 2023.1
>
> I am trying to deploy a telegraf config just called global.conf to all
> nodes that have telegraf, in this case my controller.
>
> For prometheus, I can create a file
> etc/kolla/config/prometheus/prometheus.yml.d/scrape.yml and that gets
> deployed on the nodes with the prometheus server. In venvs/kolla-
> ansible/share/kolla-ansible/ansible/roles/prometheus/tasks/config.yml:
>
> - name: Find prometheus common config overrides
> find:
> # NOTE(wszumski): Non-existent paths don't produce a failure
> paths:
> - "{{ node_custom_config }}/prometheus/prometheus.yml.d"
> patterns: "*.yml"
> delegate_to: localhost
> register: prometheus_common_config_overrides_result
>
> and then later:
>
> - name: Copying over prometheus config file
> become: true
> vars:
> service: "{{ prometheus_services['prometheus-server'] }}"
> common_overrides: "{{
> prometheus_common_config_overrides_result.files | map(attribute='path') |
> list }}"
>
>
> That's great, because then I can have the config files in
> etc/kayobe/kolla/..
>
> For telegraf, there is a task for copying telegraf plugin files, but
> the source path seems to be in venvs/kolla-
> ansible/ansible/roles/telegraf/templates/config/*.conf:
>
>
> - name: Copying over telegraf plugin files
> vars:
> service: "{{ telegraf_services['telegraf'] }}"
> copy:
> src: "{{ item }}"
> dest: "{{ node_config_directory }}/telegraf/config"
> mode: "0660"
> become: true
> when:
> - inventory_hostname in groups[service.group]
> - item.value.enabled | bool
> with_fileglob:
> - "{{ role_path }}/templates/config/*.conf"
> notify:
> - Restart telegraf container
>
>
> Am I misunderstanding what's going on here, or do I really need to
> copy my telegraf config files into the kolla-ansible venv?
>
> Maybe I'm missing something and there is a functionality for this?
> I've tried putting the .conf under etc/kolla/config/telegraf,
> etc/kolla/config/telegraf/config, etc, but no luck.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/kayobe/+bug/2052819/+subscriptions
>
>