Giter Club home page Giter Club logo

Comments (8)

adam-heat1 avatar adam-heat1 commented on August 15, 2024 1

Sorry for the miscopy. Here is the issue. #1387

from pulumi-gcp.

guineveresaenger avatar guineveresaenger commented on August 15, 2024

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.

guineveresaenger avatar guineveresaenger commented on August 15, 2024

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.

from pulumi-gcp.

adam-heat1 avatar adam-heat1 commented on August 15, 2024

@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.

iwahbe avatar iwahbe commented on August 15, 2024

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.

adam-heat1 avatar adam-heat1 commented on August 15, 2024

@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.

iwahbe avatar iwahbe commented on August 15, 2024

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.

adam-heat1 avatar adam-heat1 commented on August 15, 2024

That is exactly what I was looking for. Thanks so much for the help!

from pulumi-gcp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.