Skip to content

UI: add a provider for primary storage when adding zone wizard - #6429

Merged
yadvr merged 5 commits into
apache:mainfrom
EWERK-DIGITAL:feature/zone-wizard-primary-storage-provider
Jun 20, 2022
Merged

yadvr merged 5 commits into
apache:mainfrom
EWERK-DIGITAL:feature/zone-wizard-primary-storage-provider

Conversation

@utchoang

@utchoang utchoang commented Jun 1, 2022

Copy link
Copy Markdown

Description

This PR fixes #6088

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):

image

How Has This Been Tested?

@acs-robot

Copy link
Copy Markdown

Found UI changes, kicking a new UI QA build
@blueorangutan ui

@blueorangutan

Copy link
Copy Markdown

@acs-robot 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: http://qa.cloudstack.cloud:8080/client/pr/6429 (SL-JID-1646)

@slavkap

slavkap commented Jun 2, 2022

Copy link
Copy Markdown
Contributor

Hi @utchoang, I think adding a custom protocol is needed for SolidFire and PowerFlex, and because the protocol parameter is set as mandatory

@nvazquez nvazquez added this to the 4.17.1.0 milestone Jun 2, 2022
@acs-robot

Copy link
Copy Markdown

Found UI changes, kicking a new UI QA build
@blueorangutan ui

@blueorangutan

Copy link
Copy Markdown

@acs-robot 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: http://qa.cloudstack.cloud:8080/client/pr/6429 (SL-JID-1665)

@sureshanaparti

Copy link
Copy Markdown
Contributor

Hi @utchoang, I think adding a custom protocol is needed for SolidFire and PowerFlex, and because the protocol parameter is set as mandatory

@utchoang Correct, protocol is the required input at UI, for adding primary storage. This is imp to pick the correct storage provider, url and related parameter inputs. If custom protocol for PowerFlex is confusing, this can be updated to something meaningful, eg. PreSetup or PowerFlex (now or can be re-visited later ?), but ensure that all the provider details are properly picked and passed to the API call. Also, it's better to keep adding primary storage options in sync, at zone wizard and add primary storage dialog. Check if any documentation update needed for these changes. Thanks.

@utchoang

utchoang commented Jun 3, 2022

Copy link
Copy Markdown
Author

@slavkap @sureshanaparti Thank you for your comments. I fixed it, please review it again.

@slavkap

slavkap commented Jun 7, 2022

Copy link
Copy Markdown
Contributor

Hi @utchoang, I think it will be more user-friendly if the custom protocol option is shown with the rest of the protocol options. Because we fill in the form sequentially, the provider, in this case, should be above the protocol, or the custom option should be in the list of protocols. Another option when you choose PowerFlex/SolidFire, the custom protocol could be automatically set.
Also, I think that it's not a good idea to limit the custom option only to SolidFire/PowerFlex (e.g. Datera plugin also is using this option, probably there are other storage plugins even such not in CS upstream but have integrations with CS)

@acs-robot

Copy link
Copy Markdown

Found UI changes, kicking a new UI QA build
@blueorangutan ui

@blueorangutan

Copy link
Copy Markdown

@acs-robot 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: http://qa.cloudstack.cloud:8080/client/pr/6429 (SL-JID-1687)

@sureshanaparti

Copy link
Copy Markdown
Contributor

@utchoang Sometimes 'Protocol' is cleared when 'Provider' is selected, please check.

@acs-robot

Copy link
Copy Markdown

Found UI changes, kicking a new UI QA build
@blueorangutan ui

@blueorangutan

Copy link
Copy Markdown

@acs-robot 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: http://qa.cloudstack.cloud:8080/client/pr/6429 (SL-JID-1689)

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

Hi @utchoang, here

} else if (protocol === 'SharedMountPoint') {

if it's SharedMountPoint, the server should be set to server = 'localhost' because it's not provided by default

@acs-robot

Copy link
Copy Markdown

Found UI changes, kicking a new UI QA build
@blueorangutan ui

@blueorangutan

Copy link
Copy Markdown

@acs-robot 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: http://qa.cloudstack.cloud:8080/client/pr/6429 (SL-JID-1693)

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

Thanks, @utchoang, for the PR!
code LGTM tested it with SharedMoutPoint and StorPool

@sonarqubecloud

sonarqubecloud Bot commented Jun 8, 2022

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@yadvr
yadvr merged commit d6488c5 into apache:main Jun 20, 2022
rp- pushed a commit to LINBIT/cloudstack that referenced this pull request Jun 21, 2022
…e#6429)

Fixes apache#6088

* add provider in creating primary storage when adding new zone

* add custom protocol for SolidFire/PowerFlex provider

* set the custom protocol option available with the rest of the protocol options

* fixes indexOf error & auto-select protocol

* set server=localhost with SharedMountPoint protocol
GutoVeronezi pushed a commit to scclouds/cloudstack that referenced this pull request Jun 23, 2022
…e#6429)

Fixes apache#6088

* add provider in creating primary storage when adding new zone

* add custom protocol for SolidFire/PowerFlex provider

* set the custom protocol option available with the rest of the protocol options

* fixes indexOf error & auto-select protocol

* set server=localhost with SharedMountPoint protocol
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.

UI: Add zone wizard missing provider for primary storage

8 participants