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

Revert early out errors in license API #10952

Merged
merged 2 commits into from
Aug 31, 2021

Conversation

pcewing
Copy link
Contributor

@pcewing pcewing commented Aug 27, 2021

Licensing recently changed in Consul v1.10 and along with those changes
the client API was updated such that PutLicense and ResetLicense both
immediately return an error to avoid an unecessary round trip that will
inevitably fail.

For reference, see: 08eb600

Unfortunately, this change broke forward compatibility such that a v1.10
client can no longer make these requests to a v1.9 server which is a
valid use case.

This commit reintroduces these requests to fix this compatibility
breakage but leaves the deprecation notices in tact.

Licensing recently changed in Consul v1.10 and along with those changes
the client API was updated such that PutLicense and ResetLicense both
immediately return an error to avoid an unecessary round trip to the
server that will inevitably fail.

Unfortunately, this change broke forward compatibility such that a v1.10
client can no longer make these requests to a v1.9 server which is a
valid use case.

This commit reintroduces these requests to fix this compatibility
breakage but leaves the deprecation notices in tact.
@github-actions github-actions bot added the theme/api Relating to the HTTP API interface label Aug 27, 2021
@vercel vercel bot temporarily deployed to Preview – consul-ui-staging August 27, 2021 21:19 Inactive
@vercel vercel bot temporarily deployed to Preview – consul August 27, 2021 21:19 Inactive
@pcewing pcewing force-pushed the pcewing-license-api-forward-compatibility branch from 8e9eab8 to f7858e2 Compare August 27, 2021 21:24
@vercel vercel bot temporarily deployed to Preview – consul August 27, 2021 21:24 Inactive
@vercel vercel bot temporarily deployed to Preview – consul-ui-staging August 27, 2021 21:24 Inactive
Copy link
Member

@mkeeler mkeeler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@pcewing pcewing merged commit 1a45e96 into main Aug 31, 2021
@pcewing pcewing deleted the pcewing-license-api-forward-compatibility branch August 31, 2021 16:36
@hc-github-team-consul-core
Copy link
Collaborator

🍒 If backport labels were added before merging, cherry-picking will start automatically.

To retroactively trigger a backport after merging, add backport labels and re-run https://circleci.com/gh/hashicorp/consul/438822.

@hc-github-team-consul-core
Copy link
Collaborator

🍒✅ Cherry pick of commit 1a45e96 onto release/1.10.x succeeded!

hc-github-team-consul-core pushed a commit that referenced this pull request Aug 31, 2021
Licensing recently changed in Consul v1.10 and along with those changes
the client API was updated such that PutLicense and ResetLicense both
immediately return an error to avoid an unecessary round trip that will
inevitably fail.

For reference, see: 08eb600

Unfortunately, this change broke forward compatibility such that a v1.10
client can no longer make these requests to a v1.9 server which is a
valid use case.

This commit reintroduces these requests to fix this compatibility
breakage but leaves the deprecation notices in tact.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme/api Relating to the HTTP API interface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants