Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fail to change Service offering from local <> shared storage #4545

Copy link
Copy link
@GabrielBrascher

Description

@GabrielBrascher
Issue body actions
ISSUE TYPE
  • Bug Report
COMPONENT NAME
API
CLOUDSTACK VERSION
it's there for a long time (+9 years)
CONFIGURATION

Cluster with local and shared storage pools

OS / ENVIRONMENT
SUMMARY

Migrated a volume from local to shared storage pool; however, it fails to scale the offering from local to shared.

Error: "Unable to upgrade virtual machine VM [User|i-2-345-VM], cannot switch between local storage and shared storage service offerings. Current offering useLocalStorage=true, target offering useLocalStorage=false"

Caused due to code at:

if (currentServiceOffering.isUseLocalStorage() != newServiceOffering.isUseLocalStorage()) {

        // Check that the service offering being upgraded to has the same storage pool preference as the VM's current service
        // offering
        if (currentServiceOffering.isUseLocalStorage() != newServiceOffering.isUseLocalStorage()) {
            throw new InvalidParameterValueException("Unable to upgrade virtual machine " + vmInstance.toString() +
                    ", cannot switch between local storage and shared storage service offerings.  Current offering " + "useLocalStorage=" +
                    currentServiceOffering.isUseLocalStorage() + ", target offering useLocalStorage=" + newServiceOffering.isUseLocalStorage());
        }
STEPS TO REPRODUCE
1. Stop VM
2. Migrate VM's volume from local to shared primary storage
3. Update service offering
4. Start VM
EXPECTED RESULTS
VM gets migrated from local to shared storage
ACTUAL RESULTS
Fail to update service offering from local to shared storage; therefore, it fails to start the VM with the migrated volume
Reactions are currently unavailable

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.