bland-monitor-37952
06/24/2025, 10:58 AMdisks
, pulumi sees an update
as being necessary as a result of a diff every time I run pulumi up
, which seems to be that it thinks the speed
values need setting. I've replicated the same VM in the underlying Terraform provider, and didn't see constant diffs, so this is something about either how the bridge is working or how it has been used for that provider.
disks
is particularly interesting because it doesn't exist as a property on the underlying Tf provider. In HCL, a VM can have multiple independent disk {}
blocks, but of course that is invalid in JSON/TypeScript etc, so something (I assume the bridge rather than custom code in this use of it, but maybe i've just missed where it is being done) is instead defining them all as an array of objects under disks
.
Further to that, if I set any of those speed
values to anything non-zero the diff goes away (but I don't want to be forced to set them, because I want the value to be 'unlimited', which is what 0
means), but if I try and update any of them after setting any value to non-zero (whether I update the same one again to a new non-zero value or a different one from zero->non-zero), the update is not seen by pulumi, it thinks there is nothing to do. And if I change a different value that it does see (e.g. disk size
) it will see an update and apply the size
change, but not the speed
changes. Again, this bug is not present in the underlying Terraform provider.
I've no real idea where to even begin debugging this, so if anyone has and pointers that would be amazing.adorable-house-61348
06/24/2025, 12:34 PMEnableAccurateBridgePreview
- try enabling that in the resources.go
file, here's an example.
Another thing to note is that a big difference between TF and pulumi is that TF refreshes by default. When testing the issue in TF, try running with -refresh=false
- does the issue still not repro?
If that all fails, you can get some additional logs on the interactions by setting PULUMI_DEBUG_GRPC=grpc.json
and then running the pulumi operation. That should include the GRPC interactions between the pulumi engine and the provider so could shed some light on the issue.bland-monitor-37952
06/24/2025, 12:54 PMadorable-house-61348
06/24/2025, 1:04 PMkind-manchester-5383
06/24/2025, 1:28 PMbut then when we tried to create the bridge the initialiser for that seemed to be able to identify that there was already an existing provider bridging the same Tf source, so just pointed us to thatwas what happened to me, but having run the command again
pulumi package add terraform-provider bpg/proxmox
it is giving me the machine-created implementation. If to your knowledge there is no lookup of an existing bridge maintained elsewhere when running a command like this, I was almost certainly just mistaken.bland-monitor-37952
06/24/2025, 1:29 PM