{"id":8132,"date":"2024-05-16T16:48:54","date_gmt":"2024-05-16T08:48:54","guid":{"rendered":"https:\/\/nj.transwarp.cn:8180\/?p=8132"},"modified":"2024-05-16T16:48:53","modified_gmt":"2024-05-16T08:48:53","slug":"workflow-%e9%85%8d%e7%bd%ae%e5%ae%b9%e5%99%a8%e9%87%8c-tdh-client-%e6%89%80%e7%94%a8-yum-%e6%ba%90%e4%b8%ba%e7%89%a9%e7%90%86%e6%9c%ba%e6%9c%ac%e5%9c%b0-yum-%e6%ba%90%e7%9a%84%e6%96%b9%e5%bc%8f","status":"publish","type":"post","link":"https:\/\/kbwp.transwarp.cn\/?p=8132","title":{"rendered":"[Workflow] \u914d\u7f6e\u5bb9\u5668\u91cc TDH-Client \u6240\u7528 yum \u6e90\u4e3a\u7269\u7406\u673a\u672c\u5730 yum \u6e90\u7684\u65b9\u5f0f"},"content":{"rendered":"<h3>\u6982\u8981\u63cf\u8ff0<\/h3>\n<hr \/>\n<p>Workflow \u7ec4\u4ef6\u7684\u57fa\u7840\u955c\u50cf\u6709\u70b9\u95ee\u9898\uff0c\u955c\u50cf\u81ea\u5e26 \/etc\/yum.repo.d \u4e0b\u7684 yum \u6e90\u5728\u5ba2\u6237\u81ea\u8eab\u5185\u7f51\u73af\u5883\u91cc\u4e00\u822c\u662f\u4e0d\u80fd\u8fde\u901a\u7684\uff1b\u8fd9\u4f1a\u5bfc\u81f4\u521d\u59cb\u5316 TDH-Client \u7684 init.sh \u811a\u672c\u8fdb\u884c\u5b89\u88c5 Kerberos \u5ba2\u6237\u7aef\u6267\u884c yum \u8bed\u53e5\u4e00\u76f4\u5361\u5728\u8fde\u63a5 yum \u6e90 url\uff0c\u6700\u540e\u8d85\u65f6\u62a5\u9519\u3002<\/p>\n<p>\u6bd4\u5982\u811a\u672c\u4efb\u52a1\u6267\u884c\u65f6\u51fa\u73b0 <code>Another app is currently holding the yum lock<\/code> \u4e4b\u7c7b\u7684\u9519\u8bef\u3002<\/p>\n<p>\u672c\u6587\u4ecb\u7ecd\u4e24\u4e2a\u9488\u5bf9\u8be5\u95ee\u9898\u7684 workaround \u65b9\u6cd5\u4f9b\u53c2\u8003\u3002<\/p>\n<p>Workflow \u5b89\u88c5 TDH-Client \u8bf7\u53c2\u8003 2.1.2 \u7ae0\u8282\uff1a<a href=\"https:\/\/www.warpcloud.cn\/#\/documents-support\/docs-detail\/document\/TDH-DEV_SUITE\/6.2\/010WorkflowManual?docType=docs%3Fcategory%3DTDH%26index%3D0&docName=Workflow%E4%BD%BF%E7%94%A8%E6%89%8B%E5%86%8C\">Workflow \u5b89\u88c5TDH-Client<\/a><\/p>\n<h3>\u8be6\u7ec6\u8bf4\u660e<\/h3>\n<hr \/>\n<h5>\u65b9\u6cd51\uff1a\u6302\u8f7d\u672c\u673a \/etc\/yum.repos.d \u5230 Workflow \u5bb9\u5668 \/etc\/yum.repos.d<\/h5>\n<ol>\n<li>\u4ee5 Workflow1 \u670d\u52a1\u4e3a\u4f8b\uff0cssh \u767b\u5f55 TDH Manager \u8282\u70b9\uff0c\u786e\u8ba4\u6b63\u5728\u4f7f\u7528\u7684 Workflow \u955c\u50cf\u7248\u672c<\/li>\n<\/ol>\n<p><code>$ kubectl describe po $(kubectl get po -o wide | grep workflow1 | head -1 | awk &#039;{print $1}&#039;) | grep Image:<\/code>   <\/p>\n<ul>\n<li>workflow1 \u4e3a\u5bf9\u5e94\u7684\u7ec4\u4ef6\u5b9e\u4f8b\u540d<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/nj.transwarp.cn:8180\/wp-content\/uploads\/2022\/04\/image-1650356366374.png\" alt=\"file\" \/><\/p>\n<ol start=\"2\">\n<li>\u4fee\u6539\u5bf9\u5e94\u955c\u50cf\u7248\u672c\u7684 metainfo \u6587\u4ef6<\/li>\n<\/ol>\n<p>\u6839\u636e\u4e0a\u9762\u83b7\u53d6\u7684 Workflow \u955c\u50cf\u7248\u672c\uff0c\u8fdb\u5165\u76ee\u5f55 <code>\/var\/lib\/transwarp-manager\/master\/content\/meta\/services\/WORKFLOW\/studio-1.5.0-final<\/code><br \/>\n\u7f16\u8f91 <code>metainfo.yaml<\/code>\uff0c\u6dfb\u52a0\u5982\u4e0b\u6302\u8f7d\u4fe1\u606f\uff1a<\/p>\n<pre><code class=\"language-yaml\">  - mountPath: \/etc\/yum.repos.d\n     hostPath: \/etc\/yum.repos.d\n     name: yum-repo<\/code><\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/nj.transwarp.cn:8180\/wp-content\/uploads\/2022\/04\/image-1650356827332.png\" alt=\"file\" \/><\/p>\n<p>\u6ce8\u610f\u7a7a\u683c\u548c\u7f29\u8fdb\u8981\u548c\u4e0a\u9762\u7684\u6302\u8f7d\u4e00\u81f4\uff0c\u4fdd\u5b58\u9000\u51fa<\/p>\n<ol start=\"3\">\n<li>\u91cd\u542f TDH Manager<\/li>\n<\/ol>\n<pre><code># 8.x \u7248\u672c\u524d\n$ \/etc\/init.d\/transwarp-manager restart\n# 8.x \u53ca\u5176\u4e4b\u540e\u7248\u672c\n$ systemctl restart transwarp-manager<\/code><\/pre>\n<ol start=\"4\">\n<li>\n<p>\u767b\u5f55 TDH Manger 8180 \u9875\u9762\uff0c\u91cd\u542f Workflow \u670d\u52a1<\/p>\n<\/li>\n<li>\n<p>\u518d\u6b21\u8fdb\u5165 Workflow \u7684\u5bb9\u5668\uff0c\u80fd\u770b\u5230\u5bb9\u5668\u5185 \/etc\/yum.repos.d \u4e0b\u7684 yum \u6e90\u5df2\u7ecf\u548c\u5bbf\u4e3b\u673a\u4e00\u81f4<\/p>\n<\/li>\n<li>\n<p><strong>\u6ce8\u610f\u70b9<\/strong>: <\/p>\n<ul>\n<li>\u8be5\u65b9\u6cd5\u9700\u8981\u91cd\u542f Workflow \u7ec4\u4ef6\uff0c\u4f46\u53ea\u9700\u8981\u4fee\u6539 metainfo \u6587\u4ef6\uff0c\u65e0\u9700\u64cd\u4f5c\u6bcf\u4e2a Workflow \u8282\u70b9\u673a\u5668<\/li>\n<li>\u53ea\u8981\u4fdd\u8bc1\u672c\u5730\u7684 yum repo \u8bbf\u95ee\u6b63\u5e38\uff0c\u5bb9\u5668\u5185\u4e5f\u4f1a\u6b63\u5e38\uff0c\u6bd4\u8f83\u63a8\u8350\u8be5\u65b9\u6cd5<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h5>\u65b9\u6cd52\uff1a\u4fee\u6539 TDH-Client\/init.sh \u811a\u672c<\/h5>\n<ol>\n<li>\u4ee5 Workflow1 \u670d\u52a1\u4e3a\u4f8b\uff0cssh \u767b\u5f55\u6bcf\u4e2a Workflow1 \u89d2\u8272\u7684\u8282\u70b9\uff0c\u62f7\u8d1d \/etc\/yum.repos.d\/os.repo \u5230 \/var\/lib\/workflow1\/ \u4e0b<\/li>\n<\/ol>\n<p><code>$ cp -rf \/etc\/yum.repos.d\/os.repo \/var\/lib\/workflow1\/<\/code><\/p>\n<ol start=\"2\">\n<li>\u4fee\u6539  \/var\/lib\/workflow1\/TDH-Client\/init.sh\uff0c\u66ff\u6362 <code>sudo yum install krb5-workstation -y<\/code> \u4e3a <code>sudo yum install krb5-workstation -y -c \/var\/lib\/workflow\/os.repo --disablerepo=* --enablerepo=os<\/code><\/li>\n<\/ol>\n<p><img decoding=\"async\" src=\"https:\/\/nj.transwarp.cn:8180\/wp-content\/uploads\/2022\/04\/image-1650539680386.png\" alt=\"file\" \/><\/p>\n<ol start=\"3\">\n<li>\u5220\u9664 \/var\/lib\/workflow1\/tdh-client.tar<\/li>\n<\/ol>\n<p>\u7ecf\u6d4b\u8bd5\u5982\u679c\u4e0d\u5220\u9664\u8be5 tar \u5305\uff0c\u91cd\u542f Workflow \u540e\u4f1a\u88ab\u91cd\u65b0\u89e3\u538b\uff0c\u5bfc\u81f4\u8986\u76d6\u524d\u9762\u7684\u4fee\u6539<\/p>\n<ol start=\"4\">\n<li>\n<p><strong>\u6ce8\u610f\u70b9<\/strong><\/p>\n<ul>\n<li>\u6b64\u65b9\u6cd5\u65e0\u9700\u91cd\u542f Workflow\uff0c\u53ea\u8981\u786e\u4fdd\u4e0d\u66f4\u65b0 TDH-Client\uff0c\u5728\u672c\u96c6\u7fa4\u4f1a\u957f\u671f\u6709\u6548<\/li>\n<li>\u8be5\u65b9\u6cd5\u9700\u8981\u64cd\u4f5c\u6bcf\u4e2a Workflow \u89d2\u8272\u8282\u70b9<\/li>\n<li>\u5982\u679c\u6709\u811a\u672c\u4efb\u52a1\u5f15\u7528\u4e86\u5b98\u65b9\u624b\u518c\u7684\u547d\u4ee4\uff1a<code>source \/bin\/tdh_client_import.sh<\/code>, \u7531\u4e8e\u7b2c 3 \u6b65\u5220\u9664\u4e86 tar \u5305\uff0c\u4f1a\u5bfc\u81f4\u91cd\u542f Workflow \u540e\u5bb9\u5668\u91cc\u4e0d\u4f1a\u751f\u6210\u8be5\u811a\u672c\uff0c\u5bfc\u81f4\u4efb\u52a1\u51fa\u95ee\u9898\uff1b\u9700\u8981\u4fee\u6539\u811a\u672c\u4efb\u52a1\u547d\u4ee4\u4e3a <code>source \/var\/lib\/workflow\/TDH-Client\/init.sh n n<\/code><\/li>\n<li>\u7efc\u4e0a\uff0c\u4e0d\u63a8\u8350\u65b9\u6cd5 2\uff0c\u4f46\u53ef\u4f5c\u4e3a\u65e0\u6cd5\u91cd\u542f Workflow \u65f6\u7684\u4e00\u79cd\u9009\u62e9<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>\u6982\u8981\u63cf\u8ff0 Workflow \u7ec4\u4ef6\u7684\u57fa\u7840\u955c\u50cf\u6709\u70b9\u95ee\u9898\uff0c\u955c\u50cf\u81ea\u5e26 \/etc\/yum.repo.d \u4e0b\u7684 yum \u6e90 ..<\/p>\n<div class=\"clear-fix\"><\/div>\n<p><a href=\"https:\/\/kbwp.transwarp.cn\/?p=8132\" title=\"read more...\">Read more<\/a><\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-8132","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"acf":[],"_links":{"self":[{"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=\/wp\/v2\/posts\/8132","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=8132"}],"version-history":[{"count":2,"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=\/wp\/v2\/posts\/8132\/revisions"}],"predecessor-version":[{"id":12979,"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=\/wp\/v2\/posts\/8132\/revisions\/12979"}],"wp:attachment":[{"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8132"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=8132"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=8132"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}