Skip to content

Bump azure-mgmt-containerinstance>=7.0.0,<9.0.0#33696

Merged
potiuk merged 4 commits into
apache:mainfrom
astronomer:bump-azure-mgmt-containerinstance
Aug 28, 2023
Merged

Bump azure-mgmt-containerinstance>=7.0.0,<9.0.0#33696
potiuk merged 4 commits into
apache:mainfrom
astronomer:bump-azure-mgmt-containerinstance

Conversation

@pankajastro

Copy link
Copy Markdown
Member

^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

@potiuk

potiuk commented Aug 24, 2023

Copy link
Copy Markdown
Member

No dice :( ... need some work I am afraid.

@pankajastro

Copy link
Copy Markdown
Member Author

No dice :( ... need some work I am afraid.

Yeah, will investigate it and let see how it goes

@eladkal

eladkal commented Aug 24, 2023

Copy link
Copy Markdown
Contributor

One of the issues is with network_profile:

network_profile: ContainerGroupNetworkProfile | None = None,

The parameter (type ContainerGroupNetworkProfile )was removed in version 9.0.0
https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/containerinstance/azure-mgmt-containerinstance/CHANGELOG.md#900-2021-09-17

From official docs:

Network profiles have been retired as of the 2021-07-01 API version. If you're using this or a more recent version, ignore any steps and actions related to network profiles.

https://learn.microsoft.com/en-us/azure/container-instances/container-instances-virtual-network-concepts#network-profile

Thus bumping azure-mgmt-containerinstance to version greater than 9.0.0 means also breaking change for the provider (Which we should do!)

@pankajastro

Copy link
Copy Markdown
Member Author

Thanks @eladkal I want azure-identity which is supported in 7.0.0>= but I feel should be ok to change to 9.0.0

@eladkal

eladkal commented Aug 24, 2023

Copy link
Copy Markdown
Contributor

Thanks @eladkal I want azure-identity which is supported in 7.0.0>= but I feel should be ok to change to 9.0.0

azure-mgmt-containerinstance>=7.0.0 is not going to work because of the network_profile issue.
so you have two options:

  1. fix all issues and have azure-mgmt-containerinstance>=9.0.0
  2. Set azure-mgmt-containerinstance>=7.0.0, <9.0.0

in the 2nd option you won't need to deal with network_profile now

@pankajastro pankajastro force-pushed the bump-azure-mgmt-containerinstance branch from ce04108 to de0ce51 Compare August 25, 2023 19:34
@pankajastro pankajastro force-pushed the bump-azure-mgmt-containerinstance branch from de0ce51 to 5f2c6f3 Compare August 25, 2023 19:35
Comment thread airflow/providers/microsoft/azure/hooks/container_instance.py Outdated
@eladkal eladkal changed the title Bump azure-mgmt-containerinstance>=7.0.0 Bump azure-mgmt-containerinstance>=7.0.0,<9.0.0 Aug 27, 2023
Comment thread airflow/providers/microsoft/azure/provider.yaml Outdated
@potiuk

potiuk commented Aug 27, 2023

Copy link
Copy Markdown
Member

Looks like at least tests are green @pankajastro :)

@pankajastro pankajastro force-pushed the bump-azure-mgmt-containerinstance branch from 35bdfa2 to 04f92b0 Compare August 28, 2023 08:23
Comment thread airflow/providers/microsoft/azure/hooks/container_instance.py Outdated
@eladkal

eladkal commented Aug 28, 2023

Copy link
Copy Markdown
Contributor

@pankajastro is it ready for review and merge?

@pankajastro pankajastro marked this pull request as ready for review August 28, 2023 11:02
@pankajastro

Copy link
Copy Markdown
Member Author

@pankajastro is it ready for review and merge?

yes, just mark it ready for review. I have done with testing and worked

@potiuk potiuk merged commit 9d53278 into apache:main Aug 28, 2023
@potiuk

potiuk commented Aug 28, 2023

Copy link
Copy Markdown
Member

Cooool.... One less thing to bump for Azure :). I am not sure if they deserve it, but well ... Who am I to judge.

@eladkal

eladkal commented Aug 28, 2023

Copy link
Copy Markdown
Contributor

We still need to bump for >=9.0.0 and this means handling the issues I listed in #33696 (comment)

@pankajastro

Copy link
Copy Markdown
Member Author

We still need to bump for >=9.0.0 and this means handling the issues I listed in #33696 (comment)

Yes, I'll investigate it later this week

@potiuk

potiuk commented Aug 28, 2023

Copy link
Copy Markdown
Member

I also updated #30199

Comment thread airflow/providers/microsoft/azure/operators/container_instances.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants