Project

General

Profile

Bug #4212

Helm chart error after a failed deployment

Added by Erwin Mueller 25 days ago.

Status:
New
Priority:
Normal
Assignee:
Erwin Mueller
Category:
service
Target version:
Start date:
03/25/2019
Due date:
% Done:

0%

Estimated time:
Affected version:
Type:
Task

Description

What happened:

  1. deploy a chart
  2. deploy the same chart with errors
  3. Helm fails as expected
  4. deploy the same chart with fixed errors
  5. Helm still fails
[INFO] 14492 [main] AbstractFromHelmLinux - Installing chart: stable/mariadb
[INFO] 15293 [main] ScriptExecImpl - Script done for FromHelmLinux[name=<null>,system=linux,version=0].
[DEBUG] 15294 [main] AbstractCmdRun - Command finished: for {parent=FromHelmLinux[name=<null>,system=linux,version=0], log=Logger[com.anrisoftware.sscontrol.groovy.script.external.ScriptBase], sshArgs=[-C], sudoEnv={}, sshControlMaster=no, timeout=PT60S, debugLevel=, sshHost=node-0.robobee-test.test, vars={service=FromHelmImpl[name=from-helm,targets=[SshHostImpl[proto=<null>,host=node-0.robobee-test.test,port=<null>,user=<null>,key=<null>,system=DefaultSystemInfoImpl[system=linux,name=debian,version=9],socket=/tmp/robobee@robobee-test:22]],repos=[]], status=DEPLOYED}, quiet=true, sshPort=22, resource=TemplateResourceImpl[locale=,name=helm_cmd,url=file:/home/erwin/Projects/anrisoftware.com/sscontrol-osgi/sscontrol-osgi-k8s-from-helm-script-linux/target/classes/com/anrisoftware/sscontrol/k8s/fromhelm/script/linux/internal/script_1_13/templates/helm_cmd.stg], sshControlPath=/tmp/robobee-<args.sshHost>-<args.sshPort>-<args.sshUser>/ssh/robobee-<args.sshHost>-<args.sshPort>-<args.sshUser>, chdir=null, env={}, command=if helm ls | grep mariadb | grep DEPLOYED; then
  exit 0
else
  exit 1
fi
, target=SshHostImpl[proto=<null>,host=node-0.robobee-test.test,port=<null>,user=<null>,key=<null>,system=DefaultSystemInfoImpl[system=linux,name=debian,version=9],socket=/tmp/robobee@robobee-test:22], sshExternalControlPath=/tmp/robobee@robobee-test:22, sshKey=null, shell=/bin/bash -s, name=helmReleaseCmd, sshUser=erwin, sshConnectionTimeout=PT10S, exitCodes=[I@396639b, sudoChdir=null, sshControlPersistDuration=PT60S, pwd=null, filesLocal=null, sshDefaultOptions=[ControlPath=/tmp/robobee@robobee-test:22, KbdInteractiveAuthentication=no, PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey, PasswordAuthentication=no]}.
[INFO] 15296 [main] TimingLogger - start[1553513500284] time[765] tag[shell]
[ERROR] 16751 [pool-1-thread-2] ScriptBase - sshCmd: 'Error: a release named mariadb already exists.'
[ERROR] 16751 [pool-1-thread-2] ScriptBase - sshCmd: 'Run: helm ls --all mariadb; to check the status of the release'
[ERROR] 16751 [pool-1-thread-2] ScriptBase - sshCmd: 'Or run: helm del --purge mariadb; to delete it'
[ERROR] 16774 [pool-1-thread-1] DefaultListenableFuture - 
com.anrisoftware.globalpom.exec.external.core.InvalidExitCodeException: Error exit code
Exception Context:
    [1:process-task=DefaultProcessTask[executable=/tmp/script8634738642637304793.sh]]
    [2:command-line=ScriptCommandLine[template=TemplateResourceImpl[locale=,name=ssh_wrap_bash,url=file:/home/erwin/Projects/anrisoftware.com/sscontrol-osgi/sscontrol-osgi-command-shell-openssh/target/classes/com/anrisoftware/sscontrol/command/shell/external/ssh/ssh_wrap_bash.stg],substitutions={args={parent=FromHelmLinux[name=<null>,system=linux,version=0], log=Logger[com.anrisoftware.sscontrol.groovy.script.external.ScriptBase], sshArgs=[-C], sudoEnv={}, sshControlMaster=no, timeout=PT1800S, debugLevel=, sshHost=node-0.robobee-test.test, vars={args={config=/tmp/tmp.iZBVY6HRy7}, service=FromHelmImpl[name=from-helm,targets=[SshHostImpl[proto=<null>,host=node-0.robobee-test.test,port=<null>,user=<null>,key=<null>,system=DefaultSystemInfoImpl[system=linux,name=debian,version=9],socket=/tmp/robobee@robobee-test:22]],repos=[]]}, quiet=true, sshPort=22, resource=TemplateResourceImpl[locale=,name=helm_cmd,url=file:/home/erwin/Projects/anrisoftware.com/sscontrol-osgi/sscontrol-osgi-k8s-from-helm-script-linux/target/classes/com/anrisoftware/sscontrol/k8s/fromhelm/script/linux/internal/script_1_13/templates/helm_cmd.stg], sshControlPath=/tmp/robobee-<args.sshHost>-<args.sshPort>-<args.sshUser>/ssh/robobee-<args.sshHost>-<args.sshPort>-<args.sshUser>, chdir=null, env={}, command=helm install -f /tmp/tmp.iZBVY6HRy7 \
     --version 5.11.0 \
     --namespace robobeerun-com-mariadb \
     --name mariadb \
    stable/mariadb
, target=SshHostImpl[proto=<null>,host=node-0.robobee-test.test,port=<null>,user=<null>,key=<null>,system=DefaultSystemInfoImpl[system=linux,name=debian,version=9],socket=/tmp/robobee@robobee-test:22], sshExternalControlPath=/tmp/robobee@robobee-test:22, sshKey=null, shell=/bin/bash -s, name=helmInstallCmd, sshUser=erwin, sshConnectionTimeout=PT10S, sudoChdir=null, sshControlPersistDuration=PT60S, pwd=null, filesLocal=null, sshDefaultOptions=[ControlPath=/tmp/robobee@robobee-test:22, KbdInteractiveAuthentication=no, PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey, PasswordAuthentication=no]}},arguments=[]]]
    [3:return-code=1]
    [4:exit-codes=[0]]
---------------------------------
    at com.anrisoftware.globalpom.exec.internal.core.DefaultProcessTask.startProcess(DefaultProcessTask.java:153)
[INFO] 16777 [main] TimingLogger - start[1553513501051] time[1479] tag[shell]
[INFO] 16829 [main] ScriptExecImpl - Script done for FromHelmLinux[name=<null>,system=linux,version=0].
[DEBUG] 16830 [main] AbstractCmdRun - Command finished: for {parent=FromHelmLinux[name=<null>,system=linux,version=0], log=Logger[com.anrisoftware.sscontrol.groovy.script.external.ScriptBase], sshArgs=[-C], sudoEnv={}, sshControlMaster=no, debugLevel=, file=/tmp/tmp.iZBVY6HRy7, sshHost=node-0.robobee-test.test, quiet=true, sshPort=22, sshControlPath=/tmp/robobee-<args.sshHost>-<args.sshPort>-<args.sshUser>/ssh/robobee-<args.sshHost>-<args.sshPort>-<args.sshUser>, chdir=null, env={}, command=rm -rf /tmp/tmp.iZBVY6HRy7, target=SshHostImpl[proto=<null>,host=node-0.robobee-test.test,port=<null>,user=<null>,key=<null>,system=DefaultSystemInfoImpl[system=linux,name=debian,version=9],socket=/tmp/robobee@robobee-test:22], sshExternalControlPath=/tmp/robobee@robobee-test:22, sshKey=null, shell=/bin/bash -s, sshUser=erwin, sshConnectionTimeout=PT10S, sudoChdir=null, sshControlPersistDuration=PT60S, pwd=null, filesLocal=null, sshDefaultOptions=[ControlPath=/tmp/robobee@robobee-test:22, KbdInteractiveAuthentication=no, PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey, PasswordAuthentication=no]}.
[INFO] 16830 [main] TimingLogger - start[1553513502542] time[41] tag[shell]

Others:

Helm needs to rollback a failed deployment.

robobee@node-0:~$ helm ls --all mariadb
NAME    REVISION        UPDATED                         STATUS  CHART           APP VERSION     NAMESPACE             
mariadb 5               Mon Mar 25 12:27:42 2019        FAILED  mariadb-5.11.0  10.1.38         robobeerun-com-mariadb
robobee@node-0:~$ helm history mariadb
REVISION        UPDATED                         STATUS          CHART           DESCRIPTION                                                 
1               Mon Mar 25 10:39:32 2019        SUPERSEDED      mariadb-5.11.0  Install complete                                            
2               Mon Mar 25 11:57:25 2019        SUPERSEDED      mariadb-5.11.0  Upgrade complete                                            
3               Mon Mar 25 12:04:52 2019        SUPERSEDED      mariadb-5.11.0  Upgrade complete                                            
4               Mon Mar 25 12:23:29 2019        DEPLOYED        mariadb-5.11.0  Upgrade complete                                            
5               Mon Mar 25 12:27:42 2019        FAILED          mariadb-5.11.0  Upgrade "mariadb" failed: v1beta1.StatefulSet.Spec: v1bet...
robobee@node-0:~$ helm rollback mariadb 0
Rollback was a success! Happy Helming!
robobee@node-0:~$ helm ls --all mariadb   
NAME    REVISION        UPDATED                         STATUS          CHART           APP VERSION     NAMESPACE             
mariadb 6               Mon Mar 25 12:34:03 2019        DEPLOYED        mariadb-5.11.0  10.1.38         robobeerun-com-mariadb

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 125 MB)