You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Collection Version
---------------------- -------
community.digitalocean 1.8.0
CONFIGURATION
(no output)
OS / ENVIRONMENT
Ubuntu 20.04 in a Docker Containe running inside WSL2 (Ubuntu 20.04 image, Windows10 host)
STEPS TO REPRODUCE
# idempotent
- community.digitalocean.digital_ocean_block_storage:
command: createstate: presentoauth_token: "API_KEY"volume_name: vol01region: ams3block_size: 10# idempotent
- community.digitalocean.digital_ocean_block_storage:
command: createstate: absentoauth_token: "API_KEY"volume_name: vol01region: ams3# idempotent
- community.digitalocean.digital_ocean_block_storage:
command: attachstate: presentoauth_token: "API_KEY"volume_name: vol01region: ams3droplet_id: "droplet1"# NOT idempotent# after 1st time:# error detaching volume from droplet: volume is not attached to droplet
- community.digitalocean.digital_ocean_block_storage:
command: attachstate: absentoauth_token: "API_KEY"volume_name: vol01region: ams3droplet_id: "droplet1"
EXPECTED RESULTS
Each command should be able to be executed in isolation several times consecutively without errors.
ACTUAL RESULTS
The last example (detaching a volume from a droplet) works only the first time, giving the error error detaching volume from droplet: volume is not attached to droplet from the 2nd time it runs onward, making the module not idempotent.
The text was updated successfully, but these errors were encountered:
SUMMARY
The DigitalOcean Block Storage module is NOT idempotent when detaching (creating, destroying and attaching are idempotent).
ISSUE TYPE
COMPONENT NAME
digital_ocean_block_storage
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
(no output)
OS / ENVIRONMENT
Ubuntu 20.04 in a Docker Containe running inside WSL2 (Ubuntu 20.04 image, Windows10 host)
STEPS TO REPRODUCE
EXPECTED RESULTS
Each command should be able to be executed in isolation several times consecutively without errors.
ACTUAL RESULTS
The last example (detaching a volume from a droplet) works only the first time, giving the error
error detaching volume from droplet: volume is not attached to droplet
from the 2nd time it runs onward, making the module not idempotent.The text was updated successfully, but these errors were encountered: