{"id":698,"date":"2021-02-26T11:09:57","date_gmt":"2021-02-26T03:09:57","guid":{"rendered":"https:\/\/www.yinyubo.cn\/?p=698"},"modified":"2022-05-17T09:29:43","modified_gmt":"2022-05-17T01:29:43","slug":"helm","status":"publish","type":"post","link":"https:\/\/www.yinyubo.com\/?p=698","title":{"rendered":"\u89e3\u51b3helm\u90e8\u7f72\u62a5\u9519Error: UPGRADE FAILED: another operation (install\/upgrade\/rollback) is in progress"},"content":{"rendered":"<p>\u5728\u4f7f\u7528helm install \u6216\u8005helm upgrade\u7684\u65f6\u5019\uff0c\u5982\u679c\u51fa\u73b0\u4e86\u5f02\u5e38\u4e2d\u65ad\u64cd\u4f5c\uff0c \u53ef\u80fd\u4f1a\u5bfc\u81f4\u5982\u4e0b\u62a5\u9519<\/p>\n<pre class=\"lang:python decode:true EnlighterJSRAW\" data-enlighter-language=\"golang\"><code class=\"EnlighterJSRAW\" data-enlighter-language=\"golang\">Error: UPGRADE FAILED: another operation (install\/upgrade\/rollback) is in progress<\/code><\/pre>\n<p>\u90a3\u4e48\u95ee\u9898\u6765\u4e86\uff0c\u5982\u4f55\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\u5462\uff1f<br \/>\n\u53c2\u8003github\u4e0a\u7684issues\uff1ahttps:\/\/github.com\/helm\/helm\/issues\/8987\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u64cd\u4f5c<br \/>\n1.\u8f93\u5165helm history \u547d\u4ee4\u68c0\u67e5\u5f53\u524d\u72b6\u6001\uff0c \u5982\u4e0b<\/p>\n<pre class=\"lang:python decode:true EnlighterJSRAW\" data-enlighter-language=\"golang\"><code class=\"EnlighterJSRAW\" data-enlighter-language=\"golang\">$ helm history -n lizhewnei lizhewnei-common\nREVISION\tUPDATED                 \tSTATUS         \tCHART                 \tAPP VERSION\tDESCRIPTION\n331     \tTue Feb 23 23:11:07 2021\tsuperseded     \tlizhewnei-common-0.1.0\t1.16.0     \tUpgrade complete\n332     \tWed Feb 24 08:11:08 2021\tsuperseded     \tlizhewnei-common-0.1.0\t1.16.0     \tUpgrade complete\n333     \tWed Feb 24 15:11:13 2021\tsuperseded     \tlizhewnei-common-0.1.0\t1.16.0     \tUpgrade complete\n334     \tWed Feb 24 23:11:09 2021\tsuperseded     \tlizhewnei-common-0.1.0\t1.16.0     \tUpgrade complete\n335     \tThu Feb 25 08:11:09 2021\tsuperseded     \tlizhewnei-common-0.1.0\t1.16.0     \tUpgrade complete\n336     \tThu Feb 25 15:11:08 2021\tsuperseded     \tlizhewnei-common-0.1.0\t1.16.0     \tUpgrade complete\n337     \tThu Feb 25 23:11:06 2021\tsuperseded     \tlizhewnei-common-0.1.0\t1.16.0     \tUpgrade complete\n338     \tFri Feb 26 08:11:13 2021\tsuperseded     \tlizhewnei-common-0.1.0\t1.16.0     \tUpgrade complete\n339     \tFri Feb 26 09:49:37 2021\tdeployed       \tlizhewnei-common-0.1.0\t1.16.0     \tUpgrade complete\n340     \tFri Feb 26 10:37:53 2021\tpending-upgrade\tlizhewnei-common-0.1.0\t1.16.0     \tPreparing upgrade<\/code><\/pre>\n<p>2.\u6839\u636e\u4e0a\u8ff0\u72b6\u6001\uff0c\u6211\u4eec\u4f1a\u53d1\u73b0\uff0c\u6700\u8fd1\u7684\u4e00\u6b21340\u90e8\u7f72\u7ed3\u679c\u662fpending-upgrade \u6240\u4ee5\u963b\u585e\u4e86\u6211\u4eec\u7684\u7ee7\u7eed\u90e8\u7f72<br \/>\n3.\u6211\u4eec\u4f7f\u7528helm rollback\u547d\u4ee4\u56de\u9000\u4e00\u4e2a\u7248\u672c\u5230339\u7248\u672c<\/p>\n<pre class=\"lang:python decode:true  EnlighterJSRAW\" data-enlighter-language=\"golang\"><code class=\"EnlighterJSRAW\" data-enlighter-language=\"golang\">$ helm rollback -n lizhewnei lizhewnei-common 339\nRollback was a success! Happy Helming!\n<\/code><\/pre>\n<p>4.\u56de\u9000\u4e4b\u540e\uff0c\u518d\u68c0\u67e5\u4e00\u6b21\u5f53\u524d\u72b6\u6001\uff0c\u786e\u8ba4\u72b6\u6001\u4fe1\u606f\u662f\u56de\u9000\u5230339\u7248\u672c<\/p>\n<pre class=\"lang:python decode:true  EnlighterJSRAW\" data-enlighter-language=\"golang\"><code class=\"EnlighterJSRAW\" data-enlighter-language=\"golang\">$ helm history -n lizhewnei lizhewnei-common\nREVISION\tUPDATED                 \tSTATUS         \tCHART                 \tAPP VERSION\tDESCRIPTION\n332     \tWed Feb 24 08:11:08 2021\tsuperseded     \tlizhewnei-common-0.1.0\t1.16.0     \tUpgrade complete\n333     \tWed Feb 24 15:11:13 2021\tsuperseded     \tlizhewnei-common-0.1.0\t1.16.0     \tUpgrade complete\n334     \tWed Feb 24 23:11:09 2021\tsuperseded     \tlizhewnei-common-0.1.0\t1.16.0     \tUpgrade complete\n335     \tThu Feb 25 08:11:09 2021\tsuperseded     \tlizhewnei-common-0.1.0\t1.16.0     \tUpgrade complete\n336     \tThu Feb 25 15:11:08 2021\tsuperseded     \tlizhewnei-common-0.1.0\t1.16.0     \tUpgrade complete\n337     \tThu Feb 25 23:11:06 2021\tsuperseded     \tlizhewnei-common-0.1.0\t1.16.0     \tUpgrade complete\n338     \tFri Feb 26 08:11:13 2021\tsuperseded     \tlizhewnei-common-0.1.0\t1.16.0     \tUpgrade complete\n339     \tFri Feb 26 09:49:37 2021\tsuperseded     \tlizhewnei-common-0.1.0\t1.16.0     \tUpgrade complete\n340     \tFri Feb 26 10:37:53 2021\tpending-upgrade\tlizhewnei-common-0.1.0\t1.16.0     \tPreparing upgrade\n341     \tFri Feb 26 11:00:23 2021\tdeployed       \tlizhewnei-common-0.1.0\t1.16.0     \tRollback to 339\n<\/code><\/pre>\n<p>5.\u8fd9\u4e2a\u65f6\u5019\uff0c\u6211\u4eec\u518d\u53bb\u4f7f\u7528helm upgrade\u547d\u4ee4\uff0c\u5c31\u53ef\u4ee5\u6b63\u5e38\u7684\u5347\u7ea7\u4e86\uff0c\u5347\u7ea7\u4e4b\u540e\uff0c\u6211\u4eec\u901a\u8fc7helm history \u4e5f\u53ef\u4ee5\u68c0\u67e5\u5230\u5347\u7ea7\u6210\u529f\uff0c<\/p>\n<pre class=\"lang:python decode:true  EnlighterJSRAW\" data-enlighter-language=\"golang\"><code class=\"EnlighterJSRAW\" data-enlighter-language=\"golang\">$ helm history -n lizhewnei lizhewnei-common\nREVISION\tUPDATED                 \tSTATUS         \tCHART                 \tAPP VERSION\tDESCRIPTION\n333     \tWed Feb 24 15:11:13 2021\tsuperseded     \tlizhewnei-common-0.1.0\t1.16.0     \tUpgrade complete\n334     \tWed Feb 24 23:11:09 2021\tsuperseded     \tlizhewnei-common-0.1.0\t1.16.0     \tUpgrade complete\n335     \tThu Feb 25 08:11:09 2021\tsuperseded     \tlizhewnei-common-0.1.0\t1.16.0     \tUpgrade complete\n336     \tThu Feb 25 15:11:08 2021\tsuperseded     \tlizhewnei-common-0.1.0\t1.16.0     \tUpgrade complete\n337     \tThu Feb 25 23:11:06 2021\tsuperseded     \tlizhewnei-common-0.1.0\t1.16.0     \tUpgrade complete\n338     \tFri Feb 26 08:11:13 2021\tsuperseded     \tlizhewnei-common-0.1.0\t1.16.0     \tUpgrade complete\n339     \tFri Feb 26 09:49:37 2021\tsuperseded     \tlizhewnei-common-0.1.0\t1.16.0     \tUpgrade complete\n340     \tFri Feb 26 10:37:53 2021\tpending-upgrade\tlizhewnei-common-0.1.0\t1.16.0     \tPreparing upgrade\n341     \tFri Feb 26 11:00:23 2021\tsuperseded     \tlizhewnei-common-0.1.0\t1.16.0     \tRollback to 339\n342     \tFri Feb 26 11:01:27 2021\tdeployed       \tlizhewnei-common-0.1.0\t1.16.0     \tUpgrade complete\n<\/code><\/pre>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"golang\"><code class=\"EnlighterJSRAW\" data-enlighter-language=\"golang\">\u00a0<\/code>\n<code class=\"EnlighterJSRAW\" data-enlighter-language=\"golang\">\u00a0<\/code>\n<code class=\"EnlighterJSRAW\" data-enlighter-language=\"golang\">\u00a0<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u4f7f\u7528helm install \u6216\u8005helm upgrade\u7684\u65f6\u5019\uff0c\u5982\u679c\u51fa\u73b0\u4e86\u5f02\u5e38\u4e2d\u65ad\u64cd\u4f5c\uff0c \u53ef\u80fd\u4f1a\u5bfc\u81f4\u5982\u4e0b\u62a5 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-698","post","type-post","status-publish","format-standard","hentry","category-k8s"],"_links":{"self":[{"href":"https:\/\/www.yinyubo.com\/index.php?rest_route=\/wp\/v2\/posts\/698","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.yinyubo.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yinyubo.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yinyubo.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yinyubo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=698"}],"version-history":[{"count":2,"href":"https:\/\/www.yinyubo.com\/index.php?rest_route=\/wp\/v2\/posts\/698\/revisions"}],"predecessor-version":[{"id":857,"href":"https:\/\/www.yinyubo.com\/index.php?rest_route=\/wp\/v2\/posts\/698\/revisions\/857"}],"wp:attachment":[{"href":"https:\/\/www.yinyubo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=698"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yinyubo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=698"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yinyubo.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=698"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}