https://pulumi.com logo
Title
b

big-pizza-47421

10/23/2021, 3:12 PM
Hello everyone, gotta say I love Pulumi. just awesome! and now for the real reason I've found myself in Pulumi's Slack.
pulumi:pulumi:Stack       ecs-dev
 -   └─ aws:ec2:SecurityGroup  web-traffic  deleting.    completing deletion from previous update
This have been running forever now, and I see no reason for that since removing a SG should took 2 seconds. Anyway to DEBUG or force it somehow?
s

square-horse-16934

10/23/2021, 3:22 PM
Hi @big-pizza-47421 I can’t speak to forcing the deletion; but I use
pulumi up --logtostderr -v=9
to get more debug output (it’s a lot πŸ™‚ ). Maybe that helps?
b

big-pizza-47421

10/23/2021, 3:26 PM
-   └─ aws:ec2:SecurityGroup  web-traffic  deleting..   completing deletion from previous update
I1023 18:24:50.984509   13364 eventsink.go:59] AWS Auth provider used: "SharedCredentialsProvider"
I1023 18:24:50.984509   13364 eventsink.go:62] eventSink::Debug(<{%reset%}>AWS Auth provider used: "SharedCredentialsProvider"<{%reset%}>)
I1023 18:24:50.986116   13364 eventsink.go:59] Trying to get account information via iam:GetUser
 -   └─ aws:ec2:SecurityGroup  web-traffic  deleting...  completing deletion from previous update
I1023 18:24:51.200131   13364 step_executor.go:327] StepExecutor worker(0): applying step delete on urn:pulumi:dev::ecs::awsx:x:ec2:SecurityGroup$aws:ec2/securityGroup:SecurityGroup::web-traffic (preview false)
I1023 18:24:51.200666   13364 registry.go:148] GetProvider(urn:pulumi:dev::ecs::pulumi:providers:aws::default_4_25_0::3aa36629-00df-4488-af22-094e259540a6)
I1023 18:24:51.200666   13364 provider_plugin.go:1041] Provider[aws, 0xc00007fec0].Delete(urn:pulumi:dev::ecs::awsx:x:ec2:SecurityGroup$aws:ec2/securityGroup:SecurityGroup::web-traffic,sg-0d2e9ede1c697aa93) executing (#props=13)
I1023 18:24:51.201203   13364 rpc.go:74] Marshaling property for RPC[Provider[aws, 0xc00007fec0].Delete(urn:pulumi:dev::ecs::awsx:x:ec2:SecurityGroup$aws:ec2/securityGroup:SecurityGroup::web-traffic,sg-0d2e9ede1c697aa93)]: __meta={{"e2bfb730-ecaa-11e6-8f88-34363bc7c4c0":{"create":600000000000,"delete":900000000000},"schema_version":"1"}}
I1023 18:24:51.201203   13364 rpc.go:74] Marshaling property for RPC[Provider[aws, 0xc00007fec0].Delete(urn:pulumi:dev::ecs::awsx:x:ec2:SecurityGroup$aws:ec2/securityGroup:SecurityGroup::web-traffic,sg-0d2e9ede1c697aa93)]: arn={arn:aws:ec2:eu-west-2:862877837751:security-group/sg-0d2e9ede1c697aa93}
I1023 18:24:51.201735   13364 rpc.go:74] Marshaling property for RPC[Provider[aws, 0xc00007fec0].Delete(urn:pulumi:dev::ecs::awsx:x:ec2:SecurityGroup$aws:ec2/securityGroup:SecurityGroup::web-traffic,sg-0d2e9ede1c697aa93)]: description={Default security group for ALB: web-traffic}
I1023 18:24:51.202260   13364 rpc.go:74] Marshaling property for RPC[Provider[aws, 0xc00007fec0].Delete(urn:pulumi:dev::ecs::awsx:x:ec2:SecurityGroup$aws:ec2/securityGroup:SecurityGroup::web-traffic,sg-0d2e9ede1c697aa93)]: egress={[]}
I1023 18:24:51.202797   13364 rpc.go:74] Marshaling property for RPC[Provider[aws, 0xc00007fec0].Delete(urn:pulumi:dev::ecs::awsx:x:ec2:SecurityGroup$aws:ec2/securityGroup:SecurityGroup::web-traffic,sg-0d2e9ede1c697aa93)]: id={sg-0d2e9ede1c697aa93}
I1023 18:24:51.203362   13364 rpc.go:74] Marshaling property for RPC[Provider[aws, 0xc00007fec0].Delete(urn:pulumi:dev::ecs::awsx:x:ec2:SecurityGroup$aws:ec2/securityGroup:SecurityGroup::web-traffic,sg-0d2e9ede1c697aa93)]: ingress={[]}
I1023 18:24:51.203897   13364 rpc.go:74] Marshaling property for RPC[Provider[aws, 0xc00007fec0].Delete(urn:pulumi:dev::ecs::awsx:x:ec2:SecurityGroup$aws:ec2/securityGroup:SecurityGroup::web-traffic,sg-0d2e9ede1c697aa93)]: name={web-traffic-5d097f7}
I1023 18:24:51.204474   13364 rpc.go:74] Marshaling property for RPC[Provider[aws, 0xc00007fec0].Delete(urn:pulumi:dev::ecs::awsx:x:ec2:SecurityGroup$aws:ec2/securityGroup:SecurityGroup::web-traffic,sg-0d2e9ede1c697aa93)]: namePrefix={}
I1023 18:24:51.204474   13364 rpc.go:74] Marshaling property for RPC[Provider[aws, 0xc00007fec0].Delete(urn:pulumi:dev::ecs::awsx:x:ec2:SecurityGroup$aws:ec2/securityGroup:SecurityGroup::web-traffic,sg-0d2e9ede1c697aa93)]: ownerId={862877837751}
I1023 18:24:51.205048   13364 rpc.go:74] Marshaling property for RPC[Provider[aws, 0xc00007fec0].Delete(urn:pulumi:dev::ecs::awsx:x:ec2:SecurityGroup$aws:ec2/securityGroup:SecurityGroup::web-traffic,sg-0d2e9ede1c697aa93)]: revokeRulesOnDelete={false}
I1023 18:24:51.205590   13364 rpc.go:74] Marshaling property for RPC[Provider[aws, 0xc00007fec0].Delete(urn:pulumi:dev::ecs::awsx:x:ec2:SecurityGroup$aws:ec2/securityGroup:SecurityGroup::web-traffic,sg-0d2e9ede1c697aa93)]: tags={map[]}
I1023 18:24:51.206126   13364 rpc.go:74] Marshaling property for RPC[Provider[aws, 0xc00007fec0].Delete(urn:pulumi:dev::ecs::awsx:x:ec2:SecurityGroup$aws:ec2/securityGroup:SecurityGroup::web-traffic,sg-0d2e9ede1c697aa93)]: tagsAll={map[]}
I1023 18:24:51.206126   13364 rpc.go:74] Marshaling property for RPC[Provider[aws, 0xc00007fec0].Delete(urn:pulumi:dev::ecs::awsx:x:ec2:SecurityGroup$aws:ec2/securityGroup:SecurityGroup::web-traffic,sg-0d2e9ede1c697aa93)]: vpcId={vpc-1a437472}
I1023 18:24:51.590937   13364 eventsink.go:59] Registering resource: t=pulumi:pulumi:Stack, name=ecs-dev, custom=false, remote=false
I1023 18:24:51.590937   13364 eventsink.go:62] eventSink::Debug(<{%reset%}>Registering resource: t=pulumi:pulumi:Stack, name=ecs-dev, custom=false, remote=false<{%reset%}>)
I1023 18:24:51.602444   13364 eventsink.go:59] RegisterResource RPC prepared: t=pulumi:pulumi:Stack, name=ecs-dev
I1023 18:24:51.603431   13364 eventsink.go:62] eventSink::Debug(<{%reset%}>RegisterResource RPC prepared: t=pulumi:pulumi:Stack, name=ecs-dev<{%reset%}>)
I1023 18:24:51.605699   13364 source_eval.go:978] ResourceMonitor.RegisterResource received: t=pulumi:pulumi:Stack, name=ecs-dev, custom=false, #props=0, parent=, protect=false, provider=, 
deps=[], deleteBeforeReplace=<nil>, ignoreChanges=[], aliases=[], customTimeouts={0 0 0}, providers=map[], replaceOnChanges=[]
I1023 18:24:51.674842   13364 eventsink.go:59] Security Group destroy: sg-0d2e9ede1c697aa93
 -   └─ aws:ec2:SecurityGroup  web-traffic  deleting     completing deletion from previous update
I1023 18:24:52.226158   13364 eventsink.go:59] Waiting for state to become: [success]
I1023 18:24:52.226299   13364 eventsink.go:62] eventSink::Debug(<{%reset%}>Waiting for state to become: [success]<{%reset%}>)
I1023 18:24:52.736997   13364 eventsink.go:59] Waiting 500ms before next try
 -   └─ aws:ec2:SecurityGroup  web-traffic  deleting.    completing deletion from previous update
I1023 18:24:53.784022   13364 eventsink.go:59] Waiting 1s before next try
 -   └─ aws:ec2:SecurityGroup  web-traffic  deleting...  completing deletion from previous update
I1023 18:24:55.353895   13364 eventsink.go:59] Waiting 2s before next try
 -   └─ aws:ec2:SecurityGroup  web-traffic  deleting.    completing deletion from previous update
I1023 18:24:57.938327   13364 eventsink.go:59] Waiting 4s before next try
 -   └─ aws:ec2:SecurityGroup  web-traffic  deleting..   completing deletion from previous update
I1023 18:25:02.503340   13364 eventsink.go:59] Waiting 8s before next try
 -   └─ aws:ec2:SecurityGroup  web-traffic  deleting..   completing deletion from previous update
I1023 18:25:11.062008   13364 eventsink.go:59] Waiting 10s before next try
 -   └─ aws:ec2:SecurityGroup  web-traffic  deleting.    completing deletion from previous update
I1023 18:25:21.616131   13364 eventsink.go:59] Waiting 10s before next try
 -   └─ aws:ec2:SecurityGroup  web-traffic  deleting     completing deletion from previous update
I1023 18:25:32.131588   13364 eventsink.go:59] Waiting 10s before next try
trying to delete, and stuck in an infinite loop of retries
wonder what we'll happen if I'll just remove it from AWS directly. Wouldn't that corrupt that state?
s

square-horse-16934

10/23/2021, 3:37 PM
Yea, unless you manually clean up the state using
pulumi state
command
But I’m not 100% sure on this tbh
b

big-pizza-47421

10/23/2021, 3:40 PM
trying to destroy my networking stack
and then destroy it, I noticed on AWS console that the network interface is locked
still nothing, I hate networking πŸ˜•
πŸ˜‚ 1
😬 1
b

billowy-army-68599

10/23/2021, 4:56 PM
@big-pizza-47421 if you delete it from AWS it should continue
b

big-pizza-47421

10/23/2021, 5:18 PM
Diagnostics:
  aws:ec2:SecurityGroupRule (web-listener-external-0-ingress):
    error: deleting urn:pulumi:dev::ecs::aws:lb:ApplicationLoadBalancer$awsx:lb:ApplicationListener$awsx:x:ec2:IngressSecurityGroupRule$aws:ec2/securityGroupRule:SecurityGroupRule::web-listener-external-0-ingress: 1 error 
occurred:
        * couldn't find resource

  aws:ec2:SecurityGroupRule (web-listener-external-0-egress):
    error: deleting urn:pulumi:dev::ecs::aws:lb:ApplicationLoadBalancer$awsx:lb:ApplicationListener$awsx:x:ec2:EgressSecurityGroupRule$aws:ec2/securityGroupRule:SecurityGroupRule::web-listener-external-0-egress: 1 error occurred:
        * couldn't find resource

  aws:ec2:SecurityGroupRule (default-cluster-containers):
    error: deleting urn:pulumi:dev::ecs::awsx:x:ecs:Cluster$awsx:x:ec2:SecurityGroup$awsx:x:ec2:IngressSecurityGroupRule$aws:ec2/securityGroupRule:SecurityGroupRule::default-cluster-containers: 1 error occurred:
        * couldn't find resource

  aws:ec2:SecurityGroupRule (nginx-external-0-ingress):
    error: deleting urn:pulumi:dev::ecs::aws:lb:ApplicationLoadBalancer$awsx:lb:ApplicationListener$awsx:x:ec2:IngressSecurityGroupRule$aws:ec2/securityGroupRule:SecurityGroupRule::nginx-external-0-ingress: 1 error occurred:
        * couldn't find resource

  pulumi:pulumi:Stack (ecs-dev):
    error: update failed

  aws:ec2:SecurityGroupRule (default-cluster-egress):
    error: deleting urn:pulumi:dev::ecs::awsx:x:ecs:Cluster$awsx:x:ec2:SecurityGroup$awsx:x:ec2:EgressSecurityGroupRule$aws:ec2/securityGroupRule:SecurityGroupRule::default-cluster-egress: 1 error occurred:
        * couldn't find resource

  aws:ec2:SecurityGroupRule (default-cluster-ssh):
    error: deleting urn:pulumi:dev::ecs::awsx:x:ecs:Cluster$awsx:x:ec2:SecurityGroup$awsx:x:ec2:IngressSecurityGroupRule$aws:ec2/securityGroupRule:SecurityGroupRule::default-cluster-ssh: 1 error occurred:
        * couldn't find resource

  aws:ec2:SecurityGroupRule (nginx-external-0-egress):
    error: deleting urn:pulumi:dev::ecs::aws:lb:ApplicationLoadBalancer$awsx:lb:ApplicationListener$awsx:x:ec2:EgressSecurityGroupRule$aws:ec2/securityGroupRule:SecurityGroupRule::nginx-external-0-egress: 1 error occurred:        * couldn't find resource
@billowy-army-68599 😞
b

billowy-army-68599

10/23/2021, 5:19 PM
so the resource is gone from AWS?
b

big-pizza-47421

10/23/2021, 5:19 PM
yea
all of the above resources are gone
b

billowy-army-68599

10/23/2021, 5:19 PM
delete it from the state using `
pulumi state delete "urn:pulumi:dev::ecs::aws:lb:ApplicationLoadBalancer$awsx:lb:ApplicationListener$awsx:x:ec2:EgressSecurityGroupRule$aws:ec2/securityGroupRule:SecurityGroupRule::nginx-external-0-egress
`
b

big-pizza-47421

10/23/2021, 5:19 PM
yea, on it now
a
sync
cmd might do good here πŸ˜„
b

billowy-army-68599

10/23/2021, 5:20 PM
pulumi refresh
❀️ 1
b

big-pizza-47421

10/23/2021, 5:23 PM
now I'm back to the original issue
we'll post a new question