crossplane-contrib / provider-equinix-metal

DEPRECATED: Use provider-jet-equinix :warning:
https://github.com/crossplane-contrib/provider-jet-equinix
Apache License 2.0
16 stars 8 forks source link

ignore vlan attachment API responses "422 Virtual network foo already…" #62

Closed displague closed 3 years ago

displague commented 3 years ago

Description of your changes

During conformance testing, attachment resources would reach un unready state, despite being ready.

vents:
  Type     Reason                           Age                    From                                        Message
  ----     ------                           ----                   ----                                        -------
  Warning  CannotResolveResourceReferences  2m9s (x10 over 2m11s)  managed/assignment.ports.metal.equinix.com  cannot resolve references: referenced field was empty (referenced resource may not yet be ready)
  Warning  CannotCreateExternalResource     119s (x3 over 2m6s)    managed/assignment.ports.metal.equinix.com  cannot create Assignment: POST https://api.equinix.com/metal/v1/ports/7f67f7da-8302-4b5c-afd2-df0babc02208/assign: 422 still bonded
  Normal   CreatedExternalResource          81s                    managed/assignment.ports.metal.equinix.com  Successfully requested creation of external resource
  Warning  CannotCreateExternalResource     39s (x3 over 80s)      managed/assignment.ports.metal.equinix.com  cannot create Assignment: POST https://api.equinix.com/metal/v1/ports/7f67f7da-8302-4b5c-afd2-df0babc02208/assign: 422 Virtual network 1182 already assigned

Checklist

I have:

displague commented 3 years ago
kubectl get crossplane  
NAME                                                        INSTALLED   HEALTHY   PACKAGE                                                     AGE
provider.pkg.crossplane.io/equinix-provider-equinix-metal   True        True      registry.upbound.io/equinix/provider-equinix-metal:v0.0.7   97m

NAME                                                                             HEALTHY   REVISION   IMAGE                                                       STATE    DEP-FOUND   DEP-INSTALLED   AGE
providerrevision.pkg.crossplane.io/equinix-provider-equinix-metal-4fed94a7a957   True      1          registry.upbound.io/equinix/provider-equinix-metal:v0.0.7   Active                               97m

NAME                                                                 READY   SYNCED   ID                                     RECLAIM-POLICY   AGE
assignment.ports.metal.equinix.com/crossplane-example-eth1-xp-vlan   True    True     7f67f7da-8302-4b5c-afd2-df0babc02208                    90m

NAME                                            READY   SYNCED   ID                                     FACILITY   RECLAIM-POLICY   AGE
virtualnetwork.vlan.metal.equinix.com/xp-vlan   True    True     120a2342-d561-4ebc-957d-8b1de678dff0   sv15                        90m

NAME                                                 READY   SYNCED   STATE    ID                                     HOSTNAME             FACILITY   IPV4           RECLAIM-POLICY   AGE
device.server.metal.equinix.com/crossplane-example   True    True     active   e0d0ea1e-889d-413c-a2e4-c294979643ac   crossplane-example   sv15       86.109.1.247                    90m

NAME                                                      AGE
providerconfig.metal.equinix.com/equinix-metal-provider   97m

NAME                                                                         AGE   CONFIG-NAME              RESOURCE-KIND    RESOURCE-NAME
providerconfigusage.metal.equinix.com/3f9a5f2a-8f12-4afe-a8a9-81457da778e8   49m   equinix-metal-provider   VirtualNetwork   xp-vlan
providerconfigusage.metal.equinix.com/66e6c7a8-d56a-46f7-bdc7-c0c6132052fb   49m   equinix-metal-provider   Device           crossplane-example
providerconfigusage.metal.equinix.com/ee8daaf2-2f7b-4654-9cdc-951402a313e2   49m   equinix-metal-provider   Assignment       crossplane-example-eth1-xp-vlan
Status:
  Conditions:
    Last Transition Time:  2021-06-11T21:32:50Z
    Reason:                ReconcileSuccess
    Status:                True
    Type:                  Synced
    Last Transition Time:  2021-06-11T21:39:24Z
    Reason:                Available
    Status:                True
    Type:                  Ready
Events:
  Type     Reason                           Age                 From                                        Message
  ----     ------                           ----                ----                                        -------
  Warning  CannotResolveResourceReferences  58m (x10 over 58m)  managed/assignment.ports.metal.equinix.com  cannot resolve references: referenced field was empty (referenced resource may not yet be ready)
  Warning  CannotCreateExternalResource     57m (x3 over 58m)   managed/assignment.ports.metal.equinix.com  cannot create Assignment: POST https://api.equinix.com/metal/v1/ports/7f67f7da-8302-4b5c-afd2-df0babc02208/assign: 422 still bonded
  Normal   CreatedExternalResource          57m                 managed/assignment.ports.metal.equinix.com  Successfully requested creation of external resource
  Warning  CannotCreateExternalResource     40m (x5 over 57m)   managed/assignment.ports.metal.equinix.com  cannot create Assignment: POST https://api.equinix.com/metal/v1/ports/7f67f7da-8302-4b5c-afd2-df0babc02208/assign: 422 Virtual network 1182 already assigned
  Warning  CannotCreateExternalResource     33m (x13 over 34m)  managed/assignment.ports.metal.equinix.com  cannot create Assignment: POST https://api.equinix.com/metal/v1/ports/7f67f7da-8302-4b5c-afd2-df0babc02208/assign: 422 Virtual network 1182 already assigned
  Warning  CannotCreateExternalResource     29m (x13 over 30m)  managed/assignment.ports.metal.equinix.com  cannot create Assignment: POST https://api.equinix.com/metal/v1/ports/7f67f7da-8302-4b5c-afd2-df0babc02208/assign: 422 Virtual network 1182 already assigned
  Warning  CannotCreateExternalResource     28m (x11 over 28m)  managed/assignment.ports.metal.equinix.com  cannot create Assignment: POST https://api.equinix.com/metal/v1/ports/7f67f7da-8302-4b5c-afd2-df0babc02208/assign: 422 Virtual network 1182 already assigned
  Warning  CannotCreateExternalResource     23m (x7 over 23m)   managed/assignment.ports.metal.equinix.com  cannot create Assignment: POST https://api.equinix.com/metal/v1/ports/7f67f7da-8302-4b5c-afd2-df0babc02208/assign: 422 Virtual network 1182 already assigned
  Warning  CannotCreateExternalResource     22m (x3 over 22m)   managed/assignment.ports.metal.equinix.com  cannot create Assignment: POST https://api.equinix.com/metal/v1/ports/7f67f7da-8302-4b5c-afd2-df0babc02208/assign: 422 Virtual network 1182 already assigned
  Normal   CreatedExternalResource          18m (x16 over 21m)  managed/assignment.ports.metal.equinix.com  Successfully requested creation of external resource
  Normal   CreatedExternalResource          16m (x3 over 16m)   managed/assignment.ports.metal.equinix.com  Successfully requested creation of external resource