Patching Heat stack leads to random error

Summary

In an OpenStack context, when trying to configure security group rules by patching capo-cluster-resources HeatStack, I got several random errors.

Code test in branch heatstack_patch

units:
  capo-cluster-resources:
    kustomization_spec:
      _patches:
        - target:
            kind: HeatStack
          patch: |
            - op: replace
              path: /spec/heatStack/template/parameters/common_sg_rules
              value:
                type: json
                description: "Common security group rules associated with the control plane and worker VMs"
                default:
                  direction: [ingress, ingress, ingress, egress, ingress]
                  port: ['80', '443', '22', '53', '25888']
                  protocol: [tcp, tcp, tcp, udp, tcp]
                  remote_ip_prefix: [0.0.0.0/0, 0.0.0.0/0, 0.0.0.0/0, 0.0.0.0/0, 0.0.0.0/0]

Failed pipeline exemples:

  • https://gitlab.com/sylva-projects/sylva-core/-/pipelines/1306888116
  • https://gitlab.com/sylva-projects/sylva-core/-/pipelines/1308581625
  • https://gitlab.com/sylva-projects/sylva-core/-/pipelines/1308581559

related references

  • Thread: !2073 (comment 1924596171)
  • Test commit: 5944aa5b

Details

Edited May 28, 2024 by Médéric de Verdilhac
Assignee Loading
Time tracking Loading