Skip to content

[CLOUDSTACK-10257]Create template/volume does not allow to specify HVM requirements#2437

Merged
rafaelweingartner merged 1 commit into
apache:masterfrom
rafaelweingartner:CLOUDSTACK-10257
Mar 2, 2018
Merged

[CLOUDSTACK-10257]Create template/volume does not allow to specify HVM requirements#2437
rafaelweingartner merged 1 commit into
apache:masterfrom
rafaelweingartner:CLOUDSTACK-10257

Conversation

@rafaelweingartner

Copy link
Copy Markdown
Member

When creating a template from a snapshot of a ROOT volume, which has a PV operating system, ACS creates the template with flag HVM=1, which may cause problems to deploy the aforementioned template in environments that do not have hosts that support HVM. When creating templates from Snapshots or volumes an option to specify if the template that is going to be created needs HVM or not should be presented.

@DaanHoogland

Copy link
Copy Markdown
Contributor

and some javascript refactoring along the way 👍

@rafaelweingartner

Copy link
Copy Markdown
Member Author

It is not as much refactoring as it is extracting duplicated code to a common method.

BTW, the JavaScript part of ACS looks like created by someone that was charging by the lines.... I have never seen so many repeated code in my whole life.

@rafaelweingartner

Copy link
Copy Markdown
Member Author

This PR will create add the HVM option as illustrated in the following image. The option will appear in both, create template from snapshot and create template from volume buttons.

image

@rafaelweingartner

Copy link
Copy Markdown
Member Author

@khos2ow would you mind reviewing this one?

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

LGTM

@rafaelweingartner

rafaelweingartner commented Mar 1, 2018

Copy link
Copy Markdown
Member Author

Thanks @khos2ow.
@DaanHoogland are you ok with changes introduced here?

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

definitely an improvement. not the end result that will make us proud of our javascript ;)

@rafaelweingartner rafaelweingartner merged commit 2037dc9 into apache:master Mar 2, 2018
bernardodemarco pushed a commit to scclouds/cloudstack that referenced this pull request Jul 16, 2025
…clouds'

Correção da validação de acesso nas APIs `listGuiThemes` e `destroyVirtualMachine` para considerar as permissões da API Keypair

Closes apache#2437

See merge request scclouds/scclouds!1146
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.

3 participants