Comment 2 for bug 2034002

Revision history for this message
Raoni Timo de Castro Cambiaghi (raonitimo) wrote : Re: [Bug 2034002] Re: Amazon EKS optimized Ubuntu Linux AMIs - new instance family (m7a) fails to join cluster - bootstrap scripts lagging

Thanks very much for the fix.

On Thu, 14 Sept 2023, 5:01 am Robby Pocase, <email address hidden>
wrote:

> A little delayed, but this is available in serials 20230830 and newer.
> Please let us know if you see this again.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/2034002
>
> Title:
> Amazon EKS optimized Ubuntu Linux AMIs - new instance family (m7a)
> fails to join cluster - bootstrap scripts lagging
>
> Status in cloud-images:
> Fix Released
>
> Bug description:
> ## Description
>
> AWS released a new instance family m7a -
> https://aws.amazon.com/ec2/instance-types/m7a/
>
> This is not yet present in eni-max-pods.txt file
>
> The bootstrap.sh file fails silently due to missing log function if
> the instance type is missing from the file.
>
>
> ## Steps to Reproduce
>
> Launch an m7a instance with the EKS Ubuntu AMI in an EKS cluster.
>
> It won't join the cluster and you'll get the following error on
> /var/log/user-data.log:
> .....
> /etc/eks/bootstrap.sh: line 420: log: command not found
> Exited with error on line 420
>
> It seems like the log function, introduced in this PR:
> https://github.com/awslabs/amazon-eks-ami/pull/1276 is missing in
> Ubuntu's AMI.
>
> ## More context
>
> Adding the log function to bootstrap.sh, it fails in another step:
> # /etc/eks/max-pods-calculator.sh --instance-type-from-imds
> --cni-version 1.10.0 --show-max-allowed
> /etc/eks/max-pods-calculator.sh: line 84: imds: command not found
> /etc/eks/max-pods-calculator.sh: line 85: imds: command not found
>
> imds is a helpter script that was added in this PR:
> https://github.com/awslabs/amazon-eks-ami/pull/1044
>
> The script exists under /usr/local/share/eks/imds but it's not in the
> path.
>
> ## What's the fix?
>
> Merge latest EKS AMI bootstrap.sh: https://github.com/awslabs/amazon-
> eks-ami/blame/master/files/bootstrap.sh with Ubuntu's and make sure
> any helper scripts can be reached (sym links).
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/cloud-images/+bug/2034002/+subscriptions
>
>

--
**
** <https://www.canva.com/>
Empowering the world to design
We're hiring,
apply here <https://www.canva.com/careers/>! Check out the latest news and
learnings from our team on the Canva Newsroom
<https://www.canva.com/newsroom/news/>.
 <https://twitter.com/canva>

<https://facebook.com/canva>
 <https://au.linkedin.com/company/canva>

<https://twitter.com/canva>  <https://facebook.com/canva>
<https://www.linkedin.com/company/canva>
 <https://instagram.com/canva>