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

[RCM-432] fix(remote-config): Clean remote state on error & use fixed fork of go-tuf #13517

Merged
merged 3 commits into from
Sep 15, 2022

Conversation

BaptisteFoy
Copy link
Contributor

@BaptisteFoy BaptisteFoy commented Sep 15, 2022

What does this PR do?

It does two things:

Motivation

Making sure that the agent is bug-less before important deadlines

Additional Notes

Possible Drawbacks / Trade-offs

We are now using a forked version of Go-TUF until we can properly upgrade (upgrade is blocked due to other issues that make Go-TUF non forward compatible).

Describe how to test/QA your changes

Backend has been fixed, so fixing this bug is hard. What you can do is revert https://github.com/DataDog/dd-go/pull/72706, and then do the following, making sure the agent update between each step.

  • Create two configs with exactly the same content
  • Delete one
  • Re-create it

Connecting a client to the agent and continuously querying the agent for configuration should never return an error 500

Also, test restarting the agent locally while disabling WIFI -> Configs should be able to be queried from tracers as if nothing happened.

Reviewer's Checklist

  • If known, an appropriate milestone has been selected; otherwise the Triage milestone is set.
  • Use the major_change label if your change either has a major impact on the code base, is impacting multiple teams or is changing important well-established internals of the Agent. This label will be use during QA to make sure each team pay extra attention to the changed behavior. For any customer facing change use a releasenote.
  • A release note has been added or the changelog/no-changelog label has been applied.
  • Changed code has automated tests for its functionality.
  • Adequate QA/testing plan information is provided if the qa/skip-qa label is not applied.
  • At least one team/.. label has been applied, indicating the team(s) that should QA this change.
  • If applicable, docs team has been notified or an issue has been opened on the documentation repo.
  • If applicable, the need-change/operator and need-change/helm labels have been applied.
  • If applicable, the k8s/<min-version> label, indicating the lowest Kubernetes version compatible with this feature.
  • If applicable, the config template has been updated.

@BaptisteFoy BaptisteFoy force-pushed the baptiste.foy/rcm-432/clean-remote-state-on-error branch from 1cbe60c to 1ff66b6 Compare September 15, 2022 13:11
@arbll arbll modified the milestones: 7.40.0, 7.39.0 Sep 15, 2022
@BaptisteFoy BaptisteFoy force-pushed the baptiste.foy/rcm-432/clean-remote-state-on-error branch 2 times, most recently from 9fc4882 to 9436cca Compare September 15, 2022 14:32
@BaptisteFoy BaptisteFoy force-pushed the baptiste.foy/rcm-432/clean-remote-state-on-error branch from 9436cca to 1a196c8 Compare September 15, 2022 14:36
@kacper-murzyn kacper-murzyn modified the milestones: 7.39.0, 7.39.1 Sep 15, 2022
@BaptisteFoy BaptisteFoy merged commit bf8de49 into main Sep 15, 2022
@BaptisteFoy BaptisteFoy deleted the baptiste.foy/rcm-432/clean-remote-state-on-error branch September 15, 2022 15:46
BaptisteFoy added a commit that referenced this pull request Sep 16, 2022
… fork of go-tuf (#13517)

* [RCM-432] fix(TUF): Clean remote state on TUF error

* fix(go-tuf): Use fork of go-tuf for the time being.

* refactor(uptane): Refactor the Update methods
BaptisteFoy added a commit that referenced this pull request Sep 16, 2022
… fork of go-tuf (#13517)

* [RCM-432] fix(TUF): Clean remote state on TUF error

* fix(go-tuf): Use fork of go-tuf for the time being.

* refactor(uptane): Refactor the Update methods
BaptisteFoy added a commit that referenced this pull request Sep 16, 2022
… fork of go-tuf (#13517)

* [RCM-432] fix(TUF): Clean remote state on TUF error

* fix(go-tuf): Use fork of go-tuf for the time being.

* refactor(uptane): Refactor the Update methods
BaptisteFoy added a commit that referenced this pull request Sep 16, 2022
… fork of go-tuf (#13517)

* [RCM-432] fix(TUF): Clean remote state on TUF error

* fix(go-tuf): Use fork of go-tuf for the time being.

* refactor(uptane): Refactor the Update methods
BaptisteFoy added a commit that referenced this pull request Sep 16, 2022
… fork of go-tuf (#13517)

* [RCM-432] fix(TUF): Clean remote state on TUF error

* fix(go-tuf): Use fork of go-tuf for the time being.

* refactor(uptane): Refactor the Update methods
BaptisteFoy added a commit that referenced this pull request Sep 16, 2022
* [RCM-132] Send back fetch error to backend (#13282)

* Send back fetch error to backend

* Fix test

* (rcm) improve error reporting (#13382)

* [RCM-432] fix(remote-config): Clean remote state on error & use fixed fork of go-tuf (#13517)

* [RCM-432] fix(TUF): Clean remote state on TUF error

* fix(go-tuf): Use fork of go-tuf for the time being.

* refactor(uptane): Refactor the Update methods

Co-authored-by: Paul <paul.coignet@datadoghq.com>
Co-authored-by: Arthur Bellal <arthur.bellal@datadoghq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants