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

Pulumi state does not reflect actual resource state #5211

Open
sfc-gh-enosenko opened this issue Feb 14, 2025 · 2 comments
Open

Pulumi state does not reflect actual resource state #5211

sfc-gh-enosenko opened this issue Feb 14, 2025 · 2 comments
Labels
kind/bug Some behavior is incorrect or out of spec needs-triage Needs attention from the triage team

Comments

@sfc-gh-enosenko
Copy link

sfc-gh-enosenko commented Feb 14, 2025

What happened?

When pulumi ran apply it failed to apply resource spec update but still went ahead and updated it's state. The instance was having some performance issues yet after several bump-ups in specs we noticed that the changes were not applied.

Pulumi state shows values that were defined in code:

Disk size - 400GB
IOPS - 12000

Yet the instance is still running with old configuration

Pulumi SDK version - v3.137.0

Example

Image

pulumi state for the resource

{
    "__meta": "{\"e2bfb730-ecaa-11e6-8f88-34363bc7c4c0\":{\"create\":2400000000000,\"delete\":3600000000000,\"update\":4800000000000},\"schema_version\":\"2\"}",
    "allocatedStorage": 400,
    // ...
    "iops": 12000,
    "password": {

    },
    // ...
}

Output of pulumi about

pulumi about
CLI          
Version      3.146.0
Go Version   go1.23.4
Go Compiler  gc

Plugins
KIND      NAME        VERSION
resource  aws         6.59.1
language  go          3.146.0
resource  kubernetes  3.30.2
resource  random      4.13.2

Host     
OS       darwin
Version  15.3
Arch     arm64

This project is written in go: executable='/opt/homebrew/opt/go/libexec/bin/go' version='go version go1.23.5 darwin/arm64'

Backend        
Name           pulumi.com
URL            https://app.pulumi.com/XXX
User           XXX
Organizations  XXX, XXX
Token type     personal

Dependencies:
NAME                                        VERSION
github.com/apparentlymart/go-cidr           v1.1.0
github.com/aws/aws-sdk-go-v2                v1.24.0
github.com/aws/aws-sdk-go-v2/config         v1.25.6
github.com/aws/aws-sdk-go-v2/credentials    v1.16.5
github.com/aws/aws-sdk-go-v2/service/ec2    v1.137.2
github.com/aws/aws-sdk-go-v2/service/eks    v1.35.5
github.com/aws/aws-sdk-go-v2/service/iam    v1.27.4
github.com/aws/aws-sdk-go-v2/service/sts    v1.25.5
github.com/aws/smithy-go                    v1.19.0
github.com/go-playground/validator/v10      v10.20.0
github.com/hashicorp/go-version             v1.7.0
github.com/pkg/errors                       v0.9.1
github.com/pulumi/pulumi-aws/sdk/v6         v6.59.1
github.com/pulumi/pulumi-kubernetes/sdk/v3  v3.30.2
github.com/pulumi/pulumi-random/sdk/v4      v4.13.2
github.com/pulumi/pulumi/sdk/v3             v3.137.0
github.com/sirupsen/logrus                  v1.9.3
github.com/snowflakedb/k8s-go-kit           v0.2.1-0.20250207221356-7705722259e2
github.com/stretchr/testify                 v1.9.0
gopkg.in/yaml.v3                            v3.0.1
k8s.io/apimachinery                         v0.27.1

Pulumi locates its logs in /var/folders/w3/m48z_ys17p9fvr_hh78ympb80000gn/T/ by default
warning: Failed to get information about the current stack: No current stack

in go.mod:

github.com/pulumi/pulumi/sdk/v3 v3.137.0

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

@sfc-gh-enosenko sfc-gh-enosenko added kind/bug Some behavior is incorrect or out of spec needs-triage Needs attention from the triage team labels Feb 14, 2025
@Frassle
Copy link
Member

Frassle commented Feb 14, 2025

This is probably an issue with the aws provider rather than the engine, so going to move repos.

@Frassle Frassle transferred this issue from pulumi/pulumi Feb 14, 2025
@sfc-gh-enosenko
Copy link
Author

@Frassle a bit more context

instance is running gp3

the chronology of changes:

  • iops bumped up to 6000 ( i wonder why pulumi didn't fail, because for the storage size ( 100gb ), max possible iops is capped at 3000 )
  • disk size bumped up to 400gb ( again, pulumi should've failed because min iops starts at 12000 and it was set by previous commit to 6000 )
  • iops bumped up to 12000

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Some behavior is incorrect or out of spec needs-triage Needs attention from the triage team
Projects
None yet
Development

No branches or pull requests

2 participants