{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/43817","repository_url":"https://api.github.com/repos/ansible/ansible","labels_url":"https://api.github.com/repos/ansible/ansible/issues/43817/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/43817/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/43817/events","html_url":"https://github.com/ansible/ansible/pull/43817","id":348656389,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA2OTUzNDM2","number":43817,"title":"cs instance root_disk size update resizes the root volume","user":{"login":"greut","id":1388,"node_id":"MDQ6VXNlcjEzODg=","avatar_url":"https://avatars2.githubusercontent.com/u/1388?v=4","gravatar_id":"","url":"https://api.github.com/users/greut","html_url":"https://github.com/greut","followers_url":"https://api.github.com/users/greut/followers","following_url":"https://api.github.com/users/greut/following{/other_user}","gists_url":"https://api.github.com/users/greut/gists{/gist_id}","starred_url":"https://api.github.com/users/greut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greut/subscriptions","organizations_url":"https://api.github.com/users/greut/orgs","repos_url":"https://api.github.com/users/greut/repos","events_url":"https://api.github.com/users/greut/events{/privacy}","received_events_url":"https://api.github.com/users/greut/received_events","type":"User","site_admin":false},"labels":[{"id":947190508,"node_id":"MDU6TGFiZWw5NDcxOTA1MDg=","url":"https://api.github.com/repos/ansible/ansible/labels/affects_2.7","name":"affects_2.7","color":"ededed","default":false},{"id":61528803,"node_id":"MDU6TGFiZWw2MTUyODgwMw==","url":"https://api.github.com/repos/ansible/ansible/labels/cloud","name":"cloud","color":"c7def8","default":false},{"id":704378583,"node_id":"MDU6TGFiZWw3MDQzNzg1ODM=","url":"https://api.github.com/repos/ansible/ansible/labels/cloudstack","name":"cloudstack","color":"c5def5","default":false},{"id":501518759,"node_id":"MDU6TGFiZWw1MDE1MTg3NTk=","url":"https://api.github.com/repos/ansible/ansible/labels/community_review","name":"community_review","color":"f9d0c4","default":false},{"id":852590921,"node_id":"MDU6TGFiZWw4NTI1OTA5MjE=","url":"https://api.github.com/repos/ansible/ansible/labels/feature","name":"feature","color":"006b75","default":false},{"id":496359346,"node_id":"MDU6TGFiZWw0OTYzNTkzNDY=","url":"https://api.github.com/repos/ansible/ansible/labels/module","name":"module","color":"1d76db","default":false},{"id":636327968,"node_id":"MDU6TGFiZWw2MzYzMjc5Njg=","url":"https://api.github.com/repos/ansible/ansible/labels/support:community","name":"support:community","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-08-08T09:57:55Z","updated_at":"2018-08-09T21:26:15Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/ansible/ansible/pulls/43817","html_url":"https://github.com/ansible/ansible/pull/43817","diff_url":"https://github.com/ansible/ansible/pull/43817.diff","patch_url":"https://github.com/ansible/ansible/pull/43817.patch"},"body":"##### SUMMARY\r\n\r\nCloudStack's [resizeVolume](http://cloudstack.apache.org/api/apidocs-4.10/apis/resizeVolume.html) on the `ROOT` volume of a VM based on the `root_disk_size`.\r\n\r\n##### ISSUE TYPE\r\n\r\n - Feature Pull Request\r\n\r\n##### COMPONENT NAME\r\n\r\ncloud / cloudstack / cs_instance\r\n\r\n##### ANSIBLE VERSION\r\n\r\n```\r\nansible 2.7.0.dev0 (cs-instance-root-disk-size c9a9a5d39a) last updated 2018/08/08 11:47:28 (GMT +200)\r\n  config file = None\r\n  configured module search path = ['/home/yoan/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']\r\n  ansible python module location = /home/yoan/soft/ansible/lib/ansible\r\n  executable location = /home/yoan/soft/ansible/venv36/bin/ansible\r\n  python version = 3.6.6 (default, Aug  6 2018, 17:27:47) [GCC 8.2.0]\r\n```\r\n\r\n\r\n##### ADDITIONAL INFORMATION\r\n\r\nAssuming, you created an instance with a `root_disk_size` or based on a template supporting it. Changing its value will triggers a `resizeVolume` call applying the changes. `shrinkok` is an extra option.\r\n\r\n```yml\r\n      cs_instance:\r\n        template: Linux Debian 9 64-bit\r\n        name: test\r\n        state: present\r\n        root_disk_size: 14\r\n        shrinkok: true\r\n        force: true\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible/issues/comments/411902773","html_url":"https://github.com/ansible/ansible/pull/43817#issuecomment-411902773","issue_url":"https://api.github.com/repos/ansible/ansible/issues/43817","id":411902773,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMTkwMjc3Mw==","user":{"login":"resmo","id":23809,"node_id":"MDQ6VXNlcjIzODA5","avatar_url":"https://avatars1.githubusercontent.com/u/23809?v=4","gravatar_id":"","url":"https://api.github.com/users/resmo","html_url":"https://github.com/resmo","followers_url":"https://api.github.com/users/resmo/followers","following_url":"https://api.github.com/users/resmo/following{/other_user}","gists_url":"https://api.github.com/users/resmo/gists{/gist_id}","starred_url":"https://api.github.com/users/resmo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/resmo/subscriptions","organizations_url":"https://api.github.com/users/resmo/orgs","repos_url":"https://api.github.com/users/resmo/repos","events_url":"https://api.github.com/users/resmo/events{/privacy}","received_events_url":"https://api.github.com/users/resmo/received_events","type":"User","site_admin":false},"created_at":"2018-08-09T21:26:15Z","updated_at":"2018-08-09T21:26:15Z","author_association":"MEMBER","body":"Thanks for the contribution. code looks good to me. One thing I don't like that much is the param name `shrinkok`, what about `allow_shrink` or `allow_root_disk_shrink`?"}}
{"actor":{"display_login":"resmo"}}