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

New module: Add AWS Batch automation support (cloud/amazon/batch_compute_environment) #24402

Closed
wants to merge 13 commits into from

Conversation

jonmer85
Copy link
Contributor

@jonmer85 jonmer85 commented May 9, 2017

SUMMARY

This adds automation support for the following AWS Batch features - Compute Environments, Job Definitions, and Job Queues

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

amazon module

ANSIBLE VERSION

ansible 2.2.2.0
config file =
configured module search path = Default w/o overrides

@ansibot ansibot added affects_2.4 This issue/PR affects Ansible v2.4 aws cloud feature_pull_request module This issue/PR relates to a module. needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. needs_triage Needs a first human triage before being processed. new_module This PR includes a new module. labels May 9, 2017
Copy link
Contributor

@s-hertel s-hertel left a comment

Choose a reason for hiding this comment

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

Your code is so tidy. :-) I'll try to run it later this week and review it.

#
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.

Copy link
Contributor

@s-hertel s-hertel May 9, 2017

Choose a reason for hiding this comment

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

Just a docs review so you pass shippable till I can check out and your changes and look at it in-depth.... Applies to the other two files too.

Up here you'll want the metadata:

ANSIBLE_METADATA = {'metadata_version': '1.0',
                    'status': ['preview'],
                    'supported_by': 'community'}

from botocore.exceptions import ClientError, ParamValidationError, MissingParametersError
HAS_BOTO3 = True
except ImportError:
HAS_BOTO3 = False
Copy link
Contributor

Choose a reason for hiding this comment

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

Everything from line 17 (import json) to this line will need to be below the RETURN section.

It is idempotent and supports "Check" mode. Use module M(batch_compute_environment) to manage the compute
environment, M(batch_job_queue) to manage job queues, M(batch_job_definition) to manage job definitions.

version_added: "2.4?"
Copy link
Contributor

Choose a reason for hiding this comment

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

You can remove the ? - 2.4 is likely, and if not that can be updated :)

description:
- The desired number of EC2 vCPUS in the compute environment.

instance_types:
Copy link
Contributor

Choose a reason for hiding this comment

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

You may want to specify 'type: str/list/bool/dict' for some of these.

description:
- The Amazon Machine Image (AMI) ID used for instances launched in the compute environment.

subnets:
Copy link
Contributor

Choose a reason for hiding this comment

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

type: list ?

- The VPC subnets into which the compute resources are launched.
required: true

security_group_ids:
Copy link
Contributor

Choose a reason for hiding this comment

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

type: list ?

- The Amazon ECS instance role applied to Amazon EC2 instances in a compute environment.
required: true

tags:
Copy link
Contributor

Choose a reason for hiding this comment

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

type: dict ?

@ansibot
Copy link
Contributor

ansibot commented May 9, 2017

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

Command "ansible-doc batch_compute_environment batch_job_definition batch_job_queue" returned exit status 1.
>>> Standard Error
[ERROR]: unable to parse /root/src/github.com/ansible/ansible/lib/ansible/modu
les/cloud/amazon/batch_compute_environment.py
ERROR! module batch_compute_environment missing documentation (or could not parse documentation): Parsing produced an empty object.

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

Command "ansible-doc batch_compute_environment batch_job_definition batch_job_queue" returned exit status 1.
>>> Standard Error
[ERROR]: unable to parse /root/src/github.com/ansible/ansible/lib/ansible/modu
les/cloud/amazon/batch_compute_environment.py
ERROR! module batch_compute_environment missing documentation (or could not parse documentation): Parsing produced an empty object.

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

Command "ansible-doc batch_compute_environment batch_job_definition batch_job_queue" returned exit status 1.
>>> Standard Error
[ERROR]: unable to parse /root/src/github.com/ansible/ansible/lib/ansible/modu
les/cloud/amazon/batch_compute_environment.py
ERROR! module batch_compute_environment missing documentation (or could not parse documentation): Parsing produced an empty object.

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

Command "ansible-doc batch_compute_environment batch_job_definition batch_job_queue" returned exit status 1.
>>> Standard Error
[ERROR]: unable to parse /root/src/github.com/ansible/ansible/lib/ansible/modu
les/cloud/amazon/batch_compute_environment.py
ERROR! module batch_compute_environment missing documentation (or could not parse documentation): Parsing produced an empty object.

The test ansible-test sanity --test pep8 failed with the following errors:

lib/ansible/modules/cloud/amazon/batch_compute_environment.py:19:1: E303 too many blank lines (3)
lib/ansible/modules/cloud/amazon/batch_compute_environment.py:260:1: E303 too many blank lines (3)
lib/ansible/modules/cloud/amazon/batch_compute_environment.py:292:161: E501 line too long (165 > 160 characters)
lib/ansible/modules/cloud/amazon/batch_compute_environment.py:302:1: E303 too many blank lines (3)
lib/ansible/modules/cloud/amazon/batch_compute_environment.py:308:1: E302 expected 2 blank lines, found 3
lib/ansible/modules/cloud/amazon/batch_compute_environment.py:310:21: E225 missing whitespace around operator
lib/ansible/modules/cloud/amazon/batch_compute_environment.py:332:5: E122 continuation line missing indentation or outdented
lib/ansible/modules/cloud/amazon/batch_compute_environment.py:374:19: E201 whitespace after '{'
lib/ansible/modules/cloud/amazon/batch_compute_environment.py:374:40: E203 whitespace before ':'
lib/ansible/modules/cloud/amazon/batch_compute_environment.py:402:73: E231 missing whitespace after ','
lib/ansible/modules/cloud/amazon/batch_job_definition.py:264:1: E303 too many blank lines (3)
lib/ansible/modules/cloud/amazon/batch_job_definition.py:294:1: E303 too many blank lines (3)
lib/ansible/modules/cloud/amazon/batch_job_definition.py:300:1: E302 expected 2 blank lines, found 3
lib/ansible/modules/cloud/amazon/batch_job_definition.py:302:21: E225 missing whitespace around operator
lib/ansible/modules/cloud/amazon/batch_job_definition.py:378:19: E201 whitespace after '{'
lib/ansible/modules/cloud/amazon/batch_job_definition.py:378:35: E203 whitespace before ':'
lib/ansible/modules/cloud/amazon/batch_job_definition.py:388:1: E302 expected 2 blank lines, found 1
lib/ansible/modules/cloud/amazon/batch_job_definition.py:421:63: E231 missing whitespace after ','
lib/ansible/modules/cloud/amazon/batch_job_queue.py:132:1: E303 too many blank lines (3)
lib/ansible/modules/cloud/amazon/batch_job_queue.py:185:1: E303 too many blank lines (3)
lib/ansible/modules/cloud/amazon/batch_job_queue.py:215:1: E303 too many blank lines (3)
lib/ansible/modules/cloud/amazon/batch_job_queue.py:221:1: E302 expected 2 blank lines, found 3
lib/ansible/modules/cloud/amazon/batch_job_queue.py:223:21: E225 missing whitespace around operator
lib/ansible/modules/cloud/amazon/batch_job_queue.py:282:19: E201 whitespace after '{'
lib/ansible/modules/cloud/amazon/batch_job_queue.py:282:31: E203 whitespace before ':'
lib/ansible/modules/cloud/amazon/batch_job_queue.py:306:53: E231 missing whitespace after ','
lib/ansible/modules/cloud/amazon/batch_job_queue.py:403:11: W292 no newline at end of file

The test ansible-test sanity --test validate-modules failed with the following errors:

lib/ansible/modules/cloud/amazon/batch_compute_environment.py:0:0: E204 boto import found, new modules should use boto3
lib/ansible/modules/cloud/amazon/batch_compute_environment.py:26:11: E302 DOCUMENTATION is not valid YAML
lib/ansible/modules/cloud/amazon/batch_compute_environment.py:144:12: E311 EXAMPLES is not valid YAML
lib/ansible/modules/cloud/amazon/batch_compute_environment.py:181:37: E313 RETURN is not valid YAML
lib/ansible/modules/cloud/amazon/batch_compute_environment.py:512:0: E107 Imports should be directly below DOCUMENTATION/EXAMPLES/RETURN/ANSIBLE_METADATA.
lib/ansible/modules/cloud/amazon/batch_compute_environment.py:512:0: E208 module_utils imports should import specific components, not "*"
lib/ansible/modules/cloud/amazon/batch_compute_environment.py:513:0: E107 Imports should be directly below DOCUMENTATION/EXAMPLES/RETURN/ANSIBLE_METADATA.
lib/ansible/modules/cloud/amazon/batch_compute_environment.py:513:0: E208 module_utils imports should import specific components, not "*"
lib/ansible/modules/cloud/amazon/batch_job_definition.py:0:0: E204 boto import found, new modules should use boto3
lib/ansible/modules/cloud/amazon/batch_job_definition.py:25:11: E302 DOCUMENTATION is not valid YAML
lib/ansible/modules/cloud/amazon/batch_job_definition.py:150:12: E311 EXAMPLES is not valid YAML
lib/ansible/modules/cloud/amazon/batch_job_definition.py:181:32: E313 RETURN is not valid YAML
lib/ansible/modules/cloud/amazon/batch_job_definition.py:504:0: E107 Imports should be directly below DOCUMENTATION/EXAMPLES/RETURN/ANSIBLE_METADATA.
lib/ansible/modules/cloud/amazon/batch_job_definition.py:504:0: E208 module_utils imports should import specific components, not "*"
lib/ansible/modules/cloud/amazon/batch_job_definition.py:505:0: E107 Imports should be directly below DOCUMENTATION/EXAMPLES/RETURN/ANSIBLE_METADATA.
lib/ansible/modules/cloud/amazon/batch_job_definition.py:505:0: E208 module_utils imports should import specific components, not "*"
lib/ansible/modules/cloud/amazon/batch_job_queue.py:0:0: E204 boto import found, new modules should use boto3
lib/ansible/modules/cloud/amazon/batch_job_queue.py:25:11: E302 DOCUMENTATION is not valid YAML
lib/ansible/modules/cloud/amazon/batch_job_queue.py:80:12: E311 EXAMPLES is not valid YAML
lib/ansible/modules/cloud/amazon/batch_job_queue.py:105:27: E313 RETURN is not valid YAML
lib/ansible/modules/cloud/amazon/batch_job_queue.py:399:0: E107 Imports should be directly below DOCUMENTATION/EXAMPLES/RETURN/ANSIBLE_METADATA.
lib/ansible/modules/cloud/amazon/batch_job_queue.py:399:0: E208 module_utils imports should import specific components, not "*"
lib/ansible/modules/cloud/amazon/batch_job_queue.py:400:0: E107 Imports should be directly below DOCUMENTATION/EXAMPLES/RETURN/ANSIBLE_METADATA.
lib/ansible/modules/cloud/amazon/batch_job_queue.py:400:0: E208 module_utils imports should import specific components, not "*"

click here for bot help

@jonmer85
Copy link
Contributor Author

jonmer85 commented May 9, 2017

@s-hertel I can take care of the PEP8 errors and try to reproduce these errors locally but I'm not sure why I have the documentation errors with the command ansible-test sanity --test ansible-doc --python 2.6

@ansibot
Copy link
Contributor

ansibot commented May 10, 2017

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

Command "ansible-doc batch_compute_environment batch_job_definition batch_job_queue" returned exit status 1.
>>> Standard Error
[ERROR]: unable to parse /root/src/github.com/ansible/ansible/lib/ansible/modu
les/cloud/amazon/batch_job_definition.py
ERROR! module batch_job_definition missing documentation (or could not parse documentation): Parsing produced an empty object.

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

Command "ansible-doc batch_compute_environment batch_job_definition batch_job_queue" returned exit status 1.
>>> Standard Error
[ERROR]: unable to parse /root/src/github.com/ansible/ansible/lib/ansible/modu
les/cloud/amazon/batch_job_definition.py
ERROR! module batch_job_definition missing documentation (or could not parse documentation): Parsing produced an empty object.

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

Command "ansible-doc batch_compute_environment batch_job_definition batch_job_queue" returned exit status 1.
>>> Standard Error
[ERROR]: unable to parse /root/src/github.com/ansible/ansible/lib/ansible/modu
les/cloud/amazon/batch_job_definition.py
ERROR! module batch_job_definition missing documentation (or could not parse documentation): Parsing produced an empty object.

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

Command "ansible-doc batch_compute_environment batch_job_definition batch_job_queue" returned exit status 1.
>>> Standard Error
[ERROR]: unable to parse /root/src/github.com/ansible/ansible/lib/ansible/modu
les/cloud/amazon/batch_job_definition.py
ERROR! module batch_job_definition missing documentation (or could not parse documentation): Parsing produced an empty object.

The test ansible-test sanity --test validate-modules failed with the following errors:

lib/ansible/modules/cloud/amazon/batch_compute_environment.py:0:0: E204 boto import found, new modules should use boto3
lib/ansible/modules/cloud/amazon/batch_compute_environment.py:0:0: E305 DOCUMENTATION.options.instance_types.type: not a valid value for dictionary value @ data['options']['instance_types']['type']. Got 'list'
lib/ansible/modules/cloud/amazon/batch_compute_environment.py:0:0: E305 DOCUMENTATION.options.security_group_ids.type: not a valid value for dictionary value @ data['options']['security_group_ids']['type']. Got 'list'
lib/ansible/modules/cloud/amazon/batch_compute_environment.py:0:0: E305 DOCUMENTATION.options.subnets.type: not a valid value for dictionary value @ data['options']['subnets']['type']. Got 'list'
lib/ansible/modules/cloud/amazon/batch_compute_environment.py:0:0: E305 DOCUMENTATION.options.tags.type: not a valid value for dictionary value @ data['options']['tags']['type']. Got 'dict'
lib/ansible/modules/cloud/amazon/batch_compute_environment.py:513:0: E107 Imports should be directly below DOCUMENTATION/EXAMPLES/RETURN/ANSIBLE_METADATA.
lib/ansible/modules/cloud/amazon/batch_compute_environment.py:513:0: E208 module_utils imports should import specific components, not "*"
lib/ansible/modules/cloud/amazon/batch_compute_environment.py:514:0: E107 Imports should be directly below DOCUMENTATION/EXAMPLES/RETURN/ANSIBLE_METADATA.
lib/ansible/modules/cloud/amazon/batch_compute_environment.py:514:0: E208 module_utils imports should import specific components, not "*"
lib/ansible/modules/cloud/amazon/batch_job_definition.py:0:0: E204 boto import found, new modules should use boto3
lib/ansible/modules/cloud/amazon/batch_job_definition.py:94:13: E302 DOCUMENTATION is not valid YAML
lib/ansible/modules/cloud/amazon/batch_job_definition.py:501:0: E107 Imports should be directly below DOCUMENTATION/EXAMPLES/RETURN/ANSIBLE_METADATA.
lib/ansible/modules/cloud/amazon/batch_job_definition.py:501:0: E208 module_utils imports should import specific components, not "*"
lib/ansible/modules/cloud/amazon/batch_job_definition.py:502:0: E107 Imports should be directly below DOCUMENTATION/EXAMPLES/RETURN/ANSIBLE_METADATA.
lib/ansible/modules/cloud/amazon/batch_job_definition.py:502:0: E208 module_utils imports should import specific components, not "*"
lib/ansible/modules/cloud/amazon/batch_job_queue.py:0:0: E204 boto import found, new modules should use boto3
lib/ansible/modules/cloud/amazon/batch_job_queue.py:0:0: E305 DOCUMENTATION.options.compute_environment_order.type: not a valid value for dictionary value @ data['options']['compute_environment_order']['type']. Got 'list'
lib/ansible/modules/cloud/amazon/batch_job_queue.py:394:0: E107 Imports should be directly below DOCUMENTATION/EXAMPLES/RETURN/ANSIBLE_METADATA.
lib/ansible/modules/cloud/amazon/batch_job_queue.py:394:0: E208 module_utils imports should import specific components, not "*"
lib/ansible/modules/cloud/amazon/batch_job_queue.py:395:0: E107 Imports should be directly below DOCUMENTATION/EXAMPLES/RETURN/ANSIBLE_METADATA.
lib/ansible/modules/cloud/amazon/batch_job_queue.py:395:0: E208 module_utils imports should import specific components, not "*"

click here for bot help

@s-hertel
Copy link
Contributor

@jonmer85 Sorry about the documentation issues. I'm not sure what's wrong at a cursory look. I'll check out your changes as soon as I can and try to figure out what's wrong.

@mattclay mattclay added the ci_verified Changes made in this PR are causing tests to fail. label May 10, 2017
@ansibot
Copy link
Contributor

ansibot commented May 10, 2017

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

Command "ansible-doc batch_compute_environment batch_job_definition batch_job_queue" returned exit status 1.
>>> Standard Error
[ERROR]: unable to parse /root/src/github.com/ansible/ansible/lib/ansible/modu
les/cloud/amazon/batch_job_definition.py
ERROR! module batch_job_definition missing documentation (or could not parse documentation): Parsing produced an empty object.

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

Command "ansible-doc batch_compute_environment batch_job_definition batch_job_queue" returned exit status 1.
>>> Standard Error
[ERROR]: unable to parse /root/src/github.com/ansible/ansible/lib/ansible/modu
les/cloud/amazon/batch_job_definition.py
ERROR! module batch_job_definition missing documentation (or could not parse documentation): Parsing produced an empty object.

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

Command "ansible-doc batch_compute_environment batch_job_definition batch_job_queue" returned exit status 1.
>>> Standard Error
[ERROR]: unable to parse /root/src/github.com/ansible/ansible/lib/ansible/modu
les/cloud/amazon/batch_job_definition.py
ERROR! module batch_job_definition missing documentation (or could not parse documentation): Parsing produced an empty object.

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

Command "ansible-doc batch_compute_environment batch_job_definition batch_job_queue" returned exit status 1.
>>> Standard Error
[ERROR]: unable to parse /root/src/github.com/ansible/ansible/lib/ansible/modu
les/cloud/amazon/batch_job_definition.py
ERROR! module batch_job_definition missing documentation (or could not parse documentation): Parsing produced an empty object.

The test ansible-test sanity --test validate-modules failed with the following errors:

lib/ansible/modules/cloud/amazon/batch_compute_environment.py:499:0: E107 Imports should be directly below DOCUMENTATION/EXAMPLES/RETURN/ANSIBLE_METADATA.
lib/ansible/modules/cloud/amazon/batch_compute_environment.py:499:0: E208 module_utils imports should import specific components, not "*"
lib/ansible/modules/cloud/amazon/batch_compute_environment.py:500:0: E107 Imports should be directly below DOCUMENTATION/EXAMPLES/RETURN/ANSIBLE_METADATA.
lib/ansible/modules/cloud/amazon/batch_compute_environment.py:500:0: E208 module_utils imports should import specific components, not "*"
lib/ansible/modules/cloud/amazon/batch_job_definition.py:92:13: E302 DOCUMENTATION is not valid YAML
lib/ansible/modules/cloud/amazon/batch_job_definition.py:489:0: E107 Imports should be directly below DOCUMENTATION/EXAMPLES/RETURN/ANSIBLE_METADATA.
lib/ansible/modules/cloud/amazon/batch_job_definition.py:489:0: E208 module_utils imports should import specific components, not "*"
lib/ansible/modules/cloud/amazon/batch_job_definition.py:490:0: E107 Imports should be directly below DOCUMENTATION/EXAMPLES/RETURN/ANSIBLE_METADATA.
lib/ansible/modules/cloud/amazon/batch_job_definition.py:490:0: E208 module_utils imports should import specific components, not "*"
lib/ansible/modules/cloud/amazon/batch_job_queue.py:386:0: E107 Imports should be directly below DOCUMENTATION/EXAMPLES/RETURN/ANSIBLE_METADATA.
lib/ansible/modules/cloud/amazon/batch_job_queue.py:386:0: E208 module_utils imports should import specific components, not "*"
lib/ansible/modules/cloud/amazon/batch_job_queue.py:387:0: E107 Imports should be directly below DOCUMENTATION/EXAMPLES/RETURN/ANSIBLE_METADATA.
lib/ansible/modules/cloud/amazon/batch_job_queue.py:387:0: E208 module_utils imports should import specific components, not "*"

click here for bot help

@ansibot ansibot removed the ci_verified Changes made in this PR are causing tests to fail. label May 10, 2017
@gundalow gundalow removed the needs_triage Needs a first human triage before being processed. label May 10, 2017
@jonmer85
Copy link
Contributor Author

Thanks @s-hertel. I got rid of many of the PEP errors. If I put my ansible import statements at the top of the file, my automation fails. I can look into it more though to determine why. Please let me know if you found out why the documentation sanity checks fail. Thank you!

volumes:
description:
- A list of data volumes used in a job. List of dictionaries with the following
form: { host: { sourcePath: <string> }, name: <string> }
Copy link
Contributor

@s-hertel s-hertel May 10, 2017

Choose a reason for hiding this comment

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

This line isn't valid yaml because of the ':'s. That's why the docs are failing. You can use suboptions: to document options inside an option. Make sure to document type/description/required just like for options.


# ansible import module(s) kept at ~eof as recommended
from ansible.module_utils.basic import *
from ansible.module_utils.ec2 import *
Copy link
Contributor

Choose a reason for hiding this comment

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

Hm... I'm not sure why it fails for you if these are moved up to the top. By 'top' do you mean around line 186? That is around where they should go. And
in addition, importing * is avoided now so things don't 'magically' work. Also you'll want to import HAS_BOTO3 rather than set it on line 182 or line 184.
So you'll want something like from ansible.module_utils.ec2 import ec2_argument_spec, get_aws_connection_info, boto3_conn, HAS_BOTO3.

@ansibot
Copy link
Contributor

ansibot commented May 11, 2017

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

Command "ansible-doc batch_compute_environment batch_job_definition batch_job_queue" returned exit status 1.
>>> Standard Error
[ERROR]: unable to parse /root/src/github.com/ansible/ansible/lib/ansible/modu
les/cloud/amazon/batch_job_definition.py
ERROR! module batch_job_definition missing documentation (or could not parse documentation): Parsing produced an empty object.

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

Command "ansible-doc batch_compute_environment batch_job_definition batch_job_queue" returned exit status 1.
>>> Standard Error
[ERROR]: unable to parse /root/src/github.com/ansible/ansible/lib/ansible/modu
les/cloud/amazon/batch_job_definition.py
ERROR! module batch_job_definition missing documentation (or could not parse documentation): Parsing produced an empty object.

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

Command "ansible-doc batch_compute_environment batch_job_definition batch_job_queue" returned exit status 1.
>>> Standard Error
[ERROR]: unable to parse /root/src/github.com/ansible/ansible/lib/ansible/modu
les/cloud/amazon/batch_job_definition.py
ERROR! module batch_job_definition missing documentation (or could not parse documentation): Parsing produced an empty object.

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

Command "ansible-doc batch_compute_environment batch_job_definition batch_job_queue" returned exit status 1.
>>> Standard Error
[ERROR]: unable to parse /root/src/github.com/ansible/ansible/lib/ansible/modu
les/cloud/amazon/batch_job_definition.py
ERROR! module batch_job_definition missing documentation (or could not parse documentation): Parsing produced an empty object.

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

lib/ansible/modules/cloud/amazon/batch_job_definition.py:92:13: E302 DOCUMENTATION is not valid YAML

click here for bot help

@ansibot
Copy link
Contributor

ansibot commented May 11, 2017

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

Command "ansible-doc batch_compute_environment batch_job_definition batch_job_queue" returned exit status 1.
>>> Standard Error
[ERROR]: unable to parse /root/src/github.com/ansible/ansible/lib/ansible/modu
les/cloud/amazon/batch_job_definition.py
ERROR! module batch_job_definition missing documentation (or could not parse documentation): Parsing produced an empty object.

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

Command "ansible-doc batch_compute_environment batch_job_definition batch_job_queue" returned exit status 1.
>>> Standard Error
[ERROR]: unable to parse /root/src/github.com/ansible/ansible/lib/ansible/modu
les/cloud/amazon/batch_job_definition.py
ERROR! module batch_job_definition missing documentation (or could not parse documentation): Parsing produced an empty object.

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

Command "ansible-doc batch_compute_environment batch_job_definition batch_job_queue" returned exit status 1.
>>> Standard Error
[ERROR]: unable to parse /root/src/github.com/ansible/ansible/lib/ansible/modu
les/cloud/amazon/batch_job_definition.py
ERROR! module batch_job_definition missing documentation (or could not parse documentation): Parsing produced an empty object.

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

Command "ansible-doc batch_compute_environment batch_job_definition batch_job_queue" returned exit status 1.
>>> Standard Error
[ERROR]: unable to parse /root/src/github.com/ansible/ansible/lib/ansible/modu
les/cloud/amazon/batch_job_definition.py
ERROR! module batch_job_definition missing documentation (or could not parse documentation): Parsing produced an empty object.

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

lib/ansible/modules/cloud/amazon/batch_job_definition.py:92:13: E302 DOCUMENTATION is not valid YAML

click here for bot help

@jonmer85
Copy link
Contributor Author

@s-hertel It took a bit but it looks like all tests pass now :)

@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 May 11, 2017
@alikins alikins changed the title AWS Batch automation support New module: Add AWS Batch automation support (cloud/amazon/batch_compute_environment) May 22, 2017
@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 Jun 23, 2017
@ansibot
Copy link
Contributor

ansibot commented Jun 27, 2017

@Etherdaemon @akazakov @alachaum @amir343 @bekelchik @bpennypacker @brandond @fiunchinho @j-carl @jarv @jmenga @joelthompson @jsdalton @linuxdynasty @loia @MichaelBaydoun @michaeljs1990 @minichate @mjschultz @mmochan @naslanidis @pjodouin @pwnall @RickMendes @ryansydnor @scottanderson42 @shepdelacreme @silviud @simplesteph @steynovich @tastychutney @tedder @timmahoney @TomBamford @whiter @wimnat @Zeekin

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 the support:community This issue/PR relates to code supported by the Ansible community. label Jun 29, 2017
@jonmer85
Copy link
Contributor Author

@s-hertel How do I vote with a "shipit"?

@s-hertel
Copy link
Contributor

@jonmer85 Sorry for not getting back to this sooner - it's still on my radar to review. If you type that without word without quotes the bot should find it (but you'll need to be added to maintainers first, I think). Two votes leads to a bot-automated merge (though there are caveats). Here's bot command info: https://github.com/ansible/ansibullbot/blob/master/ISSUE_HELP.md
Would you mind separating this into 3 separate pull requests, one new module per PR?

@ansibot
Copy link
Contributor

ansibot commented Jul 3, 2017

@jonmer85 this PR contains more than one new module.

Please submit only one new module per pullrequest. For further explanation, please read grouped module documentation

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. support:core This issue/PR relates to code supported by the Ansible Engineering Team. and removed community_review In order to be merged, this PR must follow the community review workflow. module This issue/PR relates to a module. new_module This PR includes a new module. labels Jul 3, 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 Jul 12, 2017
@jonmer85
Copy link
Contributor Author

@s-hertel I created three new PR's for this work as requested:

  1. Initial support for AWS Batch Compute Environment #26699
  2. Initial support for AWS Batch Job Definitions #26700
  3. Initial support for AWS Batch Job Queues #26701

@ansibot
Copy link
Contributor

ansibot commented Jul 12, 2017

@s-hertel
Copy link
Contributor

@jonmer85 Thanks! I'm sorry for the hassle.

@ansibot ansibot added module This issue/PR relates to a module. 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. labels Jul 19, 2017
@ryansb
Copy link
Contributor

ryansb commented Aug 3, 2017

Closing this as it's now broken up into:

#26699
#26700
#26701

@ryansb ryansb closed this Aug 3, 2017
@ansibot ansibot added feature This issue/PR relates to a feature request. and removed feature_pull_request labels Mar 4, 2018
@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.4 This issue/PR affects Ansible v2.4 aws cloud feature This issue/PR relates to a feature request. module This issue/PR relates to a module. needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. 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. support:core This issue/PR relates to code supported by the Ansible Engineering Team.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants