2024/10/01 12:28:32 [INFO] Packer version: 1.8.2 [go1.17.11 linux amd64] 2024/10/01 12:28:32 [TRACE] discovering plugins in /w/workspace/ci-management-packer-merge-centos-8-builder/bin 2024/10/01 12:28:32 [TRACE] discovering plugins in /home/jenkins/.config/packer/plugins 2024/10/01 12:28:32 [TRACE] discovering plugins in . 2024/10/01 12:28:32 [INFO] PACKER_CONFIG env var not set; checking the default config file path 2024/10/01 12:28:32 [INFO] PACKER_CONFIG env var set; attempting to open config file: /home/jenkins/.packerconfig 2024/10/01 12:28:32 [WARN] Config file doesn't exist: /home/jenkins/.packerconfig 2024/10/01 12:28:32 [INFO] Setting cache directory: /home/jenkins/.cache/packer e: Running in background, not using a TTY 2024/10/01 12:28:32 [TRACE] Starting internal plugin packer-builder-openstack 2024/10/01 12:28:32 Starting plugin: /w/workspace/ci-management-packer-merge-centos-8-builder/bin/packer.io []string{"/w/workspace/ci-management-packer-merge-centos-8-builder/bin/packer.io", "plugin", "packer-builder-openstack"} 2024/10/01 12:28:32 Waiting for RPC address for: /w/workspace/ci-management-packer-merge-centos-8-builder/bin/packer.io 2024/10/01 12:28:32 Received unix RPC address for /w/workspace/ci-management-packer-merge-centos-8-builder/bin/packer.io: addr is /tmp/packer-plugin1864125658 2024/10/01 12:28:32 packer.io plugin: [INFO] Packer version: 1.8.2 [go1.17.11 linux amd64] 2024/10/01 12:28:32 packer.io plugin: [INFO] PACKER_CONFIG env var not set; checking the default config file path 2024/10/01 12:28:32 packer.io plugin: [INFO] PACKER_CONFIG env var set; attempting to open config file: /home/jenkins/.packerconfig 2024/10/01 12:28:32 packer.io plugin: [WARN] Config file doesn't exist: /home/jenkins/.packerconfig 2024/10/01 12:28:32 packer.io plugin: [INFO] Setting cache directory: /home/jenkins/.cache/packer 2024/10/01 12:28:32 packer.io plugin: args: []string{"packer-builder-openstack"} 2024/10/01 12:28:32 packer.io plugin: Plugin address: unix /tmp/packer-plugin1864125658 2024/10/01 12:28:32 packer.io plugin: Waiting for connection... 2024/10/01 12:28:32 packer.io plugin: Serving a plugin connection... 2024/10/01 12:28:32 [TRACE] Starting internal plugin packer-provisioner-shell 2024/10/01 12:28:32 Starting plugin: /w/workspace/ci-management-packer-merge-centos-8-builder/bin/packer.io []string{"/w/workspace/ci-management-packer-merge-centos-8-builder/bin/packer.io", "plugin", "packer-provisioner-shell"} 2024/10/01 12:28:32 Waiting for RPC address for: /w/workspace/ci-management-packer-merge-centos-8-builder/bin/packer.io 2024/10/01 12:28:32 packer.io plugin: [INFO] Packer version: 1.8.2 [go1.17.11 linux amd64] 2024/10/01 12:28:32 packer.io plugin: [INFO] PACKER_CONFIG env var not set; checking the default config file path 2024/10/01 12:28:32 packer.io plugin: [INFO] PACKER_CONFIG env var set; attempting to open config file: /home/jenkins/.packerconfig 2024/10/01 12:28:32 packer.io plugin: [WARN] Config file doesn't exist: /home/jenkins/.packerconfig 2024/10/01 12:28:32 packer.io plugin: [INFO] Setting cache directory: /home/jenkins/.cache/packer 2024/10/01 12:28:32 packer.io plugin: args: []string{"packer-provisioner-shell"} 2024/10/01 12:28:32 Received unix RPC address for /w/workspace/ci-management-packer-merge-centos-8-builder/bin/packer.io: addr is /tmp/packer-plugin3211375725 2024/10/01 12:28:32 packer.io plugin: Plugin address: unix /tmp/packer-plugin3211375725 2024/10/01 12:28:32 packer.io plugin: Waiting for connection... 2024/10/01 12:28:32 packer.io plugin: Serving a plugin connection... 2024/10/01 12:28:32 [TRACE] Starting internal plugin packer-provisioner-shell-local 2024/10/01 12:28:32 Starting plugin: /w/workspace/ci-management-packer-merge-centos-8-builder/bin/packer.io []string{"/w/workspace/ci-management-packer-merge-centos-8-builder/bin/packer.io", "plugin", "packer-provisioner-shell-local"} 2024/10/01 12:28:32 Waiting for RPC address for: /w/workspace/ci-management-packer-merge-centos-8-builder/bin/packer.io 2024/10/01 12:28:32 packer.io plugin: [INFO] Packer version: 1.8.2 [go1.17.11 linux amd64] 2024/10/01 12:28:32 packer.io plugin: [INFO] PACKER_CONFIG env var not set; checking the default config file path 2024/10/01 12:28:32 packer.io plugin: [INFO] PACKER_CONFIG env var set; attempting to open config file: /home/jenkins/.packerconfig 2024/10/01 12:28:32 packer.io plugin: [WARN] Config file doesn't exist: /home/jenkins/.packerconfig 2024/10/01 12:28:32 packer.io plugin: [INFO] Setting cache directory: /home/jenkins/.cache/packer 2024/10/01 12:28:32 packer.io plugin: args: []string{"packer-provisioner-shell-local"} 2024/10/01 12:28:32 Received unix RPC address for /w/workspace/ci-management-packer-merge-centos-8-builder/bin/packer.io: addr is /tmp/packer-plugin1891934617 2024/10/01 12:28:32 packer.io plugin: Plugin address: unix /tmp/packer-plugin1891934617 2024/10/01 12:28:32 packer.io plugin: Waiting for connection... 2024/10/01 12:28:32 [TRACE] Starting internal plugin packer-provisioner-ansible 2024/10/01 12:28:32 Starting plugin: /w/workspace/ci-management-packer-merge-centos-8-builder/bin/packer.io []string{"/w/workspace/ci-management-packer-merge-centos-8-builder/bin/packer.io", "plugin", "packer-provisioner-ansible"} 2024/10/01 12:28:32 packer.io plugin: Serving a plugin connection... 2024/10/01 12:28:32 Waiting for RPC address for: /w/workspace/ci-management-packer-merge-centos-8-builder/bin/packer.io 2024/10/01 12:28:32 packer.io plugin: [INFO] Packer version: 1.8.2 [go1.17.11 linux amd64] 2024/10/01 12:28:32 packer.io plugin: [INFO] PACKER_CONFIG env var not set; checking the default config file path 2024/10/01 12:28:32 packer.io plugin: [INFO] PACKER_CONFIG env var set; attempting to open config file: /home/jenkins/.packerconfig 2024/10/01 12:28:32 packer.io plugin: [WARN] Config file doesn't exist: /home/jenkins/.packerconfig 2024/10/01 12:28:32 packer.io plugin: [INFO] Setting cache directory: /home/jenkins/.cache/packer 2024/10/01 12:28:32 packer.io plugin: args: []string{"packer-provisioner-ansible"} 2024/10/01 12:28:32 Received unix RPC address for /w/workspace/ci-management-packer-merge-centos-8-builder/bin/packer.io: addr is /tmp/packer-plugin4062316612 2024/10/01 12:28:32 packer.io plugin: Plugin address: unix /tmp/packer-plugin4062316612 2024/10/01 12:28:32 packer.io plugin: Waiting for connection... 2024/10/01 12:28:32 Preparing build: openstack 2024/10/01 12:28:32 packer.io plugin: Serving a plugin connection... 2024/10/01 12:28:35 [ERR] Checkpoint error: Get "https://checkpoint-api.hashicorp.com/v1/check/packer?arch=amd64&os=linux&signature=8e96b972-f788-64f2-569e-3fb6faeb140f&version=1.8.2": context deadline exceeded (Client.Timeout exceeded while awaiting headers) 2024/10/01 12:28:35 packer.io plugin: [ERR] Checkpoint error: Get "https://checkpoint-api.hashicorp.com/v1/check/packer?arch=amd64&os=linux&signature=8e96b972-f788-64f2-569e-3fb6faeb140f&version=1.8.2": context deadline exceeded (Client.Timeout exceeded while awaiting headers) 2024/10/01 12:28:35 packer.io plugin: [ERR] Checkpoint error: Get "https://checkpoint-api.hashicorp.com/v1/check/packer?arch=amd64&os=linux&signature=8e96b972-f788-64f2-569e-3fb6faeb140f&version=1.8.2": context deadline exceeded (Client.Timeout exceeded while awaiting headers) 2024/10/01 12:28:35 packer.io plugin: [ERR] Checkpoint error: Get "https://checkpoint-api.hashicorp.com/v1/check/packer?arch=amd64&os=linux&signature=8e96b972-f788-64f2-569e-3fb6faeb140f&version=1.8.2": context deadline exceeded (Client.Timeout exceeded while awaiting headers) 2024/10/01 12:28:35 packer.io plugin: [ERR] Checkpoint error: Get "https://checkpoint-api.hashicorp.com/v1/check/packer?arch=amd64&os=linux&signature=8e96b972-f788-64f2-569e-3fb6faeb140f&version=1.8.2": context deadline exceeded (Client.Timeout exceeded while awaiting headers) 2024/10/01 12:28:38 Build debug mode: false 2024/10/01 12:28:38 Force build: false 2024/10/01 12:28:38 On error: 2024/10/01 12:28:38 Waiting on builds to complete... 2024/10/01 12:28:38 Starting build run: openstack 2024/10/01 12:28:38 Running builder: openstack 2024/10/01 12:28:38 [INFO] (telemetry) Starting builder openstack 2024/10/01 12:28:38 ui: ==> openstack: Loading flavor: v2-highcpu-1 2024/10/01 12:28:38 packer.io plugin: [INFO] Loading flavor by ID: v2-highcpu-1 2024/10/01 12:29:13 packer.io plugin: [ERROR] Failed to find flavor by ID: Internal Server Error 2024/10/01 12:29:13 packer.io plugin: [INFO] Loading flavor by name: v2-highcpu-1 2024/10/01 12:29:18 ui: openstack: Verified flavor. ID: c04abb7a-2b61-4ed3-8ce8-6c40ad9df750 2024/10/01 12:29:18 ui: ==> openstack: Creating temporary RSA SSH key for instance... 2024/10/01 12:29:19 ui: ==> openstack: Creating temporary keypair: packer_66fbeaf6-7c3e-ac1c-7629-f3d3387698eb ... 2024/10/01 12:29:24 ui: ==> openstack: Created temporary keypair: packer_66fbeaf6-7c3e-ac1c-7629-f3d3387698eb 2024/10/01 12:29:24 packer.io plugin: Using Image Filters {ID: Limit:0 Marker: Name:CentOS 8.2 (x86_64) [2020-06-11] Visibility: MemberStatus: Owner: Status: SizeMin:0 SizeMax:0 Sort: SortKey: SortDir: Tags:[] CreatedAtQuery: UpdatedAtQuery: ContainerFormat: DiskFormat:} 2024/10/01 12:29:29 ui: openstack: Found Image ID: 543a52bd-42e9-4656-941b-c406873facee 2024/10/01 12:29:29 ui: ==> openstack: Creating volume... 2024/10/01 12:29:35 ui: ==> openstack: Waiting for volume packer_66fbeaf6-afb1-6b9d-b37d-1a0de7a4175d (volume id: 6b72f46b-e3c4-4314-8522-b93492d09360) to become available... 2024/10/01 12:29:40 packer.io plugin: Waiting for volume creation status: creating 2024/10/01 12:29:47 packer.io plugin: Waiting for volume creation status: creating 2024/10/01 12:29:54 packer.io plugin: Waiting for volume creation status: downloading 2024/10/01 12:30:01 packer.io plugin: Waiting for volume creation status: downloading 2024/10/01 12:30:08 packer.io plugin: Waiting for volume creation status: downloading 2024/10/01 12:30:15 ui: openstack: Volume ID: 6b72f46b-e3c4-4314-8522-b93492d09360 2024/10/01 12:30:15 ui: ==> openstack: Launching server... 2024/10/01 12:30:15 ui: ==> openstack: Launching server... 2024/10/01 12:30:21 ui: openstack: Server ID: 68bee2d3-7a6a-43f0-88ac-31ea89555328 2024/10/01 12:30:21 packer.io plugin: server id: 68bee2d3-7a6a-43f0-88ac-31ea89555328 2024/10/01 12:30:21 ui: ==> openstack: Waiting for server to become ready... 2024/10/01 12:30:21 packer.io plugin: Waiting for state to become: [ACTIVE] 2024/10/01 12:30:26 packer.io plugin: Waiting for state to become: [ACTIVE] currently BUILD (0%) 2024/10/01 12:30:34 packer.io plugin: [INFO] Not using winrm communicator, skipping get password... 2024/10/01 12:30:34 ui: openstack: Floating IP not required 2024/10/01 12:30:34 packer.io plugin: [DEBUG] Detected address: 10.30.86.172 2024/10/01 12:30:34 packer.io plugin: [DEBUG] Using IP address 10.30.86.172 to connect 2024/10/01 12:30:34 ui: ==> openstack: Using SSH communicator to connect: 10.30.86.172 2024/10/01 12:30:34 packer.io plugin: [INFO] Waiting for SSH, up to timeout: 5m0s 2024/10/01 12:30:34 ui: ==> openstack: Waiting for SSH to become available... 2024/10/01 12:30:34 packer.io plugin: [DEBUG] Detected address: 10.30.86.172 2024/10/01 12:30:34 packer.io plugin: [DEBUG] Using IP address 10.30.86.172 to connect 2024/10/01 12:30:37 packer.io plugin: [DEBUG] TCP connection to SSH ip/port failed: dial tcp 10.30.86.172:22: connect: no route to host 2024/10/01 12:30:42 packer.io plugin: [DEBUG] Detected address: 10.30.86.172 2024/10/01 12:30:42 packer.io plugin: [DEBUG] Using IP address 10.30.86.172 to connect 2024/10/01 12:30:42 packer.io plugin: [DEBUG] TCP connection to SSH ip/port failed: dial tcp 10.30.86.172:22: connect: connection refused 2024/10/01 12:30:47 packer.io plugin: [DEBUG] Detected address: 10.30.86.172 2024/10/01 12:30:47 packer.io plugin: [DEBUG] Using IP address 10.30.86.172 to connect 2024/10/01 12:30:47 packer.io plugin: [DEBUG] TCP connection to SSH ip/port failed: dial tcp 10.30.86.172:22: connect: connection refused 2024/10/01 12:30:52 packer.io plugin: [DEBUG] Detected address: 10.30.86.172 2024/10/01 12:30:52 packer.io plugin: [DEBUG] Using IP address 10.30.86.172 to connect 2024/10/01 12:30:52 packer.io plugin: [INFO] Attempting SSH connection to 10.30.86.172:22... 2024/10/01 12:30:52 packer.io plugin: [DEBUG] reconnecting to TCP connection for SSH 2024/10/01 12:30:52 packer.io plugin: [DEBUG] handshaking with SSH 2024/10/01 12:30:53 packer.io plugin: [DEBUG] handshake complete! 2024/10/01 12:30:53 packer.io plugin: [DEBUG] Opening new ssh session 2024/10/01 12:30:53 ui: ==> openstack: Connected to SSH! 2024/10/01 12:30:53 packer.io plugin: [INFO] agent forwarding enabled 2024/10/01 12:30:53 packer.io plugin: Running the provision hook 2024/10/01 12:30:53 [INFO] (telemetry) Starting provisioner shell 2024/10/01 12:30:53 ui: ==> openstack: Provisioning with shell script: common-packer/provision/install-python.sh 2024/10/01 12:30:53 packer.io plugin: Opening common-packer/provision/install-python.sh for reading 2024/10/01 12:30:53 packer.io plugin: [INFO] 3713 bytes written for 'uploadData' 2024/10/01 12:30:53 [INFO] 3713 bytes written for 'uploadData' 2024/10/01 12:30:53 packer.io plugin: [DEBUG] Opening new ssh session 2024/10/01 12:30:53 packer.io plugin: [DEBUG] Starting remote scp process: scp -vt /tmp 2024/10/01 12:30:53 packer.io plugin: [DEBUG] Started SCP session, beginning transfers... 2024/10/01 12:30:53 packer.io plugin: [DEBUG] Copying input data into temporary file so we can read the length 2024/10/01 12:30:53 packer.io plugin: [DEBUG] scp: Uploading script_5736.sh: perms=C0644 size=3713 2024/10/01 12:30:53 packer.io plugin: [DEBUG] SCP session complete, closing stdin pipe. 2024/10/01 12:30:53 packer.io plugin: [DEBUG] Waiting for SSH session to complete. 2024/10/01 12:30:53 packer.io plugin: [DEBUG] scp stderr (length 32): Sink: C0644 3713 script_5736.sh 2024/10/01 12:30:53 packer.io plugin: [DEBUG] Opening new ssh session 2024/10/01 12:30:53 packer.io plugin: [DEBUG] starting remote command: chmod 0755 /tmp/script_5736.sh 2024/10/01 12:30:53 [INFO] RPC client: Communicator ended with: 0 2024/10/01 12:30:53 [INFO] RPC endpoint: Communicator ended with: 0 2024/10/01 12:30:53 packer.io plugin: [INFO] RPC endpoint: Communicator ended with: 0 2024/10/01 12:30:53 packer.io plugin: [INFO] RPC client: Communicator ended with: 0 2024/10/01 12:30:53 packer.io plugin: [DEBUG] Opening new ssh session 2024/10/01 12:30:53 packer.io plugin: [DEBUG] starting remote command: chmod +x /tmp/script_5736.sh; if [ "$UID" == "0" ]; then PACKER_BUILDER_TYPE='openstack' PACKER_BUILD_NAME='openstack' '/tmp/script_5736.sh'; else PACKER_BUILDER_TYPE='openstack' PACKER_BUILD_NAME='openstack' sudo -E '/tmp/script_5736.sh'; fi 2024/10/01 12:30:53 ui: openstack: ----> install-python.sh 2024/10/01 12:30:53 ui: openstack: Distro is NOT Ubuntu 2024/10/01 12:30:53 ui: openstack: Distro is CentOS 8 2024/10/01 12:30:53 ui: openstack: Install python38 2024/10/01 12:30:54 ui: openstack: 0 files removed 2024/10/01 12:30:55 ui error: ==> openstack: Errors during downloading metadata for repository 'AppStream': 2024/10/01 12:30:55 ui error: ==> openstack: - Curl error (6): Couldn't resolve host name for http://mirrorlist.centos.org/?release=8&arch=x86_64&repo=AppStream&infra=genclo [Could not resolve host: mirrorlist.centos.org] 2024/10/01 12:30:55 ui: openstack: CentOS-8 - AppStream 0.0 B/s | 0 B 00:00 2024/10/01 12:30:55 ui error: ==> openstack: Error: Failed to download metadata for repo 'AppStream': Cannot prepare internal mirrorlist: Curl error (6): Couldn't resolve host name for http://mirrorlist.centos.org/?release=8&arch=x86_64&repo=AppStream&infra=genclo [Could not resolve host: mirrorlist.centos.org] 2024/10/01 12:30:56 [INFO] 177 bytes written for 'stdout' 2024/10/01 12:30:56 [INFO] 510 bytes written for 'stderr' 2024/10/01 12:30:56 [INFO] RPC client: Communicator ended with: 1 2024/10/01 12:30:56 [INFO] RPC endpoint: Communicator ended with: 1 2024/10/01 12:30:56 packer.io plugin: [ERROR] Remote command exited with '1': chmod +x /tmp/script_5736.sh; if [ "$UID" == "0" ]; then PACKER_BUILDER_TYPE='openstack' PACKER_BUILD_NAME='openstack' '/tmp/script_5736.sh'; else PACKER_BUILDER_TYPE='openstack' PACKER_BUILD_NAME='openstack' sudo -E '/tmp/script_5736.sh'; fi 2024/10/01 12:30:56 packer.io plugin: [INFO] RPC endpoint: Communicator ended with: 1 2024/10/01 12:30:56 packer.io plugin: [INFO] 177 bytes written for 'stdout' 2024/10/01 12:30:56 packer.io plugin: [INFO] 510 bytes written for 'stderr' 2024/10/01 12:30:56 packer.io plugin: [INFO] RPC client: Communicator ended with: 1 2024/10/01 12:30:56 [INFO] (telemetry) ending shell 2024/10/01 12:30:56 ui: ==> openstack: Provisioning step had errors: Running the cleanup provisioner, if present... 2024/10/01 12:30:56 ui: ==> openstack: Terminating the source server: 68bee2d3-7a6a-43f0-88ac-31ea89555328 ... 2024/10/01 12:31:01 packer.io plugin: Waiting for state to become: [DELETED] 2024/10/01 12:31:06 packer.io plugin: [INFO] 404 on ServerStateRefresh, returning DELETED 2024/10/01 12:31:11 ui: ==> openstack: Deleting volume: 6b72f46b-e3c4-4314-8522-b93492d09360 ... 2024/10/01 12:31:16 ui: ==> openstack: Deleting temporary keypair: packer_66fbeaf6-7c3e-ac1c-7629-f3d3387698eb ... 2024/10/01 12:31:21 [INFO] (telemetry) ending openstack 2024/10/01 12:31:21 ui error: Build 'openstack' errored after 2 minutes 43 seconds: Script exited with non-zero exit status: 1. Allowed exit codes are: [0] 2024/10/01 12:31:21 ui: ==> Wait completed after 2 minutes 43 seconds 2024/10/01 12:31:21 machine readable: error-count []string{"1"} 2024/10/01 12:31:21 ui error: ==> Some builds didn't complete successfully and had errors: 2024/10/01 12:31:21 machine readable: openstack,error []string{"Script exited with non-zero exit status: 1. Allowed exit codes are: [0]"} 2024/10/01 12:31:21 ui error: --> openstack: Script exited with non-zero exit status: 1. Allowed exit codes are: [0] 2024/10/01 12:31:21 ui: ==> Builds finished but no artifacts were created. 2024/10/01 12:31:21 [INFO] (telemetry) Finalizing. 2024/10/01 12:31:23 [WARN] (telemetry) Error finalizing report. This is safe to ignore. Post "https://checkpoint-api.hashicorp.com/v1/telemetry/packer": context deadline exceeded 2024/10/01 12:31:23 waiting for all plugin processes to complete... 2024/10/01 12:31:23 /w/workspace/ci-management-packer-merge-centos-8-builder/bin/packer.io: plugin process exited 2024/10/01 12:31:23 /w/workspace/ci-management-packer-merge-centos-8-builder/bin/packer.io: plugin process exited 2024/10/01 12:31:23 /w/workspace/ci-management-packer-merge-centos-8-builder/bin/packer.io: plugin process exited 2024/10/01 12:31:23 /w/workspace/ci-management-packer-merge-centos-8-builder/bin/packer.io: plugin process exited