https://pulumi.com logo
#general
Title
# general
b

busy-umbrella-36067

01/23/2019, 5:48 PM
I feel like failed resources should never stop a
pulumi refresh
from running. Is there an issue filed for that?
i

incalculable-sundown-82514

01/23/2019, 5:48 PM
(is that your scenario?)
b

busy-umbrella-36067

01/23/2019, 5:49 PM
@incalculable-sundown-82514 yeah, we had a resource deleted by hand so now I have to edit the state manually
i

incalculable-sundown-82514

01/23/2019, 5:49 PM
gotcha! re: editing the state, can you use this command? https://pulumi.io/reference/cli/pulumi_state_delete.html
it’s somewhat new, it’s designed to keep you from having to manually edit the state in a text editor
b

busy-umbrella-36067

01/23/2019, 5:50 PM
yeah, its just id prefer the CI/CD do it rather than by hand
we run refresh before every update
i

incalculable-sundown-82514

01/23/2019, 5:50 PM
gotcha.
b

busy-umbrella-36067

01/23/2019, 5:50 PM
thanks for the follow up
i

incalculable-sundown-82514

01/23/2019, 5:51 PM
yeah,
pulumi state delete
is only useful for one-time disaster recovery. no problem!
cc @microscopic-florist-22719
m

microscopic-florist-22719

01/23/2019, 5:54 PM
yeah, we had a resource deleted by hand so now I have to edit the state manually
What kind of resource?
refresh
should be able to handle deleted resources.
b

busy-umbrella-36067

01/23/2019, 5:54 PM
Copy code
Diagnostics:
  kubernetes:extensions:Ingress (external-rpc):
    error: Preview failed: 2 errors occurred:

    * Resource 'external-rpc-2hxv283a' was created but failed to initialize
    * Ingress .status.loadBalancer field was not updated with a hostname/IP address.
        for more information about this error, see <https://pulumi.io/xdv72s>

error: an error occurred while advancing the preview
make: *** [refresh] Error 255
One of the underlying target groups was deleted so the Ingress resource never fully built the ALB/ELB out
it would be awesome if the urn for the item was also mentioned in the error.
m

microscopic-florist-22719

01/23/2019, 6:15 PM
2 Views