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

Bug: Pre-flight failure on eksupgrade #48

Closed
quixoticmonk opened this issue Feb 16, 2023 · 1 comment · Fixed by #53 or #54
Closed

Bug: Pre-flight failure on eksupgrade #48

quixoticmonk opened this issue Feb 16, 2023 · 1 comment · Fixed by #53 or #54
Labels
bug Something isn't working

Comments

@quixoticmonk
Copy link
Contributor

quixoticmonk commented Feb 16, 2023

Expected Behaviour

eksupgrade would complete the pre-flight checks and complete the upgrade.

The site-packages/eksupgrade does include the following files
Screenshot 2023-02-15 at 9 45 50 PM

Current Behaviour

Upgrade pre-flight check fails with the following errors.

INFO:eksupgrade.src.preflight_module:Available IPs for Subnet verified
INFO:botocore.credentials:Found credentials in environment variables.
ERROR:eksupgrade.src.preflight_module:Some error occurred during preflight check process - Error: [Errno 2] No such file or directory: 'eksupgrade/src/S3Files/cluster_roles.json'
ERROR:eksupgrade.src.preflight_module:Pre flight unsuccessful because of the following errors: ["Some error occurred during preflight check process [Errno 2] No such file or directory: 'eksupgrade/src/S3Files/cluster_roles.json'"]
ERROR:eksupgrade.starter:Pre-flight check for cluster eksup-cluster failed!

Code snippet

eksupgrade eksup-cluster 1.22 us-east-1

Possible Solution

No response

Steps to Reproduce

  1. Created a cluster using eksctl eksctl create cluster -f cluster.yaml. Config yaml below
apiVersion: eksctl.io/v1alpha5
kind: ClusterConfig

metadata:
  name: eksup-cluster
  region: us-east-1
  version: "1.21"
nodeGroups:
  - name: ng-1
    instanceType: t2.micro
    desiredCapacity: 2
addons: 
- name: vpc-cni
- name: coredns
- name: kube-proxy
  1. Installed eksupgrade using pip install eksupgrade
  2. Ran the eksupgrade command to upgrade the version to 1.22 eksupgrade eksup-cluster 1.22 us-east-1

Amazon EKS upgrade version

0.4.0

Python runtime version

3.9

Packaging format used

PyPi

Debugging logs

INFO:eksupgrade.src.preflight_module:Available IPs for Subnet verified
INFO:botocore.credentials:Found credentials in environment variables.
ERROR:eksupgrade.src.preflight_module:Some error occurred during preflight check process - Error: [Errno 2] No such file or directory: 'eksupgrade/src/S3Files/cluster_roles.json'
ERROR:eksupgrade.src.preflight_module:Pre flight unsuccessful because of the following errors: ["Some error occurred during preflight check process [Errno 2] No such file or directory: 'eksupgrade/src/S3Files/cluster_roles.json'"]
ERROR:eksupgrade.starter:Pre-flight check for cluster eksup-cluster failed!
@quixoticmonk quixoticmonk added the bug Something isn't working label Feb 16, 2023
@quixoticmonk quixoticmonk changed the title Bug: Pre-flight failure on eksupgrade 0.4.0 version Bug: Pre-flight failure on eksupgrade Feb 16, 2023
@quixoticmonk
Copy link
Contributor Author

quixoticmonk commented Feb 16, 2023

Is this a path issue as when I call eksupgrade from the sitepackages, it detects the files and moves to the next set of steps. python version is handled by pyenv.

lib/python3.9/site-packages via 🐍 v3.9.10
❯ eksupgrade eksup-cluster 1.22 us-east-1
INFO:botocore.credentials:Found credentials in environment variables.
INFO:botocore.credentials:Found credentials in environment variables.
INFO:eksupgrade.src.preflight_module:Verifying User IAM Role....
INFO:eksupgrade.src.preflight_module:IAM role for user verified
INFO:botocore.credentials:Found credentials in environment variables.
INFO:eksupgrade.src.preflight_module:Fetching cluster details .....
INFO:eksupgrade.src.preflight_module:Cluster control plane version 1.21
INFO:eksupgrade.src.preflight_module:Cluster with verison 1.21 can be updated to target version 1.22

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant