Task ks-devops failed when upgrading to v3.2.0-alpha.0 from v3.1.1
Created by: zryfish
The last lines of ks-installer logs
"stdout": "fatal: [localhost]: FAILED! => {\"attempts\": 3, \"changed\": true, \"cmd\": \"# TODO Rename helm chart name\\n/usr/local/bin/helm upgrade --install devops /kubesphere/kubesphere/ks-devops/charts/ks-devops-0.1.3.tgz -n kubesphere-devops-system -f /kubesphere/kubesphere/ks-devops/ks-devops-values.yaml\\n\", \"delta\": \"0:00:01.621833\", \"end\": \"2021-09-22 11:48:46.112132\", \"msg\": \"non-zero return code\", \"rc\": 1, \"start\": \"2021-09-22 11:48:44.490299\", \"stderr\": \"Error: UPGRADE FAILED: cannot patch \\\"migrate\\\" with kind Job: Job.batch \\\"migrate\\\" is invalid: spec.template: Invalid value: core.PodTemplateSpec{ObjectMeta:v1.ObjectMeta{Name:\\\"\\\", GenerateName:\\\"\\\", Namespace:\\\"\\\", SelfLink:\\\"\\\", UID:\\\"\\\", ResourceVersion:\\\"\\\", Generation:0, CreationTimestamp:v1.Time{Time:time.Time{wall:0x0, ext:0, loc:(*time.Location)(nil)}}, DeletionTimestamp:(*v1.Time)(nil), DeletionGracePeriodSeconds:(*int64)(nil), Labels:map[string]string{\\\"controller-uid\\\":\\\"50b06a80-b73b-4362-8877-9ebe2d35ed4c\\\", \\\"job-name\\\":\\\"migrate\\\"}, Annotations:map[string]string(nil), OwnerReferences:[]v1.OwnerReference(nil), Finalizers:[]string(nil), ClusterName:\\\"\\\", ManagedFields:[]v1.ManagedFieldsEntry(nil)}, Spec:core.PodSpec{Volumes:[]core.Volume(nil), InitContainers:[]core.Container(nil), Containers:[]core.Container{core.Container{Name:\\\"migrate\\\", Image:\\\"ghcr.io/linuxsuren/ks/ks:v0.0.37\\\", Command:[]string{\\\"/ks\\\", \\\"option\\\", \\\"migrate\\\", \\\"--service\\\",\\\"devops-apiserver.kubesphere-devops-system:9090\\\", \\\"--namespace\\\", \\\"kubesphere-devops-system\\\"}, Args:[]string(nil), WorkingDir:\\\"\\\", Ports:[]core.ContainerPort(nil), EnvFrom:[]core.EnvFromSource(nil), Env:[]core.EnvVar(nil), Resources:core.ResourceRequirements{Limits:core.ResourceList(nil), Requests:core.ResourceList(nil)}, VolumeMounts:[]core.VolumeMount(nil), VolumeDevices:[]core.VolumeDevice(nil), LivenessProbe:(*core.Probe)(nil), ReadinessProbe:(*core.Probe)(nil), StartupProbe:(*core.Probe)(nil), Lifecycle:(*core.Lifecycle)(nil), TerminationMessagePath:\\\"/dev/termination-log\\\", TerminationMessagePolicy:\\\"File\\\", ImagePullPolicy:\\\"IfNotPresent\\\", SecurityContext:(*core.SecurityContext)(nil), Stdin:false, StdinOnce:false, TTY:false}}, EphemeralContainers:[]core.EphemeralContainer(nil), RestartPolicy:\\\"Never\\\", TerminationGracePeriodSeconds:(*int64)(0xc0120922c8), ActiveDeadlineSeconds:(*int64)(nil), DNSPolicy:\\\"ClusterFirst\\\", NodeSelector:map[string]string(nil), ServiceAccountName:\\\"devops\\\", AutomountServiceAccountToken:(*bool)(nil), NodeName:\\\"\\\", SecurityContext:(*core.PodSecurityContext)(0xc0255cb580), ImagePullSecrets:[]core.LocalObjectReference(nil), Hostname:\\\"\\\", Subdomain:\\\"\\\", SetHostnameAsFQDN:(*bool)(nil), Affinity:(*core.Affinity)(nil), SchedulerName:\\\"default-scheduler\\\", Tolerations:[]core.Toleration(nil), HostAliases:[]core.HostAlias(nil), PriorityClassName:\\\"\\\", Priority:(*int32)(nil), PreemptionPolicy:(*core.PreemptionPolicy)(nil), DNSConfig:(*core.PodDNSConfig)(nil), ReadinessGates:[]core.PodReadinessGate(nil), RuntimeClassName:(*string)(nil), Overhead:core.ResourceList(nil), EnableServiceLinks:(*bool)(nil), TopologySpreadConstraints:[]core.TopologySpreadConstraint(nil)}}: field is immutable\", \"stderr_lines\": [\"Error: UPGRADE FAILED: cannot patch \\\"migrate\\\" with kind Job: Job.batch \\\"migrate\\\" is invalid: spec.template: Invalid value: core.PodTemplateSpec{ObjectMeta:v1.ObjectMeta{Name:\\\"\\\", GenerateName:\\\"\\\", Namespace:\\\"\\\", SelfLink:\\\"\\\", UID:\\\"\\\", ResourceVersion:\\\"\\\", Generation:0, CreationTimestamp:v1.Time{Time:time.Time{wall:0x0, ext:0, loc:(*time.Location)(nil)}}, DeletionTimestamp:(*v1.Time)(nil), DeletionGracePeriodSeconds:(*int64)(nil), Labels:map[string]string{\\\"controller-uid\\\":\\\"50b06a80-b73b-4362-8877-9ebe2d35ed4c\\\", \\\"job-name\\\":\\\"migrate\\\"}, Annotations:map[string]string(nil), OwnerReferences:[]v1.OwnerReference(nil), Finalizers:[]string(nil), ClusterName:\\\"\\\", ManagedFields:[]v1.ManagedFieldsEntry(nil)}, Spec:core.PodSpec{Volumes:[]core.Volume(nil), InitContainers:[]core.Container(nil), Containers:[]core.Container{core.Container{Name:\\\"migrate\\\", Image:\\\"ghcr.io/linuxsuren/ks/ks:v0.0.37\\\", Command:[]string{\\\"/ks\\\", \\\"option\\\", \\\"migrate\\\", \\\"--service\\\", \\\"devops-apiserver.kubesphere-devops-system:9090\\\", \\\"--namespace\\\", \\\"kubesphere-devops-system\\\"}, Args:[]string(nil), WorkingDir:\\\"\\\", Ports:[]core.ContainerPort(nil), EnvFrom:[]core.EnvFromSource(nil), Env:[]core.EnvVar(nil), Resources:core.ResourceRequirements{Limits:core.ResourceList(nil), Requests:core.ResourceList(nil)}, VolumeMounts:[]core.VolumeMount(nil), VolumeDevices:[]core.VolumeDevice(nil), LivenessProbe:(*core.Probe)(nil), ReadinessProbe:(*core.Probe)(nil), StartupProbe:(*core.Probe)(nil), Lifecycle:(*core.Lifecycle)(nil), TerminationMessagePath:\\\"/dev/termination-log\\\", TerminationMessagePolicy:\\\"File\\\", ImagePullPolicy:\\\"IfNotPresent\\\", SecurityContext:(*core.SecurityContext)(nil), Stdin:false, StdinOnce:false, TTY:false}}, EphemeralContainers:[]core.EphemeralContainer(nil), RestartPolicy:\\\"Never\\\", TerminationGracePeriodSeconds:(*int64)(0xc0120922c8), ActiveDeadlineSeconds:(*int64)(nil), DNSPolicy:\\\"ClusterFirst\\\", NodeSelector:map[string]string(nil), ServiceAccountName:\\\"devops\\\", AutomountServiceAccountToken:(*bool)(nil), NodeName:\\\"\\\", SecurityContext:(*core.PodSecurityContext)(0xc0255cb580), ImagePullSecrets:[]core.LocalObjectReference(nil), Hostname:\\\"\\\", Subdomain:\\\"\\\", SetHostnameAsFQDN:(*bool)(nil), Affinity:(*core.Affinity)(nil), SchedulerName:\\\"default-scheduler\\\", Tolerations:[]core.Toleration(nil), HostAliases:[]core.HostAlias(nil), PriorityClassName:\\\"\\\", Priority:(*int32)(nil), PreemptionPolicy:(*core.PreemptionPolicy)(nil), DNSConfig:(*core.PodDNSConfig)(nil), ReadinessGates:[]core.PodReadinessGate(nil), RuntimeClassName:(*string)(nil), Overhead:core.ResourceList(nil), EnableServiceLinks:(*bool)(nil), TopologySpreadConstraints:[]core.TopologySpreadConstraint(nil)}}: field is immutable\"], \"stdout\": \"\", \"stdout_lines\": []}",