-
Notifications
You must be signed in to change notification settings - Fork 342
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
elb_classic_lb - failed to create https listener #686
Comments
Files identified in the description:
If these files are inaccurate, please update the |
ansibullbot
added
bug
This issue/PR relates to a bug
module
module
needs_triage
plugins
plugin (any type)
python3
traceback
labels
Feb 18, 2022
@anjo-swe Thank you for raising this. Would you be willing to open a pull request with your patch and add an integration test for it (if it's not already covered)? In addition, you also should add a changelog fragment. |
softwarefactory-project-zuul bot
pushed a commit
that referenced
this issue
Jun 3, 2022
…lude SSLCertificateId (#860) [WIP] elb_classic_lb: fix return value _format_listener method to include SSLCertificateId SUMMARY Fixes #686. Current return value of _format_listener method does not include SSLCertificateId even if it is provided in the playbook, causing the failure as reported in above mentioned issue. Sample return value: {'InstancePort': 8080, 'InstanceProtocol': 'HTTP', 'LoadBalancerPort': 443, 'Protocol': 'HTTPS'} This can be fixed by modifying the return value of _format_listener method to formatted_listener, which includes SSLCertificateId if provided in the playbook. Sample return Value: {'InstancePort': 8080, 'InstanceProtocol': 'HTTP', 'LoadBalancerPort': 443, 'Protocol': 'HTTPS', 'SSLCertificateId': 'arn:aws:acm:us-east-1:1234...'} ISSUE TYPE Bugfix Pull Request COMPONENT NAME elb_classic_lb Reviewed-by: Mark Chappell <None>
abikouo
pushed a commit
to abikouo/amazon.aws
that referenced
this issue
Sep 18, 2023
…s3_bucket_info aws_s3_bucket_info - Add a check for botocore>='1.18.11' when pulling bucket_ownership_controls SUMMARY Fetching bucket_ownership_controls requires botocore>='1.18.11' add a check and update the tests to explicitly require this version of botocore when testing accessing bucket_ownership_controls ISSUE TYPE Bugfix Pull Request COMPONENT NAME aws_s3_bucket_info ADDITIONAL INFORMATION Depends-On: ansible-collections#686 Reviewed-by: Alina Buzachis <None> Reviewed-by: None <None>
abikouo
pushed a commit
to abikouo/amazon.aws
that referenced
this issue
Sep 18, 2023
…letion_idempotency aws_secret - fix deletion idempotency when not using instant deletion SUMMARY If you try to delete a secret that's already pending deletion the aws_secret threw an exception because result hadn't been defined. Also enables basic tests for aws_secret. note: "something" is broken with the rotation tests, so these are skipped for now. Better that we have partial test coverage than none. ISSUE TYPE Bugfix Pull Request COMPONENT NAME aws_secret ADDITIONAL INFORMATION An exception occurred during task execution. To see the full traceback, use -vvv. The error was: UnboundLocalError: local variable 'result' referenced before assignment fatal: [testhost]: FAILED! => {"changed": false, "module_stderr": "Traceback (most recent call last):\n File \"/root/.ansible/tmp/ansible-tmp-1628676235.3853-364-73867477372190/AnsiballZ_aws_secret.py\", line 114, in <module>\n _ansiballz_main()\n File \"/root/.ansible/tmp/ansible-tmp-1628676235.3853-364-73867477372190/AnsiballZ_aws_secret.py\", line 106, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File \"/root/.ansible/tmp/ansible-tmp-1628676235.3853-364-73867477372190/AnsiballZ_aws_secret.py\", line 54, in invoke_module\n runpy.run_module(mod_name='ansible_collections.community.aws.plugins.modules.aws_secret', init_globals=dict(_module_fqn='ansible_collections.community.aws.plugins.modules.aws_secret', _modlib_path=modlib_path),\n File \"/usr/lib/python3.9/runpy.py\", line 210, in run_module\n return _run_module_code(code, init_globals, run_name, mod_spec)\n File \"/usr/lib/python3.9/runpy.py\", line 97, in _run_module_code\n _run_code(code, mod_globals, init_globals,\n File \"/usr/lib/python3.9/runpy.py\", line 87, in _run_code\n exec(code, run_globals)\n File \"/tmp/ansible_aws_secret_payload_6xlyxr1u/ansible_aws_secret_payload.zip/ansible_collections/community/aws/plugins/modules/aws_secret.py\", line 401, in <module>\n File \"/tmp/ansible_aws_secret_payload_6xlyxr1u/ansible_aws_secret_payload.zip/ansible_collections/community/aws/plugins/modules/aws_secret.py\", line 397, in main\nUnboundLocalError: local variable 'result' referenced before assignment\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error Depends-On: ansible-collections#686 Reviewed-by: Alina Buzachis <None> Reviewed-by: None <None>
abikouo
pushed a commit
to abikouo/amazon.aws
that referenced
this issue
Oct 24, 2023
Fixup / ignore new pylint 2.9.3 issues SUMMARY The devel containers have been updated to include a new version of pylint ( ansible-collections/overview#45 (comment) ) fixup arguments-renamed fixup unused-import ignore pylint:use-a-generator (Should be an easy fix but not worth blocking gating) ISSUE TYPE Bugfix Pull Request COMPONENT NAME plugins/modules/ec2_vpc_vgw.py plugins/modules/ec2_vpc_vpn.py plugins/modules/ecs_task.py tests/sanity/ignore-2.10.txt tests/sanity/ignore-2.11.txt tests/sanity/ignore-2.12.txt tests/unit/mock/loader.py ADDITIONAL INFORMATION Reviewed-by: Felix Fontein <None> Reviewed-by: None <None>
abikouo
pushed a commit
to abikouo/amazon.aws
that referenced
this issue
Oct 24, 2023
…s3_bucket_info aws_s3_bucket_info - Add a check for botocore>='1.18.11' when pulling bucket_ownership_controls SUMMARY Fetching bucket_ownership_controls requires botocore>='1.18.11' add a check and update the tests to explicitly require this version of botocore when testing accessing bucket_ownership_controls ISSUE TYPE Bugfix Pull Request COMPONENT NAME aws_s3_bucket_info ADDITIONAL INFORMATION Depends-On: ansible-collections#686 Reviewed-by: Alina Buzachis <None> Reviewed-by: None <None>
abikouo
pushed a commit
to abikouo/amazon.aws
that referenced
this issue
Oct 24, 2023
…letion_idempotency aws_secret - fix deletion idempotency when not using instant deletion SUMMARY If you try to delete a secret that's already pending deletion the aws_secret threw an exception because result hadn't been defined. Also enables basic tests for aws_secret. note: "something" is broken with the rotation tests, so these are skipped for now. Better that we have partial test coverage than none. ISSUE TYPE Bugfix Pull Request COMPONENT NAME aws_secret ADDITIONAL INFORMATION An exception occurred during task execution. To see the full traceback, use -vvv. The error was: UnboundLocalError: local variable 'result' referenced before assignment fatal: [testhost]: FAILED! => {"changed": false, "module_stderr": "Traceback (most recent call last):\n File \"/root/.ansible/tmp/ansible-tmp-1628676235.3853-364-73867477372190/AnsiballZ_aws_secret.py\", line 114, in <module>\n _ansiballz_main()\n File \"/root/.ansible/tmp/ansible-tmp-1628676235.3853-364-73867477372190/AnsiballZ_aws_secret.py\", line 106, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File \"/root/.ansible/tmp/ansible-tmp-1628676235.3853-364-73867477372190/AnsiballZ_aws_secret.py\", line 54, in invoke_module\n runpy.run_module(mod_name='ansible_collections.community.aws.plugins.modules.aws_secret', init_globals=dict(_module_fqn='ansible_collections.community.aws.plugins.modules.aws_secret', _modlib_path=modlib_path),\n File \"/usr/lib/python3.9/runpy.py\", line 210, in run_module\n return _run_module_code(code, init_globals, run_name, mod_spec)\n File \"/usr/lib/python3.9/runpy.py\", line 97, in _run_module_code\n _run_code(code, mod_globals, init_globals,\n File \"/usr/lib/python3.9/runpy.py\", line 87, in _run_code\n exec(code, run_globals)\n File \"/tmp/ansible_aws_secret_payload_6xlyxr1u/ansible_aws_secret_payload.zip/ansible_collections/community/aws/plugins/modules/aws_secret.py\", line 401, in <module>\n File \"/tmp/ansible_aws_secret_payload_6xlyxr1u/ansible_aws_secret_payload.zip/ansible_collections/community/aws/plugins/modules/aws_secret.py\", line 397, in main\nUnboundLocalError: local variable 'result' referenced before assignment\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error Depends-On: ansible-collections#686 Reviewed-by: Alina Buzachis <None> Reviewed-by: None <None>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Summary
When i try to create a classic ELB it fails to add a HTTPS listener even if i provide
ssl_certificate_id
Locally i fixed the issue by updating https://github.com/ansible-collections/amazon.aws/blob/main/plugins/modules/elb_classic_lb.py#L903
return snake_dict_to_camel_dict(listener, True)
return formatted_listener
(already converted & hasSSLCertificateId
)Issue Type
Bug Report
Component Name
elb_classic_lb
Ansible Version
Collection Versions
AWS SDK versions
Configuration
OS / Environment
macOS 11.6
Steps to Reproduce
Expected Results
Classic ELB named dev-service-name with a HTTPS listener
Actual Results
Code of Conduct
The text was updated successfully, but these errors were encountered: