Commit Graph

48 Commits

Author SHA1 Message Date
Jian Qiu
21716cefb5 fix: remove mutual dependency of cloudmux on onecloud (#15621)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-12-27 01:21:26 +08:00
Zexi Li
4a5c7bfd3c fix(ansibleserver): force sleep 50s before running 2022-10-18 10:43:25 +08:00
Zexi Li
e9f892875d fix(ansibleserver): force sleep 15s before running playbook 2022-09-28 17:23:29 +08:00
QIU Jian
293afd2e69 fix: remove apiversion param from session 2022-08-25 09:43:50 +08:00
Rain Zheng
c708e4ac11 Windows monitor agent (#14062)
* feat: add pywinrm to ansibleserver-base

* feat(devtool,ansibleserver): support install monitor agent to windows

* feat: modify Dockerfil.file-repo

Co-authored-by: rain <mac@Rains-MBP.lan>
2022-04-29 00:38:24 +08:00
rainzm
093353316e fix(ansible): use the correct length value 'text' 2022-03-04 16:05:09 +08:00
Qiu Jian
1d354d8919 1. Remove is_rbac_enable option
2. code changes due to interface change
2021-12-02 10:24:23 +08:00
Qiu Jian
97a3ab12a2 support sqlite 2021-11-17 07:25:00 +08:00
Qu Xuan
06dc1c1b87 fix(common): split mcclient modules by service 2021-11-05 19:24:50 +08:00
Qu Xuan
8ba5393ae5 fix(region): optimized validate delete condition query 2021-09-23 09:58:54 +08:00
rainzm
9a01d83eeb fix(anisbleserver): support complex yaml config in ansibleplaybook_instance 2021-06-07 16:59:01 +08:00
rainzm
8b3e591cfc feat(ansible): add rolePublic and timeout options 2021-05-19 11:23:03 +08:00
Zexi Li
4cd56ff66d Merge pull request #10932 from rainzm/sshable/fix
Correctly execute the ansible playbook with the specified private key
2021-04-27 20:12:42 +08:00
rainzm
67d7c571f2 fix(ansibleserver): be compatible with empty params 2021-04-26 19:26:04 +08:00
rainzm
0d1f54bab1 fix(ansibleserver): add LF for privateKey if not 2021-04-26 18:56:46 +08:00
rainzm
0894df5e14 feat(ansibleserver): respect keepTmpdir when running ansibleplaybook v1 2021-04-26 18:56:08 +08:00
rainzm
cad24302d8 fix(ansibleserver): don't init privateKey for ansibleplaybook if it already have one 2021-04-26 18:53:07 +08:00
Yousong Zhou
3a18af8d72 treewide: wait possible zombies 2021-04-20 22:01:02 +08:00
Yousong Zhou
a1044c1afc procutils: add WaitZombieLoop 2021-04-20 19:27:24 +08:00
Yousong Zhou
89b4f6e9f6 ansibleserver: wait zombie subprocesses 2021-04-16 09:46:28 +08:00
rainzm
f8f99365a2 feat(ansibleserver): add reference and instance
Reference is a reference to a local or remote playbook without certain inventory
and its location is determined by playbookPath.
Instance is a complete playbook that can be executed directly, it is filled with inventory and config.
Instance ensures that the playbook is executed successfully as far as
possible without exceeding the maximum number of attempts
2021-04-07 17:01:08 +08:00
Yousong Zhou
44871c6b1c ansibleserver: use mcclient module method for fetching keypair info 2021-02-23 15:29:12 +08:00
rainzm
cfa426bc18 feat: add keep_tmpdir options
Setting 'keep_tmpdir' as true will keep tmpdir as used by executing
ansible playbook for debugging
2020-12-22 20:14:48 +08:00
Yousong Zhou
1ae8c97861 ansibleserver: register metadata manager
To quash the following error in log

  [E 200716 15:20:40 db.(*SMetadataResourceBaseModelManager).FetchCustomizeColumns(metadataresource.go:136)] FetchQueryObjectsByIds metadata fail Error 1146: Table 'yunionansible.metadata_tbl' doesn't exist
2020-07-16 17:52:46 +08:00
rainzm
77e5801ad9 fix: 'requirements' in ansibleplaybookv2 should be optional 2020-05-21 14:20:48 +08:00
Rain
331ba9bb37 feat/ansible_pb: Add support for requirements
You can declare the source info of the referenced role in requirements.
2020-05-08 11:08:32 +08:00
Qiu Jian
0d487cd601 bufix 20191209 2019-12-12 11:31:47 +08:00
Zhang Dongliang
6429e7b1f8 新增 devtool cron manager,用来管理Ansibleserver 的定时任务 2019-11-27 16:48:59 +08:00
Yousong Zhou
5b8fdcd5af ansibleserver: v2 models for exporting more features 2019-10-18 03:22:30 +00:00
Yousong Zhou
69efd53e80 ansibleserver: enable tenant/user cache manager 2019-10-10 08:10:08 +00:00
Yousong Zhou
53c7823f42 ansibleserver: 避免数据库故障引起内部状态不一致 2019-09-23 11:04:27 +00:00
Yousong Zhou
3e45f93cee ansibleserver: ansibleplaybooks: a way out on status chaos
an apb was in state

 - apb.output has content
 - apb.status == running
 - apb.start_time && apb.end_time both set
 - not present in man.sessions

an impossible state
2019-09-16 14:05:14 +00:00
Yousong Zhou
d5c1ba04a3 ansibleserver: 限定Playbook字段长度
避免进入数据库时被截断产生无效数据
2019-09-10 09:13:27 +00:00
Yousong Zhou
e813eb5bb2 ansibleserver: 操作宿主机时默认使用用户root 2019-08-02 03:55:25 +00:00
Yousong Zhou
b83ea8e55e ansibleplaybooks: 改正输出溢出时的记录 2019-07-27 01:03:02 +00:00
Yousong Zhou
e6c3e98a6d ansibleplaybooks: 增量式记录输出 2019-07-26 15:21:15 +00:00
Yousong Zhou
ab873ef90d ansibleplaybooks: Output字段使用mediumtext 2019-07-26 15:21:15 +00:00
Yousong Zhou
c3733e282b ansibleplaybooks: 改正启动失败问题 2019-07-26 15:21:15 +00:00
Zexi
78975cda56 db: app service support --exit-after-db-init 2019-07-16 19:11:50 +08:00
Zexi
81ce05e391 service db init sync exit 2019-07-16 18:46:46 +08:00
Yousong Zhou
8dae52e0dc ansibleserver: 直接指定IP地址时默认ansible_user指定 2019-06-26 12:56:38 +00:00
Jian Qiu
92b90cdbe0 fix: protect projects with resources in any services (#1337) 2019-06-21 09:09:27 +08:00
Yousong Zhou
68ed59eda0 ansibleserver: 在pb执行失败时打出警告日志 2019-06-20 09:03:01 +00:00
Qiu Jian
af47a803a6 fix: cloud-region/zone add domain&scope filter 2019-06-14 18:14:48 +08:00
Yousong Zhou
77d7d3a46b ansibleserver: 使用API查sshkeypairs 2019-06-12 08:16:56 +00:00
Yousong Zhou
7d33702294 ansibleserver: 避免持锁不释放的情况 2019-06-12 08:16:55 +00:00
Yousong Zhou
76d1ddf33b ansibleserver: 创建opslog表 2019-06-12 08:16:55 +00:00
Yousong Zhou
966694389c ansibleserver: as a separate service 2019-06-10 15:39:05 +00:00