Skip to content

Add-ons management Race condition with Node Groups #1801

@jmickle

Description

@jmickle

Description

During module creation with Add-on "coredns" and a managed node group, there is the inevitable possibility of a race condition that I have hit a few times. Based on the random order of returned resources of spinning up the new the coredns add-on can potentially be attempted to be created before a manage node group which inherently creates a "wait for creation condition" which will fail out after 20 min. On a subsequent plan/apply given the ordering of resource creation has shifted, the node group will be created and then finally core-dns will destroy and recreate successfully.

Versions

  • Terraform: latest
  • Provider(s): latest
  • Module: latest

Reproduction

Steps to reproduce the behavior:

N/A N/A N/A

Code Snippet to Reproduce

Expected behavior

CoreDNS addon should probably have a depends-on block for the node profile.

Actual behavior

Terminal Output Screenshot(s)

Additional context

Happy to submit a PR, I just have not had an opportunity to get familiar with the actual module code at the moment. I will happily attempt to get familiar with the module to PR it this weekend. However, wanted to open an issue so if someone more familiar with it knows it could easily be a 5 minute fix.

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