vmware_datastore_cluster: Add automation levels, vm overrides, Space and IO Load Balance Config
SUMMARY
Add the automation levels:
- Space balance
- I/O balance
- Rule enforcement
- Vm evacuation
and add Space Load Balance Config
and the possibility to override the datastore cluster settings (keep vmdks together and automation level) for Virtual Machines.
ISSUE TYPE
- Feature Pull Request
COMPONENT NAME
vmware_datastore_cluster
ADDITIONAL INFORMATION
New Pull Request after Rebase #1278
Build failed. https://ansible.softwarefactory-project.io/zuul/buildset/b7bad18f8c3f40bb860fece84eef05df
:heavy_check_mark: ansible-tox-linters SUCCESS in 8m 28s :heavy_check_mark: build-ansible-collection SUCCESS in 9m 03s :warning: ansible-test-sanity-docker-devel CANCELED (non-voting) :x: ansible-test-sanity-docker-milestone FAILURE in 9m 10s (non-voting) :warning: ansible-test-sanity-docker-stable-2.13 CANCELED :x: ansible-test-sanity-docker-stable-2.14 FAILURE in 9m 29s :heavy_check_mark: ansible-test-units-community-vmware-python38 SUCCESS in 4m 51s :warning: ansible-test-cloud-integration-vcenter7_only-stable214 CANCELED :warning: ansible-test-cloud-integration-vcenter7_2esxi-stable214 CANCELED :warning: ansible-test-cloud-integration-vcenter7_1esxi-stable214_1_of_2 CANCELED :warning: ansible-test-cloud-integration-vcenter7_1esxi-stable214_2_of_2 CANCELED :heavy_check_mark: ansible-galaxy-importer SUCCESS in 4m 52s
The CI fails with:
ERROR: Found 4 pep8 issue(s) which need to be resolved:
ERROR: plugins/modules/vmware_datastore_cluster.py:368:161: E501: line too long (200 > 160 characters)
ERROR: plugins/modules/vmware_datastore_cluster.py:374:161: E501: line too long (201 > 160 characters)
ERROR: plugins/modules/vmware_datastore_cluster.py:380:161: E501: line too long (207 > 160 characters)
ERROR: plugins/modules/vmware_datastore_cluster.py:386:161: E501: line too long (192 > 160 characters)
Could you shorten those lines, or refactor them into several lines with <= 160 characters each?
Build failed. https://ansible.softwarefactory-project.io/zuul/buildset/151689c07a994f268d03d99179a1c8ff
:heavy_check_mark: ansible-tox-linters SUCCESS in 8m 47s :heavy_check_mark: build-ansible-collection SUCCESS in 9m 24s :x: ansible-test-sanity-docker-devel FAILURE in 11m 36s (non-voting) :heavy_check_mark: ansible-test-sanity-docker-milestone SUCCESS in 11m 40s (non-voting) :heavy_check_mark: ansible-test-sanity-docker-stable-2.13 SUCCESS in 8m 21s :heavy_check_mark: ansible-test-sanity-docker-stable-2.14 SUCCESS in 11m 56s :heavy_check_mark: ansible-test-units-community-vmware-python38 SUCCESS in 6m 33s :warning: ansible-test-cloud-integration-vcenter7_only-stable214 CANCELED :warning: ansible-test-cloud-integration-vcenter7_2esxi-stable214 CANCELED :x: ansible-test-cloud-integration-vcenter7_1esxi-stable214_1_of_2 FAILURE in 13m 07s :warning: ansible-test-cloud-integration-vcenter7_1esxi-stable214_2_of_2 CANCELED :heavy_check_mark: ansible-galaxy-importer SUCCESS in 3m 46s
recheck
Build failed. https://ansible.softwarefactory-project.io/zuul/buildset/03475d4511644c60b523689fec6f49a3
:heavy_check_mark: ansible-tox-linters SUCCESS in 9m 27s :heavy_check_mark: build-ansible-collection SUCCESS in 10m 08s :x: ansible-test-sanity-docker-devel FAILURE in 17m 32s (non-voting) :heavy_check_mark: ansible-test-sanity-docker-milestone SUCCESS in 9m 03s (non-voting) :heavy_check_mark: ansible-test-sanity-docker-stable-2.13 SUCCESS in 9m 14s :heavy_check_mark: ansible-test-sanity-docker-stable-2.14 SUCCESS in 8m 59s :heavy_check_mark: ansible-test-units-community-vmware-python38 SUCCESS in 6m 27s :warning: ansible-test-cloud-integration-vcenter7_only-stable214 CANCELED :heavy_check_mark: ansible-test-cloud-integration-vcenter7_2esxi-stable214 SUCCESS in 17m 28s :warning: ansible-test-cloud-integration-vcenter7_1esxi-stable214_1_of_2 CANCELED :x: ansible-test-cloud-integration-vcenter7_1esxi-stable214_2_of_2 FAILURE in 18m 30s :heavy_check_mark: ansible-galaxy-importer SUCCESS in 4m 14s
recheck
Build failed. https://ansible.softwarefactory-project.io/zuul/buildset/3a75d509907941999b11d67cc2e53745
:heavy_check_mark: ansible-tox-linters SUCCESS in 8m 36s :heavy_check_mark: build-ansible-collection SUCCESS in 10m 43s :x: ansible-test-sanity-docker-devel FAILURE in 12m 20s (non-voting) :heavy_check_mark: ansible-test-sanity-docker-milestone SUCCESS in 9m 18s (non-voting) :heavy_check_mark: ansible-test-sanity-docker-stable-2.13 SUCCESS in 12m 20s :heavy_check_mark: ansible-test-sanity-docker-stable-2.14 SUCCESS in 8m 45s :heavy_check_mark: ansible-test-units-community-vmware-python38 SUCCESS in 5m 04s :warning: ansible-test-cloud-integration-vcenter7_only-stable214 CANCELED :warning: ansible-test-cloud-integration-vcenter7_2esxi-stable214 CANCELED :x: ansible-test-cloud-integration-vcenter7_1esxi-stable214_1_of_2 FAILURE in 16m 00s :warning: ansible-test-cloud-integration-vcenter7_1esxi-stable214_2_of_2 CANCELED :heavy_check_mark: ansible-galaxy-importer SUCCESS in 6m 02s
recheck
Build failed. https://ansible.softwarefactory-project.io/zuul/buildset/5219846a8d1a4ed69ea21ad174e1376a
:heavy_check_mark: ansible-tox-linters SUCCESS in 8m 29s :heavy_check_mark: build-ansible-collection SUCCESS in 9m 25s :x: ansible-test-sanity-docker-devel FAILURE in 10m 18s (non-voting) :heavy_check_mark: ansible-test-sanity-docker-milestone SUCCESS in 9m 30s (non-voting) :heavy_check_mark: ansible-test-sanity-docker-stable-2.13 SUCCESS in 9m 01s :heavy_check_mark: ansible-test-sanity-docker-stable-2.14 SUCCESS in 8m 56s :heavy_check_mark: ansible-test-units-community-vmware-python38 SUCCESS in 5m 06s :x: ansible-test-cloud-integration-vcenter7_only-stable214 FAILURE in 15m 45s :warning: ansible-test-cloud-integration-vcenter7_2esxi-stable214 CANCELED :warning: ansible-test-cloud-integration-vcenter7_1esxi-stable214_1_of_2 CANCELED :warning: ansible-test-cloud-integration-vcenter7_1esxi-stable214_2_of_2 CANCELED :heavy_check_mark: ansible-galaxy-importer SUCCESS in 3m 42s
recheck
Build failed. https://ansible.softwarefactory-project.io/zuul/buildset/ec4ebd28fc3341ba86a73f754582b5d9
:heavy_check_mark: ansible-tox-linters SUCCESS in 8m 35s :heavy_check_mark: build-ansible-collection SUCCESS in 9m 11s :x: ansible-test-sanity-docker-devel FAILURE in 10m 15s (non-voting) :heavy_check_mark: ansible-test-sanity-docker-milestone SUCCESS in 9m 40s (non-voting) :heavy_check_mark: ansible-test-sanity-docker-stable-2.13 SUCCESS in 10m 09s :heavy_check_mark: ansible-test-sanity-docker-stable-2.14 SUCCESS in 9m 40s :heavy_check_mark: ansible-test-units-community-vmware-python38 SUCCESS in 5m 50s :x: ansible-test-cloud-integration-vcenter7_only-stable214 FAILURE in 15m 11s :heavy_check_mark: ansible-test-cloud-integration-vcenter7_2esxi-stable214 SUCCESS in 17m 32s :warning: ansible-test-cloud-integration-vcenter7_1esxi-stable214_1_of_2 CANCELED :warning: ansible-test-cloud-integration-vcenter7_1esxi-stable214_2_of_2 CANCELED :heavy_check_mark: ansible-galaxy-importer SUCCESS in 3m 53s
@Nina2244 I'm beginning to think that we should not introduce new parameters with defaults (or new defaults for existing parameters) in a minor version. You see, this might break things for the users.
For example, if people have configured the space balance automation level to manual and run the current version of the module, there won't be any change. But merging this PR means there will be a change to automated. So please remove the defaults and just ignore those parameters if they're not defined.
If you think those defaults a good idea, we could open an issue to implement them in the next major release. There's a milestone where we could add this so we don't forget.
Build failed. https://ansible.softwarefactory-project.io/zuul/buildset/78f90a65b4fa488c9df9812a3d8ac1fe
:x: ansible-tox-linters FAILURE in 8m 35s :warning: build-ansible-collection CANCELED :warning: ansible-test-cloud-integration-vcenter7_only-stable214 CANCELED :warning: ansible-test-cloud-integration-vcenter7_2esxi-stable214 CANCELED :warning: ansible-test-cloud-integration-vcenter7_1esxi-stable214_1_of_2 CANCELED :warning: ansible-test-cloud-integration-vcenter7_1esxi-stable214_2_of_2 CANCELED :warning: ansible-galaxy-importer CANCELED
Build failed. https://ansible.softwarefactory-project.io/zuul/buildset/b7e2fcf1a6b74944a3617b708fede387
:x: ansible-tox-linters FAILURE in 8m 32s :warning: build-ansible-collection CANCELED :warning: ansible-test-cloud-integration-vcenter7_only-stable214 CANCELED :warning: ansible-test-cloud-integration-vcenter7_2esxi-stable214 CANCELED :warning: ansible-test-cloud-integration-vcenter7_1esxi-stable214_1_of_2 CANCELED :warning: ansible-test-cloud-integration-vcenter7_1esxi-stable214_2_of_2 CANCELED :warning: ansible-galaxy-importer CANCELED
Build failed. https://ansible.softwarefactory-project.io/zuul/buildset/3f56601e0f1d4199bcedd9241ac8774a
:heavy_check_mark: ansible-tox-linters SUCCESS in 8m 41s :heavy_check_mark: build-ansible-collection SUCCESS in 9m 22s :x: ansible-test-cloud-integration-vcenter7_only-stable214 FAILURE in 15m 03s :warning: ansible-test-cloud-integration-vcenter7_2esxi-stable214 CANCELED :warning: ansible-test-cloud-integration-vcenter7_1esxi-stable214_1_of_2 CANCELED :warning: ansible-test-cloud-integration-vcenter7_1esxi-stable214_2_of_2 CANCELED :heavy_check_mark: ansible-galaxy-importer SUCCESS in 3m 46s
Build failed. https://ansible.softwarefactory-project.io/zuul/buildset/58fefc9f069b427392f6946ba1bb7022
:x: ansible-tox-linters POST_FAILURE in 9m 04s :warning: build-ansible-collection CANCELED :warning: ansible-test-cloud-integration-vcenter7_only-stable214 CANCELED :warning: ansible-test-cloud-integration-vcenter7_2esxi-stable214 CANCELED :warning: ansible-test-cloud-integration-vcenter7_1esxi-stable214_1_of_2 CANCELED :warning: ansible-test-cloud-integration-vcenter7_1esxi-stable214_2_of_2 CANCELED :warning: ansible-galaxy-importer CANCELED
recheck
Build failed. https://ansible.softwarefactory-project.io/zuul/buildset/73f1b68bfcaa442c97119f3837ebe1ad
:x: ansible-tox-linters FAILURE in 8m 42s :warning: build-ansible-collection CANCELED :warning: ansible-test-cloud-integration-vcenter7_only-stable214 CANCELED :warning: ansible-test-cloud-integration-vcenter7_2esxi-stable214 CANCELED :warning: ansible-test-cloud-integration-vcenter7_1esxi-stable214_1_of_2 CANCELED :warning: ansible-test-cloud-integration-vcenter7_1esxi-stable214_2_of_2 CANCELED :warning: ansible-galaxy-importer CANCELED
recheck
Build succeeded. https://ansible.softwarefactory-project.io/zuul/buildset/7f905fdf37c3446d874eac67e0c36653
:heavy_check_mark: ansible-tox-linters SUCCESS in 9m 17s :heavy_check_mark: build-ansible-collection SUCCESS in 9m 42s :heavy_check_mark: ansible-test-cloud-integration-vcenter7_only-stable214 SUCCESS in 21m 50s :heavy_check_mark: ansible-test-cloud-integration-vcenter7_2esxi-stable214 SUCCESS in 19m 46s :heavy_check_mark: ansible-test-cloud-integration-vcenter7_1esxi-stable214_1_of_2 SUCCESS in 1h 06m 20s :heavy_check_mark: ansible-test-cloud-integration-vcenter7_1esxi-stable214_2_of_2 SUCCESS in 56m 20s :heavy_check_mark: ansible-galaxy-importer SUCCESS in 4m 48s
Build failed. https://ansible.softwarefactory-project.io/zuul/buildset/01576d99235d4dfeb3fe2d34295a3469
:heavy_check_mark: ansible-tox-linters SUCCESS in 9m 37s :heavy_check_mark: build-ansible-collection SUCCESS in 10m 17s :warning: ansible-test-cloud-integration-vcenter7_only-stable215 CANCELED :x: ansible-test-cloud-integration-vcenter7_2esxi-stable215 FAILURE in 16m 08s :warning: ansible-test-cloud-integration-vcenter7_1esxi-stable215_1_of_2 CANCELED :warning: ansible-test-cloud-integration-vcenter7_1esxi-stable215_2_of_2 CANCELED :heavy_check_mark: ansible-galaxy-importer SUCCESS in 5m 25s
Build failed. https://ansible.softwarefactory-project.io/zuul/buildset/ccba6c651e0c4885b6e0cec1cb4cb299
:heavy_check_mark: ansible-tox-linters SUCCESS in 9m 21s :heavy_check_mark: build-ansible-collection SUCCESS in 10m 15s :x: ansible-test-cloud-integration-vcenter7_only-stable215 NODE_FAILURE Node request 200-0006211403 failed in 0s :x: ansible-test-cloud-integration-vcenter7_2esxi-stable215 NODE_FAILURE Node request 200-0006211404 failed in 0s :x: ansible-test-cloud-integration-vcenter7_1esxi-stable215_1_of_2 NODE_FAILURE Node request 200-0006211405 failed in 0s :x: ansible-test-cloud-integration-vcenter7_1esxi-stable215_2_of_2 NODE_FAILURE Node request 200-0006211406 failed in 0s :heavy_check_mark: ansible-galaxy-importer SUCCESS in 4m 51s
@Nina2244 FYI: I think the sanity tests should work now, this seems to fix the GH action.
However, it looks like we still have some problems with the integration tests :cry:
Build failed. https://ansible.softwarefactory-project.io/zuul/buildset/e1fa53f5d7744353910fdda4a48e2eda
:heavy_check_mark: ansible-tox-linters SUCCESS in 10m 36s :heavy_check_mark: build-ansible-collection SUCCESS in 11m 06s :warning: ansible-test-cloud-integration-vcenter7_only-stable216 CANCELED :x: ansible-test-cloud-integration-vcenter7_2esxi-stable216 FAILURE in 19m 58s :warning: ansible-test-cloud-integration-vcenter7_1esxi-stable216_1_of_2 CANCELED :warning: ansible-test-cloud-integration-vcenter7_1esxi-stable216_2_of_2 CANCELED :heavy_check_mark: ansible-galaxy-importer SUCCESS in 3m 29s
Build failed. https://ansible.softwarefactory-project.io/zuul/buildset/1a06a452169d4ca2b02e8f3a13ea9348
:heavy_check_mark: ansible-tox-linters SUCCESS in 11m 29s :heavy_check_mark: build-ansible-collection SUCCESS in 12m 03s :warning: ansible-test-cloud-integration-vcenter7_only-stable216 CANCELED :warning: ansible-test-cloud-integration-vcenter7_2esxi-stable216 CANCELED :warning: ansible-test-cloud-integration-vcenter7_1esxi-stable216_1_of_2 CANCELED :x: ansible-test-cloud-integration-vcenter7_1esxi-stable216_2_of_2 FAILURE in 14m 16s :heavy_check_mark: ansible-galaxy-importer SUCCESS in 3m 55s
Build failed. https://ansible.softwarefactory-project.io/zuul/buildset/24a71f61d7df4d2489af0c2f9a7377d9
:x: ansible-tox-linters FAILURE in 9m 42s :warning: build-ansible-collection CANCELED :warning: ansible-test-cloud-integration-vcenter7_only-stable216 CANCELED :warning: ansible-test-cloud-integration-vcenter7_2esxi-stable216 CANCELED :warning: ansible-test-cloud-integration-vcenter7_1esxi-stable216_1_of_2 CANCELED :warning: ansible-test-cloud-integration-vcenter7_1esxi-stable216_2_of_2 CANCELED :warning: ansible-galaxy-importer CANCELED
Build failed. https://ansible.softwarefactory-project.io/zuul/buildset/cf70ab4f0026477ca7fe71f23d39adbd
:heavy_check_mark: ansible-tox-linters SUCCESS in 9m 45s :heavy_check_mark: build-ansible-collection SUCCESS in 10m 17s :warning: ansible-test-cloud-integration-vcenter7_only-stable216 CANCELED :warning: ansible-test-cloud-integration-vcenter7_2esxi-stable216 CANCELED :x: ansible-test-cloud-integration-vcenter7_1esxi-stable216_1_of_2 FAILURE in 16m 23s :warning: ansible-test-cloud-integration-vcenter7_1esxi-stable216_2_of_2 CANCELED :heavy_check_mark: ansible-galaxy-importer SUCCESS in 4m 02s