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

Bare Metal: write-netplan workflow failure when using Ubuntu #6636

Open
Swalloow opened this issue Sep 2, 2023 · 6 comments
Open

Bare Metal: write-netplan workflow failure when using Ubuntu #6636

Swalloow opened this issue Sep 2, 2023 · 6 comments
Assignees
Labels
area/providers/tinkerbell Tinkerbell provider related tasks and issues team/providers

Comments

@Swalloow
Copy link
Contributor

Swalloow commented Sep 2, 2023

What happened:
EKS Anywhere's write-netplan action failed because DEST_DISK value is incorrect.

What you expected to happen:
EKS Anywhere's write-netplan action should also succeed when using Ubuntu.

How to reproduce it (as minimally and precisely as possible):
Follow EKS Anywhere bare metal cluster creation instruction with an Ubuntu 20.04 image.

Anything else we need to know?:
It succeeds in EKS Anywhere v0.11.4 with the same settings.
The states on success and failure are as follows:

# Success v0.11.4
Environment:         
  DEST_DISK:       /dev/xvda2
  DEST_PATH:       /etc/netplan/config.yaml
  DIRMODE:         0755
  FS_TYPE:         ext4
  GID:             0
  MODE:            0644
  STATIC_NETPLAN:  true
  UID:             0
Image:             public.ecr.aws/eks-anywhere/tinkerbell/hub/writefile:6c0f0d437bde2c836d90b000312c8b25fa1b65e1-eks-a-18
Name:              write-netplan
Pid:               host
Seconds:           4
Started At:        2023-09-01T06:22:27Z
Status:            STATE_SUCCESS
Timeout:           90

# Failed v0.17.0
Environment:
  DEST_DISK:       /dev/xvda
  DEST_PATH:       /etc/netplan/config.yaml
  DIRMODE:         0755
  FS_TYPE:         ext4
  GID:             0
  MODE:            0644
  STATIC_NETPLAN:  true
  UID:             0
image:             public.ecr.aws/eks-anywhere/tinkerbell/hub/writefile:404dab73a8a7f33e973c6e71782f07e82b125da9-eks-a-45
name:              write-netplan
pid:               host
seconds:           4
startedAt:         2023-09-01T05:42:47Z
status:            STATE_FAILED
timeout:           90

Environment:

  • EKS Anywhere Release: v0.17.0
  • EKS Distro Release: public.ecr.aws/eks-anywhere/tinkerbell/hub/writefile:404dab73a8a7f33e973c6e71782f07e82b125da9-eks-a-45
@chrisdoherty4
Copy link
Contributor

chrisdoherty4 commented Sep 2, 2023

Hi @Swalloow. It looks like you're missing the partition number in the DESK_DISK parameter on your v0.17.0 example, is that right?

@Swalloow
Copy link
Contributor Author

Swalloow commented Sep 2, 2023

Yes but in v0.11.4 to v0.14.6 it ran with the proper partition number without the template.
In v0.15.0 to v0.17.0, do I need to use TinkerbellTemplateConfig to configure the partition number?

@chrisdoherty4
Copy link
Contributor

chrisdoherty4 commented Sep 5, 2023

Understood. xvd isn't supported in upstream. I've made a patch (tinkerbell/tink#786) to the upstream project and we will consider patching in EKS-A.

@chrisdoherty4 chrisdoherty4 added area/providers/tinkerbell Tinkerbell provider related tasks and issues team/providers labels Sep 5, 2023
@chrisdoherty4
Copy link
Contributor

@d8660091 FYI.

@chrisdoherty4
Copy link
Contributor

Dependent on the upstream release, this may be fixed when we upgrade the stack in aws/eks-anywhere-internal#1952

@ndeksa
Copy link
Contributor

ndeksa commented Oct 24, 2023

Someone need to validate it on latest EKS-A BM release ( @ndeksa , @sp1999 )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/providers/tinkerbell Tinkerbell provider related tasks and issues team/providers
Projects
None yet
Development

No branches or pull requests

4 participants