Skip to content

UI: Prevent exceptions when network service provider that's disabled is viewed#11413

Merged
DaanHoogland merged 1 commit intomainfrom
fix-nsp-disabled-errors
Oct 14, 2025
Merged

UI: Prevent exceptions when network service provider that's disabled is viewed#11413
DaanHoogland merged 1 commit intomainfrom
fix-nsp-disabled-errors

Conversation

@Pearl1594
Copy link
Copy Markdown
Contributor

Description

This PR fixes these issues:
image

image image

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
  • test (unit or integration test code)

Feature/Enhancement Scale or Bug Severity

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

How Has This Been Tested?

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

@codecov
Copy link
Copy Markdown

codecov bot commented Aug 7, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 17.35%. Comparing base (7d59bfe) to head (a038862).
⚠️ Report is 192 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main   #11413      +/-   ##
============================================
- Coverage     17.35%   17.35%   -0.01%     
+ Complexity    15232    15230       -2     
============================================
  Files          5885     5885              
  Lines        525618   525632      +14     
  Branches      64157    64161       +4     
============================================
- Hits          91225    91216       -9     
- Misses       424094   424120      +26     
+ Partials      10299    10296       -3     
Flag Coverage Δ
uitests 3.63% <ø> (-0.01%) ⬇️
unittests 18.39% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Aug 7, 2025

@Pearl1594
Copy link
Copy Markdown
Contributor Author

@blueorangutan ui

@blueorangutan
Copy link
Copy Markdown

@Pearl1594 a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress.

@blueorangutan
Copy link
Copy Markdown

UI build: ✔️
Live QA URL: https://qa.cloudstack.cloud/simulator/pr/11413 (QA-JID-725)

@DaanHoogland
Copy link
Copy Markdown
Contributor

@Pearl1594 is this only applicable on main?

@DaanHoogland
Copy link
Copy Markdown
Contributor

testing this in qa:
Screenshot 2025-08-08 at 11 15 10
seems like this is the same issue somewhat, though I am not sure F5 is still actively supported.

@sureshanaparti
Copy link
Copy Markdown
Contributor

testing this in qa: Screenshot 2025-08-08 at 11 15 10 seems like this is the same issue somewhat, though I am not sure F5 is still actively supported.

@Pearl1594 can you check/fix this?

@sureshanaparti
Copy link
Copy Markdown
Contributor

@Pearl1594 With the changes, when I clicked on Nsx, Netris, Tungsten, nothing happens (old view remains as is), at least show message indicating the plugin is disabled, or hide all the disabled providers.

@Pearl1594
Copy link
Copy Markdown
Contributor Author

The provider should appear disabled i.e., in red - which should be an indicator that it is disabled. As historically, we haven't explicitly prompted the user that a provider is disabled with any notification per se, which is why I continued with that behaviour.

}

try {
const providers = ['tungsten', 'nsx', 'netris']
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.

can this list be retrieved?

Copy link
Copy Markdown
Contributor Author

@Pearl1594 Pearl1594 Aug 18, 2025

Choose a reason for hiding this comment

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

you mean from the backend? I don't believe so that we have a way (API) to identify external network providers.
I mean, we can get the list of all network service providers, but not what needs a global setting to be enabled to actually use it.

@Pearl1594
Copy link
Copy Markdown
Contributor Author

Pearl1594 commented Aug 18, 2025

testing this in qa: Screenshot 2025-08-08 at 11 15 10 seems like this is the same issue somewhat, though I am not sure F5 is still actively supported.

seems like f5 was removed from the backend: #7023 - but the UI wasn't handled then.
this : #11463 should address it.

Copy link
Copy Markdown
Member

@harikrishna-patnala harikrishna-patnala 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

@RosiKyu
Copy link
Copy Markdown
Collaborator

RosiKyu commented Oct 13, 2025

@blueorangutan package

@RosiKyu RosiKyu self-assigned this Oct 13, 2025
@blueorangutan
Copy link
Copy Markdown

@rosi-shapeblue 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]: ✖️ el8 ✖️ el9 ✔️ debian ✖️ suse15. SL-JID 15430

@harikrishna-patnala
Copy link
Copy Markdown
Member

@blueorangutan package

@blueorangutan
Copy link
Copy Markdown

@harikrishna-patnala 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]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 15435

Copy link
Copy Markdown
Collaborator

@RosiKyu RosiKyu left a comment

Choose a reason for hiding this comment

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

LGTM

Verified the fix for disabled external network providers (Tungsten, NSX, Netris).

  • UI no longer throws errors when clicking on disabled providers.
  • Top section updates correctly, and the table remains stable with no red toast.
  • The previous F5-related error (listF5LoadBalancers) is no longer present as the plugin has been removed as per the referenced cleanup in #11463

Cross-browser tested on Chrome, Firefox, and Edge.

Screencast.from.2025-10-13.21-14-54.webm

@DaanHoogland DaanHoogland merged commit 5e7ae22 into main Oct 14, 2025
49 checks passed
@DaanHoogland DaanHoogland deleted the fix-nsp-disabled-errors branch October 14, 2025 06:25
dhslove pushed a commit to ablecloud-team/ablestack-cloud that referenced this pull request Oct 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

6 participants