Page MenuHomePhabricator

[HACKING WEEK] - Upgrading Microk8s of Kaapana -
Open, HighPublic

Event Timeline

s669m renamed this task from Upgrading Microk8s of Kaapana to Upgrading Microk8s of Kaapana - HACKING WEEK.Thu, Nov 11, 10:50 AM
s669m claimed this task.
s669m triaged this task as High priority.
s669m created this task.
s669m renamed this task from Upgrading Microk8s of Kaapana - HACKING WEEK to [HACKING WEEK] - Upgrading Microk8s of Kaapana - .Thu, Nov 11, 10:53 AM
ubuntu@vm-129-189:~$ kubectl get pods -A
NAMESPACE     NAME                                    READY   STATUS      RESTARTS   AGE
base          code-server-7b9b68c556-fqrc9            1/1     Running     3          84m
base          landingpage-7c7bb855b-hz484             1/1     Running     3          86m
default       kaapana-exp-extensions-87rjt            0/1     Completed   0          84m
default       kaapana-plugin-kqdd2                    0/1     Completed   0          84m
default       kaapana-stab-extensions-ktk29           0/1     Completed   0          84m
flow-jobs     dcmsend-00382388                        0/1     Completed   0          81m
flow-jobs     dcmsend-2b49b0c7                        0/1     Completed   0          80m
flow-jobs     dcmsend-5ff032fb                        0/1     Completed   0          81m
flow-jobs     dcmsend-98c4d2c3                        0/1     Completed   0          81m
flow-jobs     dcmsend-e2633395                        0/1     Completed   0          81m
flow          airflow-6ddc54d9b4-hcvb6                2/2     Running     6          86m
flow          ctp-76cf9bbc9f-6nchk                    1/1     Running     3          86m
flow          postgres-airflow-64954bfb86-t2bjt       1/1     Running     3          86m
kube-system   coredns-588fd544bf-27hc8                1/1     Running     5          91m
kube-system   error-pages-57598754db-fz7bc            1/1     Running     3          86m
kube-system   keycloak-967cbfb55-8jjsv                1/1     Running     3          86m
kube-system   kube-helm-deployment-7f8464f9df-tnbmg   1/1     Running     3          86m
kube-system   kube-state-metrics-5695698777-dq864     1/1     Running     3          86m
kube-system   kubernetes-dashboard-69664c8798-4lw9j   1/1     Running     3          86m
kube-system   louketo-687bbbf6d9-cjgxs                1/1     Running     3          86m
kube-system   postgres-keycloak-5cc9b468d9-pkd82      1/1     Running     3          86m
kube-system   preinstall-extensions-init-w9jss        0/2     Completed   0          86m
kube-system   traefik-5786899dff-99q9f                1/1     Running     3          86m
kube-system   update-extensions-init-vjhtq            0/1     Completed   0          86m
meta          elastic-meta-de-9885fb5b4-wcptq         1/1     Running     3          86m
meta          init-meta-dfpdt                         0/1     Completed   0          86m
meta          kibana-meta-de-8f7c4bd6c-h7k94          1/1     Running     3          86m
monitoring    alertmanager-74fc67bd8-5zvtn            1/1     Running     3          86m
monitoring    grafana-6f6b5dc559-2jhcx                1/1     Running     3          86m
monitoring    prometheus-76bf79f68f-zcqfp             1/1     Running     3          86m
store         dcm4chee-78487774cf-86pkq               1/1     Running     3          86m
store         dicom-init-twb8d                        0/1     Completed   0          86m
store         ldap-684f697598-lzfnj                   1/1     Running     3          86m
store         minio-deployment-79dc7dd464-qv4sk       1/1     Running     3          86m
store         minio-init-76dn6                        0/1     Completed   0          86m
store         ohif-65cdcd8b87-lhcfd                   1/1     Running     3          86m
store         postgres-dcm4che-75d84848c5-rdqxq       1/1     Running     3          86m
ubuntu@vm-129-189:~$ 
ubuntu@vm-129-189:~$ 
ubuntu@vm-129-189:~$ 
ubuntu@vm-129-189:~$ 
ubuntu@vm-129-189:~$ kubectl get nodes
NAME                                  STATUS   ROLES    AGE   VERSION
vm-129-189.cloud.dkfz-heidelberg.de   Ready    <none>   92m   v1.21.6-3+dd57cd4fdc581a
ubuntu@vm-129-189:~$ ./install_platform.sh 
USER: ubuntu 
Check disk space: ok
SIZE:  194G 
Check if helm is available...
ok
Get helm deployments...
Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials
Error: failed to install CRD crds/crds.yaml: CustomResourceDefinition.apiextensions.k8s.io "tlsstores.traefik.containo.us" is invalid: [spec.versions: Invalid value: []apiextensions.CustomResourceDefinitionVersion(nil): must have exactly one version marked as storage version, status.storedVersions: Invalid value: []string(nil): must have at least one stored version]

Latest Error in Traefik

ubuntu@vm-129-189:~/kaapana/services/kaapana-core/traefik/traefik-chart/crds$ kubectl apply -f crds.yaml 
Warning: resource customresourcedefinitions/ingressroutes.traefik.containo.us is missing the kubectl.kubernetes.io/last-applied-configuration annotation which is required by kubectl apply. kubectl apply should only be used on resources created declaratively by either kubectl create --save-config or kubectl apply. The missing annotation will be patched automatically.
Warning: resource customresourcedefinitions/middlewares.traefik.containo.us is missing the kubectl.kubernetes.io/last-applied-configuration annotation which is required by kubectl apply. kubectl apply should only be used on resources created declaratively by either kubectl create --save-config or kubectl apply. The missing annotation will be patched automatically.
Warning: resource customresourcedefinitions/ingressroutetcps.traefik.containo.us is missing the kubectl.kubernetes.io/last-applied-configuration annotation which is required by kubectl apply. kubectl apply should only be used on resources created declaratively by either kubectl create --save-config or kubectl apply. The missing annotation will be patched automatically.
Warning: resource customresourcedefinitions/ingressrouteudps.traefik.containo.us is missing the kubectl.kubernetes.io/last-applied-configuration annotation which is required by kubectl apply. kubectl apply should only be used on resources created declaratively by either kubectl create --save-config or kubectl apply. The missing annotation will be patched automatically.
Warning: resource customresourcedefinitions/tlsoptions.traefik.containo.us is missing the kubectl.kubernetes.io/last-applied-configuration annotation which is required by kubectl apply. kubectl apply should only be used on resources created declaratively by either kubectl create --save-config or kubectl apply. The missing annotation will be patched automatically.
Warning: resource customresourcedefinitions/tlsstores.traefik.containo.us is missing the kubectl.kubernetes.io/last-applied-configuration annotation which is required by kubectl apply. kubectl apply should only be used on resources created declaratively by either kubectl create --save-config or kubectl apply. The missing annotation will be patched automatically.
Warning: resource customresourcedefinitions/traefikservices.traefik.containo.us is missing the kubectl.kubernetes.io/last-applied-configuration annotation which is required by kubectl apply. kubectl apply should only be used on resources created declaratively by either kubectl create --save-config or kubectl apply. The missing annotation will be patched automatically.
Error from server (Invalid): error when applying patch:
{"metadata":{"annotations":{"kubectl.kubernetes.io/last-applied-configuration":"{\"apiVersion\":\"apiextensions.k8s.io/v1\",\"kind\":\"CustomResourceDefinition\",\"metadata\":{\"annotations\":{},\"name\":\"ingressroutes.traefik.containo.us\"},\"spec\":{\"group\":\"traefik.containo.us\",\"names\":{\"kind\":\"IngressRoute\",\"plural\":\"ingressroutes\",\"singular\":\"ingressroute\"},\"scope\":\"Namespaced\",\"versions\":[{\"name\":\"v1beta1\",\"served\":true,\"storage\":true}]}}\n"}},"spec":{"versions":[{"name":"v1beta1","served":true,"storage":true}]}}
to:
Resource: "apiextensions.k8s.io/v1, Resource=customresourcedefinitions", GroupVersionKind: "apiextensions.k8s.io/v1, Kind=CustomResourceDefinition"
Name: "ingressroutes.traefik.containo.us", Namespace: ""
for: "crds.yaml": CustomResourceDefinition.apiextensions.k8s.io "ingressroutes.traefik.containo.us" is invalid: status.storedVersions[0]: Invalid value: "v1alpha1": must appear in spec.versions
Error from server (Invalid): error when applying patch:
{"metadata":{"annotations":{"kubectl.kubernetes.io/last-applied-configuration":"{\"apiVersion\":\"apiextensions.k8s.io/v1\",\"kind\":\"CustomResourceDefinition\",\"metadata\":{\"annotations\":{},\"name\":\"middlewares.traefik.containo.us\"},\"spec\":{\"group\":\"traefik.containo.us\",\"names\":{\"kind\":\"Middleware\",\"plural\":\"middlewares\",\"singular\":\"middleware\"},\"scope\":\"Namespaced\",\"versions\":[{\"name\":\"v1beta1\",\"served\":true,\"storage\":true}]}}\n"}},"spec":{"versions":[{"name":"v1beta1","served":true,"storage":true}]}}
to:
Resource: "apiextensions.k8s.io/v1, Resource=customresourcedefinitions", GroupVersionKind: "apiextensions.k8s.io/v1, Kind=CustomResourceDefinition"
Name: "middlewares.traefik.containo.us", Namespace: ""
for: "crds.yaml": CustomResourceDefinition.apiextensions.k8s.io "middlewares.traefik.containo.us" is invalid: status.storedVersions[0]: Invalid value: "v1alpha1": must appear in spec.versions
Error from server (Invalid): error when applying patch:
{"metadata":{"annotations":{"kubectl.kubernetes.io/last-applied-configuration":"{\"apiVersion\":\"apiextensions.k8s.io/v1\",\"kind\":\"CustomResourceDefinition\",\"metadata\":{\"annotations\":{},\"name\":\"ingressroutetcps.traefik.containo.us\"},\"spec\":{\"group\":\"traefik.containo.us\",\"names\":{\"kind\":\"IngressRouteTCP\",\"plural\":\"ingressroutetcps\",\"singular\":\"ingressroutetcp\"},\"scope\":\"Namespaced\",\"versions\":[{\"name\":\"v1beta1\",\"served\":true,\"storage\":true}]}}\n"}},"spec":{"versions":[{"name":"v1beta1","served":true,"storage":true}]}}
to:
Resource: "apiextensions.k8s.io/v1, Resource=customresourcedefinitions", GroupVersionKind: "apiextensions.k8s.io/v1, Kind=CustomResourceDefinition"
Name: "ingressroutetcps.traefik.containo.us", Namespace: ""
for: "crds.yaml": CustomResourceDefinition.apiextensions.k8s.io "ingressroutetcps.traefik.containo.us" is invalid: status.storedVersions[0]: Invalid value: "v1alpha1": must appear in spec.versions
Error from server (Invalid): error when applying patch:
{"metadata":{"annotations":{"kubectl.kubernetes.io/last-applied-configuration":"{\"apiVersion\":\"apiextensions.k8s.io/v1\",\"kind\":\"CustomResourceDefinition\",\"metadata\":{\"annotations\":{},\"name\":\"ingressrouteudps.traefik.containo.us\"},\"spec\":{\"group\":\"traefik.containo.us\",\"names\":{\"kind\":\"IngressRouteUDP\",\"plural\":\"ingressrouteudps\",\"singular\":\"ingressrouteudp\"},\"scope\":\"Namespaced\",\"versions\":[{\"name\":\"v1beta1\",\"served\":true,\"storage\":true}]}}\n"}},"spec":{"versions":[{"name":"v1beta1","served":true,"storage":true}]}}
to:
Resource: "apiextensions.k8s.io/v1, Resource=customresourcedefinitions", GroupVersionKind: "apiextensions.k8s.io/v1, Kind=CustomResourceDefinition"
Name: "ingressrouteudps.traefik.containo.us", Namespace: ""
for: "crds.yaml": CustomResourceDefinition.apiextensions.k8s.io "ingressrouteudps.traefik.containo.us" is invalid: status.storedVersions[0]: Invalid value: "v1alpha1": must appear in spec.versions
Error from server (Invalid): error when applying patch:
{"metadata":{"annotations":{"kubectl.kubernetes.io/last-applied-configuration":"{\"apiVersion\":\"apiextensions.k8s.io/v1\",\"kind\":\"CustomResourceDefinition\",\"metadata\":{\"annotations\":{},\"name\":\"tlsoptions.traefik.containo.us\"},\"spec\":{\"group\":\"traefik.containo.us\",\"names\":{\"kind\":\"TLSOption\",\"plural\":\"tlsoptions\",\"singular\":\"tlsoption\"},\"scope\":\"Namespaced\",\"versions\":[{\"name\":\"v1beta1\",\"served\":true,\"storage\":true}]}}\n"}},"spec":{"versions":[{"name":"v1beta1","served":true,"storage":true}]}}
to:
Resource: "apiextensions.k8s.io/v1, Resource=customresourcedefinitions", GroupVersionKind: "apiextensions.k8s.io/v1, Kind=CustomResourceDefinition"
Name: "tlsoptions.traefik.containo.us", Namespace: ""
for: "crds.yaml": CustomResourceDefinition.apiextensions.k8s.io "tlsoptions.traefik.containo.us" is invalid: status.storedVersions[0]: Invalid value: "v1alpha1": must appear in spec.versions
Error from server (Invalid): error when applying patch:
{"metadata":{"annotations":{"kubectl.kubernetes.io/last-applied-configuration":"{\"apiVersion\":\"apiextensions.k8s.io/v1\",\"kind\":\"CustomResourceDefinition\",\"metadata\":{\"annotations\":{},\"name\":\"tlsstores.traefik.containo.us\"},\"spec\":{\"group\":\"traefik.containo.us\",\"names\":{\"kind\":\"TLSStore\",\"plural\":\"tlsstores\",\"singular\":\"tlsstore\"},\"scope\":\"Namespaced\",\"versions\":[{\"name\":\"v1beta1\",\"served\":true,\"storage\":true}]}}\n"}},"spec":{"versions":[{"name":"v1beta1","served":true,"storage":true}]}}
to:
Resource: "apiextensions.k8s.io/v1, Resource=customresourcedefinitions", GroupVersionKind: "apiextensions.k8s.io/v1, Kind=CustomResourceDefinition"
Name: "tlsstores.traefik.containo.us", Namespace: ""
for: "crds.yaml": CustomResourceDefinition.apiextensions.k8s.io "tlsstores.traefik.containo.us" is invalid: status.storedVersions[0]: Invalid value: "v1alpha1": must appear in spec.versions
Error from server (Invalid): error when applying patch:
{"metadata":{"annotations":{"kubectl.kubernetes.io/last-applied-configuration":"{\"apiVersion\":\"apiextensions.k8s.io/v1\",\"kind\":\"CustomResourceDefinition\",\"metadata\":{\"annotations\":{},\"name\":\"traefikservices.traefik.containo.us\"},\"spec\":{\"group\":\"traefik.containo.us\",\"names\":{\"kind\":\"TraefikService\",\"plural\":\"traefikservices\",\"singular\":\"traefikservice\"},\"scope\":\"Namespaced\",\"versions\":[{\"name\":\"v1beta1\",\"served\":true,\"storage\":true}]}}\n"}},"spec":{"versions":[{"name":"v1beta1","served":true,"storage":true}]}}
to:
Resource: "apiextensions.k8s.io/v1, Resource=customresourcedefinitions", GroupVersionKind: "apiextensions.k8s.io/v1, Kind=CustomResourceDefinition"
Name: "traefikservices.traefik.containo.us", Namespace: ""
for: "crds.yaml": CustomResourceDefinition.apiextensions.k8s.io "traefikservices.traefik.containo.us" is invalid: status.storedVersions[0]: Invalid value: "v1alpha1": must appear in spec.versions
Exporting chart: /home/ubuntu/kaapana-platform-chart 
Successfully exported chart to /home/ubuntu/
Installing kaapana-platform-chart:0.1.2
CHART_PATH /home/ubuntu/kaapana-platform-chart
Error: failed to install CRD crds/crds.yaml: CustomResourceDefinition.apiextensions.k8s.io "traefikservices.traefik.containo.us" is invalid: [spec.versions[0].schema.openAPIV3Schema: Required value: schemas are required, spec.versions[1].schema.openAPIV3Schema: Required value: schemas are required]

chart pushed... but during installation this error comes...

Pulling chart: registry.hzdr.de/santhosh.parampottupadam/microkubsupgrade/kaapana-platform-chart:0.1.2 
0.1.2: Pulling from registry.hzdr.de/santhosh.parampottupadam/microkubsupgrade/kaapana-platform-chart
Error: pull access denied, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed
Failed -> retry
Could not pull chart! -> abort