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

Module for running templates and workflows on vDirect #31243

Merged
merged 1 commit into from
Nov 8, 2017

Conversation

evgenyfedoruk
Copy link
Contributor

@evgenyfedoruk evgenyfedoruk commented Oct 3, 2017

Modure for running configuration templates and workflows on Radware vDirect server

SUMMARY

This is a second module for Radware vDirect server. This module allows to run
configuration templates, create workflows and run actions of existing workflows in vDirect server

COMPONENT NAME

vdirect_runnable

ANSIBLE VERSION

2.3.2.0


ADDITIONAL INFORMATION

@ansibot ansibot added affects_2.5 This issue/PR affects Ansible v2.5 community_review In order to be merged, this PR must follow the community review workflow. module This issue/PR relates to a module. needs_triage Needs a first human triage before being processed. networking Network category new_module This PR includes a new module. support:community This issue/PR relates to code supported by the Ansible community. labels Oct 3, 2017
@ansibot
Copy link
Contributor

ansibot commented Oct 3, 2017

The test ansible-test sanity --test ansible-doc --python 2.6 [?] failed with the following error:

Command "ansible-doc vdirect_runnable" returned exit status 1.
>>> Standard Error
ERROR! module vdirect_runnable missing documentation (or could not parse documentation): expected string or buffer

The test ansible-test sanity --test ansible-doc --python 2.7 [?] failed with the following error:

Command "ansible-doc vdirect_runnable" returned exit status 1.
>>> Standard Error
ERROR! module vdirect_runnable missing documentation (or could not parse documentation): expected string or buffer

The test ansible-test sanity --test ansible-doc --python 3.5 [?] failed with the following error:

Command "ansible-doc vdirect_runnable" returned exit status 1.
>>> Standard Error
ERROR! module vdirect_runnable missing documentation (or could not parse documentation): expected string or bytes-like object

The test ansible-test sanity --test ansible-doc --python 3.6 [?] failed with the following error:

Command "ansible-doc vdirect_runnable" returned exit status 1.
>>> Standard Error
ERROR! module vdirect_runnable missing documentation (or could not parse documentation): expected string or bytes-like object

The test ansible-test sanity --test pylint [?] failed with the following errors:

test/units/modules/network/radware/test_vdirect_runnable.py:116:16: redundant-unittest-assert Redundant use of assertFalse with constant value 'KeyError was not thrown for missing parameter'
test/units/modules/network/radware/test_vdirect_runnable.py:140:16: redundant-unittest-assert Redundant use of assertFalse with constant value 'MissingRunnableException was not thrown for missing runnable name'
test/units/modules/network/radware/test_vdirect_runnable.py:176:16: redundant-unittest-assert Redundant use of assertFalse with constant value 'WrongActionNameException was not thrown for wrong action name'
test/units/modules/network/radware/test_vdirect_runnable.py:201:16: redundant-unittest-assert Redundant use of assertFalse with constant value 'MissingActionParametersException was not thrown for missing parameters'
test/units/modules/network/radware/test_vdirect_runnable.py:210:16: redundant-unittest-assert Redundant use of assertFalse with constant value 'MissingActionParametersException was not thrown for missing parameters'
test/units/modules/network/radware/test_vdirect_runnable.py:269:16: redundant-unittest-assert Redundant use of assertFalse with constant value 'RunnableException was not thrown for failed run.'
test/units/modules/network/radware/test_vdirect_runnable.py:279:16: redundant-unittest-assert Redundant use of assertFalse with constant value 'RunnableException was not thrown for failed run.'

The test ansible-test sanity --test validate-modules [?] failed with the following error:

lib/ansible/modules/network/radware/vdirect_runnable.py:0:0: E305 DOCUMENTATION.options.parameters.description.2: expected str @ data['options']['parameters']['description'][2]. Got {'For example': "... parameters={'adc':[{'type':'Container','name':'VX-73'}]}"}

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 community_review In order to be merged, this PR must follow the community review workflow. labels Oct 3, 2017
@mattclay
Copy link
Member

mattclay commented Oct 3, 2017

CI failure in unit tests (in addition to already noted sanity test failures):

>       return 'Reason: {}. Details:{}.'.format(self.reason, self.details)
E       ValueError: zero length field name in format

lib/ansible/modules/network/radware/vdirect_runnable.py:204: ValueError

@mattclay mattclay added the ci_verified Changes made in this PR are causing tests to fail. label Oct 3, 2017
@ryansb ryansb removed the needs_triage Needs a first human triage before being processed. label Oct 3, 2017
@ansibot ansibot removed the ci_verified Changes made in this PR are causing tests to fail. label Oct 4, 2017
@ansibot
Copy link
Contributor

ansibot commented Oct 4, 2017

@evgenyfedoruk

As a maintainer of a module in the same namespace this new module has been submitted to, your vote counts for shipits. Please review this module and add shipit if you would like to see it merged.

click here for bot help

@ansibot ansibot added community_review In order to be merged, this PR must follow the community review workflow. and removed needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. labels Oct 4, 2017
@gundalow
Copy link
Contributor

gundalow commented Oct 4, 2017

I wonder if this should go into lib/ansible/modules/cloud/vmware/?
@jctanner

@gundalow gundalow added the vmware VMware community label Oct 4, 2017
@gundalow
Copy link
Contributor

gundalow commented Oct 4, 2017

Hi,
Please ignore the above it does belong in lib/ansible/modules/network

@gundalow gundalow removed the vmware VMware community label Oct 4, 2017
@evgenyfedoruk
Copy link
Contributor Author

shipit

@gundalow
Copy link
Contributor

Hi,
Why are you prefixing most of the module option names with vdirect_?
needs_info.

options:
vdirect_ip:
description:
- Primary vDirect server IP address, may be set as VDIRECT_IP environment variable.
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks,
will fix it on next commit.

I prefix all parameters with "vdirect_" to keep it similar to environment variables that may be used instead of specifying the parameter. vdirect is the back-end system the module communicates with for all operations.

@ansibot ansibot added needs_info This issue requires further information. Please answer any outstanding questions. stale_ci This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested. and removed community_review In order to be merged, this PR must follow the community review workflow. labels Oct 11, 2017
@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 Oct 15, 2017
@ansibot ansibot added the test This PR relates to tests. label Oct 18, 2017
@gundalow gundalow self-assigned this Oct 18, 2017
@gundalow gundalow added this to the 2.5.0 milestone Oct 18, 2017
@evgenyfedoruk
Copy link
Contributor Author

This module is a WIP for now. This will be modified. Please do not review yet

@ansibot
Copy link
Contributor

ansibot commented Oct 22, 2017

The test ansible-test sanity --test pep8 [?] failed with the following error:

lib/ansible/modules/network/radware/vdirect_runnable.py:279:40: W503 line break before binary operator

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 community_review In order to be merged, this PR must follow the community review workflow. labels Oct 22, 2017
@gundalow gundalow changed the title Module for running templates and workflows on vDirect [WIP] Module for running templates and workflows on vDirect Oct 23, 2017
@gundalow
Copy link
Contributor

Updated title to say it's [WIP], please update this when you are ready for review.

If you need assistance in the meantime feel free to join in #ansible-network on Freenode IRC.

@ansibot ansibot added the WIP This issue/PR is a work in progress. Nevertheless it was shared for getting input from peers. label Oct 23, 2017
@ansibot ansibot removed the ci_verified Changes made in this PR are causing tests to fail. label Oct 24, 2017
@evgenyfedoruk evgenyfedoruk changed the title [WIP] Module for running templates and workflows on vDirect Module for running templates and workflows on vDirect Oct 24, 2017
@evgenyfedoruk
Copy link
Contributor Author

WIP removed. Ready for review

@ansibot ansibot added community_review In order to be merged, this PR must follow the community review workflow. and removed WIP This issue/PR is a work in progress. Nevertheless it was shared for getting input from peers. needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. labels Oct 24, 2017
Modure for running configuration templates and workflows on Radware vDirect server
@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 Nov 1, 2017
@gundalow
Copy link
Contributor

gundalow commented Nov 8, 2017

Merged into devel will be released in 2.5.0

@gundalow gundalow merged commit 59b4932 into ansible:devel Nov 8, 2017
@ansible ansible locked and limited conversation to collaborators Apr 26, 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 community_review In order to be merged, this PR must follow the community review workflow. module This issue/PR relates to a module. networking Network category new_module This PR includes a new module. 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. test This PR relates to tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants