hashicorp / hashicorp/packer-plugin-googlecompute

"post-processors" - googlecomoute-export bug with resource.networkInterfaces[0].subnetwork

Open
#233 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Go
Stars
33
Forks
72
Avg merge
6h 47m
Merged PRs (30d)
3

Description

When filing a bug, please include the following headings if possible. Any
example text in this template can be deleted.

#### Overview of the Issue

zone is missing from subnetwork request when passing all arguments.
'resource.networkInterfaces[0].subnetwork': 'projects/PROIJECT_ID/regions//subnetworks/MY_SUB_NETWORK'

### Plugin and Packer version
latest

### Simplified Packer Buildfile

"post-processors": [
{
"type": "googlecompute-export",
"paths": ["gs://vlad-packer-test/{{user `image_version`}}.tar.gz"],
"keep_input_artifact": true,
"project_id": "{{user `project_id`}}",
"zone": "{{ user `zone` }}",
"network": "{{ user `network` }}",
"subnetwork": "{{ user `subnetwork` }}",
"machine_type": "{{ user `machine_type` }}",
"service_account_email": "{{ user `service_account_email` }}"
}
]

### Operating system and Environment details
ubuntu 2004

### Log Fragments and crash.log files

==> googlecompute: Running post-processor: googlecompute-export
==> googlecompute (googlecompute-export): Exporting image vlad-testing-v20240805 to destination: [gs://vlad-packer-test/20240805.tar.gz]
==> googlecompute (googlecompute-export): Creating temporary RSA SSH key for instance...
==> googlecompute (googlecompute-export): Using image: debian-9-worker-v20200616
==> googlecompute (googlecompute-export): Creating instance...
googlecompute (googlecompute-export): Loading zone: us-central1-c
googlecompute (googlecompute-export): Loading machine type: n1-standard-1
googlecompute (googlecompute-export): Requesting instance creation...
==> googlecompute (googlecompute-export): Error creating instance: googleapi: Error 400: Invalid value for field 'resource.networkInterfaces[0].subnetwork': 'projects/PROJECT_ID/regions//subnetworks/MY_SUB_NETOWRK'. The URL is malformed., invalid

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.