-
Choerodon平台版本: 0.17.0
-
遇到问题的执行步骤:
无 -
文档地址:
无 -
环境信息(如:节点信息):
无 -
报错日志:
-
原因分析:
没有测试管理了吗?
您好,0.17版本将菜单初始化迁移到了后端,请检查下testManager是否正常升级部署。
重启test-manager
root@mwcx-devops-64 : /data/soft/c7nctl-0.16.1 # kubectl scale deployment -n c7n-system --replicas=0 test-manager-service
deployment.extensions “test-manager-service” scaled
root@mwcx-devops-64 : /data/soft/c7nctl-0.16.1 # kubectl scale deployment -n c7n-system --replicas=1 test-manager-service
deployment.extensions “test-manager-service” scaled
test-manager-service-b56f546d4-2kwfq 1/1 Running 0 1m
还是没有吗?看下manager-service和iam-serivce的日志
有没有
Receive UP event, payload: EurekaEventPayload{id='10.233.70.130:devops-service:8060', status='UP', appName='devops-service', version='2019.6.6-161346-master', instanceAddress='10.233.70.130:8060', createTime=Thu Jun 06 16:36:35 CST 2019}
test-manager-service相关的日志
2019-06-06 17:21:00.928 DEBUG 8 — [ScheduleTask(0)] i.c.t.m.d.s.impl.IDevOpsServiceImpl : AutoTesting ScheduleTask(0) release redis lock.true
2019-06-06 17:21:20.930 DEBUG 8 — [ScheduleTask(0)] i.c.t.m.d.s.impl.IDevOpsServiceImpl : AutoTesting ScheduleTask(0) get redis lock.true
2019-06-06 17:21:20.931 DEBUG 8 — [ScheduleTask(0)] i.c.t.m.i.m.T.queryDelayInstance : ==> Preparing: select * from test_app_instance where pod_status=0 and creation_date < ?
2019-06-06 17:21:20.933 DEBUG 8 — [ScheduleTask(0)] i.c.t.m.i.m.T.queryDelayInstance : ==> Parameters: 2019-06-06 17:06:20.93(Timestamp)
2019-06-06 17:21:20.934 DEBUG 8 — [ScheduleTask(0)] i.c.t.m.i.m.T.queryDelayInstance : <== Total: 0
2019-06-06 17:21:20.936 DEBUG 8 — [ScheduleTask(0)] i.c.t.m.d.s.impl.IDevOpsServiceImpl : AutoTesting ScheduleTask(0) release redis lock.true
2019-06-06 17:21:40.938 DEBUG 8 — [ScheduleTask(0)] i.c.t.m.d.s.impl.IDevOpsServiceImpl : AutoTesting ScheduleTask(0) get redis lock.true
2019-06-06 17:21:40.939 DEBUG 8 — [ScheduleTask(0)] i.c.t.m.i.m.T.queryDelayInstance : ==> Preparing: select * from test_app_instance where pod_status=0 and creation_date < ?
2019-06-06 17:21:40.940 DEBUG 8 — [ScheduleTask(0)] i.c.t.m.i.m.T.queryDelayInstance : ==> Parameters: 2019-06-06 17:06:40.938(Timestamp)
2019-06-06 17:21:40.941 DEBUG 8 — [ScheduleTask(0)] i.c.t.m.i.m.T.queryDelayInstance : <== Total: 0
2019-06-06 17:21:40.942 DEBUG 8 — [ScheduleTask(0)] i.c.t.m.d.s.impl.IDevOpsServiceImpl : AutoTesting ScheduleTask(0) release redis lock.true
2019-06-06 17:21:50.379 INFO 8 — [ XNIO-2 task-30] c.c.c.ConfigServicePropertySourceLocator : Fetching config from server at : http://register-server:8000
2019-06-06 17:21:50.395 INFO 8 — [ XNIO-2 task-30] c.c.c.ConfigServicePropertySourceLocator : Located environment: name=test-manager-service, profiles=[default], label=, version=0.17.2, state=
2019-06-06 17:22:00.944 DEBUG 8 — [ScheduleTask(0)] i.c.t.m.d.s.impl.IDevOpsServiceImpl : AutoTesting ScheduleTask(0) get redis lock.true
2019-06-06 17:22:00.945 DEBUG 8 — [ScheduleTask(0)] i.c.t.m.i.m.T.queryDelayInstance : ==> Preparing: select * from test_app_instance where pod_status=0 and creation_date < ?
2019-06-06 17:22:00.946 DEBUG 8 — [ScheduleTask(0)] i.c.t.m.i.m.T.queryDelayInstance : ==> Parameters: 2019-06-06 17:07:00.944(Timestamp)
2019-06-06 17:22:00.947 DEBUG 8 — [ScheduleTask(0)] i.c.t.m.i.m.T.queryDelayInstance : <== Total: 0
2019-06-06 17:22:00.949 DEBUG 8 — [ScheduleTask(0)] i.c.t.m.d.s.impl.IDevOpsServiceImpl : AutoTesting ScheduleTask(0) release redis lock.true
一直打的这种日志
IAM的日志:
2019-06-06 17:11:43.468 INFO 8 — [freshExecutor-0] i.c.e.event.AbstractEurekaEventObserver : Receive UP event, payload: EurekaEventPayload{id=‘10.233.65.103:test-manager-service:8093’, status=‘UP’, appName=‘test-manager-service’, version=‘0.17.3’, instanceAddress=‘10.233.65.103:8093’, createTime=Thu Jun 06 17:11:43 CST 2019}
2019-06-06 17:12:12.290 INFO 8 — [pool-5-thread-5] i.c.i.a.e.ActuatorSagaHandler : start to refresh init data, service: test-manager-service
2019-06-06 17:12:12.290 INFO 8 — [pool-5-thread-1] i.c.i.a.e.ActuatorSagaHandler : start to refresh permission, service: test-manager-service
2019-06-06 17:12:13.301 INFO 8 — [pool-5-thread-4] i.c.i.a.e.ActuatorSagaHandler : start to fix menu and dashboard data
2019-06-06 17:12:13.301 INFO 8 — [pool-5-thread-4] io.choerodon.iam.app.task.FixDataHelper : start to fix data in iam_menu_permission
2019-06-06 17:12:13.304 INFO 8 — [pool-5-thread-4] io.choerodon.iam.app.task.FixDataHelper : start to fix data in iam_menu
2019-06-06 17:15:01.127 INFO 8 — [trap-executor-0] c.n.d.s.r.aws.ConfigClusterResolver : Resolving eureka endpoints via configuration
2019-06-06 17:16:02.732 INFO 8 — [ XNIO-2 task-18] c.c.c.ConfigServicePropertySourceLocator : Fetching config from server at : http://register-server:8000
2019-06-06 17:16:02.746 INFO 8 — [ XNIO-2 task-18] c.c.c.ConfigServicePropertySourceLocator : Located environment: name=iam-service, profiles=[default], label=, version=0.17.1, state=
2019-06-06 17:20:01.128 INFO 8 — [trap-executor-0] c.n.d.s.r.aws.ConfigClusterResolver : Resolving eureka endpoints via configuration
2019-06-06 17:21:02.736 INFO 8 — [ XNIO-2 task-16] c.c.c.ConfigServicePropertySourceLocator : Fetching config from server at : http://register-server:8000
2019-06-06 17:21:02.750 INFO 8 — [ XNIO-2 task-16] c.c.c.ConfigServicePropertySourceLocator : Located environment: name=iam-service, profiles=[default], label=, version=0.17.1, state=
看iam日志接收到test-manager-service启动的消息了,也刷菜单了。你用的是root用户吗
是的 用的admin账号
除了admin, 别的用户看不到的吗?
到iam_service,执行下sql
SELECT * from iam_menu_b where code = 'choerodon.code.test-manager'
SELECT * from iam_menu_b where PARENT_CODE = 'choerodon.code.test-manager'
iam_service
没有mysql啊?不是进mysql容器上执行吗?
对,进到mysql容器里
kubectl exec -it containerId -n namespace bash
然后
mysql -u root -p
use iam_service;
admin有了的话说明刷入菜单没问题,其他用户没有的话可能是权限问题,还需要排查
帮忙排查一下啊,要用这个功能~~