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
os_network port_security_enabled unexpected keyword #62062
Comments
Files identified in the description: If these files are inaccurate, please update the |
I've proposed a fix for this to the upstream collection: https://review.opendev.org/708119 |
To make use of the port_security_enabled [a] and mtu [b] parameters, [c] and [d] need to be present in the openstacksdk or the os_network module with return an error like: TypeError: create_network() got an unexpected keyword argument 'port_security_enabled' or: TypeError: create_network() got an unexpected keyword argument 'mtu' To handle this, we fail the module if one of the arguments are used and the minimum openstacksdk version for that argument is not met. [a] ansible/ansible@eaf238b [b] ansible/ansible@c6a8e99 [c] openstack/openstacksdk@8eb788a [d] openstack/openstacksdk@a1fc820 Fixes: ansible/ansible#62062 Change-Id: I2b80dc721a08bbdb530af3705ae99cf1b579d9f0
To make use of the port_security_enabled [a] and mtu [b] parameters, [c] and [d] need to be present in the openstacksdk or the os_network module with return an error like: TypeError: create_network() got an unexpected keyword argument 'port_security_enabled' or: TypeError: create_network() got an unexpected keyword argument 'mtu' To handle this, we fail the module if one of the arguments are used and the minimum openstacksdk version for that argument is not met. [a] ansible@eaf238b [b] ansible@c6a8e99 [c] openstack/openstacksdk@8eb788a [d] openstack/openstacksdk@a1fc820 Backport-of: https://review.opendev.org/708119 Fixes: ansible#62062 Change-Id: I2b80dc721a08bbdb530af3705ae99cf1b579d9f0
The collection patch has merged. The stable-2.9 PR is up: #67546 |
…rity_enabled To make use of the port_security_enabled [a] parameter, [b] needs to be present in the openstacksdk or the os_network module will return an error like: TypeError: create_network() got an unexpected keyword argument 'port_security_enabled' To handle this, we fail the module if one of the arguments are used and the minimum openstacksdk version for that argument is not met. [a] ansible@eaf238b [b] openstack/openstacksdk@8eb788a Backport-of: https://review.opendev.org/708119 Fixes: ansible#62062
Oh, and I've pushed a stable-2.8 PR up too: #67577 |
To make use of the port_security_enabled [a] and mtu [b] parameters, [c] and [d] need to be present in the openstacksdk or the os_network module with return an error like: TypeError: create_network() got an unexpected keyword argument 'port_security_enabled' or: TypeError: create_network() got an unexpected keyword argument 'mtu' To handle this, we fail the module if one of the arguments are used and the minimum openstacksdk version for that argument is not met. [a] eaf238b [b] c6a8e99 [c] openstack/openstacksdk@8eb788a [d] openstack/openstacksdk@a1fc820 Backport-of: https://review.opendev.org/708119 Fixes: #62062 Change-Id: I2b80dc721a08bbdb530af3705ae99cf1b579d9f0
…rity_enabled To make use of the port_security_enabled [a] parameter, [b] needs to be present in the openstacksdk or the os_network module will return an error like: TypeError: create_network() got an unexpected keyword argument 'port_security_enabled' To handle this, we fail the module if one of the arguments are used and the minimum openstacksdk version for that argument is not met. [a] eaf238b [b] openstack/openstacksdk@8eb788a Backport-of: https://review.opendev.org/708119 Fixes: #62062
bug_resolved |
SUMMARY
The module os_network throws an unexpected keyword error
ISSUE TYPE
COMPONENT NAME
os_network
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
ArchLinux and ansible from source
STEPS TO REPRODUCE
EXPECTED RESULTS
Network ext_network is created
ACTUAL RESULTS
Can be fixed by:
my openstacksdk version is 0.35 and I've installed it using pacman
python-openstacksdk
.The text was updated successfully, but these errors were encountered: