Skip to content

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

@vladi14

Description

@vladi14

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions