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

Azure rm routetable #34710

Closed
wants to merge 7 commits into from
Closed

Conversation

tomvachon
Copy link

SUMMARY

Azure Route Table Module

Module does not exist at this time and is needed

ISSUE TYPE
  • New Module Pull Request
COMPONENT NAME

azure_rm_routetable

ANSIBLE VERSION
ansible 2.3.1.0
  config file =
  configured module search path = Default w/o overrides
  python version = 2.7.14 (default, Jan  6 2018, 12:16:16) [GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.39.2)]
ADDITIONAL INFORMATION

The Ansible Azure modules have incredible difficulty running on 2.4 or higher (even most issues on 2.3 are around libraries). They do need a complete re-look for those reason and this is why I developed on 2.3 (but it shouldn't be 2.3 specific code)

@ansibot
Copy link
Contributor

ansibot commented Jan 10, 2018

@ansibot ansibot added affects_2.5 This issue/PR affects Ansible v2.5 azure cloud core_review In order to be merged, this PR must follow the core review workflow. docs_pull_request module This issue/PR relates to a module. needs_triage Needs a first human triage before being processed. new_module This PR includes a new module. new_plugin This PR includes a new plugin. support:community This issue/PR relates to code supported by the Ansible community. support:core This issue/PR relates to code supported by the Ansible Engineering Team. labels Jan 10, 2018
DOCUMENTATION = '''
---
module: azure_rm_routetable
version_added: ""
Copy link
Member

Choose a reason for hiding this comment

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

This should be: version_added: "2.5"

Copy link
Author

@tomvachon tomvachon Jan 11, 2018

Choose a reason for hiding this comment

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

Matt, I would but the entire Azure setup doesnt run on 2.5 (the CI tests seem to though, so maybe its good enough?). Its complaining about the azure python module. If you have a 2.5 requirements.txt which you know works, I'd be happy to update and test. I was making integration tests now.

@ansibot
Copy link
Contributor

ansibot commented Jan 10, 2018

click here for bot help

@ansibot ansibot added needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. and removed core_review In order to be merged, this PR must follow the core review workflow. needs_triage Needs a first human triage before being processed. labels Jan 10, 2018
@mattclay mattclay added the ci_verified Changes made in this PR are causing tests to fail. label Jan 10, 2018
@ansibot ansibot added test This PR relates to tests. and removed ci_verified Changes made in this PR are causing tests to fail. labels Jan 11, 2018
@tomvachon
Copy link
Author

This is going to fail Shippable because its out of VM quota. Nothing to do with my change...

"msg": "Error creating or updating virtual machine testvm002 - Azure Error: OperationNotAllowed\nMessage: Operation results in exceeding quota limits of Core. Maximum allowed: 10, Current in use: 10, Additional requested: 1. Please read more about quota increase at http://aka.ms/corequotaincrease."

@@ -0,0 +1,459 @@
.. _azure_rm_routetable:
Copy link
Member

Choose a reason for hiding this comment

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

This file shouldn't be part of the PR. It is generated when we build our docs.

Copy link
Author

Choose a reason for hiding this comment

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

Removed with newest commit

@ansibot ansibot added core_review In order to be merged, this PR must follow the core review workflow. and removed needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. labels Jan 11, 2018
@ansibot
Copy link
Contributor

ansibot commented Jan 19, 2018

@ansibot ansibot added the stale_ci This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested. label Jan 19, 2018
@ansibot ansibot added the new_contributor This PR is the first contribution by a new community member. label Jan 27, 2018
@tomvachon
Copy link
Author

Can someone please look at this for 2.5 inclusion?

@@ -75,6 +75,8 @@
CIDR_PATTERN = re.compile(r"(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1"
r"[0-9]{2}|2[0-4][0-9]|25[0-5])(/([0-9]|[1-2][0-9]|3[0-2]))")

NEXT_HOP_TYPE = ['VirtualNetworkGateway', 'VnetLocal', 'Internet', 'VirtualAppliance']
Copy link
Contributor

Choose a reason for hiding this comment

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

@tomvachon you could move this change to azure_rm_routetable module.
if you don't make changes in common code CI is much faster and simpler, as only your module is tested, and you will also avoid any conflicts with other prs

@zikalino
Copy link
Contributor

zikalino commented Feb 9, 2018

@tomvachon i will review this module soon, but i can't merge it myself.
also i think right now it will be too late to merge it into 2.5.
in a meanwhile would you be interested in including it in Azure Preview Modules here: https://galaxy.ansible.com/Azure/azure_preview_modules/ ?

@Fred-sun
Copy link
Contributor

@tomvachon Do you agree with @zikalino? Could you please help update the PR? Thanks!

@tomvachon
Copy link
Author

@Fred-sun done, sorry i didnt see that comment

@ansibot ansibot removed the stale_ci This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested. label Aug 10, 2018
@ansibot
Copy link
Contributor

ansibot commented Aug 10, 2018

The test ansible-test sanity --test integration-aliases [explain] failed with 1 error:

test/integration/targets/azure_rm_routetable/aliases:0:0: missing alias `shippable/azure/group[1-4]` or `unsupported`

The test ansible-test sanity --test pep8 [explain] failed with 1 error:

lib/ansible/modules/cloud/azure/azure_rm_routetable.py:348:1: E305 expected 2 blank lines after class or function definition, found 1

The test ansible-test sanity --test validate-modules [explain] failed with 4 errors:

lib/ansible/modules/cloud/azure/azure_rm_routetable.py:0:0: E307 version_added should be 2.7. Currently 2.5
lib/ansible/modules/cloud/azure/azure_rm_routetable.py:0:0: E322 "purge" is listed in the argument_spec, but not documented in the module
lib/ansible/modules/cloud/azure/azure_rm_routetable.py:0:0: E324 Value for "default" from the argument_spec (None) for "location" does not match the documentation ('resource_group location')
lib/ansible/modules/cloud/azure/azure_rm_routetable.py:0:0: E325 argument_spec for "purge_routes" defines type="bool" but documentation does not

click here for bot help

@ansibot ansibot added ci_verified Changes made in this PR are causing tests to fail. needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. and removed core_review In order to be merged, this PR must follow the core review workflow. labels Aug 10, 2018
@Fred-sun
Copy link
Contributor

@zikalino @mattclay Could you help review this PR? Thanks!

3 similar comments
@Fred-sun
Copy link
Contributor

@zikalino @mattclay Could you help review this PR? Thanks!

@Fred-sun
Copy link
Contributor

@zikalino @mattclay Could you help review this PR? Thanks!

@Fred-sun
Copy link
Contributor

@zikalino @mattclay Could you help review this PR? Thanks!

@ansibot ansibot added the stale_ci This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested. label Aug 21, 2018
@Fred-sun
Copy link
Contributor

@tomvachon Thanks for the contribution, Could you help to resolve the conflicting? Thanks!

@ansibot ansibot added needs_rebase https://docs.ansible.com/ansible/devel/dev_guide/developing_rebasing.html and removed new_module This PR includes a new module. labels Aug 24, 2018
@yuwzho
Copy link
Contributor

yuwzho commented Aug 24, 2018

duplicate_of #41175

@ansibot ansibot closed this Aug 24, 2018
@ansible ansible locked and limited conversation to collaborators Jul 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.5 This issue/PR affects Ansible v2.5 azure ci_verified Changes made in this PR are causing tests to fail. cloud docs This issue/PR relates to or includes documentation. module This issue/PR relates to a module. needs_rebase https://docs.ansible.com/ansible/devel/dev_guide/developing_rebasing.html needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. new_contributor This PR is the first contribution by a new community member. new_plugin This PR includes a new plugin. stale_ci This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested. support:community This issue/PR relates to code supported by the Ansible community. support:core This issue/PR relates to code supported by the Ansible Engineering Team. test This PR relates to tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants