Title: Fail to change Service offering from local <> shared storage · Issue #4545 · apache/cloudstack · GitHub
Open Graph Title: Fail to change Service offering from local <> shared storage · Issue #4545 · apache/cloudstack
X Title: Fail to change Service offering from local <> shared storage · Issue #4545 · apache/cloudstack
Description: 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; how...
Open Graph Description: 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 volum...
X Description: 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 v...
Opengraph URL: https://github.com/apache/cloudstack/issues/4545
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Fail to change Service offering from local \u003c\u003e shared storage","articleBody":"\u003c!--\r\nVerify first that your issue/request is not already reported on GitHub.\r\nAlso test if the latest release and master branch are affected too.\r\nAlways add information AFTER of these HTML comments, but no need to delete the comments.\r\n--\u003e\r\n\r\n##### ISSUE TYPE\r\n\u003c!-- Pick one below and delete the rest --\u003e\r\n * Bug Report\r\n\r\n##### COMPONENT NAME\r\n\u003c!--\r\nCategorize the issue, e.g. API, VR, VPN, UI, etc.\r\n--\u003e\r\n~~~\r\nAPI\r\n~~~\r\n\r\n##### CLOUDSTACK VERSION\r\n\u003c!--\r\nNew line separated list of affected versions, commit ID for issues on master branch.\r\n--\u003e\r\n\r\n~~~\r\nit's there for a long time (+9 years)\r\n~~~\r\n\r\n##### CONFIGURATION\r\n\u003c!--\r\nInformation about the configuration if relevant, e.g. basic network, advanced networking, etc. N/A otherwise\r\n--\u003e\r\nCluster with local and shared storage pools\r\n\r\n##### OS / ENVIRONMENT\r\n\u003c!--\r\nInformation about the environment if relevant, N/A otherwise\r\n--\u003e\r\n\r\n\r\n##### SUMMARY\r\n\r\nMigrated a volume from local to shared storage pool; however, it fails to scale the offering from local to shared.\r\n\r\nError: \"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\"\r\n\r\n\r\nCaused due to code at: https://github.com/apache/cloudstack/blob/58a0a7b1a3408240757279a95543ce6304cd2a62/engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java#L3647\r\n\r\n~~~\r\n // Check that the service offering being upgraded to has the same storage pool preference as the VM's current service\r\n // offering\r\n if (currentServiceOffering.isUseLocalStorage() != newServiceOffering.isUseLocalStorage()) {\r\n throw new InvalidParameterValueException(\"Unable to upgrade virtual machine \" + vmInstance.toString() +\r\n \", cannot switch between local storage and shared storage service offerings. Current offering \" + \"useLocalStorage=\" +\r\n currentServiceOffering.isUseLocalStorage() + \", target offering useLocalStorage=\" + newServiceOffering.isUseLocalStorage());\r\n }\r\n~~~\r\n\r\n##### STEPS TO REPRODUCE\r\n\u003c!--\r\nFor bugs, show exactly how to reproduce the problem, using a minimal test-case. Use Screenshots if accurate.\r\n\r\nFor new features, show how the feature would be used.\r\n--\u003e\r\n\r\n\u003c!-- Paste example playbooks or commands between quotes below --\u003e\r\n~~~\r\n1. Stop VM\r\n2. Migrate VM's volume from local to shared primary storage\r\n3. Update service offering\r\n4. Start VM\r\n~~~\r\n\r\n\u003c!-- You can also paste gist.github.com links for larger files --\u003e\r\n\r\n##### EXPECTED RESULTS\r\n\u003c!-- What did you expect to happen when running the steps above? --\u003e\r\n\r\n~~~\r\nVM gets migrated from local to shared storage\r\n~~~\r\n\r\n##### ACTUAL RESULTS\r\n\u003c!-- What actually happened? --\u003e\r\n\r\n\u003c!-- Paste verbatim command output between quotes below --\u003e\r\n~~~\r\nFail to update service offering from local to shared storage; therefore, it fails to start the VM with the migrated volume\r\n~~~\r\n","author":{"url":"https://github.com/GabrielBrascher","@type":"Person","name":"GabrielBrascher"},"datePublished":"2020-12-15T14:30:18.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/4545/cloudstack/issues/4545"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:dcd194da-dba5-d7d3-b928-b574f4c77826 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E9BE:35FB06:13744C8:1AF67E5:6A4DE868 |
| html-safe-nonce | 0b284aa180557f7865ecc683a273c1f88d69b828f9d5036c24ea81426364a747 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOUJFOjM1RkIwNjoxMzc0NEM4OjFBRjY3RTU6NkE0REU4NjgiLCJ2aXNpdG9yX2lkIjoiNDc1NzIyODU5MzQyMjkxOTc4NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 26a99fbb15ff3bd192bb45fadc814856c71bd6c6641e0196218dea0ea027e5d5 |
| hovercard-subject-tag | issue:767652313 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/apache/cloudstack/4545/issue_layout |
| twitter:image | https://opengraph.githubassets.com/78509a9185a3b7e39ba85ac89ba9cebe42dfb183e0642178eab11450e1d64c69/apache/cloudstack/issues/4545 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/78509a9185a3b7e39ba85ac89ba9cebe42dfb183e0642178eab11450e1d64c69/apache/cloudstack/issues/4545 |
| og:image:alt | 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 volum... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | GabrielBrascher |
| hostname | github.com |
| expected-hostname | github.com |
| None | 06b8a6144231bf3a234f1c2e9993861e07ce98a905912b114aa386c2d7e84b33 |
| turbo-cache-control | no-preview |
| go-import | github.com/apache/cloudstack git https://github.com/apache/cloudstack.git |
| octolytics-dimension-user_id | 47359 |
| octolytics-dimension-user_login | apache |
| octolytics-dimension-repository_id | 9759448 |
| octolytics-dimension-repository_nwo | apache/cloudstack |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 9759448 |
| octolytics-dimension-repository_network_root_nwo | apache/cloudstack |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 1d344bdb7547fe6bca17a59bb2b8aac3dc9532a0 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width