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

Performance collection unregistration during storage deletion #451

Merged

Conversation

sushanthakumar
Copy link
Collaborator

What this PR does / why we need it:
This PR addresses Performance collection unregistration during storage deletion
Currently 2 issues observed during storage deletion

  1. Performance job created for the storage is not deleted when storage is deleted
  2. Schedular config json file entry is not deleted when storage is deleted

This PR addresses these issues

Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #
#440

Special notes for your reviewer:
One improvement is suggested on current performance collection.
To be tracked as part of below issue
#450

Detailed test report
Storage registration for performance collection:
image

image

Performance collection unregistration during storage delete
image

Restart after storage delete and no stale performance collection tasks:
image

Registration of multiple storages and unregistration of one storage:
image

image

Deletion of storage which is not registered for performance collection
image

Deletion of storage with some config file issue:
image

Release note:

@codecov
Copy link

codecov bot commented Jan 5, 2021

Codecov Report

Merging #451 (e94403a) into master (9043cf5) will increase coverage by 0.04%.
The diff coverage is 70.96%.

@@            Coverage Diff             @@
##           master     #451      +/-   ##
==========================================
+ Coverage   67.90%   67.94%   +0.04%     
==========================================
  Files         113      113              
  Lines        8185     8215      +30     
  Branches      919      926       +7     
==========================================
+ Hits         5558     5582      +24     
- Misses       2320     2321       +1     
- Partials      307      312       +5     
Impacted Files Coverage Δ
delfin/api/v1/storages.py 71.79% <70.96%> (-0.43%) ⬇️
delfin/common/config.py 65.11% <0.00%> (+6.97%) ⬆️

@NajmudheenCT
Copy link
Member

Tested in a different environement . LGTM . A though for improvement is opend as an issue. #452

Copy link
Member

@NajmudheenCT NajmudheenCT left a comment

Choose a reason for hiding this comment

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

LGTM

@skdwriting skdwriting merged commit 36bd294 into sodafoundation:master Jan 5, 2021
amanr032 pushed a commit to amanr032/delfin that referenced this pull request Dec 5, 2022
…ove reliability of service deployment. (sodafoundation#451)

* Added the api, controller, dock and etcd processes to systemd.

* Updated the clean up script. Renamed the etcd service.

* Added missing line feed. Removed restart_policy from dock container.

* Added the option of installing SODA services as standalone process
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

Successfully merging this pull request may close these issues.

4 participants