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
The ERROR:
"msg": "GCP returned error: {'error': {'code': 400, 'message': 'VM has a Local SSD attached but an undefined value for discard-local-ssd. If using gcloud, please add --discard-local-ssd=false or --discard-local-ssd=true to your command.', 'errors': [{'message': 'VM has a Local SSD attached but an undefined value for discard-local-ssd. If using gcloud, please add --discard-local-ssd=false or --discard-local-ssd=true to your command.', 'domain': 'global', 'reason': 'badRequest'}]}}",
ISSUE TYPE
Bug Report
COMPONENT NAME
Google Cloud certified collection for Ansible Automation Platform.
ANSIBLE VERSION
Ansible Automation Platform 2.4 latest.
COLLECTION VERSION
1.3.0
CONFIGURATION
OS / ENVIRONMENT
RHEL 9
STEPS TO REPRODUCE
Trigger the above code in an ansible playbook.
---
- name: Shutdown a GCP vm instance by namehosts: localhostconnection: localgather_facts: falsetasks:
- name: Retrieve info for the GCP VM instancesgoogle.cloud.gcp_compute_instance_info:
project: "{{ gcp_project }}"zone: "{{ gcp_zone }}"auth_kind: serviceaccountregister: gcp_instance_info
- name: Stop the desired GCP VM instancegoogle.cloud.gcp_compute_instance:
project: "{{ gcp_project }}"zone: "{{ gcp_zone }}"auth_kind: serviceaccountstatus: "TERMINATED"deletion_protection: falsewhen: gcp_instance_info.resources[0].name == "{{ vm_name }}"
EXPECTED RESULTS
power off the virtual machine
ACTUAL RESULTS
ERROR MESSAGE
"msg": "GCP returned error: {'error': {'code': 400, 'message': 'VM has a Local SSD attached but an undefined value for discard-local-ssd. If using gcloud, please add --discard-local-ssd=false or --discard-local-ssd=true to your command.', 'errors': [{'message': 'VM has a Local SSD attached but an undefined value for discard-local-ssd. If using gcloud, please add --discard-local-ssd=false or --discard-local-ssd=true to your command.', 'domain': 'global', 'reason': 'badRequest'}]}}",
The text was updated successfully, but these errors were encountered:
SUMMARY
Using the following in a playbook to shut down a vm. It returns an error that is related to gcloud command line.
The ERROR:
"msg": "GCP returned error: {'error': {'code': 400, 'message': 'VM has a Local SSD attached but an undefined value for
discard-local-ssd
. If using gcloud, please add--discard-local-ssd=false
or--discard-local-ssd=true
to your command.', 'errors': [{'message': 'VM has a Local SSD attached but an undefined value fordiscard-local-ssd
. If using gcloud, please add--discard-local-ssd=false
or--discard-local-ssd=true
to your command.', 'domain': 'global', 'reason': 'badRequest'}]}}",ISSUE TYPE
COMPONENT NAME
Google Cloud certified collection for Ansible Automation Platform.
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
RHEL 9
STEPS TO REPRODUCE
Trigger the above code in an ansible playbook.
EXPECTED RESULTS
power off the virtual machine
ACTUAL RESULTS
ERROR MESSAGE
"msg": "GCP returned error: {'error': {'code': 400, 'message': 'VM has a Local SSD attached but an undefined value for
discard-local-ssd
. If using gcloud, please add--discard-local-ssd=false
or--discard-local-ssd=true
to your command.', 'errors': [{'message': 'VM has a Local SSD attached but an undefined value fordiscard-local-ssd
. If using gcloud, please add--discard-local-ssd=false
or--discard-local-ssd=true
to your command.', 'domain': 'global', 'reason': 'badRequest'}]}}",The text was updated successfully, but these errors were encountered: