ansible-collections / ansible-collections/google.cloud
"Please install google-cloud-storage library" error message when Python modules are installed
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 105
- Forks
- 144
- Avg merge
- 5d 10h
- Merged PRs (30d)
- 4
Description
SUMMARY
We are receiving an error message saying "please install google-cloud-storage library" when the Python module is installed.
ISSUE TYPE
- Bug Report
COMPONENT NAME
google.cloud.gcp_storage_object
ANSIBLE VERSION
ansible-core 2.13.7
COLLECTION VERSION
google.cloud 1.1.2
CONFIGURATION
Running on Ansible Automation Platform 2.2 with default config
OS / ENVIRONMENT
RHEL For Edge 9.0
STEPS TO REPRODUCE
- name: transfer file to GCP
google.cloud.gcp_storage_object:
action: upload
src: "{{ file_name }}"
auth_kind: serviceaccount
project: "{{ gcp_project }}"
bucket: "{{ gcp_bucket }}"
service_account_file: /tmp/service_account.pem
dest: "~/{{ file_name }}"
EXPECTED RESULTS
The playbook uploads specified files to GCP bucket specified
ACTUAL RESULTS
fatal: [my-host]: FAILED! => {
"changed": false,
"invocation": {
"module_args": {
"action": "upload",
"auth_kind": "serviceaccount",
"bucket": "bucket_name",
"dest": "~/tmp/test.txt",
"env_type": null,
"project": "default-project",
"scopes": null,
"service_account_contents": null,
"service_account_email": null,
"service_account_file": "/tmp/service_account.pem",
"src": "/tmp/source.tgz"
}
},
"msg": "Please install the google-cloud-storage Python library"
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the google.cloud.gcp_storage_object module entry point and reproduce the provided upload playbook in the stated environment. Trace why the installed google-cloud-storage library is not detected, then verify the upload succeeds without the misleading installation error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- google-cloud, python
- Domain
- cloud
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 64/100