Comments (8)
Sorry for the miscopy. Here is the issue. #1387
from pulumi-gcp.
Hi @adam-heat1 - thank you for filing this issue. You mention there's another issue that describes this behavior, but unfortunately your link is broken - can you let us know which one you were referring to? We should be able to assist you in fixing your stack state.
from pulumi-gcp.
Awesome, thank you for the context.
Before we dive in, would you be able to send us a copy of your current stuck stack file, sensitive data removed? It would be the output of pulumi stack export --file stack.json
. It would help us find out why refresh
is not working for you.
You have a couple options here.
- You can delete the service and recreate it. This is of course destructive.
- You can manually edit your stack state to remove the stuck labels. Warning this is potentially dangerous. Documentation for stack files is here: https://www.pulumi.com/docs/cli/commands/pulumi_stack_export/
from pulumi-gcp.
@guineveresaenger here is a portion of my output where the labels are.
"outputs": {
"__meta": "{\"e2b\":{\"create\":1200000000000,\"delete\":1200000000000,\"update\":1200000000000},\"schema_version\":\"2\"}",
"autogenerateRevisionName": false,
"id": "locations/us-central1/namespaces//services/",
"location": "us-central1",
"metadata": {
"annotations": {
"pulumiLabels.%": ""
},
"effectiveAnnotations": {
"pulumiLabels.%": "",
"run.googleapis.com/client-name": "cloud-console",
"run.googleapis.com/ingress": "all",
"run.googleapis.com/ingress-status": "all",
"run.googleapis.com/operation-id": "e7",
"serving.knative.dev/creator": "[email protected]",
"serving.knative.dev/lastModifier": "[email protected]"
},
"effectiveLabels": {
"cloud.googleapis.com/location": "us-central1"
},
"generation": 142,
"labels": {},
"namespace": "",
"pulumiLabels": {},
"resourceVersion": "",
"selfLink": "/apis/serving.knative.",
"uid": ""
},
"name": "",
"project": "",
"statuses": [
{
"conditions": [
{
"message": "",
"reason": "",
"status": "True",
"type": "Ready"
},
{
"message": "",
"reason": "",
"status": "True",
"type": "ConfigurationsReady"
},
{
"message": "",
"reason": "",
"status": "True",
"type": "RoutesReady"
}
],
"latestCreatedRevisionName": "-00141-84n",
"latestReadyRevisionName": "-00141-84n",
"observedGeneration": 142,
"traffics": [
{
"latestRevision": true,
"percent": 100,
"revisionName": "-00141-84n",
"tag": "",
"url": ""
}
],
"url": "https://--uc.a.run.app"
}
],
"template": {
"metadata": {
"annotations": {
"autoscaling.knative.dev/maxScale": "100",
"run.googleapis.com/cloudsql-instances": ":us-central1:-instance"
},
"generation": 0,
"labels": {
"run.googleapis.com/startupProbeType": "Default"
},
"name": "",
"namespace": "",
"resourceVersion": "",
"selfLink": "",
"uid": ""
},
"spec": {
"containerConcurrency": 5,
"containers": [
{
"args": [],
"commands": [],
"envFroms": [],
"envs": [
],
"image": "us-centr",
"livenessProbe": null,
"name": "",
"ports": [
{
"containerPort": 8080,
"name": "http1",
"protocol": ""
}
],
"resources": {
"limits": {
"cpu": "1",
"memory": "512Mi"
},
"requests": {}
},
"startupProbe": {
"failureThreshold": 1,
"grpc": null,
"httpGet": null,
"initialDelaySeconds": 0,
"periodSeconds": 240,
"tcpSocket": {
"port": 8080
},
"timeoutSeconds": 240
},
"volumeMounts": [],
"workingDir": ""
}
],
"serviceAccountName": "6940nt.com",
"servingState": "",
"timeoutSeconds": 300,
"volumes": []
}
},
"traffics": [
{
"latestRevision": true,
"percent": 100,
"revisionName": "",
"tag": "",
"url": ""
}
]
},
You can see two spots where there are "pulumiLabels.%": "",
. How can I safely delete those? I see your second link about exporting the stack but I don't understand how to edit it with that command
from pulumi-gcp.
If you don't want to re-create the service, I would remove the "pulumiLabels.%": ""
line manually. I think that would get you unblocked the fastest.
from pulumi-gcp.
@iwahbe where can I delete that line manually? That is what I was looking to do originally but couldn't find a way to manually update the state.
from pulumi-gcp.
To get your state, you do pulumi state export > mystate.json
. I would then copy the state (making sure to keep a backup in case something goes wrong: cp mystate.json mystate.json.backup
). You can then edit mystate.json
(just search for "pulumiLabels.%": ""
) and run cat mystate.json | pulumi stack import
to accept the new state.
from pulumi-gcp.
That is exactly what I was looking for. Thanks so much for the help!
from pulumi-gcp.
Related Issues (20)
- Failed to detect changes to certain options when creating a resource. HOT 2
- Compute Subnetwork secondary ip ranges drops note from upstream docs
- Upgrade terraform-provider-google-beta to v5.39.0 HOT 1
- Workflow failure: release HOT 1
- Workflow failure: release HOT 1
- Upgrade terraform-provider-google-beta to v5.39.1 HOT 1
- Workflow failure: master
- PRC test failures in GCP HOT 1
- Upgrade terraform-provider-google-beta to v5.40.0
- Edit retest window on gcp.monitoring.AlertPolicy HOT 1
- [Epic] GCP 8.0
- Create alpha release
- GCP v8 Prerelease: Find testers and request feedback
- GCP v8: Audit Patches
- GCP v8: Update documents
- GCP v8: Prepare blog post
- GCP v8: Create Migration Guide
- CloudSQL instances with auto disk resizing fail to update on the first try but succeed on retrying HOT 3
- Upgrade terraform-provider-google-beta to v5.41.0
- Workflow failure: release
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pulumi-gcp.