Skip to content

Set encrypted PowerFlex disk format correctly - #7735

Merged
harikrishna-patnala merged 1 commit into
apache:4.18from
mlsorensen:4.18-resize-powerflex-thin-datavol
Jul 24, 2023
Merged

harikrishna-patnala merged 1 commit into
apache:4.18from
mlsorensen:4.18-resize-powerflex-thin-datavol

Conversation

@mlsorensen

Copy link
Copy Markdown
Contributor

Description

This PR:

  1. Sets disk format correctly according to thin/thick provisioned PowerFlex volumes when encryption is in play. It delegates the volume format to the implementation (ScaleIOStorageAdaptor) and ensures it is passed back so it is stored properly in the VolumeVO.

This allows us to trigger the code that resizes the qcow2 container if we are thin provisioned - this wasn't working for data volumes when VM was stopped because they were hard coded to RAW format.

  1. Defensive coding in case volume has no VM instance name (detached)

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

How Has This Been Tested?

Tested locally against powerflex, both detached and attached volume.

@yadvr yadvr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM didn't test it though

@yadvr yadvr added this to the 4.18.1.0 milestone Jul 7, 2023
@yadvr

yadvr commented Jul 7, 2023

Copy link
Copy Markdown
Member

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@rohityadavcloud a [SF] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

@blueorangutan

Copy link
Copy Markdown

Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 6437

@harikrishna-patnala harikrishna-patnala left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks @mlsorensen

putting the same reply here as the old PR again here, not to miss that.

Code LGTM. It's better to test all the volume operations since we are dealing with volume format here.

@yadvr

yadvr commented Jul 7, 2023

Copy link
Copy Markdown
Member

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

@rohityadavcloud a [SF] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

@yadvr

yadvr commented Jul 10, 2023

Copy link
Copy Markdown
Member

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

@rohityadavcloud a [SF] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

@blueorangutan

Copy link
Copy Markdown

[SF] Trillian test result (tid-7038)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 44522 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr7735-t7038-kvm-centos7.zip
Smoke tests completed. 107 look OK, 1 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File
test_01_migrate_VM_and_root_volume Error 83.91 test_vm_life_cycle.py
test_02_migrate_VM_with_two_data_disks Error 54.51 test_vm_life_cycle.py

@DaanHoogland
DaanHoogland marked this pull request as draft July 11, 2023 06:24
@yadvr
yadvr requested a review from borisstoyanov July 13, 2023 09:53
@yadvr
yadvr marked this pull request as ready for review July 13, 2023 09:53
@borisstoyanov

Copy link
Copy Markdown
Contributor

@mlsorensen, I'm running into some strange issues while testing this, seems like it does not have the latest changes.
Screenshot 2023-07-13 at 14 31 59
@harikrishna-patnala is looking if he can rebase the branch

@harikrishna-patnala

Copy link
Copy Markdown
Member

@mlsorensen can you please rebase the branch with latest 4.18, we are missing the new changes to allow migrations in this branch.

@harikrishna-patnala

Copy link
Copy Markdown
Member

@borisstoyanov I just verified, this branch has the new changes that allow migraiton of volumes, can we double check if we got the latest packages from this PR and also can you check if all the management servers are upgraded with the latest PR packages.

@harikrishna-patnala

Copy link
Copy Markdown
Member

@mlsorensen can you please rebase the branch with latest 4.18, we are missing the new changes to allow migrations in this branch.

You may please ignore this comment, I just verified the file changes it seems to be at latest.

@borisstoyanov

Copy link
Copy Markdown
Contributor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@borisstoyanov a [SF] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

@harikrishna-patnala

Copy link
Copy Markdown
Member

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@harikrishna-patnala a [SF] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

@blueorangutan

Copy link
Copy Markdown

Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 6530

@yadvr

yadvr commented Jul 21, 2023

Copy link
Copy Markdown
Member

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

@rohityadavcloud a [SF] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

@borisstoyanov

Copy link
Copy Markdown
Contributor

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

@borisstoyanov a [SF] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

@blueorangutan

Copy link
Copy Markdown

[SF] Trillian test result (tid-7134)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 41544 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr7735-t7134-kvm-centos7.zip
Smoke tests completed. 107 look OK, 1 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File
test_01_migrate_VM_and_root_volume Error 80.83 test_vm_life_cycle.py
test_02_migrate_VM_with_two_data_disks Error 51.41 test_vm_life_cycle.py

@blueorangutan

Copy link
Copy Markdown

[SF] Trillian test result (tid-7139)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 48646 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr7735-t7139-kvm-centos7.zip
Smoke tests completed. 106 look OK, 2 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File
test_create_pvlan_network Error 0.05 test_pvlan.py
test_01_migrate_VM_and_root_volume Error 77.75 test_vm_life_cycle.py
test_02_migrate_VM_with_two_data_disks Error 52.51 test_vm_life_cycle.py

@borisstoyanov borisstoyanov left a comment

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.

LGTM, manually tested this executing Volume related lifecycle operations on power flex and other storage types.

@weizhouapache weizhouapache left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

code lgtm
not tested yet

@harikrishna-patnala
harikrishna-patnala merged commit 6321642 into apache:4.18 Jul 24, 2023
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.

7 participants