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

ci: fix debugd logcollection #2355

Merged

Conversation

msanft
Copy link
Contributor

@msanft msanft commented Sep 22, 2023

Context

Logcollection in the debugd was not working for quite some time for various reasons, such as missing IAM permissions and broken container images. No debugd-logs are available for quite some time in OpenSearch.

Proposed change(s)

  • Patch the permissions of the UAMI in our e2e tests, allowing access to the keyvault containing the OpenSearch credentials.
  • Fix various bugs in the logcollector images that are deployed by the debugd.

Additional info

Checklist

  • Update docs
  • Add labels (e.g., for changelog category)
  • Is PR title adequate for changelog?
  • Link to Milestone

@github-actions
Copy link
Contributor

Coverage report

Package Old New Trend
debugd/filebeat [no test files] [no test files] 🚧
debugd/internal/debugd/logcollector 13.70% 12.70% ↘️
debugd/metricbeat 0.00% [no test files] 🚨
hack/logcollector/cmd [no test files] [no test files] 🚧
hack/logcollector/internal [no test files] [no test files] 🚧
internal/osimage/aws [no test files] [no test files] 🚧
internal/versions 8.20% 8.20% 🚧

@msanft msanft added bug fix Fixing a bug no changelog Change won't be listed in release changelog labels Sep 25, 2023
@msanft msanft added this to the v2.12.0 milestone Sep 25, 2023
Signed-off-by: Moritz Sanft <[email protected]>
Signed-off-by: Moritz Sanft <[email protected]>
Signed-off-by: Moritz Sanft <[email protected]>
@msanft msanft marked this pull request as ready for review September 25, 2023 14:01
@msanft msanft requested review from 3u13r and malt3 as code owners September 25, 2023 14:01
.github/actions/deploy_debugd/action.yml Outdated Show resolved Hide resolved
internal/versions/versions.go Outdated Show resolved Hide resolved
Signed-off-by: Moritz Sanft <[email protected]>
Signed-off-by: Moritz Sanft <[email protected]>
@msanft msanft merged commit 4b5cf09 into feat/debugd/metricbeat-deployment Sep 26, 2023
9 of 11 checks passed
@msanft msanft deleted the fix/ci/logcollection-permissions branch September 26, 2023 07:17
msanft added a commit that referenced this pull request Sep 26, 2023
* add missing keyvault access role

Signed-off-by: Moritz Sanft <[email protected]>

* bump logstash image version

Signed-off-by: Moritz Sanft <[email protected]>

* bump filebeat / metricbeat image version

Signed-off-by: Moritz Sanft <[email protected]>

* log used image version

Signed-off-by: Moritz Sanft <[email protected]>

* use debugging image versions

Signed-off-by: Moritz Sanft <[email protected]>

* increase wait timeout for image upload

* add cloud metadata processor to filebeat

Signed-off-by: Moritz Sanft <[email protected]>

* fix template locations in container

Signed-off-by: Moritz Sanft <[email protected]>

* fix image version typo

Signed-off-by: Moritz Sanft <[email protected]>

* add filebeat / metricbeat users

Signed-off-by: Moritz Sanft <[email protected]>

* remove user additions

Signed-off-by: Moritz Sanft <[email protected]>

* update workflow step name

Signed-off-by: Moritz Sanft <[email protected]>

* only mount config files

Signed-off-by: Moritz Sanft <[email protected]>

* document potential rc

Signed-off-by: Moritz Sanft <[email protected]>

* fix IAM permissions in workflow

Signed-off-by: Moritz Sanft <[email protected]>

* fix AWS permissions

Signed-off-by: Moritz Sanft <[email protected]>

* tidy

Signed-off-by: Moritz Sanft <[email protected]>

* add missing workflow input

Signed-off-by: Moritz Sanft <[email protected]>

* rename action

Signed-off-by: Moritz Sanft <[email protected]>

* pin image versions

Signed-off-by: Moritz Sanft <[email protected]>

* remove unnecessary workflow inputs

Signed-off-by: Moritz Sanft <[email protected]>

---------

Signed-off-by: Moritz Sanft <[email protected]>
msanft added a commit that referenced this pull request Sep 27, 2023
* add Metricbeat deployment to debugd

Signed-off-by: Moritz Sanft <[email protected]>

* set metricbeat debugd image version

Signed-off-by: Moritz Sanft <[email protected]>

* fix k8s deployment

Signed-off-by: Moritz Sanft <[email protected]>

* use 2 separate deployments

Signed-off-by: Moritz Sanft <[email protected]>

* only deploy via k8s in non-debug-images

Signed-off-by: Moritz Sanft <[email protected]>

* add missing tilde

* remove k8s metrics

Signed-off-by: Moritz Sanft <[email protected]>

* unify flag

Signed-off-by: Moritz Sanft <[email protected]>

* add cloud metadata processor to filebeat

Signed-off-by: Moritz Sanft <[email protected]>

* ci: fix debugd logcollection (#2355)

* add missing keyvault access role

Signed-off-by: Moritz Sanft <[email protected]>

* bump logstash image version

Signed-off-by: Moritz Sanft <[email protected]>

* bump filebeat / metricbeat image version

Signed-off-by: Moritz Sanft <[email protected]>

* log used image version

Signed-off-by: Moritz Sanft <[email protected]>

* use debugging image versions

Signed-off-by: Moritz Sanft <[email protected]>

* increase wait timeout for image upload

* add cloud metadata processor to filebeat

Signed-off-by: Moritz Sanft <[email protected]>

* fix template locations in container

Signed-off-by: Moritz Sanft <[email protected]>

* fix image version typo

Signed-off-by: Moritz Sanft <[email protected]>

* add filebeat / metricbeat users

Signed-off-by: Moritz Sanft <[email protected]>

* remove user additions

Signed-off-by: Moritz Sanft <[email protected]>

* update workflow step name

Signed-off-by: Moritz Sanft <[email protected]>

* only mount config files

Signed-off-by: Moritz Sanft <[email protected]>

* document potential rc

Signed-off-by: Moritz Sanft <[email protected]>

* fix IAM permissions in workflow

Signed-off-by: Moritz Sanft <[email protected]>

* fix AWS permissions

Signed-off-by: Moritz Sanft <[email protected]>

* tidy

Signed-off-by: Moritz Sanft <[email protected]>

* add missing workflow input

Signed-off-by: Moritz Sanft <[email protected]>

* rename action

Signed-off-by: Moritz Sanft <[email protected]>

* pin image versions

Signed-off-by: Moritz Sanft <[email protected]>

* remove unnecessary workflow inputs

Signed-off-by: Moritz Sanft <[email protected]>

---------

Signed-off-by: Moritz Sanft <[email protected]>

* add refStream input

Signed-off-by: Moritz Sanft <[email protected]>

* remove inputs.yml dep

Signed-off-by: Moritz Sanft <[email protected]>

* increase system metric period

Signed-off-by: Moritz Sanft <[email protected]>

* fix linkchecker

Signed-off-by: Moritz Sanft <[email protected]>

---------

Signed-off-by: Moritz Sanft <[email protected]>
derpsteb pushed a commit that referenced this pull request Oct 2, 2023
* add Metricbeat deployment to debugd

Signed-off-by: Moritz Sanft <[email protected]>

* set metricbeat debugd image version

Signed-off-by: Moritz Sanft <[email protected]>

* fix k8s deployment

Signed-off-by: Moritz Sanft <[email protected]>

* use 2 separate deployments

Signed-off-by: Moritz Sanft <[email protected]>

* only deploy via k8s in non-debug-images

Signed-off-by: Moritz Sanft <[email protected]>

* add missing tilde

* remove k8s metrics

Signed-off-by: Moritz Sanft <[email protected]>

* unify flag

Signed-off-by: Moritz Sanft <[email protected]>

* add cloud metadata processor to filebeat

Signed-off-by: Moritz Sanft <[email protected]>

* ci: fix debugd logcollection (#2355)

* add missing keyvault access role

Signed-off-by: Moritz Sanft <[email protected]>

* bump logstash image version

Signed-off-by: Moritz Sanft <[email protected]>

* bump filebeat / metricbeat image version

Signed-off-by: Moritz Sanft <[email protected]>

* log used image version

Signed-off-by: Moritz Sanft <[email protected]>

* use debugging image versions

Signed-off-by: Moritz Sanft <[email protected]>

* increase wait timeout for image upload

* add cloud metadata processor to filebeat

Signed-off-by: Moritz Sanft <[email protected]>

* fix template locations in container

Signed-off-by: Moritz Sanft <[email protected]>

* fix image version typo

Signed-off-by: Moritz Sanft <[email protected]>

* add filebeat / metricbeat users

Signed-off-by: Moritz Sanft <[email protected]>

* remove user additions

Signed-off-by: Moritz Sanft <[email protected]>

* update workflow step name

Signed-off-by: Moritz Sanft <[email protected]>

* only mount config files

Signed-off-by: Moritz Sanft <[email protected]>

* document potential rc

Signed-off-by: Moritz Sanft <[email protected]>

* fix IAM permissions in workflow

Signed-off-by: Moritz Sanft <[email protected]>

* fix AWS permissions

Signed-off-by: Moritz Sanft <[email protected]>

* tidy

Signed-off-by: Moritz Sanft <[email protected]>

* add missing workflow input

Signed-off-by: Moritz Sanft <[email protected]>

* rename action

Signed-off-by: Moritz Sanft <[email protected]>

* pin image versions

Signed-off-by: Moritz Sanft <[email protected]>

* remove unnecessary workflow inputs

Signed-off-by: Moritz Sanft <[email protected]>

---------

Signed-off-by: Moritz Sanft <[email protected]>

* add refStream input

Signed-off-by: Moritz Sanft <[email protected]>

* remove inputs.yml dep

Signed-off-by: Moritz Sanft <[email protected]>

* increase system metric period

Signed-off-by: Moritz Sanft <[email protected]>

* fix linkchecker

Signed-off-by: Moritz Sanft <[email protected]>

---------

Signed-off-by: Moritz Sanft <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug fix Fixing a bug no changelog Change won't be listed in release changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants