Created
July 12, 2023 20:12
-
-
Save MuriloKomirchuk/25d42cbd42ef7f7f2b78149e34369432 to your computer and use it in GitHub Desktop.
Build fails with error "Resource not found" after Packer terminates the source server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ packer build -var-file "packer/vars/${TARGET_ENV}.pkrvars.hcl" packer/ | |
2023/07/12 18:38:44 [INFO] Packer version: 1.8.6 [go1.18.9 linux amd64] | |
2023/07/12 18:38:44 [TRACE] discovering plugins in /bin | |
2023/07/12 18:38:44 [TRACE] discovering plugins in /root/.config/packer/plugins | |
2023/07/12 18:38:44 [TRACE] discovering plugins in . | |
2023/07/12 18:38:44 [TRACE] discovering plugins in X | |
2023/07/12 18:38:44 [DEBUG] Discovered plugin: openstack = plugins/github.com/hashicorp/openstack/packer-plugin-openstack_v1.1.0_x5.0_linux_amd64 | |
2023/07/12 18:38:44 [DEBUG] Discovered plugin: openstack = plugins/github.com/hashicorp/openstack/packer-plugin-openstack_v1.1.1_x5.0_linux_amd64 | |
2023/07/12 18:38:44 [INFO] found external [-packer-default-plugin-name-] builders from openstack plugin | |
2023/07/12 18:38:44 [INFO] PACKER_CONFIG env var not set; checking the default config file path | |
2023/07/12 18:38:44 [INFO] PACKER_CONFIG env var set; attempting to open config file: /root/.packerconfig | |
2023/07/12 18:38:44 [WARN] Config file doesn't exist: /root/.packerconfig | |
2023/07/12 18:38:44 [INFO] Setting cache directory: /root/.cache/packer | |
e: Running in background, not using a TTY | |
2023/07/12 18:38:44 [TRACE] listing potential installations for "github.com/hashicorp/openstack" that match "1.1.1". plugingetter.ListInstallationsOptions{FromFolders:[]string{"/bin/packer", ".", "/root/.config/packer/plugins", "/plugins"}, BinaryInstallationOptions:plugingetter.BinaryInstallationOptions{APIVersionMajor:"5", APIVersionMinor:"0", OS:"linux", ARCH:"amd64", Ext:"", Checksummers:[]plugingetter.Checksummer{plugingetter.Checksummer{Type:"sha256", Hash:(*sha256.digest)(0xc000856280)}}}} | |
2023/07/12 18:38:44 [TRACE] version "v1.1.0" of file "plugins/github.com/hashicorp/openstack/packer-plugin-openstack_v1.1.0_x5.0_linux_amd64" does not match constraint "1.1.1" | |
2023/07/12 18:38:44 [TRACE] Found the following "github.com/hashicorp/openstack" installations: [{plugins/github.com/hashicorp/openstack/packer-plugin-openstack_v1.1.1_x5.0_linux_amd64 v1.1.1}] | |
2023/07/12 18:38:44 [INFO] found external [-packer-default-plugin-name-] builders from openstack plugin | |
2023/07/12 18:38:44 [TRACE] validateValue: not active for ssh_read_write_timeout, so skipping | |
2023/07/12 18:38:44 [TRACE] validateValue: not active for skip_create_image, so skipping | |
2023/07/12 18:38:44 [TRACE] validateValue: not active for image_disk_format, so skipping | |
2023/07/12 18:38:44 [TRACE] validateValue: not active for network_id, so skipping | |
2023/07/12 18:38:44 [TRACE] validateValue: not active for image_visibility, so skipping | |
2023/07/12 18:38:44 [TRACE] validateValue: not active for galaxy_file, so skipping | |
2023/07/12 18:38:44 [TRACE] validateValue: not active for user_data_file, so skipping | |
2023/07/12 18:38:44 [TRACE] validateValue: not active for image_min_disk, so skipping | |
2023/07/12 18:38:44 [TRACE] validateValue: not active for image_name, so skipping | |
2023/07/12 18:38:44 [TRACE] validateValue: not active for use_blockstorage_volume, so skipping | |
2023/07/12 18:38:44 [TRACE] validateValue: not active for source_image, so skipping | |
2023/07/12 18:38:44 [TRACE] validateValue: not active for config_drive, so skipping | |
2023/07/12 18:38:44 [TRACE] validateValue: not active for ssh_username, so skipping | |
2023/07/12 18:38:44 [TRACE] validateValue: not active for ssh_certificate_file, so skipping | |
2023/07/12 18:38:44 [TRACE] validateValue: not active for image_tags, so skipping | |
2023/07/12 18:38:44 [TRACE] validateValue: not active for playbook_file, so skipping | |
2023/07/12 18:38:44 [TRACE] validateValue: not active for flavor, so skipping | |
2023/07/12 18:38:44 [TRACE] validateValue: not active for insecure, so skipping | |
2023/07/12 18:38:44 [TRACE] validateValue: not active for volume_size, so skipping | |
2023/07/12 18:38:44 [TRACE] validateValue: not active for use_proxy, so skipping | |
2023/07/12 18:38:44 [TRACE] validateValue: not active for extra_arguments, so skipping | |
2023/07/12 18:38:44 [TRACE] Starting external plugin plugins/github.com/hashicorp/openstack/packer-plugin-openstack_v1.1.1_x5.0_linux_amd64 start builder -packer-default-plugin-name- | |
2023/07/12 18:38:44 Starting plugin: plugins/github.com/hashicorp/openstack/packer-plugin-openstack_v1.1.1_x5.0_linux_amd64 []string{"plugins/github.com/hashicorp/openstack/packer-plugin-openstack_v1.1.1_x5.0_linux_amd64", "start", "builder", "-packer-default-plugin-name-"} | |
2023/07/12 18:38:44 Waiting for RPC address for: plugins/github.com/hashicorp/openstack/packer-plugin-openstack_v1.1.1_x5.0_linux_amd64 | |
2023/07/12 18:38:44 Received unix RPC address for plugins/github.com/hashicorp/openstack/packer-plugin-openstack_v1.1.1_x5.0_linux_amd64: addr is /tmp/packer-plugin775340944 | |
2023/07/12 18:38:44 packer-plugin-openstack_v1.1.1_x5.0_linux_amd64 plugin: 2023/07/12 18:38:44 Plugin address: unix /tmp/packer-plugin775340944 | |
2023/07/12 18:38:44 packer-plugin-openstack_v1.1.1_x5.0_linux_amd64 plugin: 2023/07/12 18:38:44 Waiting for connection... | |
2023/07/12 18:38:44 packer-plugin-openstack_v1.1.1_x5.0_linux_amd64 plugin: 2023/07/12 18:38:44 Serving a plugin connection... | |
2023/07/12 18:38:44 packer-plugin-openstack_v1.1.1_x5.0_linux_amd64 plugin: 2023/07/12 18:38:44 [TRACE] starting builder -packer-default-plugin-name- | |
2023/07/12 18:38:47 [ERR] Checkpoint error: Get "https://checkpoint-api.hashicorp.com/v1/check/packer?arch=amd64&os=linux&signature=b938b153-6db9-b5df-c8f7-331b0eeaded4&version=1.8.6": context deadline exceeded (Client.Timeout exceeded while awaiting headers) | |
2023/07/12 18:38:49 [TRACE] Starting internal plugin packer-provisioner-shell | |
2023/07/12 18:38:49 Starting plugin: /bin/packer []string{"/bin/packer", "plugin", "packer-provisioner-shell"} | |
2023/07/12 18:38:49 Waiting for RPC address for: /bin/packer | |
2023/07/12 18:38:49 packer-provisioner-shell plugin: [INFO] Packer version: 1.8.6 [go1.18.9 linux amd64] | |
2023/07/12 18:38:49 packer-provisioner-shell plugin: [INFO] PACKER_CONFIG env var not set; checking the default config file path | |
2023/07/12 18:38:49 packer-provisioner-shell plugin: [INFO] PACKER_CONFIG env var set; attempting to open config file: /root/.packerconfig | |
2023/07/12 18:38:49 packer-provisioner-shell plugin: [WARN] Config file doesn't exist: /root/.packerconfig | |
2023/07/12 18:38:49 packer-provisioner-shell plugin: [INFO] Setting cache directory: /root/.cache/packer | |
2023/07/12 18:38:49 packer-provisioner-shell plugin: args: []string{"packer-provisioner-shell"} | |
2023/07/12 18:38:49 packer-provisioner-shell plugin: Plugin address: unix /tmp/packer-plugin1460874083 | |
2023/07/12 18:38:49 packer-provisioner-shell plugin: Waiting for connection... | |
2023/07/12 18:38:49 Received unix RPC address for /bin/packer: addr is /tmp/packer-plugin1460874083 | |
2023/07/12 18:38:49 packer-provisioner-shell plugin: Serving a plugin connection... | |
2023/07/12 18:38:49 [TRACE] Starting internal plugin packer-provisioner-ansible | |
2023/07/12 18:38:49 Starting plugin: /bin/packer []string{"/bin/packer", "plugin", "packer-provisioner-ansible"} | |
2023/07/12 18:38:49 Waiting for RPC address for: /bin/packer | |
2023/07/12 18:38:49 packer-provisioner-ansible plugin: [INFO] Packer version: 1.8.6 [go1.18.9 linux amd64] | |
2023/07/12 18:38:49 packer-provisioner-ansible plugin: [INFO] PACKER_CONFIG env var not set; checking the default config file path | |
2023/07/12 18:38:49 packer-provisioner-ansible plugin: [INFO] PACKER_CONFIG env var set; attempting to open config file: /root/.packerconfig | |
2023/07/12 18:38:49 packer-provisioner-ansible plugin: [WARN] Config file doesn't exist: /root/.packerconfig | |
2023/07/12 18:38:49 packer-provisioner-ansible plugin: [INFO] Setting cache directory: /root/.cache/packer | |
2023/07/12 18:38:49 packer-provisioner-ansible plugin: args: []string{"packer-provisioner-ansible"} | |
2023/07/12 18:38:49 packer-provisioner-ansible plugin: Plugin address: unix /tmp/packer-plugin3794600932 | |
2023/07/12 18:38:49 packer-provisioner-ansible plugin: Waiting for connection... | |
2023/07/12 18:38:49 Received unix RPC address for /bin/packer: addr is /tmp/packer-plugin3794600932 | |
2023/07/12 18:38:49 packer-provisioner-ansible plugin: Serving a plugin connection... | |
2023/07/12 18:38:50 packer-provisioner-ansible plugin: ansible-playbook version: 2.13.6 | |
2023/07/12 18:38:50 [TRACE] Starting internal plugin packer-post-processor-manifest | |
2023/07/12 18:38:50 Starting plugin: /bin/packer []string{"/bin/packer", "plugin", "packer-post-processor-manifest"} | |
2023/07/12 18:38:50 Waiting for RPC address for: /bin/packer | |
2023/07/12 18:38:50 packer-post-processor-manifest plugin: [INFO] Packer version: 1.8.6 [go1.18.9 linux amd64] | |
2023/07/12 18:38:50 packer-post-processor-manifest plugin: [INFO] PACKER_CONFIG env var not set; checking the default config file path | |
2023/07/12 18:38:50 packer-post-processor-manifest plugin: [INFO] PACKER_CONFIG env var set; attempting to open config file: /root/.packerconfig | |
2023/07/12 18:38:50 packer-post-processor-manifest plugin: [WARN] Config file doesn't exist: /root/.packerconfig | |
2023/07/12 18:38:50 packer-post-processor-manifest plugin: [INFO] Setting cache directory: /root/.cache/packer | |
2023/07/12 18:38:50 packer-post-processor-manifest plugin: args: []string{"packer-post-processor-manifest"} | |
2023/07/12 18:38:50 Received unix RPC address for /bin/packer: addr is /tmp/packer-plugin1125673034 | |
2023/07/12 18:38:50 packer-post-processor-manifest plugin: Plugin address: unix /tmp/packer-plugin1125673034 | |
2023/07/12 18:38:50 packer-post-processor-manifest plugin: Waiting for connection... | |
2023/07/12 18:38:50 packer-post-processor-manifest plugin: Serving a plugin connection... | |
2023/07/12 18:38:50 Build debug mode: false | |
2023/07/12 18:38:50 Force build: false | |
2023/07/12 18:38:50 On error: | |
2023/07/12 18:38:50 Waiting on builds to complete... | |
2023/07/12 18:38:50 Starting build run: OL8 Custom Image.openstack.ol8 | |
2023/07/12 18:38:50 Running builder: | |
2023/07/12 18:38:50 [INFO] (telemetry) Starting builder openstack.ol8 | |
OL8 Custom Image.openstack.ol8: output will be in this color. | |
==> OL8 Custom Image.openstack.ol8: Loading flavor: X | |
2023/07/12 18:38:50 packer-plugin-openstack_v1.1.1_x5.0_linux_amd64 plugin: 2023/07/12 18:38:50 [INFO] Loading flavor by ID: X | |
2023/07/12 18:38:52 packer-provisioner-shell plugin: [ERR] Checkpoint error: Get "https://checkpoint-api.hashicorp.com/v1/check/packer?arch=amd64&os=linux&signature=b938b153-6db9-b5df-c8f7-331b0eeaded4&version=1.8.6": context deadline exceeded (Client.Timeout exceeded while awaiting headers) | |
2023/07/12 18:38:52 packer-provisioner-ansible plugin: [ERR] Checkpoint error: Get "https://checkpoint-api.hashicorp.com/v1/check/packer?arch=amd64&os=linux&signature=b938b153-6db9-b5df-c8f7-331b0eeaded4&version=1.8.6": context deadline exceeded (Client.Timeout exceeded while awaiting headers) | |
2023/07/12 18:38:53 packer-post-processor-manifest plugin: [ERR] Checkpoint error: Get "https://checkpoint-api.hashicorp.com/v1/check/packer?arch=amd64&os=linux&signature=b938b153-6db9-b5df-c8f7-331b0eeaded4&version=1.8.6": context deadline exceeded (Client.Timeout exceeded while awaiting headers) | |
2023/07/12 18:38:55 packer-plugin-openstack_v1.1.1_x5.0_linux_amd64 plugin: 2023/07/12 18:38:55 [ERROR] Failed to find flavor by ID: Resource not found | |
2023/07/12 18:38:55 packer-plugin-openstack_v1.1.1_x5.0_linux_amd64 plugin: 2023/07/12 18:38:55 [INFO] Loading flavor by name: X | |
OL8 Custom Image.openstack.ol8: Verified flavor. ID: 8aec38b5-53c3-45b3-9cb9-c4c0aca244f1 | |
==> OL8 Custom Image.openstack.ol8: Creating temporary RSA SSH key for instance... | |
==> OL8 Custom Image.openstack.ol8: Creating temporary keypair: YYYYYY ... | |
==> OL8 Custom Image.openstack.ol8: Created temporary keypair: YYYYYY | |
==> OL8 Custom Image.openstack.ol8: Creating volume... | |
==> OL8 Custom Image.openstack.ol8: Waiting for volume packer_ZZZZZZZZZZZZZ (volume id: ZZZZZZZZZZZZZ) to become available... | |
2023/07/12 18:39:17 packer-plugin-openstack_v1.1.1_x5.0_linux_amd64 plugin: 2023/07/12 18:39:17 Waiting for volume creation status: creating | |
2023/07/12 18:39:24 packer-plugin-openstack_v1.1.1_x5.0_linux_amd64 plugin: 2023/07/12 18:39:24 Waiting for volume creation status: creating | |
2023/07/12 18:39:31 packer-plugin-openstack_v1.1.1_x5.0_linux_amd64 plugin: 2023/07/12 18:39:31 Waiting for volume creation status: downloading | |
2023/07/12 18:39:38 packer-plugin-openstack_v1.1.1_x5.0_linux_amd64 plugin: 2023/07/12 18:39:38 Waiting for volume creation status: downloading | |
2023/07/12 18:39:45 packer-plugin-openstack_v1.1.1_x5.0_linux_amd64 plugin: 2023/07/12 18:39:45 Waiting for volume creation status: downloading | |
2023/07/12 18:39:53 packer-plugin-openstack_v1.1.1_x5.0_linux_amd64 plugin: 2023/07/12 18:39:53 Waiting for volume creation status: downloading | |
2023/07/12 18:40:00 packer-plugin-openstack_v1.1.1_x5.0_linux_amd64 plugin: 2023/07/12 18:40:00 Waiting for volume creation status: downloading | |
2023/07/12 18:40:07 packer-plugin-openstack_v1.1.1_x5.0_linux_amd64 plugin: 2023/07/12 18:40:07 Waiting for volume creation status: downloading | |
2023/07/12 18:40:14 packer-plugin-openstack_v1.1.1_x5.0_linux_amd64 plugin: 2023/07/12 18:40:14 Waiting for volume creation status: downloading | |
2023/07/12 18:40:21 packer-plugin-openstack_v1.1.1_x5.0_linux_amd64 plugin: 2023/07/12 18:40:21 Waiting for volume creation status: downloading | |
2023/07/12 18:40:28 packer-plugin-openstack_v1.1.1_x5.0_linux_amd64 plugin: 2023/07/12 18:40:28 Waiting for volume creation status: downloading | |
2023/07/12 18:40:35 packer-plugin-openstack_v1.1.1_x5.0_linux_amd64 plugin: 2023/07/12 18:40:35 Waiting for volume creation status: downloading | |
2023/07/12 18:40:42 packer-plugin-openstack_v1.1.1_x5.0_linux_amd64 plugin: 2023/07/12 18:40:42 Waiting for volume creation status: downloading | |
OL8 Custom Image.openstack.ol8: Volume ID: ZZZZZZZZZZZZZ | |
==> OL8 Custom Image.openstack.ol8: Launching server... | |
==> OL8 Custom Image.openstack.ol8: Launching server... | |
OL8 Custom Image.openstack.ol8: Server ID: VVVVVVVVVV | |
2023/07/12 18:40:55 packer-plugin-openstack_v1.1.1_x5.0_linux_amd64 plugin: 2023/07/12 18:40:55 server id: VVVVVVVVVV | |
==> OL8 Custom Image.openstack.ol8: Waiting for server to become ready... | |
2023/07/12 18:40:55 packer-plugin-openstack_v1.1.1_x5.0_linux_amd64 plugin: 2023/07/12 18:40:55 Waiting for state to become: [ACTIVE] | |
2023/07/12 18:41:00 packer-plugin-openstack_v1.1.1_x5.0_linux_amd64 plugin: 2023/07/12 18:41:00 Waiting for state to become: [ACTIVE] currently BUILD (0%) | |
2023/07/12 18:41:08 packer-plugin-openstack_v1.1.1_x5.0_linux_amd64 plugin: 2023/07/12 18:41:08 Waiting for state to become: [ACTIVE] currently BUILD (0%) | |
2023/07/12 18:41:15 packer-plugin-openstack_v1.1.1_x5.0_linux_amd64 plugin: 2023/07/12 18:41:15 [INFO] Not using winrm communicator, skipping get password... | |
2023/07/12 18:41:15 packer-plugin-openstack_v1.1.1_x5.0_linux_amd64 plugin: 2023/07/12 18:41:15 [DEBUG] Detected address: x.x.x.x | |
2023/07/12 18:41:15 packer-plugin-openstack_v1.1.1_x5.0_linux_amd64 plugin: 2023/07/12 18:41:15 [DEBUG] Using IP address x.x.x.x to connect | |
OL8 Custom Image.openstack.ol8: Floating IP not required | |
==> OL8 Custom Image.openstack.ol8: Using SSH communicator to connect: x.x.x.x | |
2023/07/12 18:41:15 packer-plugin-openstack_v1.1.1_x5.0_linux_amd64 plugin: 2023/07/12 18:41:15 [INFO] Waiting for SSH, up to timeout: 5m0s | |
2023/07/12 18:41:15 packer-plugin-openstack_v1.1.1_x5.0_linux_amd64 plugin: 2023/07/12 18:41:15 [DEBUG] Detected address: x.x.x.x | |
2023/07/12 18:41:15 packer-plugin-openstack_v1.1.1_x5.0_linux_amd64 plugin: 2023/07/12 18:41:15 [DEBUG] Using IP address x.x.x.x to connect | |
==> OL8 Custom Image.openstack.ol8: Waiting for SSH to become available... | |
2023/07/12 18:41:18 packer-plugin-openstack_v1.1.1_x5.0_linux_amd64 plugin: 2023/07/12 18:41:18 [DEBUG] TCP connection to SSH ip/port failed: dial tcp x.x.x.x:22: connect: connection refused | |
2023/07/12 18:41:23 packer-plugin-openstack_v1.1.1_x5.0_linux_amd64 plugin: 2023/07/12 18:41:23 [DEBUG] Detected address: x.x.x.x | |
2023/07/12 18:41:23 packer-plugin-openstack_v1.1.1_x5.0_linux_amd64 plugin: 2023/07/12 18:41:23 [DEBUG] Using IP address x.x.x.x to connect | |
2023/07/12 18:41:23 packer-plugin-openstack_v1.1.1_x5.0_linux_amd64 plugin: 2023/07/12 18:41:23 [INFO] Attempting SSH connection to x.x.x.x:22... | |
2023/07/12 18:41:23 packer-plugin-openstack_v1.1.1_x5.0_linux_amd64 plugin: 2023/07/12 18:41:23 [DEBUG] reconnecting to TCP connection for SSH | |
2023/07/12 18:41:23 packer-plugin-openstack_v1.1.1_x5.0_linux_amd64 plugin: 2023/07/12 18:41:23 [DEBUG] handshaking with SSH | |
==> OL8 Custom Image.openstack.ol8: Connected to SSH! | |
2023/07/12 18:41:23 packer-plugin-openstack_v1.1.1_x5.0_linux_amd64 plugin: 2023/07/12 18:41:23 [DEBUG] handshake complete! | |
2023/07/12 18:41:23 packer-plugin-openstack_v1.1.1_x5.0_linux_amd64 plugin: 2023/07/12 18:41:23 [INFO] no local agent socket, will not connect agent | |
2023/07/12 18:41:23 packer-plugin-openstack_v1.1.1_x5.0_linux_amd64 plugin: 2023/07/12 18:41:23 Running the provision hook | |
2023/07/12 18:41:23 [INFO] (telemetry) Starting provisioner shell | |
==> OL8 Custom Image.openstack.ol8: Provisioning with shell script: /tmp/packer-shell3319036187 | |
2023/07/12 18:41:23 packer-provisioner-shell plugin: Opening /tmp/packer-shell3319036187 for reading | |
2023/07/12 18:41:23 packer-provisioner-shell plugin: [INFO] 210 bytes written for 'uploadData' | |
2023/07/12 18:41:23 [INFO] 210 bytes written for 'uploadData' | |
2023/07/12 18:41:23 packer-plugin-openstack_v1.1.1_x5.0_linux_amd64 plugin: 2023/07/12 18:41:23 [DEBUG] Opening new ssh session | |
2023/07/12 18:41:23 packer-plugin-openstack_v1.1.1_x5.0_linux_amd64 plugin: 2023/07/12 18:41:23 [DEBUG] Starting remote scp process: scp -vt /home/cloud-user | |
2023/07/12 18:41:23 packer-plugin-openstack_v1.1.1_x5.0_linux_amd64 plugin: 2023/07/12 18:41:23 [DEBUG] Started SCP session, beginning transfers... | |
2023/07/12 18:41:23 packer-plugin-openstack_v1.1.1_x5.0_linux_amd64 plugin: 2023/07/12 18:41:23 [DEBUG] Copying input data into temporary file so we can read the length | |
2023/07/12 18:41:23 packer-plugin-openstack_v1.1.1_x5.0_linux_amd64 plugin: 2023/07/12 18:41:23 [DEBUG] scp: Uploading script_5550.sh: perms=C0644 size=210 | |
2023/07/12 18:41:23 packer-plugin-openstack_v1.1.1_x5.0_linux_amd64 plugin: 2023/07/12 18:41:23 [DEBUG] SCP session complete, closing stdin pipe. | |
2023/07/12 18:41:23 packer-plugin-openstack_v1.1.1_x5.0_linux_amd64 plugin: 2023/07/12 18:41:23 [DEBUG] Waiting for SSH session to complete. | |
2023/07/12 18:41:23 packer-plugin-openstack_v1.1.1_x5.0_linux_amd64 plugin: 2023/07/12 18:41:23 [DEBUG] scp stderr (length 31): Sink: C0644 210 script_5550.sh | |
2023/07/12 18:41:23 packer-plugin-openstack_v1.1.1_x5.0_linux_amd64 plugin: 2023/07/12 18:41:23 [DEBUG] Opening new ssh session | |
2023/07/12 18:41:23 packer-plugin-openstack_v1.1.1_x5.0_linux_amd64 plugin: 2023/07/12 18:41:23 [DEBUG] starting remote command: chmod 0755 /home/cloud-user/script_5550.sh | |
2023/07/12 18:41:23 packer-plugin-openstack_v1.1.1_x5.0_linux_amd64 plugin: 2023/07/12 18:41:23 [INFO] RPC endpoint: Communicator ended with: 0 | |
2023/07/12 18:41:23 [INFO] RPC client: Communicator ended with: 0 | |
2023/07/12 18:41:23 [INFO] RPC endpoint: Communicator ended with: 0 | |
2023/07/12 18:41:23 packer-provisioner-shell plugin: [INFO] RPC client: Communicator ended with: 0 | |
2023/07/12 18:41:23 packer-plugin-openstack_v1.1.1_x5.0_linux_amd64 plugin: 2023/07/12 18:41:23 [DEBUG] Opening new ssh session | |
2023/07/12 18:41:23 packer-plugin-openstack_v1.1.1_x5.0_linux_amd64 plugin: 2023/07/12 18:41:23 [DEBUG] starting remote command: chmod +x /home/cloud-user/script_5550.sh; PACKER_BUILDER_TYPE='openstack' PACKER_BUILD_NAME='ol8' /home/cloud-user/script_5550.sh | |
<output suppressed> | |
2023/07/12 18:42:09 packer-plugin-openstack_v1.1.1_x5.0_linux_amd64 plugin: 2023/07/12 18:42:09 [ERROR] Remote command exited without exit status or exit signal. | |
2023/07/12 18:42:09 packer-plugin-openstack_v1.1.1_x5.0_linux_amd64 plugin: 2023/07/12 18:42:09 [INFO] RPC endpoint: Communicator ended with: 2300218 | |
2023/07/12 18:42:09 [INFO] 5642 bytes written for 'stdout' | |
2023/07/12 18:42:09 [INFO] 0 bytes written for 'stderr' | |
2023/07/12 18:42:09 [INFO] RPC client: Communicator ended with: 2300218 | |
2023/07/12 18:42:09 [INFO] RPC endpoint: Communicator ended with: 2300218 | |
2023/07/12 18:42:09 packer-provisioner-shell plugin: [INFO] 5642 bytes written for 'stdout' | |
2023/07/12 18:42:09 packer-provisioner-shell plugin: [INFO] 0 bytes written for 'stderr' | |
2023/07/12 18:42:09 packer-provisioner-shell plugin: [INFO] RPC client: Communicator ended with: 2300218 | |
2023/07/12 18:42:09 packer-plugin-openstack_v1.1.1_x5.0_linux_amd64 plugin: 2023/07/12 18:42:09 [DEBUG] Opening new ssh session | |
2023/07/12 18:42:09 packer-plugin-openstack_v1.1.1_x5.0_linux_amd64 plugin: 2023/07/12 18:42:09 [ERROR] ssh session open error: 'EOF', attempting reconnect | |
2023/07/12 18:42:09 packer-plugin-openstack_v1.1.1_x5.0_linux_amd64 plugin: 2023/07/12 18:42:09 [DEBUG] reconnecting to TCP connection for SSH | |
2023/07/12 18:42:09 packer-plugin-openstack_v1.1.1_x5.0_linux_amd64 plugin: 2023/07/12 18:42:09 [DEBUG] handshaking with SSH | |
2023/07/12 18:42:09 packer-plugin-openstack_v1.1.1_x5.0_linux_amd64 plugin: 2023/07/12 18:42:09 [DEBUG] handshake complete! | |
2023/07/12 18:42:09 packer-plugin-openstack_v1.1.1_x5.0_linux_amd64 plugin: 2023/07/12 18:42:09 [INFO] no local agent socket, will not connect agent | |
2023/07/12 18:42:09 packer-plugin-openstack_v1.1.1_x5.0_linux_amd64 plugin: 2023/07/12 18:42:09 [DEBUG] starting remote command: rm -f /home/cloud-user/script_5550.sh | |
2023/07/12 18:42:09 packer-plugin-openstack_v1.1.1_x5.0_linux_amd64 plugin: 2023/07/12 18:42:09 [INFO] RPC endpoint: Communicator ended with: 0 | |
2023/07/12 18:42:09 [INFO] RPC client: Communicator ended with: 0 | |
2023/07/12 18:42:09 [INFO] RPC endpoint: Communicator ended with: 0 | |
2023/07/12 18:42:09 packer-provisioner-shell plugin: [INFO] RPC client: Communicator ended with: 0 | |
2023/07/12 18:42:09 packer-plugin-openstack_v1.1.1_x5.0_linux_amd64 plugin: 2023/07/12 18:42:09 [DEBUG] Opening new ssh session | |
2023/07/12 18:42:09 packer-plugin-openstack_v1.1.1_x5.0_linux_amd64 plugin: 2023/07/12 18:42:09 [DEBUG] starting remote command: rm -f | |
2023/07/12 18:42:09 packer-plugin-openstack_v1.1.1_x5.0_linux_amd64 plugin: 2023/07/12 18:42:09 [INFO] RPC endpoint: Communicator ended with: 0 | |
2023/07/12 18:42:09 [INFO] RPC client: Communicator ended with: 0 | |
2023/07/12 18:42:09 [INFO] RPC endpoint: Communicator ended with: 0 | |
2023/07/12 18:42:09 packer-provisioner-shell plugin: [INFO] RPC client: Communicator ended with: 0 | |
2023/07/12 18:42:09 [INFO] (telemetry) ending shell | |
2023/07/12 18:42:09 [INFO] (telemetry) Starting provisioner ansible | |
==> OL8 Custom Image.openstack.ol8: Pausing 1m0s before the next provisioner... | |
2023/07/12 18:43:10 packer-provisioner-ansible plugin: ansible-playbook version: 2.13.6 | |
==> OL8 Custom Image.openstack.ol8: Provisioning with Ansible... | |
OL8 Custom Image.openstack.ol8: Using ssh keys from Packer communicator... | |
OL8 Custom Image.openstack.ol8: Not using Proxy adapter for Ansible run: | |
OL8 Custom Image.openstack.ol8: Using ssh keys from Packer communicator... | |
2023/07/12 18:43:10 packer-provisioner-ansible plugin: Creating inventory file for Ansible run... | |
<output suppressed> | |
2023/07/12 18:55:22 [INFO] (telemetry) ending ansible | |
==> OL8 Custom Image.openstack.ol8: Stopping server: VVVVVVVVVV ... | |
OL8 Custom Image.openstack.ol8: Waiting for server to stop: VVVVVVVVVV ... | |
2023/07/12 18:55:27 packer-plugin-openstack_v1.1.1_x5.0_linux_amd64 plugin: 2023/07/12 18:55:27 Waiting for state to become: [SHUTOFF STOPPED] | |
2023/07/12 18:55:32 packer-plugin-openstack_v1.1.1_x5.0_linux_amd64 plugin: 2023/07/12 18:55:32 Waiting for state to become: [SHUTOFF STOPPED] currently ACTIVE (0%) | |
2023/07/12 18:55:40 packer-plugin-openstack_v1.1.1_x5.0_linux_amd64 plugin: 2023/07/12 18:55:40 Waiting for state to become: [SHUTOFF STOPPED] currently ACTIVE (0%) | |
2023/07/12 18:55:47 packer-plugin-openstack_v1.1.1_x5.0_linux_amd64 plugin: 2023/07/12 18:55:47 Waiting for state to become: [SHUTOFF STOPPED] currently ACTIVE (0%) | |
2023/07/12 18:55:54 packer-plugin-openstack_v1.1.1_x5.0_linux_amd64 plugin: 2023/07/12 18:55:54 Waiting for state to become: [SHUTOFF STOPPED] currently ACTIVE (0%) | |
2023/07/12 18:56:02 packer-plugin-openstack_v1.1.1_x5.0_linux_amd64 plugin: 2023/07/12 18:56:02 Waiting for state to become: [SHUTOFF STOPPED] currently ACTIVE (0%) | |
2023/07/12 18:56:09 packer-plugin-openstack_v1.1.1_x5.0_linux_amd64 plugin: 2023/07/12 18:56:09 Waiting for state to become: [SHUTOFF STOPPED] currently ACTIVE (0%) | |
2023/07/12 18:56:17 packer-plugin-openstack_v1.1.1_x5.0_linux_amd64 plugin: 2023/07/12 18:56:17 Waiting for state to become: [SHUTOFF STOPPED] currently ACTIVE (0%) | |
2023/07/12 18:56:24 packer-plugin-openstack_v1.1.1_x5.0_linux_amd64 plugin: 2023/07/12 18:56:24 Waiting for state to become: [SHUTOFF STOPPED] currently ACTIVE (0%) | |
==> OL8 Custom Image.openstack.ol8: Terminating the source server: VVVVVVVVVV ... | |
==> OL8 Custom Image.openstack.ol8: Provisioning step had errors: Running the cleanup provisioner, if present... | |
==> OL8 Custom Image.openstack.ol8: Terminating the source server: VVVVVVVVVV ... | |
==> OL8 Custom Image.openstack.ol8: Error terminating server, may still be around: Resource not found | |
==> OL8 Custom Image.openstack.ol8: Deleting volume: ZZZZZZZZZZZZZ ... | |
==> OL8 Custom Image.openstack.ol8: Deleting temporary keypair: YYYYYY ... | |
2023/07/12 18:57:02 [INFO] (telemetry) ending openstack.ol8 | |
==> Wait completed after 18 minutes 11 seconds | |
2023/07/12 18:57:02 machine readable: error-count []string{"1"} | |
==> Some builds didn't complete successfully and had errors: | |
2023/07/12 18:57:02 machine readable: OL8 Custom Image.openstack.ol8,error []string{"Error getting server to terminate: Resource not found"} | |
==> Builds finished but no artifacts were created. | |
Build 'OL8 Custom Image.openstack.ol8' errored after 18 minutes 11 seconds: Error getting server to terminate: Resource not found | |
==> Wait completed after 18 minutes 11 seconds | |
==> Some builds didn't complete successfully and had errors: | |
--> OL8 Custom Image.openstack.ol8: Error getting server to terminate: Resource not found | |
==> Builds finished but no artifacts were created. | |
2023/07/12 18:57:02 [INFO] (telemetry) Finalizing. | |
2023/07/12 18:57:04 [WARN] (telemetry) Error finalizing report. This is safe to ignore. Post "https://checkpoint-api.hashicorp.com/v1/telemetry/packer": context deadline exceeded | |
2023/07/12 18:57:04 waiting for all plugin processes to complete... | |
2023/07/12 18:57:04 /bin/packer: plugin process exited | |
2023/07/12 18:57:04 /bin/packer: plugin process exited | |
2023/07/12 18:57:04 /bin/packer: plugin process exited | |
2023/07/12 18:57:04 plugins/github.com/hashicorp/openstack/packer-plugin-openstack_v1.1.1_x5.0_linux_amd64: plugin process exited |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment