Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
vladi14 opened this issue Aug 5, 2024 · 0 comments
Labels

Comments

@vladi14
Copy link

vladi14 commented Aug 5, 2024

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

@vladi14 vladi14 added the bug label Aug 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant