-
Notifications
You must be signed in to change notification settings - Fork 2
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
Error when updating a service backend: missing required field 'ServiceVersion' #119
Comments
@cdodd Do you mind providing what the state looks like ( |
This seems like it is due to the following Terraform change: It appears that Pulumi is never going to work correctly with this since the logic in the underlying provider added a an OR condition if the value is not set and I'm unable to actually pass it in as a parameter (nor would I want to). I had to roll back to an older provider (3.4.x) to work with the pulumi provider again. |
Hi, I run into the same issue. It's unusable. |
My understanding from looking at that change is that the only scenario in which you're stuck is if you're using a version of the provider prior to |
I run into that issue with the latest version. I started a few days ago with the development. Did you test it? |
@leezen doesn't work
|
Apologies -- I thought that
Looking at the state, it doesn't appear we ever actually write |
I think the issue is actually introduced via fastly/terraform-provider-fastly#388 |
@leezen thank you for digging further into this. Do you know if this is something that Pulumi's tf2pulumi has to account for or is this something the upstream provider is going to have to be patched to compensate for? It seems more of a pulumi issue as you describe, the value never gets written to state even with a refresh and I think that logic is independent of the upstream provider since the pulumi generator creates a bridge library if I recall... What is the recommended course-of-action to ensure those of us who were using the provider pre-3.10.0 so that we can upgrade to 3.10.0? It appears that 3.10.0 simply doesn't work at all with Pulumi at this point since you can't even run an update against a freshly created service w/ the 3.10.0 provider... |
I'm also running into this. It's my first time using Pulumi. |
Any updates on this as I just tried |
Tried downgrading to
So currently am blocked on being able to use this provider. |
@shaidar Can you provide some sample code? I believe the code that the OP provided is pre-V4. (I don't see |
Tested out new version of
|
Just checking in to see whether someone had a chance to come up with a potential solution to this? |
So, I've been digging through the Terraform provider code and the schema.json for this plugin to try and understand what is happening. The overall problem is that the Because it's not an explicit attribute that is managed through the schema.json I'm not sure if that's possible/straightforward? Perhaps we just need to add the |
Still experiencing this issue after releasing v4.0.2, in which I attempted to correct a version mismatch in our fork of terraform-plugin-sdk. Posting some additional details on the legwork I've done on this issue so far: After the first update to
This update fails. Then, after running
This update succeeds. Some possibly relevant links from the TF provider:
Last thing I can think of is maybe that Folks, thanks for your patience on this. I'm gonna ask for some additional help from some colleagues and we'll get this figured out. |
@jkodroff thank you for the detailed reply. Just curious if you and/or your colleagues have had the opportunity to look into this further? Is there anything that an external contributor can do to help keep this moving forward? |
We did look into this further. @pgavlin has a PR on our fork of the upstream provider that should fix the (very difficult to diagnose) cause of the error and I'll push a fix out today. |
Thanks for the update, that's great news! We'll help to test it out once you have the time to push out the updated release. |
@blarghmatey This should be fixed in pulumi-fastly v4.0.3. |
This appears to be fixed for me in v4.0.3! |
Thanks for taking the time to see this through @jkodroff |
I'm getting an issue when I attempt to update a backend of an existing service. When updating the backend I get the error
missing required field 'ServiceVersion'
. However, if I runpulumi up
a second time it appears to update the service, but doesn't, I can see the service is still on version 1 in the Fastly UI. If I runpulumi up
for a third time I get the error again, then the cycle continues.Steps to reproduce
I've created an example project here https://github.com/cdodd/fastly-issue
pulumi up
and create the service"origin2.myservice.com"
)pulumi up
, apply the change, you should receive the errormissing required field 'ServiceVersion'
pulumi up
, apply the change, change will show complete.pulumi up
, get the error message againExample output on failure
Example output on update that appears to work, but fails
The text was updated successfully, but these errors were encountered: