Skip to content

[PWX-27134] Filter out only disks whos lifecycleState is ATTACHED in DeviceMappings() for oracle.#115

Merged
vinayakshnd merged 1 commit intolibopenstorage:masterfrom
vinayakshnd:PWX-27134_skipDetached
Oct 4, 2022
Merged

[PWX-27134] Filter out only disks whos lifecycleState is ATTACHED in DeviceMappings() for oracle.#115
vinayakshnd merged 1 commit intolibopenstorage:masterfrom
vinayakshnd:PWX-27134_skipDetached

Conversation

@vinayakshnd
Copy link
Copy Markdown
Contributor

@vinayakshnd vinayakshnd commented Sep 22, 2022

Currently, ListVolumeAttachments() oracle SDK API returns all volume attachements including the ones that are currently detached. So, we need to filter out only ones which are in ATTACHED state.
Signed-off-by: Vinayak Shinde vinayakshnd@gmail.com

What this PR does / why we need it:

Which issue(s) this PR fixes (optional)
Closes #

Special notes for your reviewer:

DeviceMappings() for oracle.

Signed-off-by: Vinayak Shinde <vinayakshnd@gmail.com>
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

Base: 7.33% // Head: 7.19% // Decreases project coverage by -0.13% ⚠️

Coverage data is based on head (4c8f99c) compared to base (0cbeca2).
Patch coverage: 0.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff            @@
##           master    #115      +/-   ##
=========================================
- Coverage    7.33%   7.19%   -0.14%     
=========================================
  Files          17      17              
  Lines        4406    4488      +82     
=========================================
  Hits          323     323              
- Misses       4064    4146      +82     
  Partials       19      19              
Impacted Files Coverage Δ
oracle/oracle.go 6.92% <0.00%> (-1.03%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@nrevanna nrevanna requested review from harsh-px and pp511 October 3, 2022 17:34
Copy link
Copy Markdown
Contributor

@pp511 pp511 left a comment

Choose a reason for hiding this comment

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

lgtm.

@vinayakshnd vinayakshnd merged commit c63b6a7 into libopenstorage:master Oct 4, 2022
Comment thread oracle/oracle.go
} else {
logrus.Warnf("Device path or volume id for [%+v] volume attachment not found", va)
continue
if va.GetLifecycleState() == core.VolumeAttachmentLifecycleStateAttached {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should we not consider VolumeAttachmentLifecycleStateAttaching also?

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