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

sdk.helper_schema: unable to require attribute replacement #487

Open
ginerama opened this issue Jan 23, 2024 · 1 comment
Open

sdk.helper_schema: unable to require attribute replacement #487

ginerama opened this issue Jan 23, 2024 · 1 comment
Labels
kind/bug Some behavior is incorrect or out of spec

Comments

@ginerama
Copy link

What happened?

Since few days ago, I see the following warning:

openstack:compute:Instance vm-test created (99s) warning: customdiff/force_new.go:66: sdk.helper_schema: unable to require attribute replacement: [email protected] tf_attribute_path=flavor_name error="ForceNew: No changes for flavor_name"

Example

flavor = openstack.compute.get_flavor(
    name="c1.c2r4",
) 

instance_main = openstack.compute.Instance(
    resource_name= "vm-test"
    flavor_id= flavor.flavor_id,
    image_id= image.id,
    key_pair= ssh_key.name,
    security_groups= [secutiry_group.sg.name],
    networks= [openstack.compute.InstanceNetworkArgs(
        name=network.network1.name
    )],
    metadata=metadata_dicctionary,
    user_data=startup_script_content,
    opts=pulumi.ResourceOptions(
        depends_on=[network.subnet1],
        provider=provider.openstack_provider,
        retain_on_delete=True
    )
)

Output of pulumi about

pulumi about
CLI
Version      3.102.0
Go Version   go1.21.6
Go Compiler  gc

Plugins
NAME       VERSION
gcp        6.51.0
openstack  3.11.0
python     unknown

Host
OS       darwin
Version  14.2.1
Arch     x86_64

This project is written in python: executable='/usr/local/bin/python3' version='3.11.7'

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

@ginerama ginerama added kind/bug Some behavior is incorrect or out of spec needs-triage Needs attention from the triage team labels Jan 23, 2024
@iwahbe
Copy link
Member

iwahbe commented Jan 25, 2024

Hi @ginerama. Thanks for reporting this issue. I am able to reproduce by running pulumi preview on the following program:

import pulumi_openstack as openstack

instance_main = openstack.compute.Instance(resource_name= "vm-test")
# Pulumi.dev.yaml
environment:
  - providers-dev-openstack
$ pulumi preview
Previewing update (dev)

View in Browser (Ctrl+O): https://app.pulumi.com/pulumi/ian-test-python/dev/previews/bfd29646-de47-4345-9dd3-5b5f96fe9767

Loading policy packs...

     Type                           Name                 Plan       Info
 +   pulumi:pulumi:Stack            ian-test-python-dev  create     
 +   └─ openstack:compute:Instance  vm-test              create     2 warnings

Policies:
    ✅ [email protected]

Diagnostics:
  openstack:compute:Instance (vm-test):
    warning:    customdiff/force_new.go:66: sdk.helper_schema: unable to require attribute replacement: [email protected] tf_attribute_path=flavor_id error="ForceNew: No changes for flavor_id"
    warning:    customdiff/force_new.go:66: sdk.helper_schema: unable to require attribute replacement: [email protected] tf_attribute_path=flavor_name error="ForceNew: No changes for flavor_name"

Resources:
    + 2 to create

@iwahbe iwahbe removed the needs-triage Needs attention from the triage team label Jan 25, 2024
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
Projects
None yet
Development

No branches or pull requests

2 participants