Skip to content

Provisioning app tries to create the project again just after successfully creating the project #715

Description

@BraisVQ

Describe the bug
Once we create the project with the Prov-app successfully, we can see in the logs that it tries to create it again and the preconditions fail as it has already been created.

To Reproduce
Steps to reproduce the behavior:

  1. Deploy prov-app from 4.x tag in Dockerhub
  2. Create a project with specialPermissionSet=true (with groups for read, write, admin and cdUser)
  3. Check the logs

Expected behavior
After the project creation, the prov-app sholuld not try to create the project again

Affected version:

  • OpenShift: [4.8]
  • OpenDevStack [4.x]

Log Output

2022-01-18 16:24:59 loggerFileName=DUMS2 [http-nio-8080-exec-6] DEBUG o.o.p.c.ProjectApiController - Project DUMS2 successfully stored: /opt/provision/history/20220118162459-DUMS2.txt
2022-01-18 16:24:59 loggerFileName=DUMS2 [http-nio-8080-exec-6] DEBUG o.o.provision.services.MailAdapter - Mail for project: DUMS2 sent
2022-01-18 16:24:59 loggerFileName=DUMS2 [http-nio-8080-exec-10] DEBUG o.o.p.s.CrowdProjectIdentityMgmtAdapter - existsGroupWithName by Name took (ms): 513
2022-01-18 16:24:59 loggerFileName=DUMS2 [http-nio-8080-exec-10] DEBUG o.o.p.s.CrowdProjectIdentityMgmtAdapter - findPrincipal by Name took (ms): 494
2022-01-18 16:24:59 loggerFileName=DUMS2 [http-nio-8080-exec-10] DEBUG o.o.p.s.CrowdProjectIdentityMgmtAdapter - identityCheck Name took (ms): 2006
2022-01-18 16:24:59 loggerFileName=DUMS2 [http-nio-8080-exec-10] INFO o.o.provision.services.JiraAdapter - checking create project preconditions for project 'DUMS2'!
2022-01-18 16:25:02 loggerFileName=DUMS2 [http-nio-8080-exec-10] INFO o.o.p.c.ProjectApiController - Done with all create project preconditions checks for project but some checks failed! [project=DUMS2, failures=[CheckPreconditionFailure{error-code='PROJECT_EXISTS', detail='ProjectKey 'DUMS2' already exists in 'jira'!'}, CheckPreconditionFailure{error-code='PROJECT_EXISTS', detail='Project/Space 'DUMS2' already exists in 'confluence'!'}, CheckPreconditionFailure{error-code='PROJECT_EXISTS', detail='project 'DUMS2' already exists in bitbucket!'}]]!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions