welliamcao / OpsManage

自动化运维平台: 代码及应用部署CI/CD、资产管理CMDB、计划任务管理平台、SQL审核|回滚、任务调度、站内WIKI
GNU General Public License v2.0
3.43k stars 1.61k forks source link

V3测试版本BUG反馈 #154

Open welliamcao opened 5 years ago

welliamcao commented 5 years ago

建议按照下面格式反馈 image

Yansre commented 5 years ago

【用户管理新增用户页面不显示】在用户管理栏新增用户,数据库已写入,但是页面不展示

welliamcao commented 5 years ago

什么浏览器?

blueiq commented 5 years ago

【批量导入和下载点击无反应】资产列表中批量导入和下载点击无反应。 【部署工具日志】部署工具缺日志记录页面。 【工单申请缺失发布模块】工单申请缺乏发布申请。

Yansre commented 5 years ago

【部署工具-脚步工具js无法加载】cdn.bootcss.comjs无法加载,建议放在本地

jinrong58 commented 5 years ago

【用户管理新增用户页面不显示】在用户管理栏新增用户,数据库已写入,但是页面不展示(谷歌浏览器) 此时,【添加项目】“负责人”处为空,写入项目名,点击“保存”,提示添加成功,这时“基础资产”页点进去看不到“添加”按钮,左侧的导航树完全死掉,哪个菜单也点击不了了。此时看opsmanage_project_assets表有数据,只有项目名,把这条数据删掉后,“基础资产”页面恢复正常,回到未添加项目之前的状态。

welliamcao commented 5 years ago

@Yansre @jinrong58 用户中心看不到用户的原因是因为如果用MySQL5.7,django-rest-framework的DateField不能正常工作,5.7以下的版本就没问题,现在已经改成DateTimeField兼容5.6、5.7。 @blueiq 批量导入/部署工具日志的功能还没写,批量导出用户中心可以导出,代码发布不打算走工单,因为可以为每个项目成员配置权限,也有相关的部署记录。

jinrong58 commented 5 years ago

我用的就是5.6的mysql(mysql Ver 14.14 Distrib 5.6.43-84.3)。不过用了你新更的代码后,我上边提到的问题解决了。

jinrong58 commented 5 years ago

【左侧导航菜单最下边的4个按钮无效】“setting”、“fullscreen”、“lock”、“logout”都不能用。谷歌和火狐浏览器都试了,表现一致。

Yansre commented 5 years ago

【资产批量操作bug】 1.点击第二页或第三页,全选会跳回第一页,但这时再点第二页依旧是全选状态继续操作第三页则无法选中,重复跳会第一页 2.资产全部展开100个,选择更新资产信息,提示资产修改失败,

welliamcao commented 5 years ago

@jinrong58

【左侧导航菜单最下边的4个按钮无效】“setting”、“fullscreen”、“lock”、“logout”都不能用。谷歌和火狐浏览器都试了,表现一致。

这个几个栏目确实没用%>_<%

welliamcao commented 5 years ago

【资产批量操作bug】 1.点击第二页或第三页,全选会跳回第一页,但这时再点第二页依旧是全选状态继续操作第三页则无法选中,重复跳会第一页 2.资产全部展开100个,选择更新资产信息,提示资产修改失败,

资产列表,还是用户中心的?

Yansre commented 5 years ago

【资产批量操作bug】 1.点击第二页或第三页,全选会跳回第一页,但这时再点第二页依旧是全选状态继续操作第三页则无法选中,重复跳会第一页 2.资产全部展开100个,选择更新资产信息,提示资产修改失败,

资产列表,还是用户中心的?

资产列表

18951656076 commented 5 years ago

【基础资产操作bug】 1.录入项目应用、机房信息等资料后,再次打开此页面看不见已添加的信息,但在数据库中能够查到添加的数据; 2.点击基础资产页面后,再点击其他功能页面无反应,只有点击左上角的主页按钮后才有反应; 3.另外,想问下,点击每个功能页面,真个网页页面都要刷新下,体验感较差,是否可以更改。

welliamcao commented 5 years ago

@18951656076 你是什么浏览器?

18951656076 commented 5 years ago

@18951656076 你是什么浏览器?

chrome 65.0.3325.181

welliamcao commented 5 years ago

@18951656076 你是什么浏览器?

chrome 65.0.3325.181

什么时候的代码?

18951656076 commented 5 years ago

@18951656076 你是什么浏览器?

chrome 65.0.3325.181

什么时候的代码?

昨天晚上download的

welliamcao commented 5 years ago

@18951656076 你是什么浏览器?

chrome 65.0.3325.181

什么时候的代码?

昨天晚上download的

升级浏览器或者火狐浏览器会遇到这个问题?或者用开发者模式看一下接口是不是返回了数据。

18951656076 commented 5 years ago

@18951656076 你是什么浏览器?

chrome 65.0.3325.181

什么时候的代码?

昨天晚上download的

升级浏览器或者火狐浏览器会遇到这个问题?或者用开发者模式看一下接口是不是返回了数据。

知道了原因 我的mysql用的5.7 sql_mode 对group有限制。

18951656076 commented 5 years ago

【资产列表bug】点击列表中每一项资产右侧删除设备时显示删除失败 ,不能删除设备。 但上方的批量删除按钮可以删除设备。 最新的v3代码。

welliamcao commented 5 years ago

@18951656076 最新提交已经修复。

frank0826 commented 5 years ago

image 代码部署路径,JS 未获取到 opsmanage.in配置path

peterwoo1224 commented 5 years ago

貌似在剧本工具创建部署剧本后,无法删除,点击删除后还是存在。V3刚下载的代码

sunsunzhe commented 5 years ago

使用模块工具,没有反应 图片

welliamcao commented 5 years ago

@sunsunzhe 是不是配置了uwsgi?

welliamcao commented 5 years ago

@peterwoo1224 已修复

sunsunzhe commented 5 years ago

@welliamcao 没有,按照安装文档配置的

zaghost commented 5 years ago

计划任务修改后保存,请求/sched/cron/返回错误500

File "/home/appuser/PycharmProjects/OpsManageV3/dao/crontab.py" in rsync_cron
  244.         result = ANS.handle_model_data(ANS.get_model_result(), 'cron',module_args)        

File "/home/appuser/PycharmProjects/OpsManageV3/utils/ansible/runner.py" in handle_model_data
  316.                         data['msg'] = y.get('stdout').replace('\t\t','<br>').replace('\r\n','<br>').replace('\t','<br>').replace('\n','<br>')

Exception Type: AttributeError at /sched/cron/
Exception Value: 'NoneType' object has no attribute 'replace'

数据没有stdout这个字段

zaghost commented 5 years ago

图片

\static\js\sched\cron.js 图片

zaghost commented 5 years ago

数据库列表行点放大镜没反应 请求地址/api/db/org/1/,返回500

错误信息:

File "/home/appuser/PycharmProjects/OpsManageV3/api/views/db_api.py" in db_org
  165.         MYSQL = MySQLPool(host=dbServer.db_assets.server_assets.ip,port=dbServer.db_port,user=dbServer.db_user,passwd=dbServer.db_passwd,dbName=dbServer.db_name)

Exception Type: TypeError at /api/db/org/1/
Exception Value: __init__() got an unexpected keyword argument 'host'

dao.base.MySQLPool的init()中没有host这个参数,应该是dbServer

welliamcao commented 5 years ago

数据库列表行点放大镜没反应 请求地址/api/db/org/1/,返回500

错误信息:

File "/home/appuser/PycharmProjects/OpsManageV3/api/views/db_api.py" in db_org
  165.         MYSQL = MySQLPool(host=dbServer.db_assets.server_assets.ip,port=dbServer.db_port,user=dbServer.db_user,passwd=dbServer.db_passwd,dbName=dbServer.db_name)

Exception Type: TypeError at /api/db/org/1/
Exception Value: __init__() got an unexpected keyword argument 'host'

dao.base.MySQLPool的init()中没有host这个参数,应该是dbServer

你这个是旧代码吧,这个功能都去掉了。

zaghost commented 5 years ago

数据库列表行点放大镜没反应 请求地址/api/db/org/1/,返回500 错误信息:

File "/home/appuser/PycharmProjects/OpsManageV3/api/views/db_api.py" in db_org
  165.         MYSQL = MySQLPool(host=dbServer.db_assets.server_assets.ip,port=dbServer.db_port,user=dbServer.db_user,passwd=dbServer.db_passwd,dbName=dbServer.db_name)

Exception Type: TypeError at /api/db/org/1/
Exception Value: __init__() got an unexpected keyword argument 'host'

dao.base.MySQLPool的init()中没有host这个参数,应该是dbServer

你这个是旧代码吧,这个功能都去掉了。

最新的代码呀 功能还在的 图片

https://github.com/welliamcao/OpsManage/blob/v3/api/views/db_api.py的165行 https://github.com/welliamcao/OpsManage/blob/v3/dao/base.py的141行 参数名不一样

welliamcao commented 5 years ago

数据库列表行点放大镜没反应 请求地址/api/db/org/1/,返回500 错误信息:

File "/home/appuser/PycharmProjects/OpsManageV3/api/views/db_api.py" in db_org
  165.         MYSQL = MySQLPool(host=dbServer.db_assets.server_assets.ip,port=dbServer.db_port,user=dbServer.db_user,passwd=dbServer.db_passwd,dbName=dbServer.db_name)

Exception Type: TypeError at /api/db/org/1/
Exception Value: __init__() got an unexpected keyword argument 'host'

dao.base.MySQLPool的init()中没有host这个参数,应该是dbServer

你这个是旧代码吧,这个功能都去掉了。

最新的代码呀 功能还在的 图片

https://github.com/welliamcao/OpsManage/blob/v3/api/views/db_api.py的165行 https://github.com/welliamcao/OpsManage/blob/v3/dao/base.py的141行 参数名不一样

已修复。

zaghost commented 5 years ago

【剧本/脚本保存报错】部署脚本/剧本保存后,如果手工删除服务器上upload目录下的文件,再次修改保存时会报错,保存不了

zaghost commented 5 years ago

【部署剧本列表/部署剧本新建输入区域刷新问题】 点列表行的运行,再点添加按钮,输入区域不能刷新

bwcsswcx commented 5 years ago

1 全新安装最新v3版本的程序,错误提示如图,希望作者看看

welliamcao commented 5 years ago

1 全新安装最新v3版本的程序,错误提示如图,希望作者看看

清除项目下面migrations目录

okay456okay commented 5 years ago

【脚本工具-部署脚本列表超过10个时,后面的脚本在列表里无法编辑和删除】 添加了第11个脚本后,部署工具-脚本工具-部署脚本列表点击第2页的那个脚本(即第11个脚本)进行编辑或删除,没有任何反应。

rocky1001 commented 5 years ago

【安装执行到:/usr/local/python3/bin/python3 manage.py migrate 时报错】 错误log如下:

Operations to perform:
  Apply all migrations: admin, apply, asset, auth, cicd, contenttypes, databases, deploy, django_celery_beat, django_celery_results, filemanage, navbar, orders, sched, sessions, wiki
Running migrations:
  Applying contenttypes.0001_initial... OK
  Applying auth.0001_initial... OK
  Applying admin.0001_initial... OK
  Applying admin.0002_logentry_remove_auto_add... OK
  Applying admin.0003_logentry_add_action_flag_choices... OK
  Applying asset.0001_initial... OK
  Applying apply.0001_initial... OK
  Applying contenttypes.0002_remove_content_type_name... OK
  Applying auth.0002_alter_permission_name_max_length... OK
  Applying auth.0003_alter_user_email_max_length... OK
  Applying auth.0004_alter_user_username_opts... OK
  Applying auth.0005_alter_user_last_login_null... OK
  Applying auth.0006_require_contenttypes_0002... OK
  Applying auth.0007_alter_validators_add_error_messages... OK
  Applying auth.0008_alter_user_username_max_length... OK
  Applying auth.0009_alter_user_last_name_max_length... OK
  Applying cicd.0001_initial... OK
  Applying databases.0001_initial...Traceback (most recent call last):
  File "/usr/local/python3/lib/python3.6/site-packages/django/db/backends/utils.py", line 83, in _execute
    return self.cursor.execute(sql)
  File "/usr/local/python3/lib/python3.6/site-packages/django/db/backends/mysql/base.py", line 71, in execute
    return self.cursor.execute(query, args)
  File "/usr/local/python3/lib/python3.6/site-packages/MySQLdb/cursors.py", line 250, in execute
    self.errorhandler(self, exc, value)
  File "/usr/local/python3/lib/python3.6/site-packages/MySQLdb/connections.py", line 50, in defaulterrorhandler
    raise errorvalue
  File "/usr/local/python3/lib/python3.6/site-packages/MySQLdb/cursors.py", line 247, in execute
    res = self._query(query)
  File "/usr/local/python3/lib/python3.6/site-packages/MySQLdb/cursors.py", line 412, in _query
    rowcount = self._do_query(q)
  File "/usr/local/python3/lib/python3.6/site-packages/MySQLdb/cursors.py", line 375, in _do_query
    db.query(q)
  File "/usr/local/python3/lib/python3.6/site-packages/MySQLdb/connections.py", line 276, in query
    _mysql.connection.query(self, query)
_mysql_exceptions.OperationalError: (1071, 'Specified key was too long; max key length is 767 bytes')
rocky1001 commented 5 years ago

【安装执行到:/usr/local/python3/bin/python3 manage.py migrate 时报错】 错误log如下:

Operations to perform:
  Apply all migrations: admin, apply, asset, auth, cicd, contenttypes, databases, deploy, django_celery_beat, django_celery_results, filemanage, navbar, orders, sched, sessions, wiki
Running migrations:
  Applying contenttypes.0001_initial... OK
  Applying auth.0001_initial... OK
  Applying admin.0001_initial... OK
  Applying admin.0002_logentry_remove_auto_add... OK
  Applying admin.0003_logentry_add_action_flag_choices... OK
  Applying asset.0001_initial... OK
  Applying apply.0001_initial... OK
  Applying contenttypes.0002_remove_content_type_name... OK
  Applying auth.0002_alter_permission_name_max_length... OK
  Applying auth.0003_alter_user_email_max_length... OK
  Applying auth.0004_alter_user_username_opts... OK
  Applying auth.0005_alter_user_last_login_null... OK
  Applying auth.0006_require_contenttypes_0002... OK
  Applying auth.0007_alter_validators_add_error_messages... OK
  Applying auth.0008_alter_user_username_max_length... OK
  Applying auth.0009_alter_user_last_name_max_length... OK
  Applying cicd.0001_initial... OK
  Applying databases.0001_initial...Traceback (most recent call last):
  File "/usr/local/python3/lib/python3.6/site-packages/django/db/backends/utils.py", line 83, in _execute
    return self.cursor.execute(sql)
  File "/usr/local/python3/lib/python3.6/site-packages/django/db/backends/mysql/base.py", line 71, in execute
    return self.cursor.execute(query, args)
  File "/usr/local/python3/lib/python3.6/site-packages/MySQLdb/cursors.py", line 250, in execute
    self.errorhandler(self, exc, value)
  File "/usr/local/python3/lib/python3.6/site-packages/MySQLdb/connections.py", line 50, in defaulterrorhandler
    raise errorvalue
  File "/usr/local/python3/lib/python3.6/site-packages/MySQLdb/cursors.py", line 247, in execute
    res = self._query(query)
  File "/usr/local/python3/lib/python3.6/site-packages/MySQLdb/cursors.py", line 412, in _query
    rowcount = self._do_query(q)
  File "/usr/local/python3/lib/python3.6/site-packages/MySQLdb/cursors.py", line 375, in _do_query
    db.query(q)
  File "/usr/local/python3/lib/python3.6/site-packages/MySQLdb/connections.py", line 276, in query
    _mysql.connection.query(self, query)
_mysql_exceptions.OperationalError: (1071, 'Specified key was too long; max key length is 767 bytes')

上面的错误是因为创建opsmanage db时,使用的字符集不对,使用了:utf8mb4; 重新创建db并将字符集换成utf8后就正常了。供后来的同学参考。

welliamcao commented 5 years ago

【脚本工具-部署脚本列表超过10个时,后面的脚本在列表里无法编辑和删除】 添加了第11个脚本后,部署工具-脚本工具-部署脚本列表点击第2页的那个脚本(即第11个脚本)进行编辑或删除,没有任何反应。

谢谢反馈,已修复,详见

okay456okay commented 5 years ago

【脚本工具-部署脚本列表超过10个时,后面的脚本在列表里无法编辑和删除】 添加了第11个脚本后,部署工具-脚本工具-部署脚本列表点击第2页的那个脚本(即第11个脚本)进行编辑或删除,没有任何反应。

谢谢反馈,已修复,详见

合并代码后发现新建的脚本和原来的脚本在列表里都显示不出来了

welliamcao commented 5 years ago

【脚本工具-部署脚本列表超过10个时,后面的脚本在列表里无法编辑和删除】 添加了第11个脚本后,部署工具-脚本工具-部署脚本列表点击第2页的那个脚本(即第11个脚本)进行编辑或删除,没有任何反应。

谢谢反馈,已修复,详见

合并代码后发现新建的脚本和原来的脚本在列表里都显示不出来了

接口报错了吗?

okay456okay commented 5 years ago

【脚本工具-部署脚本列表超过10个时,后面的脚本在列表里无法编辑和删除】 添加了第11个脚本后,部署工具-脚本工具-部署脚本列表点击第2页的那个脚本(即第11个脚本)进行编辑或删除,没有任何反应。

谢谢反馈,已修复,详见

合并代码后发现新建的脚本和原来的脚本在列表里都显示不出来了

接口报错了吗?

可能是重启ops_web程序有问题,导致旧程序没杀掉,今天杀掉后重启就好了,supervisor里加下配置: stopasgroup=true ; send stop signal to the UNIX process group (default false) killasgroup=true ; SIGKILL the UNIX process group (def false)

okay456okay commented 5 years ago

添加一个普通用户后,无法将一个服务器分配给这个普通用户,试过几个办法:

  1. 添加一个组,组权限添加以资产管理开头的所有权限(或者添加所有权限),将普通用户添加到这个组里
  2. 用这个普通用户添加这个服务器
  3. 用服务器的使用组改为1中添加的组
  4. 将服务器的购买人改为这个普通用户

使用上述几步的配置均无法将服务器分配给普通用户,即新加的这个普通用户在CMDB - 资产列表 无法看到任何服务器。

welliamcao commented 5 years ago

添加一个普通用户后,无法将一个服务器分配给这个普通用户,试过几个办法:

  1. 添加一个组,组权限添加以资产管理开头的所有权限(或者添加所有权限),将普通用户添加到这个组里
  2. 用这个普通用户添加这个服务器
  3. 用服务器的使用组改为1中添加的组
  4. 将服务器的购买人改为这个普通用户

使用上述几步的配置均无法将服务器分配给普通用户,即新加的这个普通用户在CMDB - 资产列表 无法看到任何服务器。

在用户中心,有个显示器图标按钮,点击分配。

okay456okay commented 5 years ago
图片

从左到右依次是编辑、查看信息、更新信息、更新硬盘信息、Terminal连接、删除,哪个是分配按钮,抱歉一直没有找到。

welliamcao commented 5 years ago
图片

从左到右依次是编辑、查看信息、更新信息、更新硬盘信息、Terminal连接、删除,哪个是分配按钮,抱歉一直没有找到。

用户中心,不是资产列表

okay456okay commented 5 years ago
图片

从左到右依次是编辑、查看信息、更新信息、更新硬盘信息、Terminal连接、删除,哪个是分配按钮,抱歉一直没有找到。

用户中心,不是资产列表

用户中心也没看到分配,您能截个图吗? 多谢

图片
welliamcao commented 5 years ago
图片

从左到右依次是编辑、查看信息、更新信息、更新硬盘信息、Terminal连接、删除,哪个是分配按钮,抱歉一直没有找到。

用户中心,不是资产列表

用户中心也没看到分配,您能截个图吗? 多谢

图片

我说错了,在用户管理,用户列表 image