-
-
Save msuzoagu/be1003f765a94f5388598a01ca03af54 to your computer and use it in GitHub Desktop.
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
2023/05/13 09:20:19 [INFO] Packer version: 1.8.7 [go1.20.4 darwin arm64] | |
2023/05/13 09:20:19 [TRACE] discovering plugins in /opt/homebrew/bin | |
2023/05/13 09:20:19 [TRACE] discovering plugins in /Users/dev/.config/packer/plugins | |
2023/05/13 09:20:19 [DEBUG] Discovered plugin: amazon = /Users/dev/.config/packer/plugins/github.com/hashicorp/amazon/packer-plugin-amazon_v1.2.5_x5.0_darwin_arm64 | |
2023/05/13 09:20:19 [INFO] found external [chroot ebs ebssurrogate ebsvolume instance] builders from amazon plugin | |
2023/05/13 09:20:19 [INFO] found external [import] post-processors from amazon plugin | |
2023/05/13 09:20:19 found external [ami parameterstore secretsmanager] datasource from amazon plugin | |
2023/05/13 09:20:19 [TRACE] discovering plugins in . | |
2023/05/13 09:20:19 [INFO] PACKER_CONFIG env var not set; checking the default config file path | |
2023/05/13 09:20:19 [INFO] PACKER_CONFIG env var set; attempting to open config file: /Users/dev/.packerconfig | |
2023/05/13 09:20:19 [WARN] Config file doesn't exist: /Users/dev/.packerconfig | |
2023/05/13 09:20:19 [INFO] Setting cache directory: /Users/dev/.cache/packer | |
2023/05/13 09:20:19 [TRACE] listing potential installations for "github.com/hashicorp/amazon" that match ">= 1.2.5". plugingetter.ListInstallationsOptions{FromFolders:[]string{"/opt/homebrew/bin/packer", ".", "/Users/dev/.config/packer/plugins"}, BinaryInstallationOptions:plugingetter.BinaryInstallationOptions{APIVersionMajor:"5", APIVersionMinor:"0", OS:"darwin", ARCH:"arm64", Ext:"", Checksummers:[]plugingetter.Checksummer{plugingetter.Checksummer{Type:"sha256", Hash:(*sha256.digest)(0x14000186100)}}}} | |
2023/05/13 09:20:19 [TRACE] Found the following "github.com/hashicorp/amazon" installations: [{/Users/dev/.config/packer/plugins/github.com/hashicorp/amazon/packer-plugin-amazon_v1.2.5_x5.0_darwin_arm64 v1.2.5}] | |
2023/05/13 09:20:19 [INFO] found external [chroot ebs ebssurrogate ebsvolume instance] builders from amazon plugin | |
2023/05/13 09:20:19 [INFO] found external [import] post-processors from amazon plugin | |
2023/05/13 09:20:19 found external [ami parameterstore secretsmanager] datasource from amazon plugin | |
2023/05/13 09:20:19 [TRACE] validateValue: not active for profile, so skipping | |
2023/05/13 09:20:19 [TRACE] validateValue: not active for region, so skipping | |
2023/05/13 09:20:19 [TRACE] validateValue: not active for virtualization_type, so skipping | |
2023/05/13 09:20:19 [TRACE] validateValue: not active for aws_name, so skipping | |
2023/05/13 09:20:19 [TRACE] validateValue: not active for ami_owners, so skipping | |
2023/05/13 09:20:19 [TRACE] validateValue: not active for root_device_type, so skipping | |
2023/05/13 09:20:19 [TRACE] validateValue: not active for subnet_name, so skipping | |
2023/05/13 09:20:19 [TRACE] validateValue: not active for ssh_username, so skipping | |
2023/05/13 09:20:19 [TRACE] validateValue: not active for instance_type, so skipping | |
2023/05/13 09:20:19 [TRACE] validateValue: not active for security_group_id, so skipping | |
2023/05/13 09:20:19 [TRACE] validateValue: not active for environment, so skipping | |
2023/05/13 09:20:19 [TRACE] validateValue: not active for ami_id, so skipping | |
2023/05/13 09:20:19 [TRACE] validateValue: not active for image_name, so skipping | |
2023/05/13 09:20:19 [TRACE] Starting external plugin /Users/dev/.config/packer/plugins/github.com/hashicorp/amazon/packer-plugin-amazon_v1.2.5_x5.0_darwin_arm64 start builder ebs | |
2023/05/13 09:20:19 Starting plugin: /Users/dev/.config/packer/plugins/github.com/hashicorp/amazon/packer-plugin-amazon_v1.2.5_x5.0_darwin_arm64 []string{"/Users/dev/.config/packer/plugins/github.com/hashicorp/amazon/packer-plugin-amazon_v1.2.5_x5.0_darwin_arm64", "start", "builder", "ebs"} | |
2023/05/13 09:20:19 Waiting for RPC address for: /Users/dev/.config/packer/plugins/github.com/hashicorp/amazon/packer-plugin-amazon_v1.2.5_x5.0_darwin_arm64 | |
2023/05/13 09:20:19 Received unix RPC address for /Users/dev/.config/packer/plugins/github.com/hashicorp/amazon/packer-plugin-amazon_v1.2.5_x5.0_darwin_arm64: addr is /var/folders/64/x9pk7f1s2kz7_991xxbhcwn00000gn/T/packer-plugin1007663215 | |
2023/05/13 09:20:19 packer-plugin-amazon_v1.2.5_x5.0_darwin_arm64 plugin: 2023/05/13 09:20:19 Plugin address: unix /var/folders/64/x9pk7f1s2kz7_991xxbhcwn00000gn/T/packer-plugin1007663215 | |
2023/05/13 09:20:19 packer-plugin-amazon_v1.2.5_x5.0_darwin_arm64 plugin: 2023/05/13 09:20:19 Waiting for connection... | |
2023/05/13 09:20:19 packer-plugin-amazon_v1.2.5_x5.0_darwin_arm64 plugin: 2023/05/13 09:20:19 Serving a plugin connection... | |
2023/05/13 09:20:19 packer-plugin-amazon_v1.2.5_x5.0_darwin_arm64 plugin: 2023/05/13 09:20:19 [TRACE] starting builder ebs | |
2023/05/13 09:20:19 packer-plugin-amazon_v1.2.5_x5.0_darwin_arm64 plugin: 2023/05/13 09:20:19 [INFO] (aws): No AWS timeout and polling overrides have been set. Packer will default to waiter-specific delays and timeouts. If you would like to customize the length of time between retries and max number of retries you may do so by setting the environment variables AWS_POLL_DELAY_SECONDS and AWS_MAX_ATTEMPTS or the configuration options aws_polling_delay_seconds and aws_polling_max_attempts to your desired values. | |
2023/05/13 09:20:19 [TRACE] Starting internal plugin packer-provisioner-ansible | |
2023/05/13 09:20:19 Starting plugin: /opt/homebrew/bin/packer []string{"/opt/homebrew/bin/packer", "plugin", "packer-provisioner-ansible"} | |
2023/05/13 09:20:19 Waiting for RPC address for: /opt/homebrew/bin/packer | |
2023/05/13 09:20:19 packer-provisioner-ansible plugin: [INFO] Packer version: 1.8.7 [go1.20.4 darwin arm64] | |
2023/05/13 09:20:19 packer-provisioner-ansible plugin: [INFO] PACKER_CONFIG env var not set; checking the default config file path | |
2023/05/13 09:20:19 packer-provisioner-ansible plugin: [INFO] PACKER_CONFIG env var set; attempting to open config file: /Users/dev/.packerconfig | |
2023/05/13 09:20:19 packer-provisioner-ansible plugin: [WARN] Config file doesn't exist: /Users/dev/.packerconfig | |
2023/05/13 09:20:19 packer-provisioner-ansible plugin: [INFO] Setting cache directory: /Users/dev/.cache/packer | |
2023/05/13 09:20:19 packer-provisioner-ansible plugin: args: []string{"packer-provisioner-ansible"} | |
2023/05/13 09:20:19 packer-provisioner-ansible plugin: Plugin address: unix /var/folders/64/x9pk7f1s2kz7_991xxbhcwn00000gn/T/packer-plugin1068339137 | |
2023/05/13 09:20:19 packer-provisioner-ansible plugin: Waiting for connection... | |
2023/05/13 09:20:19 Received unix RPC address for /opt/homebrew/bin/packer: addr is /var/folders/64/x9pk7f1s2kz7_991xxbhcwn00000gn/T/packer-plugin1068339137 | |
2023/05/13 09:20:19 packer-provisioner-ansible plugin: Serving a plugin connection... | |
2023/05/13 09:20:19 packer-provisioner-ansible plugin: ansible-playbook version: 2.14.5 | |
2023/05/13 09:20:19 Build debug mode: false | |
2023/05/13 09:20:19 Force build: false | |
2023/05/13 09:20:19 On error: | |
amazon-ebs.this: output will be in this color. | |
2023/05/13 09:20:19 Waiting on builds to complete... | |
2023/05/13 09:20:19 Starting build run: amazon-ebs.this | |
2023/05/13 09:20:19 Running builder: | |
2023/05/13 09:20:19 [INFO] (telemetry) Starting builder amazon-ebs.this | |
2023/05/13 09:20:19 packer-plugin-amazon_v1.2.5_x5.0_darwin_arm64 plugin: 2023/05/13 09:20:19 [INFO] AWS Auth provider used: "EnvProvider" | |
2023/05/13 09:20:19 packer-plugin-amazon_v1.2.5_x5.0_darwin_arm64 plugin: 2023/05/13 09:20:19 Found region us-east-2 | |
2023/05/13 09:20:19 packer-plugin-amazon_v1.2.5_x5.0_darwin_arm64 plugin: 2023/05/13 09:20:19 [INFO] AWS Auth provider used: "EnvProvider" | |
==> amazon-ebs.this: Prevalidating any provided VPC information | |
==> amazon-ebs.this: Prevalidating AMI Name: development-rails-ami-13-May-2023-13-20-UTC | |
2023/05/13 09:20:20 packer-plugin-amazon_v1.2.5_x5.0_darwin_arm64 plugin: 2023/05/13 09:20:20 Using AMI Filters { | |
2023/05/13 09:20:20 packer-plugin-amazon_v1.2.5_x5.0_darwin_arm64 plugin: Filters: [{ | |
2023/05/13 09:20:20 packer-plugin-amazon_v1.2.5_x5.0_darwin_arm64 plugin: Name: "name", | |
2023/05/13 09:20:20 packer-plugin-amazon_v1.2.5_x5.0_darwin_arm64 plugin: Values: ["ubuntu/images/hvm-ssd/ubuntu-jammy-22.04-amd64-server-20230325"] | |
2023/05/13 09:20:20 packer-plugin-amazon_v1.2.5_x5.0_darwin_arm64 plugin: },{ | |
2023/05/13 09:20:20 packer-plugin-amazon_v1.2.5_x5.0_darwin_arm64 plugin: Name: "root-device-type", | |
2023/05/13 09:20:20 packer-plugin-amazon_v1.2.5_x5.0_darwin_arm64 plugin: Values: ["ebs"] | |
2023/05/13 09:20:20 packer-plugin-amazon_v1.2.5_x5.0_darwin_arm64 plugin: }], | |
2023/05/13 09:20:20 packer-plugin-amazon_v1.2.5_x5.0_darwin_arm64 plugin: ImageIds: ["ami-0a695f0d95cefc163"], | |
2023/05/13 09:20:20 packer-plugin-amazon_v1.2.5_x5.0_darwin_arm64 plugin: Owners: ["099720109477"] | |
2023/05/13 09:20:20 packer-plugin-amazon_v1.2.5_x5.0_darwin_arm64 plugin: } | |
amazon-ebs.this: Found Image ID: ami-0a695f0d95cefc163 | |
2023/05/13 09:20:20 packer-plugin-amazon_v1.2.5_x5.0_darwin_arm64 plugin: 2023/05/13 09:20:20 Using VPC Filters { | |
2023/05/13 09:20:20 packer-plugin-amazon_v1.2.5_x5.0_darwin_arm64 plugin: Filters: [{ | |
2023/05/13 09:20:20 packer-plugin-amazon_v1.2.5_x5.0_darwin_arm64 plugin: Name: "tag:Name", | |
2023/05/13 09:20:20 packer-plugin-amazon_v1.2.5_x5.0_darwin_arm64 plugin: Values: ["Default"] | |
2023/05/13 09:20:20 packer-plugin-amazon_v1.2.5_x5.0_darwin_arm64 plugin: }] | |
2023/05/13 09:20:20 packer-plugin-amazon_v1.2.5_x5.0_darwin_arm64 plugin: } | |
amazon-ebs.this: Found VPC ID: vpc-06a87e5bb530d768d | |
==> amazon-ebs.this: Creating temporary keypair: packer_645f8e93-00e6-c6ca-0425-9aadd7dda22d | |
==> amazon-ebs.this: Creating temporary security group for this instance: packer_645f8e94-35dc-7348-3fe6-f5301e81c705 | |
2023/05/13 09:20:21 packer-plugin-amazon_v1.2.5_x5.0_darwin_arm64 plugin: 2023/05/13 09:20:21 [DEBUG] Waiting for temporary security group: sg-0b30d25de7ae3dfa6 | |
2023/05/13 09:20:21 packer-plugin-amazon_v1.2.5_x5.0_darwin_arm64 plugin: 2023/05/13 09:20:21 [DEBUG] Found security group sg-0b30d25de7ae3dfa6 | |
==> amazon-ebs.this: Authorizing access to port 22 from [0.0.0.0/0] in the temporary security groups... | |
==> amazon-ebs.this: Launching a source AWS instance... | |
amazon-ebs.this: Instance ID: i-0407718235bca28c9 | |
==> amazon-ebs.this: Waiting for instance (i-0407718235bca28c9) to become ready... | |
==> amazon-ebs.this: Using SSH communicator to connect: 13.58.171.172 | |
==> amazon-ebs.this: Waiting for SSH to become available... | |
2023/05/13 09:20:54 packer-plugin-amazon_v1.2.5_x5.0_darwin_arm64 plugin: 2023/05/13 09:20:54 [INFO] Not using winrm communicator, skipping get password... | |
2023/05/13 09:20:54 packer-plugin-amazon_v1.2.5_x5.0_darwin_arm64 plugin: 2023/05/13 09:20:54 [INFO] Waiting for SSH, up to timeout: 5m0s | |
2023/05/13 09:20:54 packer-plugin-amazon_v1.2.5_x5.0_darwin_arm64 plugin: 2023/05/13 09:20:54 Using host value: 13.58.171.172 | |
2023/05/13 09:20:55 packer-plugin-amazon_v1.2.5_x5.0_darwin_arm64 plugin: 2023/05/13 09:20:55 [DEBUG] TCP connection to SSH ip/port failed: dial tcp 13.58.171.172:22: connect: connection refused | |
2023/05/13 09:21:00 packer-plugin-amazon_v1.2.5_x5.0_darwin_arm64 plugin: 2023/05/13 09:21:00 Using host value: 13.58.171.172 | |
2023/05/13 09:21:00 packer-plugin-amazon_v1.2.5_x5.0_darwin_arm64 plugin: 2023/05/13 09:21:00 [DEBUG] TCP connection to SSH ip/port failed: dial tcp 13.58.171.172:22: connect: connection refused | |
2023/05/13 09:21:05 packer-plugin-amazon_v1.2.5_x5.0_darwin_arm64 plugin: 2023/05/13 09:21:05 Using host value: 13.58.171.172 | |
2023/05/13 09:21:06 packer-plugin-amazon_v1.2.5_x5.0_darwin_arm64 plugin: 2023/05/13 09:21:06 [INFO] Attempting SSH connection to 13.58.171.172:22... | |
2023/05/13 09:21:06 packer-plugin-amazon_v1.2.5_x5.0_darwin_arm64 plugin: 2023/05/13 09:21:06 [DEBUG] reconnecting to TCP connection for SSH | |
2023/05/13 09:21:06 packer-plugin-amazon_v1.2.5_x5.0_darwin_arm64 plugin: 2023/05/13 09:21:06 [DEBUG] handshaking with SSH | |
2023/05/13 09:21:06 packer-plugin-amazon_v1.2.5_x5.0_darwin_arm64 plugin: 2023/05/13 09:21:06 [DEBUG] handshake complete! | |
2023/05/13 09:21:06 packer-plugin-amazon_v1.2.5_x5.0_darwin_arm64 plugin: 2023/05/13 09:21:06 [DEBUG] Opening new ssh session | |
2023/05/13 09:21:07 packer-plugin-amazon_v1.2.5_x5.0_darwin_arm64 plugin: 2023/05/13 09:21:07 [INFO] agent forwarding enabled | |
==> amazon-ebs.this: Connected to SSH! | |
2023/05/13 09:21:07 packer-plugin-amazon_v1.2.5_x5.0_darwin_arm64 plugin: 2023/05/13 09:21:07 Running the provision hook | |
2023/05/13 09:21:07 [INFO] (telemetry) Starting provisioner ansible | |
2023/05/13 09:21:08 packer-provisioner-ansible plugin: ansible-playbook version: 2.14.5 | |
==> amazon-ebs.this: Provisioning with Ansible... | |
amazon-ebs.this: Setting up proxy adapter for Ansible.... | |
2023/05/13 09:21:08 packer-provisioner-ansible plugin: Creating inventory file for Ansible run... | |
2023/05/13 09:21:08 packer-provisioner-ansible plugin: SSH proxy: serving on 127.0.0.1:50047 | |
==> amazon-ebs.this: Executing Ansible: ansible-playbook -e packer_build_name="this" -e packer_builder_type=amazon-ebs --ssh-extra-args '-o HostKeyAlgorithms=+ssh-rsa -o PubkeyAcceptedKeyTypes=+ssh-rsa' -e ansible_ssh_private_key_file=/var/folders/64/x9pk7f1s2kz7_991xxbhcwn00000gn/T/ansible-key256427873 -i /var/folders/64/x9pk7f1s2kz7_991xxbhcwn00000gn/T/packer-provisioner-ansible566121857 /Users/dev/Code/Projects/Ollati/Infrastructure/Terraform/PackerProvisionRailsAmi/ansible_configure_rails_ami/playbook.yaml | |
amazon-ebs.this: | |
amazon-ebs.this: PLAY [configure os for rails application] ************************************** | |
amazon-ebs.this: | |
amazon-ebs.this: TASK [roles : set timezone] **************************************************** | |
2023/05/13 09:21:08 packer-provisioner-ansible plugin: SSH proxy: accepted connection | |
2023/05/13 09:21:08 packer-provisioner-ansible plugin: authentication attempt from 127.0.0.1:50049 to 127.0.0.1:50047 as ubuntu using none | |
2023/05/13 09:21:08 packer-provisioner-ansible plugin: authentication attempt from 127.0.0.1:50049 to 127.0.0.1:50047 as ubuntu using publickey | |
2023/05/13 09:21:08 packer-provisioner-ansible plugin: rejecting auth-agent-req@openssh.com request | |
2023/05/13 09:21:08 packer-provisioner-ansible plugin: new env request: LANG=en_US.UTF-8 | |
2023/05/13 09:21:08 packer-provisioner-ansible plugin: new exec request: /bin/sh -c 'echo ~ubuntu && sleep 0' | |
2023/05/13 09:21:08 packer-plugin-amazon_v1.2.5_x5.0_darwin_arm64 plugin: 2023/05/13 09:21:08 [DEBUG] Opening new ssh session | |
2023/05/13 09:21:08 packer-plugin-amazon_v1.2.5_x5.0_darwin_arm64 plugin: 2023/05/13 09:21:08 [DEBUG] starting remote command: /bin/sh -c 'echo ~ubuntu && sleep 0' | |
2023/05/13 09:21:08 packer-plugin-amazon_v1.2.5_x5.0_darwin_arm64 plugin: 2023/05/13 09:21:08 [INFO] RPC endpoint: Communicator ended with: 0 | |
2023/05/13 09:21:08 [INFO] 13 bytes written for 'stdout' | |
2023/05/13 09:21:08 [INFO] 0 bytes written for 'stderr' | |
2023/05/13 09:21:08 [INFO] RPC client: Communicator ended with: 0 | |
2023/05/13 09:21:08 [INFO] RPC endpoint: Communicator ended with: 0 | |
2023/05/13 09:21:08 [INFO] 0 bytes written for 'stdin' | |
2023/05/13 09:21:08 packer-provisioner-ansible plugin: [INFO] 13 bytes written for 'stdout' | |
2023/05/13 09:21:08 packer-provisioner-ansible plugin: [INFO] 0 bytes written for 'stderr' | |
2023/05/13 09:21:08 packer-provisioner-ansible plugin: [INFO] RPC client: Communicator ended with: 0 | |
2023/05/13 09:21:08 packer-provisioner-ansible plugin: [INFO] 0 bytes written for 'stdin' | |
2023/05/13 09:21:08 packer-provisioner-ansible plugin: rejecting auth-agent-req@openssh.com request | |
2023/05/13 09:21:08 packer-provisioner-ansible plugin: new env request: LANG=en_US.UTF-8 | |
2023/05/13 09:21:08 packer-provisioner-ansible plugin: new exec request: /bin/sh -c '( umask 77 && mkdir -p "` echo /home/ubuntu/.ansible/tmp `"&& mkdir "` echo /home/ubuntu/.ansible/tmp/ansible-tmp-1683984068.9289658-4955-28149387705546 `" && echo ansible-tmp-1683984068.9289658-4955-28149387705546="` echo /home/ubuntu/.ansible/tmp/ansible-tmp-1683984068.9289658-4955-28149387705546 `" ) && sleep 0' | |
2023/05/13 09:21:08 packer-plugin-amazon_v1.2.5_x5.0_darwin_arm64 plugin: 2023/05/13 09:21:08 [DEBUG] Opening new ssh session | |
2023/05/13 09:21:08 packer-plugin-amazon_v1.2.5_x5.0_darwin_arm64 plugin: 2023/05/13 09:21:08 [DEBUG] starting remote command: /bin/sh -c '( umask 77 && mkdir -p "` echo /home/ubuntu/.ansible/tmp `"&& mkdir "` echo /home/ubuntu/.ansible/tmp/ansible-tmp-1683984068.9289658-4955-28149387705546 `" && echo ansible-tmp-1683984068.9289658-4955-28149387705546="` echo /home/ubuntu/.ansible/tmp/ansible-tmp-1683984068.9289658-4955-28149387705546 `" ) && sleep 0' | |
2023/05/13 09:21:09 packer-plugin-amazon_v1.2.5_x5.0_darwin_arm64 plugin: 2023/05/13 09:21:09 [INFO] RPC endpoint: Communicator ended with: 0 | |
2023/05/13 09:21:09 [INFO] 128 bytes written for 'stdout' | |
2023/05/13 09:21:09 [INFO] 0 bytes written for 'stderr' | |
2023/05/13 09:21:09 [INFO] RPC client: Communicator ended with: 0 | |
2023/05/13 09:21:09 [INFO] RPC endpoint: Communicator ended with: 0 | |
2023/05/13 09:21:09 [INFO] 0 bytes written for 'stdin' | |
2023/05/13 09:21:09 packer-provisioner-ansible plugin: [INFO] 128 bytes written for 'stdout' | |
2023/05/13 09:21:09 packer-provisioner-ansible plugin: [INFO] 0 bytes written for 'stderr' | |
2023/05/13 09:21:09 packer-provisioner-ansible plugin: [INFO] RPC client: Communicator ended with: 0 | |
2023/05/13 09:21:09 packer-provisioner-ansible plugin: [INFO] 0 bytes written for 'stdin' | |
2023/05/13 09:21:09 packer-provisioner-ansible plugin: rejecting auth-agent-req@openssh.com request | |
2023/05/13 09:21:09 packer-provisioner-ansible plugin: new env request: LANG=en_US.UTF-8 | |
2023/05/13 09:21:09 packer-provisioner-ansible plugin: new exec request: /bin/sh -c 'echo PLATFORM; uname; echo FOUND; command -v '"'"'python3.11'"'"'; command -v '"'"'python3.10'"'"'; command -v '"'"'python3.9'"'"'; command -v '"'"'python3.8'"'"'; command -v '"'"'python3.7'"'"'; command -v '"'"'python3.6'"'"'; command -v '"'"'python3.5'"'"'; command -v '"'"'/usr/bin/python3'"'"'; command -v '"'"'/usr/libexec/platform-python'"'"'; command -v '"'"'python2.7'"'"'; command -v '"'"'/usr/bin/python'"'"'; command -v '"'"'python'"'"'; echo ENDFOUND && sleep 0' | |
2023/05/13 09:21:09 packer-plugin-amazon_v1.2.5_x5.0_darwin_arm64 plugin: 2023/05/13 09:21:09 [DEBUG] Opening new ssh session | |
2023/05/13 09:21:09 packer-plugin-amazon_v1.2.5_x5.0_darwin_arm64 plugin: 2023/05/13 09:21:09 [DEBUG] starting remote command: /bin/sh -c 'echo PLATFORM; uname; echo FOUND; command -v '"'"'python3.11'"'"'; command -v '"'"'python3.10'"'"'; command -v '"'"'python3.9'"'"'; command -v '"'"'python3.8'"'"'; command -v '"'"'python3.7'"'"'; command -v '"'"'python3.6'"'"'; command -v '"'"'python3.5'"'"'; command -v '"'"'/usr/bin/python3'"'"'; command -v '"'"'/usr/libexec/platform-python'"'"'; command -v '"'"'python2.7'"'"'; command -v '"'"'/usr/bin/python'"'"'; command -v '"'"'python'"'"'; echo ENDFOUND && sleep 0' | |
2023/05/13 09:21:09 packer-plugin-amazon_v1.2.5_x5.0_darwin_arm64 plugin: 2023/05/13 09:21:09 [INFO] RPC endpoint: Communicator ended with: 0 | |
2023/05/13 09:21:09 [INFO] 0 bytes written for 'stderr' | |
2023/05/13 09:21:09 [INFO] 67 bytes written for 'stdout' | |
2023/05/13 09:21:09 [INFO] RPC client: Communicator ended with: 0 | |
2023/05/13 09:21:09 [INFO] RPC endpoint: Communicator ended with: 0 | |
2023/05/13 09:21:09 [INFO] 0 bytes written for 'stdin' | |
2023/05/13 09:21:09 packer-provisioner-ansible plugin: [INFO] 67 bytes written for 'stdout' | |
2023/05/13 09:21:09 packer-provisioner-ansible plugin: [INFO] 0 bytes written for 'stderr' | |
2023/05/13 09:21:09 packer-provisioner-ansible plugin: [INFO] RPC client: Communicator ended with: 0 | |
2023/05/13 09:21:09 packer-provisioner-ansible plugin: [INFO] 0 bytes written for 'stdin' | |
2023/05/13 09:21:09 packer-provisioner-ansible plugin: rejecting auth-agent-req@openssh.com request | |
2023/05/13 09:21:09 packer-provisioner-ansible plugin: new env request: LANG=en_US.UTF-8 | |
2023/05/13 09:21:09 packer-provisioner-ansible plugin: new exec request: /bin/sh -c '/usr/bin/python3.10 && sleep 0' | |
2023/05/13 09:21:09 packer-provisioner-ansible plugin: [INFO] 1234 bytes written for 'stdin' | |
2023/05/13 09:21:09 [INFO] 1234 bytes written for 'stdin' | |
2023/05/13 09:21:09 packer-plugin-amazon_v1.2.5_x5.0_darwin_arm64 plugin: 2023/05/13 09:21:09 [DEBUG] Opening new ssh session | |
2023/05/13 09:21:09 packer-plugin-amazon_v1.2.5_x5.0_darwin_arm64 plugin: 2023/05/13 09:21:09 [DEBUG] starting remote command: /bin/sh -c '/usr/bin/python3.10 && sleep 0' | |
2023/05/13 09:21:09 packer-plugin-amazon_v1.2.5_x5.0_darwin_arm64 plugin: 2023/05/13 09:21:09 [INFO] RPC endpoint: Communicator ended with: 0 | |
2023/05/13 09:21:09 [INFO] 468 bytes written for 'stdout' | |
2023/05/13 09:21:09 [INFO] 0 bytes written for 'stderr' | |
2023/05/13 09:21:09 [INFO] RPC client: Communicator ended with: 0 | |
2023/05/13 09:21:09 [INFO] RPC endpoint: Communicator ended with: 0 | |
2023/05/13 09:21:09 packer-provisioner-ansible plugin: [INFO] 468 bytes written for 'stdout' | |
2023/05/13 09:21:09 packer-provisioner-ansible plugin: [INFO] 0 bytes written for 'stderr' | |
2023/05/13 09:21:09 packer-provisioner-ansible plugin: [INFO] RPC client: Communicator ended with: 0 | |
2023/05/13 09:21:09 packer-provisioner-ansible plugin: rejecting auth-agent-req@openssh.com request | |
2023/05/13 09:21:09 packer-provisioner-ansible plugin: new env request: LANG=en_US.UTF-8 | |
2023/05/13 09:21:09 packer-provisioner-ansible plugin: new subsystem request: sftp | |
2023/05/13 09:21:09 packer-provisioner-ansible plugin: starting sftp subsystem | |
2023/05/13 09:21:09 packer-plugin-amazon_v1.2.5_x5.0_darwin_arm64 plugin: 2023/05/13 09:21:09 [DEBUG] Opening new ssh session | |
2023/05/13 09:21:09 packer-plugin-amazon_v1.2.5_x5.0_darwin_arm64 plugin: 2023/05/13 09:21:09 [DEBUG] starting remote command: /usr/lib/sftp-server -e | |
2023/05/13 09:21:09 [INFO] 140806 bytes written for 'stdin' | |
2023/05/13 09:21:09 packer-provisioner-ansible plugin: [INFO] 140806 bytes written for 'stdin' | |
2023/05/13 09:21:09 packer-plugin-amazon_v1.2.5_x5.0_darwin_arm64 plugin: 2023/05/13 09:21:09 [INFO] RPC endpoint: Communicator ended with: 0 | |
2023/05/13 09:21:09 [INFO] 501 bytes written for 'stdout' | |
2023/05/13 09:21:09 [INFO] 0 bytes written for 'stderr' | |
2023/05/13 09:21:09 [INFO] RPC client: Communicator ended with: 0 | |
2023/05/13 09:21:09 [INFO] RPC endpoint: Communicator ended with: 0 | |
2023/05/13 09:21:09 packer-provisioner-ansible plugin: [INFO] 501 bytes written for 'stdout' | |
2023/05/13 09:21:09 packer-provisioner-ansible plugin: [INFO] 0 bytes written for 'stderr' | |
2023/05/13 09:21:09 packer-provisioner-ansible plugin: [INFO] RPC client: Communicator ended with: 0 | |
2023/05/13 09:21:09 packer-provisioner-ansible plugin: rejecting auth-agent-req@openssh.com request | |
2023/05/13 09:21:09 packer-provisioner-ansible plugin: new env request: LANG=en_US.UTF-8 | |
2023/05/13 09:21:09 packer-provisioner-ansible plugin: new exec request: /bin/sh -c 'rm -f -r /home/ubuntu/.ansible/tmp/ansible-tmp-1683984068.9289658-4955-28149387705546/ > /dev/null 2>&1 && sleep 0' | |
2023/05/13 09:21:09 packer-plugin-amazon_v1.2.5_x5.0_darwin_arm64 plugin: 2023/05/13 09:21:09 [DEBUG] Opening new ssh session | |
2023/05/13 09:21:09 packer-plugin-amazon_v1.2.5_x5.0_darwin_arm64 plugin: 2023/05/13 09:21:09 [DEBUG] starting remote command: /bin/sh -c 'rm -f -r /home/ubuntu/.ansible/tmp/ansible-tmp-1683984068.9289658-4955-28149387705546/ > /dev/null 2>&1 && sleep 0' | |
2023/05/13 09:21:09 packer-plugin-amazon_v1.2.5_x5.0_darwin_arm64 plugin: 2023/05/13 09:21:09 [INFO] RPC endpoint: Communicator ended with: 0 | |
2023/05/13 09:21:09 [INFO] 0 bytes written for 'stderr' | |
2023/05/13 09:21:09 [INFO] 0 bytes written for 'stdout' | |
2023/05/13 09:21:09 [INFO] RPC client: Communicator ended with: 0 | |
2023/05/13 09:21:09 [INFO] RPC endpoint: Communicator ended with: 0 | |
2023/05/13 09:21:09 [INFO] 0 bytes written for 'stdin' | |
2023/05/13 09:21:09 packer-provisioner-ansible plugin: [INFO] 0 bytes written for 'stdout' | |
2023/05/13 09:21:09 packer-provisioner-ansible plugin: [INFO] 0 bytes written for 'stderr' | |
2023/05/13 09:21:09 packer-provisioner-ansible plugin: [INFO] RPC client: Communicator ended with: 0 | |
2023/05/13 09:21:09 packer-provisioner-ansible plugin: [INFO] 0 bytes written for 'stdin' | |
amazon-ebs.this: fatal: [default]: FAILED! => {} | |
amazon-ebs.this: | |
amazon-ebs.this: MSG: | |
amazon-ebs.this: | |
amazon-ebs.this: failed to transfer file to /Users/dev/.ansible/tmp/ansible-local-4952y6_vso06/tmpwqrvemwr /home/ubuntu/.ansible/tmp/ansible-tmp-1683984068.9289658-4955-28149387705546/AnsiballZ_timezone.py: | |
amazon-ebs.this: | |
amazon-ebs.this: | |
amazon-ebs.this: | |
amazon-ebs.this: PLAY RECAP ********************************************************************* | |
amazon-ebs.this: default : ok=0 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0 | |
amazon-ebs.this: | |
2023/05/13 09:21:10 packer-provisioner-ansible plugin: shutting down the SSH proxy | |
2023/05/13 09:21:10 [INFO] (telemetry) ending ansible | |
==> amazon-ebs.this: Provisioning step had errors: Running the cleanup provisioner, if present... | |
==> amazon-ebs.this: Terminating the source AWS instance... | |
==> amazon-ebs.this: Cleaning up any extra volumes... | |
==> amazon-ebs.this: No volumes to clean up, skipping | |
==> amazon-ebs.this: Deleting temporary security group... | |
==> amazon-ebs.this: Deleting temporary keypair... | |
2023/05/13 09:23:13 [INFO] (telemetry) ending amazon-ebs.this | |
==> Wait completed after 2 minutes 53 seconds | |
2023/05/13 09:23:13 machine readable: error-count []string{"1"} | |
==> Some builds didn't complete successfully and had errors: | |
2023/05/13 09:23:13 machine readable: amazon-ebs.this,error []string{"Error executing Ansible: Non-zero exit status: exit status 2"} | |
==> Builds finished but no artifacts were created. | |
Build 'amazon-ebs.this' errored after 2 minutes 53 seconds: Error executing Ansible: Non-zero exit status: exit status 2 | |
==> Wait completed after 2 minutes 53 seconds | |
2023/05/13 09:23:13 [INFO] (telemetry) Finalizing. | |
==> Some builds didn't complete successfully and had errors: | |
--> amazon-ebs.this: Error executing Ansible: Non-zero exit status: exit status 2 | |
==> Builds finished but no artifacts were created. | |
2023/05/13 09:23:14 waiting for all plugin processes to complete... | |
2023/05/13 09:23:14 /Users/dev/.config/packer/plugins/github.com/hashicorp/amazon/packer-plugin-amazon_v1.2.5_x5.0_darwin_arm64: plugin process exited | |
2023/05/13 09:23:14 /opt/homebrew/bin/packer: plugin process exited |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment