2024/11/01 07:01:14 [INFO] Packer version: 1.9.1 [go1.20.4 linux amd64] 2024/11/01 07:01:14 [TRACE] discovering plugins in /w/workspace/ci-management-packer-merge-centos-cs-9-builder/bin 2024/11/01 07:01:14 [TRACE] discovering plugins in /home/jenkins/.config/packer/plugins 2024/11/01 07:01:14 [DEBUG] Discovered plugin: openstack = /home/jenkins/.config/packer/plugins/github.com/hashicorp/openstack/packer-plugin-openstack_v1.1.2_x5.0_linux_amd64 2024/11/01 07:01:15 [INFO] found external [-packer-default-plugin-name-] builders from openstack plugin 2024/11/01 07:01:15 [TRACE] discovering plugins in . 2024/11/01 07:01:15 [INFO] PACKER_CONFIG env var not set; checking the default config file path 2024/11/01 07:01:15 [INFO] PACKER_CONFIG env var set; attempting to open config file: /home/jenkins/.packerconfig 2024/11/01 07:01:15 [WARN] Config file doesn't exist: /home/jenkins/.packerconfig 2024/11/01 07:01:15 [INFO] Setting cache directory: /home/jenkins/.cache/packer e: Running in background, not using a TTY 2024/11/01 07:01:15 [TRACE] listing potential installations for "github.com/hashicorp/openstack" that match ">= 1.0.0". plugingetter.ListInstallationsOptions{FromFolders:[]string{"/w/workspace/ci-management-packer-merge-centos-cs-9-builder/bin/packer.io", ".", "/home/jenkins/.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)(0xc000068d80)}}}} 2024/11/01 07:01:15 [TRACE] Found the following "github.com/hashicorp/openstack" installations: [{/home/jenkins/.config/packer/plugins/github.com/hashicorp/openstack/packer-plugin-openstack_v1.1.2_x5.0_linux_amd64 v1.1.2}] 2024/11/01 07:01:15 [INFO] found external [-packer-default-plugin-name-] builders from openstack plugin 2024/11/01 07:01:15 [TRACE] validateValue: not active for ssh_user, so skipping 2024/11/01 07:01:15 [TRACE] validateValue: not active for vm_use_block_storage, so skipping 2024/11/01 07:01:15 [TRACE] validateValue: not active for vm_volume_size, so skipping 2024/11/01 07:01:15 [TRACE] validateValue: not active for ansible_roles_path, so skipping 2024/11/01 07:01:15 [TRACE] validateValue: not active for flavor, so skipping 2024/11/01 07:01:15 [TRACE] validateValue: not active for source_ami_filter_product_code, so skipping 2024/11/01 07:01:15 [TRACE] validateValue: not active for source_ami_filter_owner, so skipping 2024/11/01 07:01:15 [TRACE] validateValue: not active for cloud_auth_url, so skipping 2024/11/01 07:01:15 [TRACE] validateValue: not active for cloud_region, so skipping 2024/11/01 07:01:15 [TRACE] validateValue: not active for vm_image_disk_format, so skipping 2024/11/01 07:01:15 [TRACE] validateValue: not active for cloud_user, so skipping 2024/11/01 07:01:15 [TRACE] validateValue: not active for distro, so skipping 2024/11/01 07:01:15 [TRACE] validateValue: not active for source_ami_filter_name, so skipping 2024/11/01 07:01:15 [TRACE] validateValue: not active for cloud_network, so skipping 2024/11/01 07:01:15 [TRACE] validateValue: not active for cloud_user_data, so skipping 2024/11/01 07:01:15 [TRACE] validateValue: not active for docker_source_image, so skipping 2024/11/01 07:01:15 [TRACE] validateValue: not active for ssh_proxy_host, so skipping 2024/11/01 07:01:15 [TRACE] validateValue: not active for arch, so skipping 2024/11/01 07:01:15 [TRACE] validateValue: not active for base_image, so skipping 2024/11/01 07:01:15 [TRACE] validateValue: not active for cloud_tenant, so skipping 2024/11/01 07:01:15 [TRACE] validateValue: not active for cloud_pass, so skipping 2024/11/01 07:01:15 [TRACE] Starting external plugin /home/jenkins/.config/packer/plugins/github.com/hashicorp/openstack/packer-plugin-openstack_v1.1.2_x5.0_linux_amd64 start builder -packer-default-plugin-name- 2024/11/01 07:01:15 Starting plugin: /home/jenkins/.config/packer/plugins/github.com/hashicorp/openstack/packer-plugin-openstack_v1.1.2_x5.0_linux_amd64 []string{"/home/jenkins/.config/packer/plugins/github.com/hashicorp/openstack/packer-plugin-openstack_v1.1.2_x5.0_linux_amd64", "start", "builder", "-packer-default-plugin-name-"} 2024/11/01 07:01:15 Waiting for RPC address for: /home/jenkins/.config/packer/plugins/github.com/hashicorp/openstack/packer-plugin-openstack_v1.1.2_x5.0_linux_amd64 2024/11/01 07:01:15 Received unix RPC address for /home/jenkins/.config/packer/plugins/github.com/hashicorp/openstack/packer-plugin-openstack_v1.1.2_x5.0_linux_amd64: addr is /tmp/packer-plugin2712793678 2024/11/01 07:01:15 packer-plugin-openstack_v1.1.2_x5.0_linux_amd64 plugin: 2024/11/01 07:01:15 Plugin address: unix /tmp/packer-plugin2712793678 2024/11/01 07:01:15 packer-plugin-openstack_v1.1.2_x5.0_linux_amd64 plugin: 2024/11/01 07:01:15 Waiting for connection... 2024/11/01 07:01:15 packer-plugin-openstack_v1.1.2_x5.0_linux_amd64 plugin: 2024/11/01 07:01:15 Serving a plugin connection... 2024/11/01 07:01:15 packer-plugin-openstack_v1.1.2_x5.0_linux_amd64 plugin: 2024/11/01 07:01:15 [TRACE] starting builder -packer-default-plugin-name- 2024/11/01 07:01:15 [TRACE] Starting internal plugin packer-provisioner-shell 2024/11/01 07:01:15 Starting plugin: /w/workspace/ci-management-packer-merge-centos-cs-9-builder/bin/packer.io []string{"/w/workspace/ci-management-packer-merge-centos-cs-9-builder/bin/packer.io", "plugin", "packer-provisioner-shell"} 2024/11/01 07:01:15 Waiting for RPC address for: /w/workspace/ci-management-packer-merge-centos-cs-9-builder/bin/packer.io 2024/11/01 07:01:15 Received unix RPC address for /w/workspace/ci-management-packer-merge-centos-cs-9-builder/bin/packer.io: addr is /tmp/packer-plugin3899215770 2024/11/01 07:01:15 packer.io plugin: [INFO] Packer version: 1.9.1 [go1.20.4 linux amd64] 2024/11/01 07:01:15 packer.io plugin: [INFO] PACKER_CONFIG env var not set; checking the default config file path 2024/11/01 07:01:15 packer.io plugin: [INFO] PACKER_CONFIG env var set; attempting to open config file: /home/jenkins/.packerconfig 2024/11/01 07:01:15 packer.io plugin: [WARN] Config file doesn't exist: /home/jenkins/.packerconfig 2024/11/01 07:01:15 packer.io plugin: [INFO] Setting cache directory: /home/jenkins/.cache/packer 2024/11/01 07:01:15 packer.io plugin: args: []string{"packer-provisioner-shell"} 2024/11/01 07:01:15 packer.io plugin: Plugin address: unix /tmp/packer-plugin3899215770 2024/11/01 07:01:15 packer.io plugin: Waiting for connection... 2024/11/01 07:01:15 packer.io plugin: Serving a plugin connection... 2024/11/01 07:01:15 [TRACE] Starting internal plugin packer-provisioner-shell-local 2024/11/01 07:01:15 Starting plugin: /w/workspace/ci-management-packer-merge-centos-cs-9-builder/bin/packer.io []string{"/w/workspace/ci-management-packer-merge-centos-cs-9-builder/bin/packer.io", "plugin", "packer-provisioner-shell-local"} 2024/11/01 07:01:15 Waiting for RPC address for: /w/workspace/ci-management-packer-merge-centos-cs-9-builder/bin/packer.io 2024/11/01 07:01:15 Received unix RPC address for /w/workspace/ci-management-packer-merge-centos-cs-9-builder/bin/packer.io: addr is /tmp/packer-plugin4065588906 2024/11/01 07:01:15 packer.io plugin: [INFO] Packer version: 1.9.1 [go1.20.4 linux amd64] 2024/11/01 07:01:15 packer.io plugin: [INFO] PACKER_CONFIG env var not set; checking the default config file path 2024/11/01 07:01:15 packer.io plugin: [INFO] PACKER_CONFIG env var set; attempting to open config file: /home/jenkins/.packerconfig 2024/11/01 07:01:15 packer.io plugin: [WARN] Config file doesn't exist: /home/jenkins/.packerconfig 2024/11/01 07:01:15 packer.io plugin: [INFO] Setting cache directory: /home/jenkins/.cache/packer 2024/11/01 07:01:15 packer.io plugin: args: []string{"packer-provisioner-shell-local"} 2024/11/01 07:01:15 packer.io plugin: Plugin address: unix /tmp/packer-plugin4065588906 2024/11/01 07:01:15 packer.io plugin: Waiting for connection... 2024/11/01 07:01:15 packer.io plugin: Serving a plugin connection... 2024/11/01 07:01:15 [TRACE] Starting internal plugin packer-provisioner-ansible 2024/11/01 07:01:15 Starting plugin: /w/workspace/ci-management-packer-merge-centos-cs-9-builder/bin/packer.io []string{"/w/workspace/ci-management-packer-merge-centos-cs-9-builder/bin/packer.io", "plugin", "packer-provisioner-ansible"} 2024/11/01 07:01:15 Waiting for RPC address for: /w/workspace/ci-management-packer-merge-centos-cs-9-builder/bin/packer.io 2024/11/01 07:01:15 Received unix RPC address for /w/workspace/ci-management-packer-merge-centos-cs-9-builder/bin/packer.io: addr is /tmp/packer-plugin3176164234 2024/11/01 07:01:15 packer.io plugin: [INFO] Packer version: 1.9.1 [go1.20.4 linux amd64] 2024/11/01 07:01:15 packer.io plugin: [INFO] PACKER_CONFIG env var not set; checking the default config file path 2024/11/01 07:01:15 packer.io plugin: [INFO] PACKER_CONFIG env var set; attempting to open config file: /home/jenkins/.packerconfig 2024/11/01 07:01:15 packer.io plugin: [WARN] Config file doesn't exist: /home/jenkins/.packerconfig 2024/11/01 07:01:15 packer.io plugin: [INFO] Setting cache directory: /home/jenkins/.cache/packer 2024/11/01 07:01:15 packer.io plugin: args: []string{"packer-provisioner-ansible"} 2024/11/01 07:01:15 packer.io plugin: Plugin address: unix /tmp/packer-plugin3176164234 2024/11/01 07:01:15 packer.io plugin: Waiting for connection... 2024/11/01 07:01:15 packer.io plugin: Serving a plugin connection... 2024/11/01 07:01:15 Build debug mode: false 2024/11/01 07:01:15 Force build: false 2024/11/01 07:01:15 On error: 2024/11/01 07:01:15 Waiting on builds to complete... 2024/11/01 07:01:15 Starting build run: openstack.builder 2024/11/01 07:01:15 Running builder: 2024/11/01 07:01:15 [INFO] (telemetry) Starting builder openstack.builder 2024/11/01 07:01:15 ui: ==> openstack.builder: Loading flavor: v2-highcpu-1 2024/11/01 07:01:15 packer-plugin-openstack_v1.1.2_x5.0_linux_amd64 plugin: 2024/11/01 07:01:15 [INFO] Loading flavor by ID: v2-highcpu-1 2024/11/01 07:01:16 packer-plugin-openstack_v1.1.2_x5.0_linux_amd64 plugin: 2024/11/01 07:01:16 [ERROR] Failed to find flavor by ID: Resource not found 2024/11/01 07:01:16 packer-plugin-openstack_v1.1.2_x5.0_linux_amd64 plugin: 2024/11/01 07:01:16 [INFO] Loading flavor by name: v2-highcpu-1 2024/11/01 07:01:16 ui: openstack.builder: Verified flavor. ID: c04abb7a-2b61-4ed3-8ce8-6c40ad9df750 2024/11/01 07:01:16 ui: ==> openstack.builder: Creating temporary RSA SSH key for instance... 2024/11/01 07:01:20 ui: ==> openstack.builder: Creating temporary keypair: packer_67247cbb-5f22-b3c8-44c2-2bfda0f3f95c ... 2024/11/01 07:01:20 ui: ==> openstack.builder: Created temporary keypair: packer_67247cbb-5f22-b3c8-44c2-2bfda0f3f95c 2024/11/01 07:01:20 packer-plugin-openstack_v1.1.2_x5.0_linux_amd64 plugin: 2024/11/01 07:01:20 Using Image Filters {ID: Limit:0 Marker: Name:CentOS Stream 9 (x86_64) [2023-03-27] Visibility: MemberStatus: Owner: Status: SizeMin:0 SizeMax:0 Sort: SortKey: SortDir: Tags:[] CreatedAtQuery: UpdatedAtQuery: ContainerFormat: DiskFormat:} 2024/11/01 07:01:20 ui: openstack.builder: Found Image ID: df1fc5b2-0142-421e-82a8-3d91711e3eb3 2024/11/01 07:01:20 ui: ==> openstack.builder: Creating volume... 2024/11/01 07:01:20 ui: ==> openstack.builder: Waiting for volume packer_67247cbb-f535-2c1b-8329-08b8133bd68d (volume id: 4e12ba8b-aa1a-41d2-a687-c0566b522757) to become available... 2024/11/01 07:01:20 packer-plugin-openstack_v1.1.2_x5.0_linux_amd64 plugin: 2024/11/01 07:01:20 Waiting for volume creation status: creating 2024/11/01 07:01:22 ui: openstack.builder: Volume ID: 4e12ba8b-aa1a-41d2-a687-c0566b522757 2024/11/01 07:01:22 ui: ==> openstack.builder: Launching server... 2024/11/01 07:01:22 ui: ==> openstack.builder: Launching server... 2024/11/01 07:01:24 ui: openstack.builder: Server ID: b234bc2a-37d2-4f01-9a72-961f1356e330 2024/11/01 07:01:24 packer-plugin-openstack_v1.1.2_x5.0_linux_amd64 plugin: 2024/11/01 07:01:24 server id: b234bc2a-37d2-4f01-9a72-961f1356e330 2024/11/01 07:01:24 ui: ==> openstack.builder: Waiting for server to become ready... 2024/11/01 07:01:24 packer-plugin-openstack_v1.1.2_x5.0_linux_amd64 plugin: 2024/11/01 07:01:24 Waiting for state to become: [ACTIVE] 2024/11/01 07:01:24 packer-plugin-openstack_v1.1.2_x5.0_linux_amd64 plugin: 2024/11/01 07:01:24 Waiting for state to become: [ACTIVE] currently BUILD (0%) 2024/11/01 07:01:27 packer-plugin-openstack_v1.1.2_x5.0_linux_amd64 plugin: 2024/11/01 07:01:27 Waiting for state to become: [ACTIVE] currently BUILD (0%) 2024/11/01 07:01:29 packer-plugin-openstack_v1.1.2_x5.0_linux_amd64 plugin: 2024/11/01 07:01:29 Waiting for state to become: [ACTIVE] currently BUILD (0%) 2024/11/01 07:01:31 ui: openstack.builder: Floating IP not required 2024/11/01 07:01:31 packer-plugin-openstack_v1.1.2_x5.0_linux_amd64 plugin: 2024/11/01 07:01:31 [INFO] Not using winrm communicator, skipping get password... 2024/11/01 07:01:31 packer-plugin-openstack_v1.1.2_x5.0_linux_amd64 plugin: 2024/11/01 07:01:31 [DEBUG] Detected address: 10.32.7.42 2024/11/01 07:01:31 packer-plugin-openstack_v1.1.2_x5.0_linux_amd64 plugin: 2024/11/01 07:01:31 [DEBUG] Using IP address 10.32.7.42 to connect 2024/11/01 07:01:31 ui: ==> openstack.builder: Using SSH communicator to connect: 10.32.7.42 2024/11/01 07:01:31 packer-plugin-openstack_v1.1.2_x5.0_linux_amd64 plugin: 2024/11/01 07:01:31 [INFO] Waiting for SSH, up to timeout: 5m0s 2024/11/01 07:01:31 ui: ==> openstack.builder: Waiting for SSH to become available... 2024/11/01 07:01:31 packer-plugin-openstack_v1.1.2_x5.0_linux_amd64 plugin: 2024/11/01 07:01:31 [DEBUG] Detected address: 10.32.7.42 2024/11/01 07:01:31 packer-plugin-openstack_v1.1.2_x5.0_linux_amd64 plugin: 2024/11/01 07:01:31 [DEBUG] Using IP address 10.32.7.42 to connect 2024/11/01 07:01:34 packer-plugin-openstack_v1.1.2_x5.0_linux_amd64 plugin: 2024/11/01 07:01:34 [DEBUG] TCP connection to SSH ip/port failed: dial tcp 10.32.7.42:22: connect: no route to host 2024/11/01 07:01:39 packer-plugin-openstack_v1.1.2_x5.0_linux_amd64 plugin: 2024/11/01 07:01:39 [DEBUG] Detected address: 10.32.7.42 2024/11/01 07:01:39 packer-plugin-openstack_v1.1.2_x5.0_linux_amd64 plugin: 2024/11/01 07:01:39 [DEBUG] Using IP address 10.32.7.42 to connect 2024/11/01 07:01:42 packer-plugin-openstack_v1.1.2_x5.0_linux_amd64 plugin: 2024/11/01 07:01:42 [DEBUG] TCP connection to SSH ip/port failed: dial tcp 10.32.7.42:22: connect: no route to host 2024/11/01 07:01:47 packer-plugin-openstack_v1.1.2_x5.0_linux_amd64 plugin: 2024/11/01 07:01:47 [DEBUG] Detected address: 10.32.7.42 2024/11/01 07:01:47 packer-plugin-openstack_v1.1.2_x5.0_linux_amd64 plugin: 2024/11/01 07:01:47 [DEBUG] Using IP address 10.32.7.42 to connect 2024/11/01 07:01:48 packer-plugin-openstack_v1.1.2_x5.0_linux_amd64 plugin: 2024/11/01 07:01:48 [DEBUG] TCP connection to SSH ip/port failed: dial tcp 10.32.7.42:22: connect: connection refused 2024/11/01 07:01:53 packer-plugin-openstack_v1.1.2_x5.0_linux_amd64 plugin: 2024/11/01 07:01:53 [DEBUG] Detected address: 10.32.7.42 2024/11/01 07:01:53 packer-plugin-openstack_v1.1.2_x5.0_linux_amd64 plugin: 2024/11/01 07:01:53 [DEBUG] Using IP address 10.32.7.42 to connect 2024/11/01 07:01:53 packer-plugin-openstack_v1.1.2_x5.0_linux_amd64 plugin: 2024/11/01 07:01:53 [INFO] Attempting SSH connection to 10.32.7.42:22... 2024/11/01 07:01:53 packer-plugin-openstack_v1.1.2_x5.0_linux_amd64 plugin: 2024/11/01 07:01:53 [DEBUG] reconnecting to TCP connection for SSH 2024/11/01 07:01:53 packer-plugin-openstack_v1.1.2_x5.0_linux_amd64 plugin: 2024/11/01 07:01:53 [DEBUG] handshaking with SSH 2024/11/01 07:01:53 packer-plugin-openstack_v1.1.2_x5.0_linux_amd64 plugin: 2024/11/01 07:01:53 [DEBUG] handshake complete! 2024/11/01 07:01:53 packer-plugin-openstack_v1.1.2_x5.0_linux_amd64 plugin: 2024/11/01 07:01:53 [DEBUG] Opening new ssh session 2024/11/01 07:01:53 ui: ==> openstack.builder: Connected to SSH! 2024/11/01 07:01:53 packer-plugin-openstack_v1.1.2_x5.0_linux_amd64 plugin: 2024/11/01 07:01:53 [INFO] agent forwarding enabled 2024/11/01 07:01:53 packer-plugin-openstack_v1.1.2_x5.0_linux_amd64 plugin: 2024/11/01 07:01:53 Running the provision hook 2024/11/01 07:01:53 [INFO] (telemetry) Starting provisioner shell 2024/11/01 07:01:53 ui: ==> openstack.builder: Provisioning with shell script: common-packer/provision/install-python.sh 2024/11/01 07:01:53 packer.io plugin: Opening common-packer/provision/install-python.sh for reading 2024/11/01 07:01:53 packer.io plugin: [INFO] 3713 bytes written for 'uploadData' 2024/11/01 07:01:53 [INFO] 3713 bytes written for 'uploadData' 2024/11/01 07:01:53 packer-plugin-openstack_v1.1.2_x5.0_linux_amd64 plugin: 2024/11/01 07:01:53 [DEBUG] Opening new ssh session 2024/11/01 07:01:53 packer-plugin-openstack_v1.1.2_x5.0_linux_amd64 plugin: 2024/11/01 07:01:53 [DEBUG] Starting remote scp process: scp -vt /tmp 2024/11/01 07:01:53 packer-plugin-openstack_v1.1.2_x5.0_linux_amd64 plugin: 2024/11/01 07:01:53 [DEBUG] Started SCP session, beginning transfers... 2024/11/01 07:01:53 packer-plugin-openstack_v1.1.2_x5.0_linux_amd64 plugin: 2024/11/01 07:01:53 [DEBUG] Copying input data into temporary file so we can read the length 2024/11/01 07:01:53 packer-plugin-openstack_v1.1.2_x5.0_linux_amd64 plugin: 2024/11/01 07:01:53 [DEBUG] scp: Uploading script_2544.sh: perms=C0644 size=3713 2024/11/01 07:01:53 packer-plugin-openstack_v1.1.2_x5.0_linux_amd64 plugin: 2024/11/01 07:01:53 [DEBUG] SCP session complete, closing stdin pipe. 2024/11/01 07:01:53 packer-plugin-openstack_v1.1.2_x5.0_linux_amd64 plugin: 2024/11/01 07:01:53 [DEBUG] Waiting for SSH session to complete. 2024/11/01 07:01:53 packer-plugin-openstack_v1.1.2_x5.0_linux_amd64 plugin: 2024/11/01 07:01:53 [DEBUG] scp stderr (length 66): Sink: C0644 3713 script_2544.sh 2024/11/01 07:01:53 packer-plugin-openstack_v1.1.2_x5.0_linux_amd64 plugin: debug1: fd 0 clearing O_NONBLOCK 2024/11/01 07:01:53 packer-plugin-openstack_v1.1.2_x5.0_linux_amd64 plugin: 2024/11/01 07:01:53 [DEBUG] Opening new ssh session 2024/11/01 07:01:53 packer-plugin-openstack_v1.1.2_x5.0_linux_amd64 plugin: 2024/11/01 07:01:53 [DEBUG] starting remote command: chmod 0755 /tmp/script_2544.sh 2024/11/01 07:01:53 [INFO] RPC client: Communicator ended with: 0 2024/11/01 07:01:53 packer-plugin-openstack_v1.1.2_x5.0_linux_amd64 plugin: 2024/11/01 07:01:53 [INFO] RPC endpoint: Communicator ended with: 0 2024/11/01 07:01:53 [INFO] RPC endpoint: Communicator ended with: 0 2024/11/01 07:01:53 packer.io plugin: [INFO] RPC client: Communicator ended with: 0 2024/11/01 07:01:53 packer-plugin-openstack_v1.1.2_x5.0_linux_amd64 plugin: 2024/11/01 07:01:53 [DEBUG] Opening new ssh session 2024/11/01 07:01:53 packer-plugin-openstack_v1.1.2_x5.0_linux_amd64 plugin: 2024/11/01 07:01:53 [DEBUG] starting remote command: chmod +x /tmp/script_2544.sh; if [ "$UID" == "0" ]; then PACKER_BUILDER_TYPE='openstack' PACKER_BUILD_NAME='builder' '/tmp/script_2544.sh'; else PACKER_BUILDER_TYPE='openstack' PACKER_BUILD_NAME='builder' sudo -E '/tmp/script_2544.sh'; fi 2024/11/01 07:01:53 ui: openstack.builder: ----> install-python.sh 2024/11/01 07:01:53 ui: openstack.builder: Distro is NOT Ubuntu 2024/11/01 07:01:53 ui: openstack.builder: Distro is NOT CentOS 8 2024/11/01 07:01:53 ui: openstack.builder: /bin/sudo 2024/11/01 07:01:53 ui: openstack.builder: sudo is /bin/sudo 2024/11/01 07:01:53 [INFO] 96 bytes written for 'stdout' 2024/11/01 07:01:53 packer-plugin-openstack_v1.1.2_x5.0_linux_amd64 plugin: 2024/11/01 07:01:53 [INFO] RPC endpoint: Communicator ended with: 0 2024/11/01 07:01:53 [INFO] 0 bytes written for 'stderr' 2024/11/01 07:01:53 [INFO] RPC client: Communicator ended with: 0 2024/11/01 07:01:53 [INFO] RPC endpoint: Communicator ended with: 0 2024/11/01 07:01:53 packer.io plugin: [INFO] 96 bytes written for 'stdout' 2024/11/01 07:01:53 packer.io plugin: [INFO] 0 bytes written for 'stderr' 2024/11/01 07:01:53 packer.io plugin: [INFO] RPC client: Communicator ended with: 0 2024/11/01 07:01:53 packer-plugin-openstack_v1.1.2_x5.0_linux_amd64 plugin: 2024/11/01 07:01:53 [DEBUG] Opening new ssh session 2024/11/01 07:01:53 packer-plugin-openstack_v1.1.2_x5.0_linux_amd64 plugin: 2024/11/01 07:01:53 [DEBUG] starting remote command: rm -f /tmp/script_2544.sh 2024/11/01 07:01:53 [INFO] RPC client: Communicator ended with: 0 2024/11/01 07:01:53 packer-plugin-openstack_v1.1.2_x5.0_linux_amd64 plugin: 2024/11/01 07:01:53 [INFO] RPC endpoint: Communicator ended with: 0 2024/11/01 07:01:53 [INFO] RPC endpoint: Communicator ended with: 0 2024/11/01 07:01:53 packer.io plugin: [INFO] RPC client: Communicator ended with: 0 2024/11/01 07:01:53 packer-plugin-openstack_v1.1.2_x5.0_linux_amd64 plugin: 2024/11/01 07:01:53 [DEBUG] Opening new ssh session 2024/11/01 07:01:53 packer-plugin-openstack_v1.1.2_x5.0_linux_amd64 plugin: 2024/11/01 07:01:53 [DEBUG] starting remote command: rm -f 2024/11/01 07:01:53 [INFO] RPC client: Communicator ended with: 0 2024/11/01 07:01:53 packer-plugin-openstack_v1.1.2_x5.0_linux_amd64 plugin: 2024/11/01 07:01:53 [INFO] RPC endpoint: Communicator ended with: 0 2024/11/01 07:01:53 [INFO] RPC endpoint: Communicator ended with: 0 2024/11/01 07:01:53 packer.io plugin: [INFO] RPC client: Communicator ended with: 0 2024/11/01 07:01:53 [INFO] (telemetry) ending shell 2024/11/01 07:01:53 [INFO] (telemetry) Starting provisioner shell-local 2024/11/01 07:01:53 packer.io plugin: [INFO] (shell-local): Prepending inline script with #!/bin/sh -e 2024/11/01 07:01:53 ui: ==> openstack.builder: Running local shell script: /tmp/packer-shell2104424133 2024/11/01 07:01:53 packer.io plugin: [INFO] (shell-local): starting local command: /bin/sh -c PACKER_BUILDER_TYPE='openstack' PACKER_BUILD_NAME='builder' /tmp/packer-shell2104424133 2024/11/01 07:01:53 packer.io plugin: [INFO] (shell-local communicator): Executing local shell command [/bin/sh -c PACKER_BUILDER_TYPE='openstack' PACKER_BUILD_NAME='builder' /tmp/packer-shell2104424133] 2024/11/01 07:01:53 ui: openstack.builder: ----> ansible-galaxy.sh 2024/11/01 07:01:53 ui: openstack.builder: Setup pyenv: 2024/11/01 07:01:53 ui: openstack.builder: system 2024/11/01 07:01:53 ui: openstack.builder: * 3.8.13 (set by /opt/pyenv/version) 2024/11/01 07:01:53 ui: openstack.builder: * 3.9.13 (set by /opt/pyenv/version) 2024/11/01 07:01:58 ui: openstack.builder: lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-sSWM 2024/11/01 07:01:58 ui: openstack.builder: lf-activate-venv(): INFO: Save venv in file: /tmp/.ansible_venv 2024/11/01 07:02:02 ui: openstack.builder: lf-activate-venv(): INFO: Installing: ansible~=2.9.27 2024/11/01 07:02:38 ui: openstack.builder: lf-activate-venv(): INFO: Adding /tmp/venv-sSWM/bin to PATH 2024/11/01 07:02:38 ui: openstack.builder: Running: ansible-galaxy install -p .galaxy -r ./common-packer/requirements.yaml 2024/11/01 07:02:38 ui: openstack.builder: - downloading role 'docker-install', owned by lfit 2024/11/01 07:02:39 ui: openstack.builder: - downloading role from https://github.com/lfit/ansible-roles-docker-install/archive/master.tar.gz 2024/11/01 07:02:39 ui: openstack.builder: - extracting lfit.docker-install to /w/workspace/ci-management-packer-merge-centos-cs-9-builder/packer/.galaxy/lfit.docker-install 2024/11/01 07:02:39 ui: openstack.builder: - lfit.docker-install (master) was installed successfully 2024/11/01 07:02:39 ui: openstack.builder: - downloading role 'haveged-install', owned by lfit 2024/11/01 07:02:40 ui: openstack.builder: - downloading role from https://github.com/lfit/ansible-roles-haveged-install/archive/master.tar.gz 2024/11/01 07:02:40 ui: openstack.builder: - extracting lfit.haveged-install to /w/workspace/ci-management-packer-merge-centos-cs-9-builder/packer/.galaxy/lfit.haveged-install 2024/11/01 07:02:40 ui: openstack.builder: - lfit.haveged-install (master) was installed successfully 2024/11/01 07:02:40 ui: openstack.builder: - downloading role 'java-install', owned by lfit 2024/11/01 07:02:41 ui: openstack.builder: - downloading role from https://github.com/lfit/ansible-roles-java-install/archive/master.tar.gz 2024/11/01 07:02:41 ui: openstack.builder: - extracting lfit.java-install to /w/workspace/ci-management-packer-merge-centos-cs-9-builder/packer/.galaxy/lfit.java-install 2024/11/01 07:02:41 ui: openstack.builder: - lfit.java-install (master) was installed successfully 2024/11/01 07:02:41 ui: openstack.builder: - downloading role 'lf-dev-libs', owned by lfit 2024/11/01 07:02:42 ui: openstack.builder: - downloading role from https://github.com/lfit/ansible-roles-lf-dev-libs/archive/master.tar.gz 2024/11/01 07:02:42 ui: openstack.builder: - extracting lfit.lf-dev-libs to /w/workspace/ci-management-packer-merge-centos-cs-9-builder/packer/.galaxy/lfit.lf-dev-libs 2024/11/01 07:02:42 ui: openstack.builder: - lfit.lf-dev-libs (master) was installed successfully 2024/11/01 07:02:42 ui: openstack.builder: - downloading role 'lf-recommended-tools', owned by lfit 2024/11/01 07:02:42 ui: openstack.builder: - downloading role from https://github.com/lfit/ansible-roles-lf-recommended-tools/archive/master.tar.gz 2024/11/01 07:02:43 ui: openstack.builder: - extracting lfit.lf-recommended-tools to /w/workspace/ci-management-packer-merge-centos-cs-9-builder/packer/.galaxy/lfit.lf-recommended-tools 2024/11/01 07:02:43 ui: openstack.builder: - lfit.lf-recommended-tools (master) was installed successfully 2024/11/01 07:02:43 ui: openstack.builder: - downloading role 'mono-install', owned by lfit 2024/11/01 07:02:43 ui: openstack.builder: - downloading role from https://github.com/lfit/ansible-roles-mono-install/archive/master.tar.gz 2024/11/01 07:02:44 ui: openstack.builder: - extracting lfit.mono-install to /w/workspace/ci-management-packer-merge-centos-cs-9-builder/packer/.galaxy/lfit.mono-install 2024/11/01 07:02:44 ui: openstack.builder: - lfit.mono-install (master) was installed successfully 2024/11/01 07:02:44 ui: openstack.builder: - downloading role 'packer-install', owned by lfit 2024/11/01 07:02:44 ui: openstack.builder: - downloading role from https://github.com/lfit/ansible-roles-packer-install/archive/master.tar.gz 2024/11/01 07:02:45 ui: openstack.builder: - extracting lfit.packer-install to /w/workspace/ci-management-packer-merge-centos-cs-9-builder/packer/.galaxy/lfit.packer-install 2024/11/01 07:02:45 ui: openstack.builder: - lfit.packer-install (master) was installed successfully 2024/11/01 07:02:45 ui: openstack.builder: - downloading role 'protobuf-install', owned by lfit 2024/11/01 07:02:45 ui: openstack.builder: - downloading role from https://github.com/lfit/ansible-roles-protobuf-install/archive/master.tar.gz 2024/11/01 07:02:46 ui: openstack.builder: - extracting lfit.protobuf-install to /w/workspace/ci-management-packer-merge-centos-cs-9-builder/packer/.galaxy/lfit.protobuf-install 2024/11/01 07:02:46 ui: openstack.builder: - lfit.protobuf-install (master) was installed successfully 2024/11/01 07:02:46 ui: openstack.builder: - downloading role 'puppet-install', owned by lfit 2024/11/01 07:02:46 ui: openstack.builder: - downloading role from https://github.com/lfit/ansible-roles-puppet-install/archive/master.tar.gz 2024/11/01 07:02:47 ui: openstack.builder: - extracting lfit.puppet-install to /w/workspace/ci-management-packer-merge-centos-cs-9-builder/packer/.galaxy/lfit.puppet-install 2024/11/01 07:02:47 ui: openstack.builder: - lfit.puppet-install (master) was installed successfully 2024/11/01 07:02:47 ui: openstack.builder: - downloading role 'python-install', owned by lfit 2024/11/01 07:02:47 ui: openstack.builder: - downloading role from https://github.com/lfit/ansible-roles-python-install/archive/master.tar.gz 2024/11/01 07:02:48 ui: openstack.builder: - extracting lfit.python-install to /w/workspace/ci-management-packer-merge-centos-cs-9-builder/packer/.galaxy/lfit.python-install 2024/11/01 07:02:48 ui: openstack.builder: - lfit.python-install (master) was installed successfully 2024/11/01 07:02:48 ui: openstack.builder: - downloading role 'shellcheck-install', owned by lfit 2024/11/01 07:02:48 ui: openstack.builder: - downloading role from https://github.com/lfit/ansible-roles-shellcheck-install/archive/master.tar.gz 2024/11/01 07:02:48 ui: openstack.builder: - extracting lfit.shellcheck-install to /w/workspace/ci-management-packer-merge-centos-cs-9-builder/packer/.galaxy/lfit.shellcheck-install 2024/11/01 07:02:48 ui: openstack.builder: - lfit.shellcheck-install (master) was installed successfully 2024/11/01 07:02:48 ui: openstack.builder: - downloading role 'sysstat-install', owned by lfit 2024/11/01 07:02:49 ui: openstack.builder: - downloading role from https://github.com/lfit/ansible-roles-sysstat-install/archive/master.tar.gz 2024/11/01 07:02:49 ui: openstack.builder: - extracting lfit.sysstat-install to /w/workspace/ci-management-packer-merge-centos-cs-9-builder/packer/.galaxy/lfit.sysstat-install 2024/11/01 07:02:49 ui: openstack.builder: - lfit.sysstat-install (master) was installed successfully 2024/11/01 07:02:49 ui: openstack.builder: - downloading role 'system-update', owned by lfit 2024/11/01 07:02:49 ui: openstack.builder: - downloading role from https://github.com/lfit/ansible-roles-system-update/archive/master.tar.gz 2024/11/01 07:02:50 ui: openstack.builder: - extracting lfit.system-update to /w/workspace/ci-management-packer-merge-centos-cs-9-builder/packer/.galaxy/lfit.system-update 2024/11/01 07:02:50 ui: openstack.builder: - lfit.system-update (master) was installed successfully 2024/11/01 07:02:50 ui: openstack.builder: Running: ansible-galaxy install -p .galaxy -r requirements.yaml 2024/11/01 07:02:50 ui: openstack.builder: - downloading role 'ruby', owned by geerlingguy 2024/11/01 07:02:51 ui: openstack.builder: - downloading role from https://github.com/geerlingguy/ansible-role-ruby/archive/3.2.0.tar.gz 2024/11/01 07:02:51 ui: openstack.builder: - extracting geerlingguy.ruby to /w/workspace/ci-management-packer-merge-centos-cs-9-builder/packer/.galaxy/geerlingguy.ruby 2024/11/01 07:02:51 ui: openstack.builder: - geerlingguy.ruby (3.2.0) was installed successfully 2024/11/01 07:02:51 ui: openstack.builder: - downloading role 'golang', owned by gantsign 2024/11/01 07:02:52 ui: openstack.builder: - downloading role from https://github.com/gantsign/ansible-role-golang/archive/3.3.6.tar.gz 2024/11/01 07:02:52 ui: openstack.builder: - extracting gantsign.golang to /w/workspace/ci-management-packer-merge-centos-cs-9-builder/packer/.galaxy/gantsign.golang 2024/11/01 07:02:52 ui: openstack.builder: - gantsign.golang (3.3.6) was installed successfully 2024/11/01 07:02:52 [INFO] (telemetry) ending shell-local 2024/11/01 07:02:52 [INFO] (telemetry) Starting provisioner ansible 2024/11/01 07:02:52 ui: ==> openstack.builder: Provisioning with Ansible... 2024/11/01 07:02:52 ui: openstack.builder: Setting up proxy adapter for Ansible.... 2024/11/01 07:02:53 packer.io plugin: SSH proxy: serving on 127.0.0.1:37521 2024/11/01 07:02:53 packer.io plugin: Creating inventory file for Ansible run... 2024/11/01 07:02:53 ui: ==> openstack.builder: Executing Ansible: ./common-packer/ansible-playbook.sh -e packer_build_name="builder" -e packer_builder_type=openstack --ssh-extra-args '-o IdentitiesOnly=yes' --ssh-extra-args -o IdentitiesOnly=yes -o HostKeyAlgorithms=+ssh-rsa -e ansible_ssh_private_key_file=/tmp/ansible-key709486403 -i /tmp/packer-provisioner-ansible2980461494 /w/workspace/ci-management-packer-merge-centos-cs-9-builder/packer/provision/local-builder.yaml 2024/11/01 07:02:54 ui: openstack.builder: ERROR! couldn't resolve module/action 'community.general.alternatives'. This often indicates a misspelling, missing collection, or incorrect module path. 2024/11/01 07:02:54 ui: openstack.builder:  2024/11/01 07:02:54 ui: openstack.builder: The error appears to be in '/w/workspace/ci-management-packer-merge-centos-cs-9-builder/packer/.galaxy/lfit.java-install/tasks/main.yml': line 12, column 7, but may 2024/11/01 07:02:54 ui: openstack.builder: be elsewhere in the file depending on the exact syntax problem. 2024/11/01 07:02:54 ui: openstack.builder:  2024/11/01 07:02:54 ui: openstack.builder: The offending line appears to be: 2024/11/01 07:02:54 ui: openstack.builder:  2024/11/01 07:02:54 ui: openstack.builder:  block: 2024/11/01 07:02:54 ui: openstack.builder:  - name: Set java alternatives 2024/11/01 07:02:54 ui: openstack.builder:  ^ here 2024/11/01 07:02:54 packer.io plugin: shutting down the SSH proxy 2024/11/01 07:02:54 [INFO] (telemetry) ending ansible 2024/11/01 07:02:54 ui: ==> openstack.builder: Provisioning step had errors: Running the cleanup provisioner, if present... 2024/11/01 07:02:54 ui: ==> openstack.builder: Terminating the source server: b234bc2a-37d2-4f01-9a72-961f1356e330 ... 2024/11/01 07:02:54 packer-plugin-openstack_v1.1.2_x5.0_linux_amd64 plugin: 2024/11/01 07:02:54 Waiting for state to become: [DELETED] 2024/11/01 07:02:54 packer-plugin-openstack_v1.1.2_x5.0_linux_amd64 plugin: 2024/11/01 07:02:54 Waiting for state to become: [DELETED] currently ACTIVE (0%) 2024/11/01 07:02:57 packer-plugin-openstack_v1.1.2_x5.0_linux_amd64 plugin: 2024/11/01 07:02:57 Waiting for state to become: [DELETED] currently ACTIVE (0%) 2024/11/01 07:02:59 packer-plugin-openstack_v1.1.2_x5.0_linux_amd64 plugin: 2024/11/01 07:02:59 [INFO] 404 on ServerStateRefresh, returning DELETED 2024/11/01 07:02:59 ui: ==> openstack.builder: Deleting volume: 4e12ba8b-aa1a-41d2-a687-c0566b522757 ... 2024/11/01 07:02:59 ui: ==> openstack.builder: Deleting temporary keypair: packer_67247cbb-5f22-b3c8-44c2-2bfda0f3f95c ... 2024/11/01 07:02:59 [INFO] (telemetry) ending openstack.builder 2024/11/01 07:02:59 ui error: Build 'openstack.builder' errored after 1 minute 43 seconds: Error executing Ansible: Non-zero exit status: exit status 4 2024/11/01 07:02:59 ui: ==> Wait completed after 1 minute 43 seconds 2024/11/01 07:02:59 machine readable: error-count []string{"1"} 2024/11/01 07:02:59 ui error: ==> Some builds didn't complete successfully and had errors: 2024/11/01 07:02:59 machine readable: openstack.builder,error []string{"Error executing Ansible: Non-zero exit status: exit status 4"} 2024/11/01 07:02:59 ui error: --> openstack.builder: Error executing Ansible: Non-zero exit status: exit status 4 2024/11/01 07:02:59 ui: ==> Builds finished but no artifacts were created. 2024/11/01 07:02:59 [INFO] (telemetry) Finalizing. 2024/11/01 07:02:59 waiting for all plugin processes to complete... 2024/11/01 07:02:59 /w/workspace/ci-management-packer-merge-centos-cs-9-builder/bin/packer.io: plugin process exited 2024/11/01 07:02:59 /home/jenkins/.config/packer/plugins/github.com/hashicorp/openstack/packer-plugin-openstack_v1.1.2_x5.0_linux_amd64: plugin process exited 2024/11/01 07:02:59 /w/workspace/ci-management-packer-merge-centos-cs-9-builder/bin/packer.io: plugin process exited 2024/11/01 07:02:59 /w/workspace/ci-management-packer-merge-centos-cs-9-builder/bin/packer.io: plugin process exited