rancher / hosted-providers-e2e

Apache License 2.0
0 stars 4 forks source link

Install logic switched to ele-testhelpers #191

Open thehejik opened 1 month ago

thehejik commented 1 month ago

Fixes https://github.com/rancher/hosted-providers-e2e/issues/189

Totally work in progress - the suite and install files were borrowed from turtles-e2e - needs to be adapted for HP.

RANCHER_PASSWORD=mypwd \
RANCHER_HOSTNAME=1.2.3.4.nip.io \
RANCHER_VERSION=latest/2.9.2 \
INSTALL_K3S_VERSION=v1.28.10+k3s1 \
make prepare-rancher

Todo:

thehejik commented 2 weeks ago

Notes for initial proxy support:

thehejik commented 1 week ago

required PR https://github.com/rancher-sandbox/ele-testhelpers/pull/67

thehejik commented 1 week ago

Notes for previous commit

Used command to deploy rancher with proxy and with nightly hosted providers chart:

PROVIDER=aks \
NIGHTLY=yes \
RANCHER_BEHIND_PROXY=yes \
RANCHER_PASSWORD=mypassword \
RANCHER_HOSTNAME=1.2.3.4.nip.io \
RANCHER_VERSION=latest/devel/2.10 \
INSTALL_K3S_VERSION=v1.30.6+k3s1 \
make prepare-e2e-ci-rancher-hosted-nightly-chart-behind-proxy

Verified values helm get values rancher -n cattle-system -o yaml:

bootstrapPassword: mypassword
extraEnv:
- name: CATTLE_SERVER_URL
  value: https://1.2.3.4.nip.io
- name: CATTLE_AGENT_IMAGE
  value: rancher/rancher-agent:v2.10-head
- name: CATTLE_SKIP_HOSTED_CLUSTER_CHART_INSTALLATION
  value: "true"
hostname: 1.2.3.4.nip.io
noProxy: 127.0.0.0/8,10.0.0.0/8,cattle-system.svc,172.16.0.0/12,192.168.0.0/16,.svc,.cluster.local
proxy: http://172.17.0.1:3128
rancherImageTag: v2.10-head
replicas: 1
useBundledSystemChart: true
thehejik commented 1 week ago

First testrun, enabled proxy and nightly on AKS with p0_provisioning: https://github.com/rancher/hosted-providers-e2e/actions/runs/11841053192

thehejik commented 1 week ago

After fix for installing nightly_charts: https://github.com/rancher/hosted-providers-e2e/actions/runs/11841322069

thehejik commented 1 week ago

Thanks for valuable inputs, comments from both reviews incorporated.

Almost everything has been addressed but I left following untouched on purpose:

For local rancher deployment you may use this:

RANCHER_BEHIND_PROXY=enabled \
NIGHTLY_CHART=enabled \
PROVIDER=aks \
RANCHER_PASSWORD=mypasswd \
RANCHER_HOSTNAME=1.2.3.4.nip.io \
RANCHER_VERSION=latest/devel/2.10 \
INSTALL_K3S_VERSION=v1.30.6+k3s1 \
make prepare-rancher

Testrun: AKS p0_provisioning, nighly & proxy: https://github.com/rancher/hosted-providers-e2e/actions/runs/11895010284

valaparthvi commented 5 days ago

@thehejik Can you look into https://github.com/rancher/hosted-providers-e2e/actions/runs/11951035086/job/33313855933 failure? I tried to run proxy with nightly operator and rancher installation failed twice.

thehejik commented 4 days ago

@thehejik Can you look into https://github.com/rancher/hosted-providers-e2e/actions/runs/11951035086/job/33313855933 failure? I tried to run proxy with nightly operator and rancher installation failed twice.

@valaparthvi thanks, good catch - it should be resolved by latest commit - problem was that extraEnv index was out of the sequence and then helm rendered invalid rancher deployment yaml.

Testruns:

thehejik commented 13 hours ago

Now installing the correct k3s version, thanks @cpinjani for the heads up.

Testrun GKE p0_provisioning, nightly and proxy enabled: https://github.com/rancher/hosted-providers-e2e/actions/runs/12031750996