Skip to content

Add special Icon to Shared FileSystem Instances#10857

Merged
sureshanaparti merged 5 commits intoapache:4.20from
shapeblue:sharedfs-icon
Jul 23, 2025
Merged

Add special Icon to Shared FileSystem Instances#10857
sureshanaparti merged 5 commits intoapache:4.20from
shapeblue:sharedfs-icon

Conversation

@abh1sar
Copy link
Copy Markdown
Contributor

@abh1sar abh1sar commented May 13, 2025

Description

Shared FileSystem Instance and Volumes show up in the common Instance and Volume Lists, but they behave somewhat differently from normal instances and volumes in terms of actions supported.

This PR adds the change which makes it easier to identify a Shared FileSystem Instance in the Instance list by using the Shared FileSystem Icon shown on the main menu. Previously it used the generic Debian icon.
This PR also adds a prefix to volumes used by Shared FileSystems, again to make them easier to identify among the list of all volumes.

Before:
Screenshot 2025-05-13 at 5 03 54 PM
Screenshot 2025-05-13 at 5 04 17 PM
After:
Screenshot 2025-05-13 at 5 04 46 PM
Screenshot 2025-05-13 at 5 16 27 PM

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

Feature/Enhancement Scale

  • Major
  • Minor

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 May 13, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 16.14%. Comparing base (41de0b9) to head (96cb71d).
Report is 28 commits behind head on 4.20.

Additional details and impacted files
@@            Coverage Diff            @@
##               4.20   #10857   +/-   ##
=========================================
  Coverage     16.14%   16.14%           
- Complexity    13255    13258    +3     
=========================================
  Files          5657     5657           
  Lines        497903   497918   +15     
  Branches      60375    60377    +2     
=========================================
+ Hits          80395    80407   +12     
- Misses       408549   408552    +3     
  Partials       8959     8959           
Flag Coverage Δ
uitests 4.00% <ø> (+<0.01%) ⬆️
unittests 16.99% <100.00%> (+<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.

@abh1sar abh1sar requested a review from yadvr May 14, 2025 10:27
Copy link
Copy Markdown
Contributor

@shwstppr shwstppr left a comment

Choose a reason for hiding this comment

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

A comment on icon sizing otherwise lgtm

<resource-icon :image="record.icon.base64image" size="2x"/>
</span>
<span v-else-if="record.vmtype === 'sharedfsvm'">
<file-text-outlined style="font-size: 18px;" />
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.

@abh1sar do we need to specify font-size: 18px?
At some places where we are using render-icon we've used 16px and the places where we directly use icon as component we seem to be not specifying size

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@shwstppr Without any font-size specified (default I think is 16px), the Instance name of the sharedfs was not aligning properly with the other instances (maybe because of the icon used)
Screenshot 2025-05-16 at 12 29 50 PM

@sureshanaparti sureshanaparti added this to the 4.20.2 milestone Jun 5, 2025
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

@github-actions
Copy link
Copy Markdown

This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch.

@abh1sar
Copy link
Copy Markdown
Contributor Author

abh1sar commented Jun 11, 2025

@blueorangutan ui

@blueorangutan
Copy link
Copy Markdown

@abh1sar 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/10857 (QA-JID-644)

@abh1sar
Copy link
Copy Markdown
Contributor Author

abh1sar commented Jul 8, 2025

@blueorangutan package

@blueorangutan
Copy link
Copy Markdown

@abh1sar 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 14092

@RosiKyu
Copy link
Copy Markdown
Collaborator

RosiKyu commented Jul 16, 2025

LGTM. Verification passed.

  • Instances have a special icon to indicate they are shared file system Instances
  • Volumes used by Shared FileSystems have a "shared-" prefix
Screenshot from 2025-07-16 14-50-45 Screenshot from 2025-07-16 14-50-51 Screenshot from 2025-07-16 14-50-57 Screenshot from 2025-07-16 14-51-02

@sureshanaparti
Copy link
Copy Markdown
Contributor

@blueorangutan package

@blueorangutan
Copy link
Copy Markdown

@sureshanaparti 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.

@abh1sar abh1sar marked this pull request as ready for review July 22, 2025 09:33
@blueorangutan
Copy link
Copy Markdown

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

@sureshanaparti
Copy link
Copy Markdown
Contributor

@blueorangutan test

@blueorangutan
Copy link
Copy Markdown

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

@blueorangutan
Copy link
Copy Markdown

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

Test Result Time (s) Test File

@sureshanaparti sureshanaparti merged commit d72a05a into apache:4.20 Jul 23, 2025
26 checks passed
@sureshanaparti sureshanaparti deleted the sharedfs-icon branch July 23, 2025 05:52
dhslove pushed a commit to ablecloud-team/ablestack-cloud that referenced this pull request Aug 6, 2025
* Use special icon for sharedfs instance and prefix for sharedfs volumes

* Give custom icon precedence over shared fs icon

* Fix sharedfsvm icon size

* Fix UT failure in StorageVmSharedFSLifeCycleTest
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.

6 participants