Skip to content

Recent commit causes AtlasProject creation to fail #452

@jianrongzhang89

Description

@jianrongzhang89

What did you do to encounter the bug?
Steps to reproduce the behavior:

  1. Build Atlas Operator from the main branch as of March 2, 2022.
  2. Deploy the operator with OLM on an OpenShift 4.9 cluster.
  3. Create a connection secret and an AtlasProject CR:
    apiVersion: atlas.mongodb.com/v1
    kind: AtlasProject
    metadata:
    name: jianrzha
    spec:
    connectionSecretRef:
    name: my-atlas-key
    name: jianrzha
    projectIpAccessList:
    • comment: IP address for Application Server A
      ipAddress: 192.0.2.15
    • comment: CIDR block for Application Server B - D
      ipAddress: 203.0.113.0/24
  4. The CR status shows failure:
    status:
    conditions:
  • lastTransitionTime: "2022-03-03T16:48:33Z"
    status: "False"
    type: Ready
  • lastTransitionTime: "2022-03-03T16:48:33Z"
    status: "True"
    type: ValidationSucceeded
  • lastTransitionTime: "2022-03-03T16:48:33Z"
    message: base URL must have a trailing slash, but "https://cloud.mongodb.com"
    does not
    reason: ProjectNotCreatedInAtlas
    status: "False"
    type: ProjectReady
    observedGeneration: 1

What did you expect?
The AtlasProject should be reconciled successfully.

What happened instead?
A clear and concise description of what happened instead
See above error message.

Screenshots
If applicable, add screenshots to help explain your problem.

Operator Information

  • Operator Version: built from main branch.
    Kubernetes Cluster Information
  • Distribution: OpenShift
  • Version: 4.9
  • Image Registry location (quay, or an internal registry)

Additional context
Add any other context about the problem here.
This issue seems to be caused by a recent commit:
b5237e8

If possible, please include:

  • kubectl describe output
  • yaml definitions for your objects
  • log files for the operator and database pods

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions