You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
When filing a bug, please include the following headings if possible. Any
example text in this template can be deleted.
Overview of the Issue
I have a simple build file to create a image in openstack provider but i get source code not available errors from usage in a source block
Reproduction Steps
I create 2 file:
build file
define variable file
Then 1 have a file to declare variable
First i run packer init to download 2 plugin:
packer-plugin-openstack_v1.1.2_x5.0_linux_amd64
packer-plugin-ansible_v1.1.1_x5.0_linux_amd64
Then i run the packer build command with the declare variable file
I run the command PACKER_LOG=1 packer validate --only openstack.linux-ubuntu -var-file=config/build.pkrvars.hcl builds/linux/ubuntu/20-04-lts/. and its show
2024/05/02 15:44:45 [INFO] Packer version: 1.10.1 [go1.20.12 linux amd64]
2024/05/02 15:44:45 [TRACE] discovering plugins in /usr/bin
2024/05/02 15:44:45 [TRACE] discovering plugins in .
2024/05/02 15:44:45 [TRACE] discovering plugins in /root/.config/packer/plugins
2024/05/02 15:44:45 [INFO] Discovered potential plugin: ansible = /root/.config/packer/plugins/github.com/hashicorp/ansible/packer-plugin-ansible_v1.1.1_x5.0_linux_amd64
2024/05/02 15:44:45 [INFO] Discovered potential plugin: openstack = /root/.config/packer/plugins/github.com/hashicorp/openstack/packer-plugin-openstack_v1.1.1_x5.0_linux_amd64
2024/05/02 15:44:45 [INFO] Discovered potential plugin: openstack = /root/.config/packer/plugins/github.com/hashicorp/openstack/packer-plugin-openstack_v1.1.2_x5.0_linux_amd64
2024/05/02 15:44:45 found external [-packer-default-plugin-name- local] provisioner from ansible plugin
2024/05/02 15:44:46 [INFO] found external [-packer-default-plugin-name-] builders from openstack plugin
2024/05/02 15:44:46 [INFO] PACKER_CONFIG env var not set; checking the default config file path
2024/05/02 15:44:46 [INFO] PACKER_CONFIG env var set; attempting to open config file: /root/.packerconfig
2024/05/02 15:44:46 [WARN] Config file doesn't exist: /root/.packerconfig
2024/05/02 15:44:46 [INFO] Setting cache directory: /root/.cache/packer
2024/05/02 15:44:46 [TRACE] listing potential installations for "github.com/hashicorp/openstack" that match "= 1.1.2". plugingetter.ListInstallationsOptions{FromFolders:[]string{"/usr/bin", ".", "/root/.config/packer/plugins"}, BinaryInstallationOptions:plugingetter.BinaryInstallationOptions{APIVersionMajor:"5", APIVersionMinor:"0", OS:"linux", ARCH:"amd64", Ext:"", Checksummers:[]plugingetter.Checksummer{plugingetter.Checksummer{Type:"sha256", Hash:(*sha256.digest)(0xc000464980)}}}}
2024/05/02 15:44:46 [TRACE] version "v1.1.1" of file "/root/.config/packer/plugins/github.com/hashicorp/openstack/packer-plugin-openstack_v1.1.1_x5.0_linux_amd64" does not match constraint "= 1.1.2"
2024/05/02 15:44:46 [TRACE] Found the following "github.com/hashicorp/openstack" installations: [{/root/.config/packer/plugins/github.com/hashicorp/openstack/packer-plugin-openstack_v1.1.2_x5.0_linux_amd64 v1.1.2}]
2024/05/02 15:44:46 [INFO] found external [-packer-default-plugin-name-] builders from openstack plugin
2024/05/02 15:44:46 [TRACE] listing potential installations for "github.com/hashicorp/ansible" that match ">= 1.1.1". plugingetter.ListInstallationsOptions{FromFolders:[]string{"/usr/bin", ".", "/root/.config/packer/plugins"}, BinaryInstallationOptions:plugingetter.BinaryInstallationOptions{APIVersionMajor:"5", APIVersionMinor:"0", OS:"linux", ARCH:"amd64", Ext:"", Checksummers:[]plugingetter.Checksummer{plugingetter.Checksummer{Type:"sha256", Hash:(*sha256.digest)(0xc000464980)}}}}
2024/05/02 15:44:46 [TRACE] Found the following "github.com/hashicorp/ansible" installations: [{/root/.config/packer/plugins/github.com/hashicorp/ansible/packer-plugin-ansible_v1.1.1_x5.0_linux_amd64 v1.1.1}]
2024/05/02 15:44:46 found external [-packer-default-plugin-name- local] provisioner from ansible plugin
2024/05/02 15:44:46 [TRACE] validateValue: not active for build_password_encrypted, so skipping
2024/05/02 15:44:46 [TRACE] validateValue: not active for build_key, so skipping
2024/05/02 15:44:46 [TRACE] validateValue: not active for os_insecure_connection, so skipping
2024/05/02 15:44:46 [TRACE] validateValue: not active for os_region_name, so skipping
2024/05/02 15:44:46 [TRACE] validateValue: not active for communicator_proxy_password, so skipping
2024/05/02 15:44:46 [TRACE] validateValue: not active for communicator_port, so skipping
2024/05/02 15:44:46 [TRACE] validateValue: not active for communicator_timeout, so skipping
2024/05/02 15:44:46 [TRACE] validateValue: not active for build_username, so skipping
2024/05/02 15:44:46 [TRACE] validateValue: not active for vm_guest_os_timezone, so skipping
2024/05/02 15:44:46 [TRACE] validateValue: not active for vm_disk_size, so skipping
2024/05/02 15:44:46 [TRACE] validateValue: not active for os_credential_secret, so skipping
2024/05/02 15:44:46 [TRACE] validateValue: not active for communicator_proxy_host, so skipping
2024/05/02 15:44:46 [TRACE] validateValue: not active for os_credential_id, so skipping
2024/05/02 15:44:46 [TRACE] validateValue: not active for communicator_proxy_port, so skipping
2024/05/02 15:44:46 [TRACE] validateValue: not active for vm_guest_os_language, so skipping
2024/05/02 15:44:46 [TRACE] validateValue: not active for vm_zone, so skipping
2024/05/02 15:44:46 [TRACE] validateValue: not active for vm_source_image, so skipping
2024/05/02 15:44:46 [TRACE] validateValue: not active for vm_flavor_name, so skipping
2024/05/02 15:44:46 [TRACE] validateValue: not active for os_endpoint_type, so skipping
2024/05/02 15:44:46 [TRACE] validateValue: not active for build_password, so skipping
2024/05/02 15:44:46 [TRACE] validateValue: not active for vm_guest_os_keyboard, so skipping
2024/05/02 15:44:46 [TRACE] validateValue: not active for vm_network_id, so skipping
2024/05/02 15:44:46 [TRACE] validateValue: not active for os_url_endpoint, so skipping
2024/05/02 15:44:46 [TRACE] validateValue: not active for communicator_proxy_username, so skipping
2024/05/02 15:44:46 [INFO] Starting external plugin /<sensitive>/.config/packer/plugins/github.com/hashicorp/openstack/packer-plugin-openstack_v1.1.2_x5.0_linux_amd64 start builder -packer-default-plugin-name-
2024/05/02 15:44:46 Starting plugin: /<sensitive>/.config/packer/plugins/github.com/hashicorp/openstack/packer-plugin-openstack_v1.1.2_x5.0_linux_amd64 []string{"/<sensitive>/.config/packer/plugins/github.com/hashicorp/openstack/packer-plugin-openstack_v1.1.2_x5.0_linux_amd64", "start", "builder", "-packer-default-plugin-name-"}
2024/05/02 15:44:46 Waiting for RPC address for: /<sensitive>/.config/packer/plugins/github.com/hashicorp/openstack/packer-plugin-openstack_v1.1.2_x5.0_linux_amd64
2024/05/02 15:44:46 Received unix RPC address for /<sensitive>/.config/packer/plugins/github.com/hashicorp/openstack/packer-plugin-openstack_v1.1.2_x5.0_linux_amd64: addr is /tmp/packer-plugin3617312075
2024/05/02 15:44:46 packer-plugin-openstack_v1.1.2_x5.0_linux_amd64 plugin: 2024/05/02 15:44:46 Plugin address: unix /tmp/packer-plugin3617312075
2024/05/02 15:44:46 packer-plugin-openstack_v1.1.2_x5.0_linux_amd64 plugin: 2024/05/02 15:44:46 Waiting for connection...
2024/05/02 15:44:46 packer-plugin-openstack_v1.1.2_x5.0_linux_amd64 plugin: 2024/05/02 15:44:46 Serving a plugin connection...
2024/05/02 15:44:46 packer-plugin-openstack_v1.1.2_x5.0_linux_amd64 plugin: 2024/05/02 15:44:46 [TRACE] starting builder -packer-default-plugin-name-
* Resource not found
on builds/linux/ubuntu/20-04-lts/linux-ubuntu.pkr.hcl line 34:
(source code not available)
Error: 1 error(s) occurred:
* Resource not found
on builds/linux/ubuntu/20-04-lts/linux-ubuntu.pkr.hcl line 34:
(source code not available)
2024/05/02 15:44:46 [INFO] (telemetry) Finalizing.
2024/05/02 15:44:47 waiting for all plugin processes to complete...
2024/05/02 15:44:47 /<sensitive>/.config/packer/plugins/github.com/hashicorp/openstack/packer-plugin-openstack_v1.1.2_x5.0_linux_amd64: plugin process exited
The text was updated successfully, but these errors were encountered:
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Community Note
When filing a bug, please include the following headings if possible. Any
example text in this template can be deleted.
Overview of the Issue
I have a simple build file to create a image in openstack provider but i get
source code not available
errors from usage in asource
blockReproduction Steps
I create 2 file:
Then 1 have a file to declare variable
First i run
packer init
to download 2 plugin:Then i run the
packer build
command with the declare variable filePacker version
packer version 1.10.1-1
Simplified Packer Template
The build file:
Operating system and Environment details
Ubuntu 20.04.6 LTS
Log Fragments and crash.log files
I run the command
PACKER_LOG=1 packer validate --only openstack.linux-ubuntu -var-file=config/build.pkrvars.hcl builds/linux/ubuntu/20-04-lts/.
and its showThe text was updated successfully, but these errors were encountered: