Skip to content

Display proper error message while deleting networks#4642

Closed
ravening wants to merge 1 commit intoapache:mainfrom
ravening:network-deletion
Closed

Display proper error message while deleting networks#4642
ravening wants to merge 1 commit intoapache:mainfrom
ravening:network-deletion

Conversation

@ravening
Copy link
Copy Markdown
Member

@ravening ravening commented Feb 2, 2021

Description

Display exception message if the networks cant be deleted

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?

Display exception message if the networks cant be deleted
@DaanHoogland
Copy link
Copy Markdown
Contributor

DaanHoogland commented Feb 2, 2021

This method has usage in 5 different manager implementations:

  • KubernetesClusterDestroyWorker
  • NetworkServiceImpl
  • VpcManagerImpl
  • AccountManagerImpl
  • DomainManagerImpl

As this changes the semantics of the call it needs thorough validation in all those components.

@DaanHoogland
Copy link
Copy Markdown
Contributor

@blueorangutan package

@blueorangutan
Copy link
Copy Markdown

@DaanHoogland a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

@blueorangutan
Copy link
Copy Markdown

Packaging result: ✔centos7 ✔centos8 ✔debian. JID-2640

@DaanHoogland
Copy link
Copy Markdown
Contributor

@blueorangutan test

@blueorangutan
Copy link
Copy Markdown

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

return false;
final String message = "Can't delete the network, not all user vms are expunged. Vm " + vm + " is in " + vm.getState() + " state";
s_logger.warn(message);
throw new InvalidParameterValueException(message);
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.

Throwing exceptions will cause other issues here, as already mentioned by Daan, other components are handling the boolean response either by logging error message or cleaning up some other resources upon error (AccountManagerImpl).

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.

Throwing exceptions will cause other issues here, as already mentioned by Daan, other components are handling the boolean response either by logging error message or cleaning up some other resources upon error (AccountManagerImpl).

@ravening any update?

@blueorangutan
Copy link
Copy Markdown

Trillian test result (tid-3479)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 51640 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr4642-t3479-kvm-centos7.zip
Intermittent failure detected: /marvin/tests/smoke/test_accounts.py
Intermittent failure detected: /marvin/tests/smoke/test_deploy_vm_iso.py
Intermittent failure detected: /marvin/tests/smoke/test_diagnostics.py
Intermittent failure detected: /marvin/tests/smoke/test_iso.py
Intermittent failure detected: /marvin/tests/smoke/test_kubernetes_supported_versions.py
Smoke tests completed. 84 look OK, 2 have error(s)
Only failed tests results shown below:

Test Result Time (s) Test File
test_01_create_iso_with_checksum_sha1 Error 65.51 test_iso.py
test_01_create_iso_with_checksum_sha1 Error 899.11 test_iso.py
test_04_extract_Iso Error 937.70 test_iso.py
test_01_add_delete_kubernetes_supported_version Error 905.10 test_kubernetes_supported_versions.py

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