Title: storage_pool_details overprovisioning settings are being picked up as a tag · Issue #2758 · apache/cloudstack · GitHub
Open Graph Title: storage_pool_details overprovisioning settings are being picked up as a tag · Issue #2758 · apache/cloudstack
X Title: storage_pool_details overprovisioning settings are being picked up as a tag · Issue #2758 · apache/cloudstack
Description: ISSUE TYPE Bug Report COMPONENT NAME Storage CLOUDSTACK VERSION 4.12 SUMMARY When user uses the updateConfiguration api: update configuration name = "storage.overprovisioning.factor" value = 2.0 storageid = [pool.id] Cloudstack api creat...
Open Graph Description: ISSUE TYPE Bug Report COMPONENT NAME Storage CLOUDSTACK VERSION 4.12 SUMMARY When user uses the updateConfiguration api: update configuration name = "storage.overprovisioning.factor" value = 2.0 st...
X Description: ISSUE TYPE Bug Report COMPONENT NAME Storage CLOUDSTACK VERSION 4.12 SUMMARY When user uses the updateConfiguration api: update configuration name = "storage.overprovisioning.factor" valu...
Opengraph URL: https://github.com/apache/cloudstack/issues/2758
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"storage_pool_details overprovisioning settings are being picked up as a tag","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\r\n##### ISSUE TYPE\r\n\u003c!-- Pick one below and delete the rest --\u003e\r\n * Bug Report\r\n\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\nStorage\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\n4.12\r\n~~~\r\n\r\n##### SUMMARY\r\n\u003c!-- Explain the problem/feature briefly --\u003e\r\nWhen user uses the updateConfiguration api: \r\n~~~\r\nupdate configuration name = \"storage.overprovisioning.factor\" value = 2.0 storageid = [pool.id]\r\n~~~\r\nCloudstack api creates a record in the storage_pool_details table looking like that: \r\n~~~\r\nMariaDB [cloud]\u003e select * from storage_pool_details;\r\n+----+---------+---------------------------------+-------+---------+\r\n| id | pool_id | name | value | display |\r\n+----+---------+---------------------------------+-------+---------+\r\n| 2 | 2 | storage.overprovisioning.factor | 2.0 | 1 |\r\n+----+---------+---------------------------------+-------+---------+\r\n1 row in set (0.00 sec)\r\n~~~\r\nAt this point if you try to migrate a volume and change it's disk offering, it fails with \r\n\r\n~~~\r\n{errorcode : 431, errortext : u'Target Storage [id=26055c44-abb2-3ec6-8098-3c7f067e6d34] tags [storage.overprovisioning.factor] does not match new disk offering [id=637a5ded-3fba-4eda-9515-fc5218d1c905] tags [null].'}\r\n~~~ \r\n\r\nWhich makes me think that cloudstack thinks this setting is actually a tag and fails the operation.\r\n\r\nThere are no other setting or tags at the storage at this moment that might cause this. \r\n\r\n~~~\r\nMariaDB [cloud]\u003e select * from storage_pool_details;\r\n+----+---------+---------------------------------+-------+---------+\r\n| id | pool_id | name | value | display |\r\n+----+---------+---------------------------------+-------+---------+\r\n| 2 | 2 | storage.overprovisioning.factor | 2.0 | 1 |\r\n+----+---------+---------------------------------+-------+---------+\r\n1 row in set (0.00 sec)\r\n\r\nMariaDB [cloud]\u003e select * from storage_pool_tags;\r\nEmpty set (0.00 sec)\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\n- Deploy a VM and attach a small disk to it\r\n- with cloudmonkey execute: update configuration name = \"storage.overprovisioning.factor\" value = 2.0 storageid = [target.pool.id]\r\n- with cloudmonkey execute: migrate volume volumeid=[vol.id] storageid=[target.pool.id] newdiskofferingid=[large.disk.off.id]\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\nI would expect that the volume is migrated with new disk offering\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\nIt fails with:\r\n{errorcode : 431, errortext : u'Target Storage [id=26055c44-abb2-3ec6-8098-3c7f067e6d34] tags [storage.overprovisioning.factor] does not match new disk offering [id=637a5ded-3fba-4eda-9515-fc5218d1c905] tags [null].'}\r\n\r\nwhich looks like the overriding overprovisiohnning setting is taken as a tag. Note that there are no tags to the pool or offering at this time that might interfere.\r\n~~~\r\n","author":{"url":"https://github.com/borisstoyanov","@type":"Person","name":"borisstoyanov"},"datePublished":"2018-07-20T13:18:01.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/2758/cloudstack/issues/2758"}
| 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:68d4380a-d49b-4b1f-3bb7-fe14db065db2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8CA4:129DF4:132704B:1BE1FF6:6A4E434B |
| html-safe-nonce | 709f28b27b1cdfa91d45c75da9b61714c814ded4bdc48a32e8842a592ee82f89 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4Q0E0OjEyOURGNDoxMzI3MDRCOjFCRTFGRjY6NkE0RTQzNEIiLCJ2aXNpdG9yX2lkIjoiNjE4MDE4OTEyMzAxOTQyNDU4NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | aa12dab8d1ef293182eae7931376b78e2884b4d54e29c51c756f040235008de3 |
| hovercard-subject-tag | issue:343104297 |
| 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/2758/issue_layout |
| twitter:image | https://opengraph.githubassets.com/729762673f3f867a3e2a7305c78503a61d30a7d1df87e2e8ac0ef8c43532da4c/apache/cloudstack/issues/2758 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/729762673f3f867a3e2a7305c78503a61d30a7d1df87e2e8ac0ef8c43532da4c/apache/cloudstack/issues/2758 |
| og:image:alt | ISSUE TYPE Bug Report COMPONENT NAME Storage CLOUDSTACK VERSION 4.12 SUMMARY When user uses the updateConfiguration api: update configuration name = "storage.overprovisioning.factor" value = 2.0 st... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | borisstoyanov |
| hostname | github.com |
| expected-hostname | github.com |
| None | 030096ee0db095447bfe77409d33bfac127ca7128299c58deef27c52eaa1b1f0 |
| 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 | 9fabff9b8b127e686a3ec86f91422e818056ca2c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width