pulumi / pulumi-azure

A Microsoft Azure Pulumi resource package, providing multi-language access to Azure
Apache License 2.0
133 stars 50 forks source link

Pulumi preview hangs forever when trying to getRoleDefinitionOutput(..) for non existing role #2516

Open kraakevik opened 2 weeks ago

kraakevik commented 2 weeks ago

Describe what happened

Tried getting a role definition using getRoleDefinitionOutput but accidentally mistyped the role name to something non-existing. Unexpectedly this causes pulumi up to hang forever in the planning phase without any errors.

Sample program

const subscriptionId = authorization_native.getClientConfigOutput().subscriptionId
let provider = new azure.Provider("test", {subscriptionId: subscriptionId})
let scope = pulumi.interpolate`/subscriptions/${subscriptionId}`
let roleDefinition = authorization.getRoleDefinitionOutput({ name: "not-existing", scope: scope }, {provider: provider})

Log output

No response

Affected Resource(s)

No response

Output of pulumi about

CLI
Version 3.117.0 Go Version go1.22.3 Go Compiler gc

Plugins KIND NAME VERSION resource azure 6.3.1 resource azure-native 2.64.2 resource azuread 5.53.5 language nodejs unknown

Host
OS ubuntu Version 22.04 Arch x86_64

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

Dependencies: NAME VERSION @pulumi/azure-native 2.64.2 @pulumi/azure 6.3.1 @pulumi/azuread 5.53.5 @pulumi/pulumi 3.135.0 @types/js-yaml 4.0.9 js-yaml 4.1.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).

danielrbradley commented 2 weeks ago

Hello @kraakevik, I'm pretty sure this is being caused by https://github.com/pulumi/pulumi/issues/17459.

There should be a new patch release available soon, but for the time being we'd recommend downgrading to your previous version of the provider.