veops / cmdb Goto Github PK
View Code? Open in Web Editor NEWCMDB: configuration and management of IT resources
Home Page: https://cmdb.veops.cn
License: GNU Affero General Public License v3.0
CMDB: configuration and management of IT resources
Home Page: https://cmdb.veops.cn
License: GNU Affero General Public License v3.0
各位在使用CMDB有接入单点登陆的案例吗
cmdb-search | {"type": "server", "timestamp": "2020-08-07T03:22:04,711Z", "level": "DEBUG", "component": "o.e.a.s.TransportSearchAction", "cluster.name": "docker-cluster", "node.name": "2d19532a707e", "message": "[cmdb][0], node[ZbqLSFH8TyWXa83j1V1zoA], [P], s[STARTED], a[id=iCwYGQ9oS2u4npuLkODabw]: Failed to execute [SearchRequest{searchType=QUERY_THEN_FETCH, indices=[cmdb], indicesOptions=IndicesOptions[ignore_unavailable=false, allow_no_indices=true, expand_wildcards_open=true, expand_wildcards_closed=false, allow_aliases_to_multiple_indices=true, forbid_closed_indices=true, ignore_aliases=false, ignore_throttled=true], types=[], routing='null', preference='null', requestCache=null, scroll=null, maxConcurrentShardRequests=0, batchedReduceSize=512, preFilterShardSize=128, allowPartialSearchResults=true, localClusterAlias=null, getOrCreateAbsoluteStartMillis=-1, ccsMinimizeRoundtrips=true, source={\"from\":0,\"size\":25,\"query\":{\"bool\":{\"must\":[{\"term\":{\"type_id\":{\"value\":\"5\",\"boost\":1.0}}}],\"adjust_pure_negative\":true,\"boost\":1.0}},\"sort\":[{\"ci_id\":{\"order\":\"asc\"}}]}}]", "cluster.uuid": "AWs8Hz9NSUCXrY84m6Lozw", "node.id": "ZbqLSFH8TyWXa83j1V1zoA" ,
可以看到有创建 Es 的 index 索引,但是没有自动创建 map ?
前端报错代码 400
http://127.0.0.1:8000/api/v0.1/ci/s?q=_type:4&facet=idc&page=1&count=25
属性(Attribute)和 类型CIType 是1:N的关系么(例如不同的CIType都有一个叫做name的属性)?
如果是这样的关系,它实际的意义和作用是什么?
如果是1:1约束为什么不把 Attribute合并进CITypeAttribute?
本地开发环境:
启动 mysql 服务, redis 服务
是否可以考虑在 Makefile 中集成一下,使用 docker 部署 mysql 和 redis
应用CMDB到公司的,麻烦回复一下,使用的越多,更能激励我们做的更好。格式如下:
公司名 公司官网链接
每一次成功的,各种接口报错
属性增加密码的数据类型,具体的密码存储考虑对接知名的密码存储开源解决方案
使用创建及修改关系,关联到错误到对象上,没有找到在哪取消这次操作。希望能增加取消或删除这条关系的按钮
现象:
给某个用户一个ci的只读权限,该用户页面上有批量导入的按钮,并且能导入成功。
从前端代码上看,批量导入的按钮没有设置成只有管理员才有权限可以看到。api接口处的调用没细看。
我在用户管理中新增一个用户,该用户出现在用户管理和角色管理里面,但是删除后,再新增相同用户名和邮箱地址就会报错,排查mysql表cmdb.users和cmdb.acl_roles发现,用户删除后,相应的记录仍旧记录再表中,请问这个机制是否合理?
Hello There !
First of all, thanks, CMDB looks amazing, great work !
I'm very interested in this tool and was wondering if there was a multi-language version planned?
socket.error: [Errno 98] Address already in use
请问哪里修改,。
docker compose 一键部署后,login页面正常,输入用户名密码 总是弹出框提示 error Request error, please try again later,是什么原因呢
Hey there!
I belong to an open source security research community, and a member (@aravindd007) has found an issue, but doesn’t know the best way to disclose it.
If not a hassle, might you kindly add a SECURITY.md
file with an email, or another contact method? GitHub recommends this best practice to ensure security issues are responsibly disclosed, and it would serve as a simple instruction for security researchers in the future.
Thank you for your consideration, and I look forward to hearing from you!
(cc @huntr-helper)
开发环境:win10 WSL1 Ubuntu18.04
尝试第二种安装方法时,运行 pipenv run flask db-setup
报错:No such command "dp-setup"
Solved by using pipenv install
建议资源视图和树状视图表格头可以按指定顺序显示
新增字段属性文本可以换行
TypeError: required field "type_ignores" missing from Module
建议修改 requirements.txt
: 将werkzeug依赖版本修改为: werkzeug >= 0.15.5
怀疑使用navicat导出的语句在sql终端下不能很好的兼容(使用navicat可以正常导入)。建议作者在readme中给一下mysql版本。
<= 2.3.2 版本默认不直接支持编辑公司信息,换logo等
创建数据库表 flask run flask db-setup
如您愿意,可将您使用CMDB的案例展示给我们,提交格式如下❤️❤️❤️,官网选填,谢谢!您的使用和认可是我们持续迭代这个项目的最大动力👊🏻
公司名称:
公司官网:
webhook body目前只能保存json格式数据,如果输入其他格式数据,点击保存后,再次打开查看body内容为空
新建的用户会自动创建角色,如果把这个角色删除了,用户就无法登陆了,但是这个用户也没法删除重建
勉强装起来了。。数据库也执行了。。但是数据库里面空空的。。啥都没。。自己创建了一个用户。没权限无法自定义模型。。。
1:N,N侧模型支持添加外键attr,并且可以从1侧直接选择。自动添加一个belong_to的关联关系。
比如Pod模型,有一属性表示属于某个PSA(Product/Service/App),录入时可以直接选择并且校验
麻烦问下,定义关系试图怎么操作?我这边新增了一个资源,怎么把新增资源放到资源视图里面?
你好,
首先感谢你提供了优秀的源码,对我很有帮助
我在使用pycharm 运行flask 是 报错
Traceback (most recent call last):
File "C:\Users\Administrator\Envs\flask_cmdb\lib\site-packages\flask\cli.py", line 236, in locate_app
import(module_name)
File "E:\charles\coding\cmdb\cmdb-api\autoapp.py", line 7, in
from api.app import create_app
File "E:\charles\coding\cmdb\cmdb-api\api\app.py", line 15, in
import api.views
File "E:\charles\coding\cmdb\cmdb-api\api\views_init_.py", line 23, in
register_resources(os.path.join(HERE, "cmdb"), rest)
File "E:\charles\coding\cmdb\cmdb-api\api\resource.py", line 35, in register_resources
view = import(os.path.splitext(filename)[0])
ModuleNotFoundError: No module named 'attribute'
而在终端窗口运行不会报错,你知道是什么原因吗?
作者你好:
有兴趣参与opendevops开源项目?
https://www.opendevops.cn/
https://github.com/opendevops-cn/opendevops
可以了解下,感谢你对开源做的贡献。
放弃对python-ldap的支持,因为很多人反馈难易安装
目前好像模型的关联可以建立好,但是实体之间的关系好像不能配置,比如从demo里新建了一个产品线,没法和具体的事业部之间做关联么
登录时报这个错误,请问是啥原因:
message: "'str' object has no attribute 'decode'"
参考Dockerfile 打包成自己的镜像,使用docker-compose来运行。其中mysql、redis 是运行在宿主机种,docker就跑api、ui。api 后台报错信息如下:
2021-04-09 17:08:26,462 INFO /data/apps/cmdb/api/tasks/acl.py 16 - Role [3] rebuild..........
2021-04-09 17:08:26,489 INFO /data/apps/cmdb/api/tasks/acl.py 16 - Role [3] rebuild..........
2021-04-09 17:08:40,764 DEBUG /data/apps/cmdb/api/lib/perm/auth.py 82 - {'password': 'e10adc3949ba59abbe56e057f20f883e', 'username': 'demo'}
2021-04-09 17:08:41,126 INFO /data/apps/cmdb/api/models/acl.py 35 - demo
2021-04-09 17:08:41,153 ERROR /data/apps/cmdb/api/app.py 119 - Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 2311, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 1834, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python3.7/site-packages/flask_restful/init.py", line 269, in error_router
return original_handler(e)
File "/usr/local/lib/python3.7/site-packages/flask_restful/init.py", line 269, in error_router
return original_handler(e)
File "/usr/local/lib/python3.7/site-packages/flask_restful/init.py", line 269, in error_router
return original_handler(e)
File "/usr/local/lib/python3.7/site-packages/flask_cors/extension.py", line 165, in wrapped_function
return cors_after_request(app.make_response(f(*args, **kwargs)))
File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 1737, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python3.7/site-packages/flask/_compat.py", line 35, in reraise
raise value.with_traceback(tb)
File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 1832, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 1818, in dispatch_request
return self.view_functionsrule.endpoint
File "/usr/local/lib/python3.7/site-packages/flask_restful/init.py", line 458, in wrapper
resp = resource(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/flask/views.py", line 88, in view
return self.dispatch_request(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/flask_restful/init.py", line 573, in dispatch_request
resp = meth(*args, **kwargs)
File "/data/apps/cmdb/api/lib/perm/auth.py", line 88, in wrapper
return func(*args, **kwargs)
File "/data/apps/cmdb/api/lib/decorator.py", line 31, in wrapper
return func(*args, **kwargs)
File "/data/apps/cmdb/api/lib/decorator.py", line 31, in wrapper
return func(*args, **kwargs)
File "/data/apps/cmdb/api/lib/perm/auth.py", line 103, in wrapper
return func(*args, **kwargs)
File "/data/apps/cmdb/api/views/account.py", line 58, in post
return self.jsonify(token=token.decode())
AttributeError: 'str' object has no attribute 'decode'
可否解释下该项目的具体使用说明文档
看到了设计文档,请close掉该issue
docker启动下如何启用编辑公司信息,在cmdb-api这个container里面执行了flask init-department也不起作用
docker部署完,默认密码是什么?
修改那个文件才能更改访问IP。。
貌似现在这个访问IP的绑定 直接是自动选择绑定网卡的。。。太难了。。vue ..
我是 云服务器。。他指向的是内网IP 。。。我在运行的时候加 0.0.0.0 访问的时候 任然有内网链接。。
请问如何解决
你好~
在使用docker安装部署完成以后 系统的默认登陆密码是多少?从指定文件上没有看到这块的提示,一直不能登陆。期待得到您的解答。
作者,,留个联系方式吧。。装一下午了。。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.