hashicorp / hashicorp/packer-plugin-googlecompute

googlecompute-export uses a random image after it has built a custom image

Open
#6 1 comment 0 reactions 0 assignees View on GitHub
bug builder/google post-processor/googlecompute-export track-internal
Dominant language
Go
Stars
33
Forks
72
Avg merge
6h 47m
Merged PRs (30d)
3

Description

_This issue was originally opened by @saeeda as hashicorp/packer#8376. It was migrated here as a result of the [Packer plugin split](https://github.com/hashicorp/packer/issues/8610#issuecomment-770034737). The original body of the issue is below._


#### Overview of the Issue

When exporting a custom built image using `googlecompute-export`, it uses a different image to build the temporary instance in `googlecompute-export): Using image` step.

#### Reproduction Steps

Create a custom image using the `googlecompute` similar to following:
[Sample-packer-config.md](https://gist.github.com/saeeda/51f43cfd6c590b3acd03820d30d1d621)

### Packer version

From `PACKER_VERSION=1.4.4`

### Simplified Packer Buildfile
[Sample-packer-config.md](https://gist.github.com/saeeda/51f43cfd6c590b3acd03820d30d1d621)

### Operating system and Environment details

Running by Jenkins() inside a docker agent, running docker.
CentOS Linux 7
Docker version 18.09.6
Jenkins ver. 2.164.2

### Log Fragments and crash.log files

As shown in the gist above, packer uses an image for creating an image, that does not reflect the custom image being created by packer.
The image name neither exists in the google project where packer is run, nor where custom image is built.
```
==> googlecompute (googlecompute-export): Using image: random-image-name
```

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.