2025/05/02 04:59:31 [INFO] Packer version: 1.8.2 [go1.17.11 linux amd64] 2025/05/02 04:59:31 [TRACE] discovering plugins in /w/workspace/ci-management-packer-merge-ubuntu-20.04-docker/bin 2025/05/02 04:59:31 [TRACE] discovering plugins in /home/jenkins/.config/packer/plugins 2025/05/02 04:59:31 [TRACE] discovering plugins in . 2025/05/02 04:59:31 [INFO] PACKER_CONFIG env var not set; checking the default config file path 2025/05/02 04:59:31 [INFO] PACKER_CONFIG env var set; attempting to open config file: /home/jenkins/.packerconfig 2025/05/02 04:59:31 [WARN] Config file doesn't exist: /home/jenkins/.packerconfig 2025/05/02 04:59:31 [INFO] Setting cache directory: /home/jenkins/.cache/packer e: Running in background, not using a TTY 2025/05/02 04:59:31 [TRACE] Starting internal plugin packer-builder-openstack 2025/05/02 04:59:31 Starting plugin: /w/workspace/ci-management-packer-merge-ubuntu-20.04-docker/bin/packer.io []string{"/w/workspace/ci-management-packer-merge-ubuntu-20.04-docker/bin/packer.io", "plugin", "packer-builder-openstack"} 2025/05/02 04:59:31 Waiting for RPC address for: /w/workspace/ci-management-packer-merge-ubuntu-20.04-docker/bin/packer.io 2025/05/02 04:59:31 packer.io plugin: [INFO] Packer version: 1.8.2 [go1.17.11 linux amd64] 2025/05/02 04:59:31 packer.io plugin: [INFO] PACKER_CONFIG env var not set; checking the default config file path 2025/05/02 04:59:31 packer.io plugin: [INFO] PACKER_CONFIG env var set; attempting to open config file: /home/jenkins/.packerconfig 2025/05/02 04:59:31 packer.io plugin: [WARN] Config file doesn't exist: /home/jenkins/.packerconfig 2025/05/02 04:59:31 packer.io plugin: [INFO] Setting cache directory: /home/jenkins/.cache/packer 2025/05/02 04:59:31 packer.io plugin: args: []string{"packer-builder-openstack"} 2025/05/02 04:59:31 Received unix RPC address for /w/workspace/ci-management-packer-merge-ubuntu-20.04-docker/bin/packer.io: addr is /tmp/packer-plugin1259168098 2025/05/02 04:59:31 packer.io plugin: Plugin address: unix /tmp/packer-plugin1259168098 2025/05/02 04:59:31 packer.io plugin: Waiting for connection... 2025/05/02 04:59:31 packer.io plugin: Serving a plugin connection... 2025/05/02 04:59:31 [TRACE] Starting internal plugin packer-provisioner-shell 2025/05/02 04:59:31 Starting plugin: /w/workspace/ci-management-packer-merge-ubuntu-20.04-docker/bin/packer.io []string{"/w/workspace/ci-management-packer-merge-ubuntu-20.04-docker/bin/packer.io", "plugin", "packer-provisioner-shell"} 2025/05/02 04:59:31 Waiting for RPC address for: /w/workspace/ci-management-packer-merge-ubuntu-20.04-docker/bin/packer.io 2025/05/02 04:59:31 Received unix RPC address for /w/workspace/ci-management-packer-merge-ubuntu-20.04-docker/bin/packer.io: addr is /tmp/packer-plugin1332345884 2025/05/02 04:59:31 packer.io plugin: [INFO] Packer version: 1.8.2 [go1.17.11 linux amd64] 2025/05/02 04:59:31 packer.io plugin: [INFO] PACKER_CONFIG env var not set; checking the default config file path 2025/05/02 04:59:31 packer.io plugin: [INFO] PACKER_CONFIG env var set; attempting to open config file: /home/jenkins/.packerconfig 2025/05/02 04:59:31 packer.io plugin: [WARN] Config file doesn't exist: /home/jenkins/.packerconfig 2025/05/02 04:59:31 packer.io plugin: [INFO] Setting cache directory: /home/jenkins/.cache/packer 2025/05/02 04:59:31 packer.io plugin: args: []string{"packer-provisioner-shell"} 2025/05/02 04:59:31 packer.io plugin: Plugin address: unix /tmp/packer-plugin1332345884 2025/05/02 04:59:31 packer.io plugin: Waiting for connection... 2025/05/02 04:59:31 packer.io plugin: Serving a plugin connection... 2025/05/02 04:59:31 [TRACE] Starting internal plugin packer-provisioner-shell-local 2025/05/02 04:59:31 Starting plugin: /w/workspace/ci-management-packer-merge-ubuntu-20.04-docker/bin/packer.io []string{"/w/workspace/ci-management-packer-merge-ubuntu-20.04-docker/bin/packer.io", "plugin", "packer-provisioner-shell-local"} 2025/05/02 04:59:31 Waiting for RPC address for: /w/workspace/ci-management-packer-merge-ubuntu-20.04-docker/bin/packer.io 2025/05/02 04:59:31 packer.io plugin: [INFO] Packer version: 1.8.2 [go1.17.11 linux amd64] 2025/05/02 04:59:31 packer.io plugin: [INFO] PACKER_CONFIG env var not set; checking the default config file path 2025/05/02 04:59:31 packer.io plugin: [INFO] PACKER_CONFIG env var set; attempting to open config file: /home/jenkins/.packerconfig 2025/05/02 04:59:31 packer.io plugin: [WARN] Config file doesn't exist: /home/jenkins/.packerconfig 2025/05/02 04:59:31 packer.io plugin: [INFO] Setting cache directory: /home/jenkins/.cache/packer 2025/05/02 04:59:31 packer.io plugin: args: []string{"packer-provisioner-shell-local"} 2025/05/02 04:59:31 Received unix RPC address for /w/workspace/ci-management-packer-merge-ubuntu-20.04-docker/bin/packer.io: addr is /tmp/packer-plugin3864260113 2025/05/02 04:59:31 packer.io plugin: Plugin address: unix /tmp/packer-plugin3864260113 2025/05/02 04:59:31 packer.io plugin: Waiting for connection... 2025/05/02 04:59:31 packer.io plugin: Serving a plugin connection... 2025/05/02 04:59:31 [TRACE] Starting internal plugin packer-provisioner-ansible 2025/05/02 04:59:31 Starting plugin: /w/workspace/ci-management-packer-merge-ubuntu-20.04-docker/bin/packer.io []string{"/w/workspace/ci-management-packer-merge-ubuntu-20.04-docker/bin/packer.io", "plugin", "packer-provisioner-ansible"} 2025/05/02 04:59:31 Waiting for RPC address for: /w/workspace/ci-management-packer-merge-ubuntu-20.04-docker/bin/packer.io 2025/05/02 04:59:31 packer.io plugin: [INFO] Packer version: 1.8.2 [go1.17.11 linux amd64] 2025/05/02 04:59:31 packer.io plugin: [INFO] PACKER_CONFIG env var not set; checking the default config file path 2025/05/02 04:59:31 packer.io plugin: [INFO] PACKER_CONFIG env var set; attempting to open config file: /home/jenkins/.packerconfig 2025/05/02 04:59:31 packer.io plugin: [WARN] Config file doesn't exist: /home/jenkins/.packerconfig 2025/05/02 04:59:31 packer.io plugin: [INFO] Setting cache directory: /home/jenkins/.cache/packer 2025/05/02 04:59:31 packer.io plugin: args: []string{"packer-provisioner-ansible"} 2025/05/02 04:59:31 Received unix RPC address for /w/workspace/ci-management-packer-merge-ubuntu-20.04-docker/bin/packer.io: addr is /tmp/packer-plugin2844652343 2025/05/02 04:59:31 packer.io plugin: Plugin address: unix /tmp/packer-plugin2844652343 2025/05/02 04:59:31 packer.io plugin: Waiting for connection... 2025/05/02 04:59:31 Preparing build: openstack 2025/05/02 04:59:31 packer.io plugin: Serving a plugin connection... 2025/05/02 04:59:34 [ERR] Checkpoint error: Get "https://checkpoint-api.hashicorp.com/v1/check/packer?arch=amd64&os=linux&signature=bf187a11-d88c-4414-31ca-67d15bb3691f&version=1.8.2": context deadline exceeded (Client.Timeout exceeded while awaiting headers) 2025/05/02 04:59:34 packer.io plugin: [ERR] Checkpoint error: Get "https://checkpoint-api.hashicorp.com/v1/check/packer?arch=amd64&os=linux&signature=bf187a11-d88c-4414-31ca-67d15bb3691f&version=1.8.2": context deadline exceeded (Client.Timeout exceeded while awaiting headers) 2025/05/02 04:59:34 packer.io plugin: [ERR] Checkpoint error: Get "https://checkpoint-api.hashicorp.com/v1/check/packer?arch=amd64&os=linux&signature=bf187a11-d88c-4414-31ca-67d15bb3691f&version=1.8.2": context deadline exceeded (Client.Timeout exceeded while awaiting headers) 2025/05/02 04:59:34 packer.io plugin: [ERR] Checkpoint error: Get "https://checkpoint-api.hashicorp.com/v1/check/packer?arch=amd64&os=linux&signature=bf187a11-d88c-4414-31ca-67d15bb3691f&version=1.8.2": context deadline exceeded (Client.Timeout exceeded while awaiting headers) 2025/05/02 04:59:34 packer.io plugin: [ERR] Checkpoint error: Get "https://checkpoint-api.hashicorp.com/v1/check/packer?arch=amd64&os=linux&signature=bf187a11-d88c-4414-31ca-67d15bb3691f&version=1.8.2": context deadline exceeded (Client.Timeout exceeded while awaiting headers) 2025/05/02 04:59:36 Build debug mode: false 2025/05/02 04:59:36 Force build: false 2025/05/02 04:59:36 On error: 2025/05/02 04:59:36 Waiting on builds to complete... 2025/05/02 04:59:36 Starting build run: openstack 2025/05/02 04:59:36 Running builder: openstack 2025/05/02 04:59:36 [INFO] (telemetry) Starting builder openstack 2025/05/02 04:59:36 ui: ==> openstack: Loading flavor: v2-highcpu-1 2025/05/02 04:59:36 packer.io plugin: [INFO] Loading flavor by ID: v2-highcpu-1 2025/05/02 04:59:41 packer.io plugin: [ERROR] Failed to find flavor by ID: Resource not found 2025/05/02 04:59:41 packer.io plugin: [INFO] Loading flavor by name: v2-highcpu-1 2025/05/02 04:59:46 ui: openstack: Verified flavor. ID: c04abb7a-2b61-4ed3-8ce8-6c40ad9df750 2025/05/02 04:59:46 ui: ==> openstack: Creating temporary RSA SSH key for instance... 2025/05/02 04:59:48 ui: ==> openstack: Creating temporary keypair: packer_68145138-bccb-4106-5bf4-8c09880e4c89 ... 2025/05/02 04:59:53 ui: ==> openstack: Created temporary keypair: packer_68145138-bccb-4106-5bf4-8c09880e4c89 2025/05/02 04:59:53 packer.io plugin: Using Image Filters {ID: Limit:0 Marker: Name:Ubuntu 20.04 LTS [2022-04-11] Visibility: MemberStatus: Owner: Status: SizeMin:0 SizeMax:0 Sort: SortKey: SortDir: Tags:[] CreatedAtQuery: UpdatedAtQuery: ContainerFormat: DiskFormat:} 2025/05/02 04:59:58 ui: openstack: Found Image ID: 0f154d1e-6d2b-4cfd-ac09-f5c52730cc03 2025/05/02 04:59:58 ui: ==> openstack: Creating volume... 2025/05/02 05:00:03 ui: ==> openstack: Waiting for volume packer_68145138-1d53-ba55-c65c-ad7137832f53 (volume id: 4162290e-c06c-4bc3-95b6-d9889ac2f558) to become available... 2025/05/02 05:00:09 ui: openstack: Volume ID: 4162290e-c06c-4bc3-95b6-d9889ac2f558 2025/05/02 05:00:09 ui: ==> openstack: Launching server... 2025/05/02 05:00:09 ui: ==> openstack: Launching server... 2025/05/02 05:00:15 ui: openstack: Server ID: 90794754-bd67-4004-a538-1598f877734d 2025/05/02 05:00:15 packer.io plugin: server id: 90794754-bd67-4004-a538-1598f877734d 2025/05/02 05:00:15 ui: ==> openstack: Waiting for server to become ready... 2025/05/02 05:00:15 packer.io plugin: Waiting for state to become: [ACTIVE] 2025/05/02 05:00:20 packer.io plugin: Waiting for state to become: [ACTIVE] currently BUILD (0%) 2025/05/02 05:00:27 ui: openstack: Floating IP not required 2025/05/02 05:00:27 packer.io plugin: [INFO] Not using winrm communicator, skipping get password... 2025/05/02 05:00:27 packer.io plugin: [DEBUG] Detected address: 10.30.87.211 2025/05/02 05:00:27 packer.io plugin: [DEBUG] Using IP address 10.30.87.211 to connect 2025/05/02 05:00:27 ui: ==> openstack: Using SSH communicator to connect: 10.30.87.211 2025/05/02 05:00:27 packer.io plugin: [INFO] Waiting for SSH, up to timeout: 5m0s 2025/05/02 05:00:27 ui: ==> openstack: Waiting for SSH to become available... 2025/05/02 05:00:27 packer.io plugin: [DEBUG] Detected address: 10.30.87.211 2025/05/02 05:00:27 packer.io plugin: [DEBUG] Using IP address 10.30.87.211 to connect 2025/05/02 05:00:30 packer.io plugin: [DEBUG] TCP connection to SSH ip/port failed: dial tcp 10.30.87.211:22: connect: no route to host 2025/05/02 05:00:35 packer.io plugin: [DEBUG] Detected address: 10.30.87.211 2025/05/02 05:00:35 packer.io plugin: [DEBUG] Using IP address 10.30.87.211 to connect 2025/05/02 05:00:36 packer.io plugin: [DEBUG] TCP connection to SSH ip/port failed: dial tcp 10.30.87.211:22: connect: connection refused 2025/05/02 05:00:41 packer.io plugin: [DEBUG] Detected address: 10.30.87.211 2025/05/02 05:00:41 packer.io plugin: [DEBUG] Using IP address 10.30.87.211 to connect 2025/05/02 05:00:41 packer.io plugin: [DEBUG] TCP connection to SSH ip/port failed: dial tcp 10.30.87.211:22: connect: connection refused 2025/05/02 05:00:46 packer.io plugin: [DEBUG] Detected address: 10.30.87.211 2025/05/02 05:00:46 packer.io plugin: [DEBUG] Using IP address 10.30.87.211 to connect 2025/05/02 05:00:46 packer.io plugin: [INFO] Attempting SSH connection to 10.30.87.211:22... 2025/05/02 05:00:46 packer.io plugin: [DEBUG] reconnecting to TCP connection for SSH 2025/05/02 05:00:46 packer.io plugin: [DEBUG] handshaking with SSH 2025/05/02 05:00:46 packer.io plugin: [DEBUG] handshake complete! 2025/05/02 05:00:46 packer.io plugin: [DEBUG] Opening new ssh session 2025/05/02 05:00:47 packer.io plugin: [INFO] agent forwarding enabled 2025/05/02 05:00:47 ui: ==> openstack: Connected to SSH! 2025/05/02 05:00:47 packer.io plugin: Running the provision hook 2025/05/02 05:00:47 [INFO] (telemetry) Starting provisioner shell 2025/05/02 05:00:47 ui: ==> openstack: Provisioning with shell script: common-packer/provision/install-python.sh 2025/05/02 05:00:47 packer.io plugin: Opening common-packer/provision/install-python.sh for reading 2025/05/02 05:00:47 packer.io plugin: [INFO] 3713 bytes written for 'uploadData' 2025/05/02 05:00:47 [INFO] 3713 bytes written for 'uploadData' 2025/05/02 05:00:47 packer.io plugin: [DEBUG] Opening new ssh session 2025/05/02 05:00:47 packer.io plugin: [DEBUG] Starting remote scp process: scp -vt /tmp 2025/05/02 05:00:47 packer.io plugin: [DEBUG] Started SCP session, beginning transfers... 2025/05/02 05:00:47 packer.io plugin: [DEBUG] Copying input data into temporary file so we can read the length 2025/05/02 05:00:47 packer.io plugin: [DEBUG] scp: Uploading script_9694.sh: perms=C0644 size=3713 2025/05/02 05:00:47 packer.io plugin: [DEBUG] SCP session complete, closing stdin pipe. 2025/05/02 05:00:47 packer.io plugin: [DEBUG] Waiting for SSH session to complete. 2025/05/02 05:00:47 packer.io plugin: [DEBUG] scp stderr (length 32): Sink: C0644 3713 script_9694.sh 2025/05/02 05:00:47 packer.io plugin: [DEBUG] Opening new ssh session 2025/05/02 05:00:47 packer.io plugin: [DEBUG] starting remote command: chmod 0755 /tmp/script_9694.sh 2025/05/02 05:00:47 [INFO] RPC client: Communicator ended with: 0 2025/05/02 05:00:47 [INFO] RPC endpoint: Communicator ended with: 0 2025/05/02 05:00:47 packer.io plugin: [INFO] RPC endpoint: Communicator ended with: 0 2025/05/02 05:00:47 packer.io plugin: [INFO] RPC client: Communicator ended with: 0 2025/05/02 05:00:47 packer.io plugin: [DEBUG] Opening new ssh session 2025/05/02 05:00:47 packer.io plugin: [DEBUG] starting remote command: chmod +x /tmp/script_9694.sh; if [ "$UID" == "0" ]; then PACKER_BUILDER_TYPE='openstack' PACKER_BUILD_NAME='openstack' '/tmp/script_9694.sh'; else PACKER_BUILDER_TYPE='openstack' PACKER_BUILD_NAME='openstack' sudo -E '/tmp/script_9694.sh'; fi 2025/05/02 05:00:47 ui: openstack: ----> install-python.sh 2025/05/02 05:00:47 ui: openstack: Distro is Ubuntu 2025/05/02 05:00:47 ui: openstack: NetSelect version to install is netselect_0.3.ds1-28+b1_amd64.deb 2025/05/02 05:00:47 ui: openstack: Install netselect from debian to choose a mirror. 2025/05/02 05:00:47 ui error: ==> openstack: 2025/05/02 05:00:47 ui error: ==> openstack: WARNING: apt does not have a stable CLI interface. Use with caution in scripts. 2025/05/02 05:00:47 ui error: ==> openstack: 2025/05/02 05:00:48 ui: openstack: Reading package lists... 2025/05/02 05:00:48 ui: openstack: Building dependency tree... 2025/05/02 05:00:48 ui: openstack: Reading state information... 2025/05/02 05:00:48 ui: openstack: wget is already the newest version (1.20.3-1ubuntu2). 2025/05/02 05:00:48 ui: openstack: wget set to manually installed. 2025/05/02 05:00:48 ui error: ==> openstack: E: Could not open file /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_focal-updates_restricted_i18n_Translation-en - open (2: No such file or directory) 2025/05/02 05:00:48 ui error: ==> openstack: E: Could not open file /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_focal-updates_restricted_binary-amd64_Packages - open (2: No such file or directory) 2025/05/02 05:00:48 ui error: ==> openstack: E: Could not open file /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_focal-updates_main_i18n_Translation-en - open (2: No such file or directory) 2025/05/02 05:00:48 ui error: ==> openstack: E: Could not open file /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_focal-updates_main_binary-amd64_Packages - open (2: No such file or directory) 2025/05/02 05:00:48 ui error: ==> openstack: E: Could not open file /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_focal_restricted_i18n_Translation-en - open (2: No such file or directory) 2025/05/02 05:00:48 ui error: ==> openstack: E: Could not open file /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_focal_restricted_binary-amd64_Packages - open (2: No such file or directory) 2025/05/02 05:00:48 ui error: ==> openstack: E: Could not open file /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_focal_main_i18n_Translation-en - open (2: No such file or directory) 2025/05/02 05:00:48 ui error: ==> openstack: E: Could not open file /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_focal_main_binary-amd64_Packages - open (2: No such file or directory) 2025/05/02 05:00:48 [INFO] 325 bytes written for 'stdout' 2025/05/02 05:00:48 [INFO] 1290 bytes written for 'stderr' 2025/05/02 05:00:48 [INFO] RPC client: Communicator ended with: 100 2025/05/02 05:00:48 [INFO] RPC endpoint: Communicator ended with: 100 2025/05/02 05:00:48 packer.io plugin: [ERROR] Remote command exited with '100': chmod +x /tmp/script_9694.sh; if [ "$UID" == "0" ]; then PACKER_BUILDER_TYPE='openstack' PACKER_BUILD_NAME='openstack' '/tmp/script_9694.sh'; else PACKER_BUILDER_TYPE='openstack' PACKER_BUILD_NAME='openstack' sudo -E '/tmp/script_9694.sh'; fi 2025/05/02 05:00:48 packer.io plugin: [INFO] RPC endpoint: Communicator ended with: 100 2025/05/02 05:00:48 packer.io plugin: [INFO] 325 bytes written for 'stdout' 2025/05/02 05:00:48 packer.io plugin: [INFO] 1290 bytes written for 'stderr' 2025/05/02 05:00:48 packer.io plugin: [INFO] RPC client: Communicator ended with: 100 2025/05/02 05:00:48 [INFO] (telemetry) ending shell 2025/05/02 05:00:48 ui: ==> openstack: Provisioning step had errors: Running the cleanup provisioner, if present... 2025/05/02 05:00:48 ui: ==> openstack: Terminating the source server: 90794754-bd67-4004-a538-1598f877734d ... 2025/05/02 05:00:53 packer.io plugin: Waiting for state to become: [DELETED] 2025/05/02 05:00:59 packer.io plugin: [INFO] 404 on ServerStateRefresh, returning DELETED 2025/05/02 05:01:04 ui: ==> openstack: Deleting volume: 4162290e-c06c-4bc3-95b6-d9889ac2f558 ... 2025/05/02 05:01:09 ui: ==> openstack: Deleting temporary keypair: packer_68145138-bccb-4106-5bf4-8c09880e4c89 ... 2025/05/02 05:01:14 [INFO] (telemetry) ending openstack 2025/05/02 05:01:14 ui error: Build 'openstack' errored after 1 minute 37 seconds: Script exited with non-zero exit status: 100. Allowed exit codes are: [0] 2025/05/02 05:01:14 ui: ==> Wait completed after 1 minute 37 seconds 2025/05/02 05:01:14 machine readable: error-count []string{"1"} 2025/05/02 05:01:14 ui error: ==> Some builds didn't complete successfully and had errors: 2025/05/02 05:01:14 machine readable: openstack,error []string{"Script exited with non-zero exit status: 100. Allowed exit codes are: [0]"} 2025/05/02 05:01:14 ui error: --> openstack: Script exited with non-zero exit status: 100. Allowed exit codes are: [0] 2025/05/02 05:01:14 ui: ==> Builds finished but no artifacts were created. 2025/05/02 05:01:14 [INFO] (telemetry) Finalizing. 2025/05/02 05:01:16 [WARN] (telemetry) Error finalizing report. This is safe to ignore. Post "https://checkpoint-api.hashicorp.com/v1/telemetry/packer": context deadline exceeded 2025/05/02 05:01:16 waiting for all plugin processes to complete... 2025/05/02 05:01:16 /w/workspace/ci-management-packer-merge-ubuntu-20.04-docker/bin/packer.io: plugin process exited 2025/05/02 05:01:16 /w/workspace/ci-management-packer-merge-ubuntu-20.04-docker/bin/packer.io: plugin process exited 2025/05/02 05:01:16 /w/workspace/ci-management-packer-merge-ubuntu-20.04-docker/bin/packer.io: plugin process exited 2025/05/02 05:01:16 /w/workspace/ci-management-packer-merge-ubuntu-20.04-docker/bin/packer.io: plugin process exited