Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building Ubuntu or RHEL Node and it can't transfer file to node #8355

Open
darthVikes opened this issue Jun 20, 2024 · 2 comments
Open

Building Ubuntu or RHEL Node and it can't transfer file to node #8355

darthVikes opened this issue Jun 20, 2024 · 2 comments

Comments

@darthVikes
Copy link

What happened:
using Image builder It can't transfer file to node

What you expected to happen:
follow its automation process of uploading a file to the node

How to reproduce it (as minimally and precisely as possible):
follow current documentation and run the image bulder for nutanix and ubuntu or rhel

Anything else we need to know?:

Environment:

  • EKS Anywhere Release:
  • EKS Distro Release:

image-builder version: v0.4.0
eksctl : 0.183.0

@darthVikes
Copy link
Author

`
nutanix: output will be in this color.

==> nutanix: Creating Packer Builder virtual machine...
nutanix: Virtual machine ubuntu-2204-kube-v1.29.5 created
nutanix: Found IP for virtual machine: 10.16.0.77
==> nutanix: Using SSH communicator to connect: 10.16.0.77
==> nutanix: Waiting for SSH to become available...
==> nutanix: Connected to SSH!
==> nutanix: Provisioning with shell script: ./packer/files/flatcar/scripts/bootstrap-flatcar.sh
==> nutanix: Provisioning with Ansible...
nutanix: Setting up proxy adapter for Ansible....
==> nutanix: Executing Ansible: ansible-playbook -e packer_build_name="nutanix" -e packer__type=nutanix --ssh-extra-args '-o IdentitiesOnly=yes' --extra-vars containerd_url=https://anywhere-assets.eks.amazonaws.com/releases/bundles/67/artifacts/containerd/v1.7.13/containerd-linux-amd64.tar.gz containerd_sha256=cd35c7f30ad18bc8430f243a97bdaccddf84e6980765bd137bcf74bb8f7b83c2 pause_image=public.ecr.aws/eks-distro/kubernetes/pause:v1.29.5-eks-1-29-14 containerd_additional_settings= containerd_cri_socket=/var/run/containerd/containerd.sock containerd_version=1.7.13 containerd_wasm_shims_url=https://github.com/deislabs/containerd-wasm-shims/releases/download/v0.11.1/containerd-wasm-shims---linux-x86_64.tar.gz containerd_wasm_shims_version=v0.11.1 containerd_wasm_shims_sha256={"lunatic":"7054bc882db755ce5f3ded46d114bfd4e0a318e437fa18a2601295d20b616b32","slight":"a6ea87d965037933a7d9edb5e20cfc175265c8e1ca92a16535f1f3c3f376f5b0","spin":"dcffedb8e4d2f585a851b3de489fa1e8a0054ec0ad72cf111c623623919245d0","wws":"e917f90692d798d80873aa0f37990c7d652f2846129d64fecbfd41ffa77799b8"} containerd_wasm_shims_runtimes="" containerd_wasm_shims_runtime_versions="{"lunatic":"v1","slight":"v1","spin":"v2","wws":"v1"}" crictl_url=https://anywhere-assets.eks.amazonaws.com/releases/bundles/67/artifacts/cri-tools/v1.29.0/cri-tools-linux-amd64.tar.gz crictl_sha256=b202276d32c2a69d9e2212619d203fb1c95d9072d6b0cc0753feffa33d664ebe crictl_source_type=http custom_role_names="" firstboot_custom_roles_pre="" firstboot_custom_roles_post="" node_custom_roles_pre="" node_custom_roles_post="" disable_public_repos=false extra_debs="nfs-common xfsprogs" extra_repos="" extra_rpms="" http_proxy= https_proxy= kubeadm_template=etc/kubeadm.yml kubernetes_apiserver_port=6443 kubernetes_cni_http_source=https://distro.eks.amazonaws.com/kubernetes-1-29/releases/14/artifacts/plugins kubernetes_cni_http_checksum=sha256:eae2d4e8d2bef947966d26d4aeb5487d5e49cfa8f75067950ddb7c4ca6aedaee kubernetes_goarch=amd64 kubernetes_http_source=https://distro.eks.amazonaws.com/kubernetes-1-29/releases/14/artifacts/kubernetes kubernetes_container_registry=public.ecr.aws/eks-distro kubernetes_rpm_repo=https://pkgs.k8s.io/core:/stable:/v1.29/rpm/ kubernetes_rpm_gpg_key=https://pkgs.k8s.io/core:/stable:/v1.29/rpm/repodata/repomd.xml.key kubernetes_rpm_gpg_check=True kubernetes_deb_repo=https://pkgs.k8s.io/core:/stable:/v1.29/deb/ kubernetes_deb_gpg_key=https://pkgs.k8s.io/core:/stable:/v1.29/deb/Release.key kubernetes_cni_deb_version= kubernetes_cni_rpm_version= kubernetes_cni_semver=v1.4.0 kubernetes_cni_source_type=http kubernetes_semver=v1.29.5 kubernetes_source_type=http kubernetes_load_additional_imgs=true kubernetes_deb_version=1.28.9-2.1 kubernetes_rpm_version=1.28.9 no_proxy= pip_conf_file= python_path= redhat_epel_rpm=https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm epel_rpm_gpg_key= reenable_public_repos=true remove_extra_repos=false systemd_prefix=/usr/lib/systemd sysusr_prefix=/usr sysusrlocal_prefix=/usr/local load_additional_components=true additional_registry_images=false additional_registry_images_list= additional_url_images=true additional_url_images_list=https://distro.eks.amazonaws.com/kubernetes-1-28/releases/25/artifacts/kubernetes/v1.28.10/bin/linux/amd64/pause.tar additional_executables=false additional_executables_list= additional_executables_destination_path= additional_s3=false build_target=virt amazon_ssm_agent_rpm= enable_containerd_audit= kubernetes_enable_automatic_resource_sizing= debug_tools=false ubuntu_repo=http://us.archive.ubuntu.com/ubuntu ubuntu_security_repo=http://security.ubuntu.com/ubuntu etcd_http_source=https://distro.eks.amazonaws.com/kubernetes-1-29/releases/14/artifacts/etcd/v3.5.13/etcd-linux-amd64-v3.5.13.tar.gz etcd_version=v3.5.13 etcdadm_http_source=https://anywhere-assets.eks.amazonaws.com/releases/bundles/67/artifacts/etcdadm/f089d308442c18f487a52d09fd067ae9ac7cd8f2/etcdadm-linux-amd64.tar.gz etcd_sha256=f02f4462430476c22984d0a9d15d2818f8767db7bebfa0c16ea78b628719c019 etcdadm_version=v0.1.5 rhsm_server_hostname= rhsm_server_release_version= rhsm_server_proxy_hostname= rhsm_server_proxy_port= --extra-vars --extra-vars --scp-extra-args= -e ansible_ssh_private_key_file=/tmp/ansible-key981758691 -i /tmp/packer-provisioner-ansible2284924377 /root/nutanix/eks-anywhere-build-tooling/projects/kubernetes-sigs/image-/image-*****/images/capi/ansible/node.yml
nutanix:
nutanix: PLAY [all] *********************************************************************
nutanix:
nutanix: TASK [Gathering Facts] *********************************************************
nutanix: fatal: [default]: FAILED! => {"msg": "failed to transfer file to /root/.ansible/tmp/ansible-local-367189qbi93heg/tmps7vb4_zo /tmp/.ansible/ansible-tmp-1718856490.3281903-367193-280025518242118/AnsiballZ_setup.py:\n\n"}
nutanix:
nutanix: PLAY RECAP *********************************************************************
nutanix: default : ok=0 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
nutanix:
==> nutanix: Provisioning step had errors: Running the cleanup provisioner, if present...
==> nutanix: Force deleting virtual machine...
nutanix: Virtual machine successfully deleted
Build 'nutanix' errored after 43 seconds 159 milliseconds: Error executing Ansible: Non-zero exit status: exit status 2

==> Wait completed after 43 seconds 159 milliseconds

==> Some builds didn't complete successfully and had errors:
--> nutanix: Error executing Ansible: Non-zero exit status: exit status 2

==> Builds finished but no artifacts were created.
make[1]: *** [Makefile:573: build-nutanix-ubuntu-2204] Error 1
make[1]: Leaving directory '/root/nutanix/eks-anywhere-build-tooling/projects/kubernetes-sigs/image-builder/image-builder/images/capi'
make: *** [Makefile:386: local-build-nutanix-ubuntu-2204] Error 2
make: Leaving directory '/root/nutanix/eks-anywhere-build-tooling/projects/kubernetes-sigs/image-builder'
2024/06/19 23:08:11 Error executing image-builder for nutanix hypervisor: failed to run command: exit status 2

`

@sp1999
Copy link
Member

sp1999 commented Jun 22, 2024

Hey @darthVikes, can you please provide the following information?

  • OS version of the machine on which image-builder is run
  • EKS-A version used to download the image builder CLI
  • Python3 version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants