Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

storage manager volume create: basic and advanced modes #194

Merged

Conversation

OrGur1987
Copy link
Contributor

@OrGur1987 OrGur1987 commented Jan 1, 2023

filter services and resources by capabilities on volume create:

Basic: filter services by required capabilities and choose an existing service from the filtered list.
Advanced: choose a name for a new service, filter resources by required capabilities, and choose resources to attach to the new service from the filtered list. the new volume(s) will be created for the new service, on one of the attached resources.

changes:

  • cloud_volume.rb:
    • on params_for_create: get capabilities from provider and use them as options in a multiSelect field. example of capabilities json field from providers api:
      image
    • on raw_create_volume: build the creation hash according to the selected mode.
  • inventory:
    • collect storage manager capabilities from autosde and save them in the providers capabilities json field.
    • collect service and resource capabilities from autosde and save in the capabilities json field in their respective model in miq.

related PR in ui-classic:
ManageIQ/manageiq-ui-classic#8582

@miq-bot miq-bot added the wip label Jan 1, 2023
@OrGur1987 OrGur1987 force-pushed the 326048_add_capabilities_for_create_volume branch 5 times, most recently from 052e6b7 to 8248d32 Compare January 2, 2023 08:19
@agrare
Copy link
Member

agrare commented Jan 2, 2023

Hey @OrGur1987 can you include an example of what the capabilities json looks like?

@OrGur1987
Copy link
Contributor Author

Hey @OrGur1987 can you include an example of what the capabilities json looks like?

edited description

@OrGur1987 OrGur1987 force-pushed the 326048_add_capabilities_for_create_volume branch 5 times, most recently from fd77bcc to ae04dc0 Compare January 11, 2023 11:28
@OrGur1987 OrGur1987 changed the title [WIP] storage manager volume create: basic and advanced modes storage manager volume create: basic and advanced modes Jan 11, 2023
@miq-bot miq-bot removed the wip label Jan 11, 2023
@OrGur1987
Copy link
Contributor Author

OrGur1987 commented Jan 11, 2023

Hi @agrare tests are successful, it's ready for a review, thanks

@agrare agrare self-assigned this Jan 11, 2023
@agrare agrare added enhancement New feature or request and removed unmergeable labels Jan 11, 2023
)
}

if options['mode'] == 'Basic'
Copy link
Member

Choose a reason for hiding this comment

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

Where is options['mode'] coming from? I don't see it in the DDF params

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it used to be in cloud-volume-form.schema.js but I moved it to cloud_voume.rb following @Fryguy's request:
ManageIQ/manageiq-ui-classic#8582 (comment)

- Basic: choose an existing service
- Advanced: choose a name for a new service and choose existing resources to attach to it
@OrGur1987 OrGur1987 force-pushed the 326048_add_capabilities_for_create_volume branch from ae04dc0 to f1208cc Compare January 12, 2023 10:06
@miq-bot
Copy link
Member

miq-bot commented Jan 12, 2023

Checked commit Autosde@f1208cc with ruby 2.6.10, rubocop 1.28.2, haml-lint 0.35.0, and yamllint
6 files checked, 0 offenses detected
Everything looks fine. 🏆

@agrare agrare merged commit 976833e into ManageIQ:master Jan 12, 2023
@Fryguy Fryguy added this to the Petrosian milestone Sep 14, 2023
@Fryguy Fryguy added this to Petrosian in Roadmap Sep 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Roadmap
  
Petrosian
Development

Successfully merging this pull request may close these issues.

None yet

5 participants