Skip to content

protect against null-path#8915

Merged
DaanHoogland merged 5 commits intoapache:4.18from
shapeblue:ghi8747-nullPathProtection
Apr 19, 2024
Merged

protect against null-path#8915
DaanHoogland merged 5 commits intoapache:4.18from
shapeblue:ghi8747-nullPathProtection

Conversation

@DaanHoogland
Copy link
Copy Markdown
Contributor

@DaanHoogland DaanHoogland commented Apr 15, 2024

Description

This PR...

Fixes: #8747

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)
  • build/CI

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?

This is not re-produced bug. The fix is fairly simple. I have no idea how to reproduce but it resulted in data loss in a production VM. I think the best we can do is test upgrades from different versions. and see if anything happens.

How did you try to break this feature and the system with this change?

@DaanHoogland
Copy link
Copy Markdown
Contributor Author

@blueorangutan package

@blueorangutan
Copy link
Copy Markdown

@DaanHoogland a [SL] 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.

@DaanHoogland DaanHoogland linked an issue Apr 15, 2024 that may be closed by this pull request
Copy link
Copy Markdown
Member

@vishesh92 vishesh92 left a comment

Choose a reason for hiding this comment

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

clgtm

@blueorangutan
Copy link
Copy Markdown

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

Copy link
Copy Markdown
Member

@vishesh92 vishesh92 left a comment

Choose a reason for hiding this comment

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

@DaanHoogland a small typo.

…vmware/resource/VmwareResource.java

Co-authored-by: Vishesh <vishesh92@gmail.com>
@DaanHoogland
Copy link
Copy Markdown
Contributor Author

@blueorangutan package

@blueorangutan
Copy link
Copy Markdown

@DaanHoogland a [SL] 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 9259

@vishesh92
Copy link
Copy Markdown
Member

@blueorangutan test

@blueorangutan
Copy link
Copy Markdown

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

Copy link
Copy Markdown
Contributor

@Pearl1594 Pearl1594 left a comment

Choose a reason for hiding this comment

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

code LGTM

@DaanHoogland DaanHoogland requested a review from vishesh92 April 15, 2024 18:14
@blueorangutan
Copy link
Copy Markdown

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

Test Result Time (s) Test File
test_02_deploy_vm_with_extraconfig_kvm Error 1.18 test_deploy_vm_extra_config_data.py
test_03_update_vm_with_extraconfig_kvm Error 1.19 test_deploy_vm_extra_config_data.py
test_02_deploy_vm_on_specific_cluster Error 1.13 test_vm_deployment_planner.py
test_03_deploy_vm_on_specific_pod Error 0.14 test_vm_deployment_planner.py
test_04_deploy_vm_on_host_override_pod_and_cluster Error 1.16 test_vm_deployment_planner.py
test_05_deploy_vm_on_cluster_override_pod Error 1.13 test_vm_deployment_planner.py

…vmware/resource/VmwareResource.java

Co-authored-by: Suresh Kumar Anaparti <sureshkumar.anaparti@gmail.com>
@DaanHoogland
Copy link
Copy Markdown
Contributor Author

@blueorangutan package

@blueorangutan
Copy link
Copy Markdown

@DaanHoogland a [SL] 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 9271

@DaanHoogland
Copy link
Copy Markdown
Contributor Author

@blueorangutan test alma9 vmware-70u3

@blueorangutan
Copy link
Copy Markdown

@DaanHoogland a [SL] Trillian-Jenkins test job (alma9 mgmt + vmware-70u3) has been kicked to run smoke tests

@blueorangutan
Copy link
Copy Markdown

[SF] Trillian Build Failed (tid-9844)

@DaanHoogland
Copy link
Copy Markdown
Contributor Author

@blueorangutan test rocky8 vmware-70u3

@blueorangutan
Copy link
Copy Markdown

@DaanHoogland a [SL] Trillian-Jenkins test job (rocky8 mgmt + vmware-70u3) has been kicked to run smoke tests

Copy link
Copy Markdown
Member

@vishesh92 vishesh92 left a comment

Choose a reason for hiding this comment

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

clgtm

Copy link
Copy Markdown
Contributor

@sureshanaparti sureshanaparti left a comment

Choose a reason for hiding this comment

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

clgtm

…vmware/resource/VmwareResource.java

Co-authored-by: Suresh Kumar Anaparti <sureshkumar.anaparti@gmail.com>
@blueorangutan
Copy link
Copy Markdown

[SF] Trillian test result (tid-9845)
Environment: vmware-70u3 (x2), Advanced Networking with Mgmt server r8
Total time taken: 40143 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr8915-t9845-vmware-70u3.zip
Smoke tests completed. 99 look OK, 2 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File
test_04_deploy_vm_with_extraconfig_throws_exception_vmware Error 1.20 test_deploy_vm_extra_config_data.py
test_05_deploy_vm_with_extraconfig_vmware Error 0.19 test_deploy_vm_extra_config_data.py
test_02_deploy_vm_on_specific_cluster Error 1.17 test_vm_deployment_planner.py
test_03_deploy_vm_on_specific_pod Error 1.20 test_vm_deployment_planner.py
test_04_deploy_vm_on_host_override_pod_and_cluster Error 1.21 test_vm_deployment_planner.py
test_05_deploy_vm_on_cluster_override_pod Error 1.17 test_vm_deployment_planner.py

@DaanHoogland DaanHoogland changed the base branch from 4.17 to 4.18 April 17, 2024 08:23
@DaanHoogland
Copy link
Copy Markdown
Contributor Author

@blueorangutan package

@blueorangutan
Copy link
Copy Markdown

@DaanHoogland a [SL] 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 9286

@DaanHoogland
Copy link
Copy Markdown
Contributor Author

@blueorangutan test alma9 vmware-70u3

@blueorangutan
Copy link
Copy Markdown

@DaanHoogland a [SL] Trillian-Jenkins test job (alma9 mgmt + vmware-70u3) has been kicked to run smoke tests

@blueorangutan
Copy link
Copy Markdown

[SF] Trillian test result (tid-9877)
Environment: vmware-70u3 (x2), Advanced Networking with Mgmt server a9
Total time taken: 46074 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr8915-t9877-vmware-70u3.zip
Smoke tests completed. 109 look OK, 1 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File
test_02_list_cpvm_vm Failure 0.05 test_ssvm.py
test_04_cpvm_internals Failure 0.07 test_ssvm.py

@DaanHoogland
Copy link
Copy Markdown
Contributor Author

@rajujith any findings?

Copy link
Copy Markdown
Contributor

@rajujith rajujith left a comment

Choose a reason for hiding this comment

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

LGTM.

I am unable to reproduce the issue resulting in the 'NULL' path for volume, however, based on the logic in the fix the issue should be fixed.

@DaanHoogland DaanHoogland merged commit 7affbb1 into apache:4.18 Apr 19, 2024
@DaanHoogland DaanHoogland deleted the ghi8747-nullPathProtection branch April 19, 2024 10:23
DaanHoogland added a commit that referenced this pull request Apr 19, 2024
* 4.18:
  protect against null-path (#8915)
  UI: Fix missing locale strings for Status widget (#8792)
  Add a shutdownhook to remove jobs owned by the process (#8896)
DaanHoogland added a commit that referenced this pull request Apr 19, 2024
* 4.19:
  protect against null-path (#8915)
  UI: Fix missing locale strings for Status widget (#8792)
  Add a shutdownhook to remove jobs owned by the process (#8896)
dhslove pushed a commit to ablecloud-team/ablestack-cloud that referenced this pull request May 3, 2024
Co-authored-by: Vladimir Dombrovski <vladimir.dombrovski@bso.co>
Co-authored-by: Vishesh <vishesh92@gmail.com>
Co-authored-by: Suresh Kumar Anaparti <sureshkumar.anaparti@gmail.com>
dhslove pushed a commit to ablecloud-team/ablestack-cloud that referenced this pull request May 3, 2024
* 4.18:
  protect against null-path (apache#8915)
  UI: Fix missing locale strings for Status widget (apache#8792)
  Add a shutdownhook to remove jobs owned by the process (apache#8896)
dhslove pushed a commit to ablecloud-team/ablestack-cloud that referenced this pull request May 3, 2024
* 4.19:
  protect against null-path (apache#8915)
  UI: Fix missing locale strings for Status widget (apache#8792)
  Add a shutdownhook to remove jobs owned by the process (apache#8896)
@DaanHoogland DaanHoogland added this to the 4.19.1.0 milestone May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

No open projects
Status: No status

Development

Successfully merging this pull request may close these issues.

ROOT volume got deleted in failure to migrate

7 participants