-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Upgrade Automation/Runbook API version from 2020-01-13-preview
to 2019-06-01
#18213
Conversation
2020-01-13-preview
to 2019-06-01
255dd2f
to
2bd9880
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This also seems blocked by a bug in the swagger/generated SDK? we should not be rolling back to an old API version or have the service split across api versions
yes, the root source is the swagger broken. en... as for runbook resource, it uses and hashicorp/go-azure-sdk cannot generate for a single resource making us have to cross API versions. or we directly generate the |
@wuxu92 - can we get the service team to fix the swagger? or is this the way they are going to detail their api in the specs going forward? if so it seems like what we should do is fix the pandora generator so it handles this new file type? |
yes, seems the service team will not revert this change because |
go mod tidy go mod vendor
2bd9880
to
2be4849
Compare
@wuxu92 The new base layer is not too far from ready but is still going through testing. Can you detail the issue? If you think this should/could be solved with an improved base client I'd like to make sure that's indeed the case :) |
@manicminer Thanks for your work! The case here is when the response body is a single string, not structured data, Track1 and current pandora will try to Below is an example of track1 code (and the current pandora SDK is almost the same). func (client DscConfigurationClient) GetContentResponder(resp *http.Response) (result String, err error) {
err = autorest.Respond(
resp,
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result.Value), // <-- result.Value is a *string
autorest.ByClosing()) the error message: |
@wuxu92 - how does track 2 handle it differently? |
@katbyte Track2 replaced autorest with a new base layer, but it has new authentication and other features designed not working for azurerm. |
@wuxu92 - i meant more how does it handle this "file" swagger change? |
Blocked on Azure/azure-rest-api-specs#20588 |
Since Azure/azure-rest-api-specs#20588 was merged 3 days ago, is there anything blocking this going though? |
@wuxu92 - now that the swagger PR has been merged can we update the |
@katbyte since the I think a better way is wanting for @manicminer 's new base layer to be ready, so we can use only hashi's SDK to support this. it is expected to be ready in recent weeks. |
Does this mean that this change would not resolve the issue? Im just looking for an ETA on when we will be able to create Python based runbooks using Terraform. |
@wuxu92 - ok, is this good to merge before then to add the new property? tests seem to be passing and we can consolidate versions at a later date |
@katbyte thanks for your review i have updated the pr and re-run the tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks @wuxu92 - LGTM 🍄
This functionality has been released in v3.28.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
Can anyone confirm that this was included in version 3.28.0? In the documentation I still do not see the options for Python2/3 and and I still get the error that they are not options. |
hi @DuneganS python 2/3 has been added in #18921 Python 2/3 should be supported in release 3.29 I think. |
@katbyte looks like these two PRs with the wrong release version, they should be released in 3.29.0? 3.28.0 was released on (October 20, 2022) but these two merged on Oct. 22. |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions. |
For updating from 2020-01-13-preview to 2019-06-01 may cause incompatible changes, so I only updated the Runbook resource which is trying to fix the issue #1602. the version number of
2019-06-01
looks smaller than the2020-01-13
, but there is no newer stable version forrunbook
to use.and because there are some breaking changes in swagger which cause the
RunbookClient.GetContent
andRunbookDraftClinet.Create
cannot work in2019-06-01
so these two Calls keep using the2020-01-13-preview
ofAzure/azure-sdk-for-go
. more detail in this issue comment: Azure/azure-sdk-for-go#17591 (comment) .