Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistent Behavior When Removing Entries from vlanNames Array in VlanProfiles Resource #116

Closed
zbuchheit opened this issue Jul 15, 2024 · 7 comments
Assignees
Labels
awaiting/bridge The issue cannot be resolved without action in pulumi-terraform-bridge. awaiting-upstream The issue cannot be resolved without action in another repository (may be owned by Pulumi). kind/bug Some behavior is incorrect or out of spec resolution/fixed This issue was fixed
Milestone

Comments

@zbuchheit
Copy link
Collaborator

zbuchheit commented Jul 15, 2024

Describe what happened

When attempting to remove an entry from the vlanNames after creating a VlanProfiles resource, it is not detecting a diff to trigger the removal of the entry.

related: #97

Sample program

  1. pulumi up
  2. pulumi refresh to pick up the diff
  3. pulumi up to add the second field
  4. remove a field from vlanNames
  5. pulumi up
  6. witness no diff
import * as meraki from "@pulumi/meraki";

const provider = new meraki.Provider("meraki-provider", {
  merakiDebug: "true",
});

const networks = meraki
  .getNetworksOutput({
    organizationId: "redacted",
  })
  .apply((networks) => {
    console.log(networks);
    return networks;
  });

const network = new meraki.networks.Base("base-network", {
  name: "Pulumi Test Network",
  notes: "This is a test network created by the Pulumi team",
  organizationId: "redacted",
  productTypes: ["appliance", "switch", "wireless", "cellularGateway"],
  timeZone: "America/Los_Angeles",
});

const vlanSettings = new meraki.networks.ApplianceVlansSettings(
  "vlan-settings",
  {
    networkId: network.id,
    vlansEnabled: true,
  },
  {
    provider: provider,
  }
);

const vlans = new meraki.networks.ApplianceVlans(
  "vlans",
  {
    networkId: network.id,
    applianceIp: "192.168.2.1",
    vlanId: "2",
    subnet: "192.168.2.0/24",
    name: "guest",
    dhcpHandling: "Do not respond to DHCP requests",
    dnsNameservers: "upstream_dns",
    dhcpLeaseTime: "1 day",
    dhcpBootOptionsEnabled: false,
  },
  { dependsOn: [vlanSettings], provider: provider }
);

const vlanProfiles = new meraki.networks.VlanProfiles(
  "vlan-profiles",
  {
    networkId: network.id,
    name: "Default Profile",
    iname: "Default",
    vlanNames: [
      {
        name: "default",
        vlanId: "1",
      },
      {
        name: vlans.name,
        vlanId: vlans.vlanId,
      },
    ],
    vlanGroups: [],
  },
  {
    provider: provider,
  }
);

Log output

No response

Affected Resource(s)

No response

Output of pulumi about

N/A

Additional context

No response

Contributing

Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

@zbuchheit zbuchheit added kind/bug Some behavior is incorrect or out of spec needs-triage Needs attention from the triage team labels Jul 15, 2024
@zbuchheit
Copy link
Collaborator Author

when testing upstream I am not seeing this behavior

@VenelinMartinov VenelinMartinov removed the needs-triage Needs attention from the triage team label Jul 16, 2024
@VenelinMartinov VenelinMartinov self-assigned this Jul 16, 2024
@VenelinMartinov
Copy link
Contributor

Thanks for raising the issue @zbuchheit, I also appreciate the detailed reproes and the testing in TF here!

@VenelinMartinov
Copy link
Contributor

Reproduced in the bridge: pulumi/pulumi-terraform-bridge#2192

We have some issues around sets in PF, we will take some time to improve thing here in the coming iteration.

@VenelinMartinov VenelinMartinov added awaiting-upstream The issue cannot be resolved without action in another repository (may be owned by Pulumi). awaiting/bridge The issue cannot be resolved without action in pulumi-terraform-bridge. labels Jul 17, 2024
@mikhailshilkov mikhailshilkov added this to the 0.108 milestone Jul 23, 2024
@t0yv0 t0yv0 self-assigned this Jul 23, 2024
@VenelinMartinov VenelinMartinov removed their assignment Jul 23, 2024
@mjeffryes
Copy link
Member

I see the bridge ticket is closed now; can we close this one yet? or do we need a bridge update first?

@t0yv0
Copy link
Member

t0yv0 commented Aug 6, 2024

I think if we know which release of pulumi-meraki fixed the issue we can reference that and close.

@t0yv0
Copy link
Member

t0yv0 commented Aug 9, 2024

Bridge v3.89.0 should contain the fix, I believe being released today. I'll check next week to see if we can update this dependency.

@t0yv0
Copy link
Member

t0yv0 commented Aug 12, 2024

Fixed in #146

@t0yv0 t0yv0 added the resolution/fixed This issue was fixed label Aug 12, 2024
@t0yv0 t0yv0 closed this as completed Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting/bridge The issue cannot be resolved without action in pulumi-terraform-bridge. awaiting-upstream The issue cannot be resolved without action in another repository (may be owned by Pulumi). kind/bug Some behavior is incorrect or out of spec resolution/fixed This issue was fixed
Projects
None yet
Development

No branches or pull requests

5 participants