OpenLDAP 用户属性校验无法通过


#21

这个同步还是一直在转吗?


#22

没转 等半天没反应 就关了


#23

f12看下有没有发请求,然后看下iam-service的日志有没有@@@ start async user这样的日志


#24


貌似notify有问题


#25

这个是notify websockt问题,不影响同步用户,看下network有没有发请求


#26



iam 日志


#27

日志里没有@@@ start async user就是没有开始同步


#28

怎么排查?哪里出问题了,弄了一下午了。。。


#29

说不好,没有日志的话,你去平台又一个api测试的界面。
image
然后找到iam-service -> ldap-controller
image
在这里调用下看能不能同步。
组织id和ldap id可以在界面url里拿到


#30

调接口是可以的



#31

嗯,谢谢,那确定是前端的问题了。我和前端反馈下,看能不能打个hotfix


#32

多谢了,明天可以着手弄别的了。。。这是做迁移前的大事


#33

账号同步了 gitlab 同步失败


io.choerodon.core.exception.CommonException: io.choerodon.core.exception.CommonException: The user you want to assign a role to is not created successfully!
at io.choerodon.devops.app.service.impl.GitlabGroupMemberServiceImpl.lambda$createGitlabGroupMemberRole$1(GitlabGroupMemberServiceImpl.java:83)
at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)
at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1382)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)
at io.choerodon.devops.app.service.impl.GitlabGroupMemberServiceImpl.createGitlabGroupMemberRole(GitlabGroupMemberServiceImpl.java:66)
at io.choerodon.devops.api.eventhandler.SagaHandler.handleGitlabGroupMemberEvent(SagaHandler.java:164)
at sun.reflect.GeneratedMethodAccessor1031.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at io.choerodon.asgard.saga.consumer.SagaConsumer.invoke(SagaConsumer.java:84)
at io.choerodon.asgard.saga.consumer.SagaConsumer.lambda$null$0(SagaConsumer.java:56)
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1590)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: io.choerodon.core.exception.CommonException: The user you want to assign a role to is not created successfully!
at io.choerodon.devops.app.service.impl.GitlabGroupMemberServiceImpl.operation(GitlabGroupMemberServiceImpl.java:188)
at io.choerodon.devops.app.service.impl.GitlabGroupMemberServiceImpl.lambda$createGitlabGroupMemberRole$1(GitlabGroupMemberServiceImpl.java:74)
… 20 more

devops 日志


#34

您好, 请问同步ldap用户有成功吗? gitlab上创建了要同步的ldap用户吗? 如果没有同步成功,你去给用户分配角色是会报错的


#35

ldap 同步到c7n没问题的 但c7n 应该是要同步到 gitlab吧 是这个逻辑吗?
先就是 gitlab 上 没相关的账号


#36

对 那看下同步ldap用户的saga实例事件 类型为iam-create-user


#37


io.choerodon.core.exception.CommonException: feign.FeignException: status 500 reading GitlabServiceClient#createGitLabUser(String,Integer,GitlabUserEvent); content:
{“timestamp”:“2019-03-12 11:19:07”,“status”:500,“error”:“Internal Server Error”,“exception”:“java.lang.IllegalArgumentException”,“message”:“Request processing failed; nested exception is java.lang.IllegalArgumentException: name cannot be empty or null”,“path”:"/v1/users"}
at io.choerodon.devops.infra.persistence.impl.GitlabUserRepositoryImpl.createGitLabUser(GitlabUserRepositoryImpl.java:33)
at io.choerodon.devops.app.service.impl.GitlabUserServiceImpl.createGitlabUser(GitlabUserServiceImpl.java:39)
at io.choerodon.devops.api.eventhandler.SagaHandler.lambda$handleCreateUserEvent$0(SagaHandler.java:204)
at java.util.ArrayList.forEach(ArrayList.java:1257)
at io.choerodon.devops.api.eventhandler.SagaHandler.handleCreateUserEvent(SagaHandler.java:193)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at io.choerodon.asgard.saga.consumer.SagaConsumer.invoke(SagaConsumer.java:84)
at io.choerodon.asgard.saga.consumer.SagaConsumer.lambda$null$0(SagaConsumer.java:56)
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1590)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: feign.FeignException: status 500 reading GitlabServiceClient#createGitLabUser(String,Integer,GitlabUserEvent); content:
{“timestamp”:“2019-03-12 11:19:07”,“status”:500,“error”:“Internal Server Error”,“exception”:“java.lang.IllegalArgumentException”,“message”:“Request processing failed; nested exception is java.lang.IllegalArgumentException: name cannot be empty or null”,“path”:"/v1/users"}
at feign.FeignException.errorStatus(FeignException.java:62)
at feign.codec.ErrorDecoder$Default.decode(ErrorDecoder.java:91)
at feign.SynchronousMethodHandler.executeAndDecode(SynchronousMethodHandler.java:138)
at feign.SynchronousMethodHandler.invoke(SynchronousMethodHandler.java:76)
at feign.ReflectiveFeign$FeignInvocationHandler.invoke(ReflectiveFeign.java:103)
at com.sun.proxy.$Proxy202.createGitLabUser(Unknown Source)
at io.choerodon.devops.infra.persistence.impl.GitlabUserRepositoryImpl.createGitLabUser(GitlabUserRepositoryImpl.java:30)
… 14 more


#38

看下input


#39


#40

哪个接口 我手工 调下