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

♻️ volumes are removed via agent (⚠️ devops) #3941

Closed

Conversation

GitHK
Copy link
Contributor

@GitHK GitHK commented Mar 3, 2023

⚠️ devops

  • rabbitmq data is now backed up to the rabbit_data volume. It is required that after the server restart, this goes to the same volume
  • agent service has new env vars which should be automatically picked up from the existing configuration
  • ⚠️ the following change needs to be propagated to the deployment where this is being released change agent deploy policy osparc-ops-environments#115
  • docker version is no longer limited since this PR invalidates docker version parsing #3946

To note:

  • if rabbitmq is restarted the agent and director-v2 will reconnect automatically reconnect. RPC calls will be delivered normally
  • if there is an connection error (to rabbitmq) while making an RPC call, the call is retried

What do these changes do?

The agent service running on node X will now remove volumes when the dynamic-sidecar was closed.
No longer creates services which are responsible for removing these volumes via bash commands.

TODOs:

  • refactor agent internals to use a queue of actions when removing volumes, avoids any possible concurrency issues with volume removal
  • if the agent running on a specific node is gone what to do? need a test to simulate (this can happen with autoscaling nodes)
  • fix agent tests after refactor (the rabbitmq removal is still failing in the tests)
  • fix deictor-v2 tests after the refactor
  • test if changes work as expected

Related issue/s

How to test

Checklist

  • Unit tests for the changes exist
  • Runs in the swarm

@codecov
Copy link

codecov bot commented Mar 3, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.2%. Comparing base (7ebcf27) to head (de6916d).
Report is 1337 commits behind head on master.

❗ There is a different number of reports uploaded between BASE (7ebcf27) and HEAD (de6916d). Click for more details.

HEAD has 7 uploads less than BASE
Flag BASE (7ebcf27) HEAD (de6916d)
unittests 19 14
integrationtests 5 3
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #3941      +/-   ##
=========================================
- Coverage    85.4%   80.2%    -5.3%     
=========================================
  Files         868     587     -281     
  Lines       37950   23895   -14055     
  Branches      885     435     -450     
=========================================
- Hits        32429   19175   -13254     
+ Misses       5318    4621     -697     
+ Partials      203      99     -104     
Flag Coverage Δ
integrationtests 62.9% <ø> (+0.1%) ⬆️
unittests 78.2% <ø> (-5.4%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 498 files with indirect coverage changes

@codeclimate
Copy link

codeclimate bot commented Jun 16, 2023

Code Climate has analyzed commit de6916d and detected 0 issues on this pull request.

View more on Code Climate.

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

No Coverage information No Coverage information
0.1% 0.1% Duplication

Copy link
Contributor

@YuryHrytsuk YuryHrytsuk left a comment

Choose a reason for hiding this comment

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

⚠️ the following change needs to be propagated to the deployment where this is being released ITISFoundation/osparc-ops-environments#115

What do you mean? The PR is already merged and its changes are in use.

@GitHK
Copy link
Contributor Author

GitHK commented Nov 14, 2023

⚠️ the following change needs to be propagated to the deployment where this is being released ITISFoundation/osparc-ops-environments#115

What do you mean? The PR is already merged and its changes are in use.

I will pick this one up in the future there is no activity here since moths

@pcrespov pcrespov modified the milestones: Sundae, Schoggilebe Mar 13, 2024
@sanderegg sanderegg removed this from the Schoggilebe milestone Apr 12, 2024
@pcrespov pcrespov added this to the Enchanted Odyssey milestone Apr 26, 2024
@sanderegg sanderegg modified the milestones: South Island Iced Tea, Tom Bombadil Jul 23, 2024
@sanderegg sanderegg modified the milestones: Tom Bombadil, Eisbock Aug 13, 2024
@GitHK GitHK modified the milestones: Eisbock, MartinKippenberger Sep 24, 2024
@GitHK GitHK closed this in #6452 Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:agent agent service a:director-v2 issue related with the director-v2 service
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants