ansible-collections / ansible-collections/google.cloud
gcp_compute_disk has no way to specify guest os features, like gcloud can
- Dominant language
- Python
- Stars
- 105
- Forks
- 144
- Avg merge
- 5d 10h
- Merged PRs (30d)
- 4
Description
##### SUMMARY
`gcloud compute disks create` provides a `--guest-os-features` option, which can be used to provide flags on the created disk if used as a boot disk, such as `MULTI_IP_SUBNET` and `VIRTIO_SCSI_MULTIQUEUE`. Currently, there is no ability to pass these flags in `gcp_compute_disk`.
The only way to do this in Ansible today is to create an intermediate disk image (`gcp_compute_image` module provides a `guest_os_features` option), which is a wasteful unnecessary step when creating the disk from, eg a snapshot (it works fine from gcloud cli disk create)
##### ISSUE TYPE
- Feature Idea
##### COMPONENT NAME
google.cloud.gcp_compute_disk
##### ADDITIONAL INFORMATION
- avoids unnecessary step of creating/uploading an image, just to ferry in flags to the disk
- feature parity with the gcloud cli for disk create
Contributor guide
Research direction
Start with the google.cloud.gcp_compute_disk component and compare its disk-creation parameters with the gcloud compute disks create --guest-os-features option described in the issue. Trace how gcp_compute_image exposes guest_os_features, then add equivalent disk support and verify that the requested feature flags can be passed when creating a disk from a snapshot.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- google-cloud, python
- Domain
- cloud
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 65/100