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

Failed to calculate preview for element in hostRules: interface conversion: interface {} is []interface {}, not *schema.Set #2967

Closed
erlichmen opened this issue Feb 11, 2025 · 3 comments · Fixed by #2977
Assignees
Labels
impact/regression Something that used to work, but is now broken kind/bug Some behavior is incorrect or out of spec p1 A bug severe enough to be the next item assigned to an engineer resolution/fixed This issue was fixed

Comments

@erlichmen
Copy link

Describe what happened

Description

I am encountering an warning (error?) when attempting to create a gcp.compute.URLMap. The error occurs during the preview stage, I don't know if and how this has effect on the resource creation flow. Also I don't know if this is a Terraform issue or Puumi's

Error Message

Failed to calculate preview for element in hostRules: interface conversion: interface {} is []interface {}, not *schema.Set

Environment

  • Pulumi version: pulumi version v3.149.0
  • Pulumi GCP Provider version: @8.18.0

Sample program

Code Sample

import * as gcp from "@pulumi/gcp";

const urlMap = new gcp.compute.URLMap("example-url-map", {
    hostRules: [{
            hosts: [domain],
            pathMatcher: "path-matcher",
    }],
    pathMatchers: [{
        name: "path-matcher",
        pathRules: [{
            paths: ["/test"],
            service: "projects/my-project/global/backendServices/another-backend",
        }],
    }],
});

Log output

No response

Affected Resource(s)

No response

Output of pulumi about

CLI
Version 3.149.0
Go Version go1.23.6
Go Compiler gc

Plugins
KIND NAME VERSION
language nodejs 3.149.0-dev.0

Host
OS darwin
Version 15.3
Arch arm64

This project is written in nodejs: executable='/Users/erlichmen/.nvm/versions/node/v20.14.0/bin/node' version='v20.14.0'

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

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

@erlichmen erlichmen added kind/bug Some behavior is incorrect or out of spec needs-triage Needs attention from the triage team labels Feb 11, 2025
@VenelinMartinov VenelinMartinov self-assigned this Feb 11, 2025
@VenelinMartinov VenelinMartinov added p1 A bug severe enough to be the next item assigned to an engineer impact/regression Something that used to work, but is now broken and removed needs-triage Needs attention from the triage team labels Feb 11, 2025
@VenelinMartinov
Copy link
Contributor

VenelinMartinov commented Feb 11, 2025

Hi @erlichmen, thanks for reporting. This is an issue we are investigating, similar to #2953 and caused by pulumi/pulumi-terraform-bridge#2892

We have no workaround yet, aside from downgrading to version 8.15 of the provider. The issue has no effect on the correctness of your infrastructure - it only affects the preview experience. Pulumi fails to generate a preview for the changes made.

We are actively working on a fix and will let you know once we have something here.

@erlichmen
Copy link
Author

Thank you for the prompt response, indeed downgrade helped

@pulumi-bot
Copy link
Contributor

This issue has been addressed in PR #2977 and shipped in release v8.19.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
impact/regression Something that used to work, but is now broken kind/bug Some behavior is incorrect or out of spec p1 A bug severe enough to be the next item assigned to an engineer resolution/fixed This issue was fixed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants