On Tue, Dec 01, 2020 at 11:26:55AM +0800, Zhang Yu wrote:
Add a document for introducing how to log in test machine
Signed-off-by: Zhang Yu 2134782174@qq.com
...06\346\265\213\350\257\225\346\234\272.md" | 80 +++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 "doc/manual/\345\246\202\344\275\225\347\231\273\351\231\206\346\265\213\350\257\225\346\234\272.md"
diff --git "a/doc/manual/\345\246\202\344\275\225\347\231\273\351\231\206\346\265\213\350\257\225\346\234\272.md" "b/doc/manual/\345\246\202\344\275\225\347\231\273\351\231\206\346\265\213\350\257\225\346\234\272.md" new file mode 100644 index 0000000..774488d --- /dev/null +++ "b/doc/manual/\345\246\202\344\275\225\347\231\273\351\231\206\346\265\213\350\257\225\346\234\272.md" @@ -0,0 +1,80 @@ +这篇文档将告诉你如何登陆测试环境
+# 1 前提条件 +请先学习: +apply-account.md, 配置个人邮箱: +参考文档:[apply-account.md](https://gitee.com/wu_fengguang/compass-ci/blob/master/doc/manual/apply-accou...) +如何申请测试机,并在本地生成RSA公私钥对: +参考文档:[如何申请测试机.md](https://gitee.com/wu_fengguang/compass-ci/blob/master/doc/manual/%E5%A6%82%E...) +submit 命令详解: +参考文档:[submit命令详解.md](https://gitee.com/wu_fengguang/compass-ci/blob/master/doc/manual/submit%E5%9...)
+# 2. 操作方法 +## 2.1 在job.yaml里加上sshd和sleep字段, 以host-info.yaml任务为例:
- suite: host-info
- category: functional
- sshd:
pub_key: <%=
begin
File.read("#{ENV['HOME']}/.ssh/id_rsa.pub").chomp
rescue
nil
end
%>
- # sleep at the bottom
- sleep: 1h
- host-info:
+## 2.2 提交任务的方式有2种, 适用于不同的登陆需求: +### 第一种:使用submit -m -c的方式提交任务:
- 这种方式提交的任务会在指定的位置sleep并直接登陆到测试机中,适用于登陆测试环境后手动调试
- 命令:submit -m -c host-info.yaml
- 任务提交完成后,当测试执行到sshd后会自动登陆到测试机器上:
- 效果如下:
- hi6325@account-vm ~% submit -m -c atomic.yaml
- submit atomic.yaml, got job_id=crystal.146528
- query=>{"job_id":["crystal.146528"]}
- connect to ws://localhost:11310/filter
- {"job_id": "crystal.146528", "result_root": "/srv/result/atomic/2020-12-01/vm-2p8g/openeuler-20.03-aarch64/1-1000/crystal.146528", "job_state": "set result root"
Why here is not aligned with follows?
Thanks, Xijian