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

Adding dcache_pool module to Ansible. #52993

Open
wants to merge 3 commits into
base: devel
from

Conversation

Projects
None yet
2 participants
@dmykarp
Copy link

dmykarp commented Feb 26, 2019

SUMMARY

Included a code for a new module that manipulates the status of pools in dcache (https://www.dcache.org/), system for storing and retrieving huge amounts of data in the distributed environment.

I have developed it for internal use, but thought that others might benefit from it too.

ISSUE TYPE
  • New Module Pull Request
COMPONENT NAME

dcache_pool

@ansibot

This comment has been minimized.

Copy link
Contributor

ansibot commented Feb 26, 2019

The test ansible-test sanity --test pylint [explain] failed with 109 errors:

lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import AVAILABLE_HASH_ALGORITHMS from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import AnsibleFallbackNotFound from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import BOOLEANS from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import BOOLEANS_FALSE from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import BOOLEANS_TRUE from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import DEFAULT_PERM from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import EXEC_PERM_BITS from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import FILE_ATTRIBUTES from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import FILE_COMMON_ARGUMENTS from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import HAS_SYSLOG from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import HAVE_SELINUX from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import KeysView from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import MODE_OPERATOR_RE from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import Mapping from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import MutableMapping from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import MutableSequence from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import MutableSet from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import NUMBERTYPES from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import NoneType from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import PASSWD_ARG_RE from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import PASSWORD_MATCH from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import PASS_BOOLS from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import PASS_VARS from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import PERMS_RE from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import PERM_BITS from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import PY2 from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import PY3 from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import SEQUENCETYPE from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import SIZE_RANGES from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import Sequence from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import Set from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import USERS_RE from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import algorithm from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import algorithms from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import atexit from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import attribute from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import b from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import basestring from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import binary_type from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import boolean from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import bytes_to_human from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import chain from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import datetime from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import deque from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import env_fallback from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import errno from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import format_attributes from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import get_all_subclasses from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import get_bin_path from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import get_distribution from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import get_distribution_version from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import get_exception from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import get_flags_from_attributes from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import get_module_path from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import get_platform from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import get_platform_subclass from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import get_timestamp from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import grp from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import has_journal from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import hashlib from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import heuristic_log_sanitize from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import human_to_bytes from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import imap from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import integer_types from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import is_executable from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import iteritems from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import journal from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import json_dict_bytes_to_unicode from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import json_dict_unicode_to_bytes from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import jsonify from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import literal_eval from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import load_platform_subclass from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import locale from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import map from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import md5 from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import missing_required_lib from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import os from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import platform from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import pwd from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import re from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import reduce from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import remove_values from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import repeat from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import return_values from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import select from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import selinux from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import sha from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import shlex from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import shlex_quote from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import shutil from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import signal from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import stat from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import string_types from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import subprocess from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import sys from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import syslog from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import tempfile from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import text_type from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import time from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import to_bytes from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import to_native from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import to_text from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import traceback from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import types from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: unused-wildcard-import Unused import unicode from wildcard import
lib/ansible/modules/storage/dcache_pool.py:101:0: wildcard-import Wildcard import ansible.module_utils.basic
lib/ansible/modules/storage/dcache_pool.py:108:16: bad-whitespace Exactly one space required around assignment     HAS_REQUESTS=True                 ^
lib/ansible/modules/storage/dcache_pool.py:109:0: bare-except No exception type(s) specified
lib/ansible/modules/storage/dcache_pool.py:110:16: bad-whitespace Exactly one space required around assignment     HAS_REQUESTS=False                 ^

The test ansible-test sanity --test import --python 2.6 [explain] failed with 1 error:

lib/ansible/modules/storage/dcache_pool.py:102:0: ImportError: No module named requests.auth

The test ansible-test sanity --test import --python 2.7 [explain] failed with 1 error:

lib/ansible/modules/storage/dcache_pool.py:102:0: ImportError: No module named requests.auth

The test ansible-test sanity --test import --python 3.5 [explain] failed with 1 error:

lib/ansible/modules/storage/dcache_pool.py:102:0: ImportError: No module named 'requests'

The test ansible-test sanity --test import --python 3.6 [explain] failed with 1 error:

lib/ansible/modules/storage/dcache_pool.py:102:0: ModuleNotFoundError: No module named 'requests'

The test ansible-test sanity --test import --python 3.7 [explain] failed with 1 error:

lib/ansible/modules/storage/dcache_pool.py:102:0: ModuleNotFoundError: No module named 'requests'

The test ansible-test sanity --test import --python 3.8 [explain] failed with 1 error:

lib/ansible/modules/storage/dcache_pool.py:102:0: ModuleNotFoundError: No module named 'requests'

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

lib/ansible/modules/storage/dcache_pool.py:108:17: E225 missing whitespace around operator
lib/ansible/modules/storage/dcache_pool.py:109:1: E722 do not use bare 'except'
lib/ansible/modules/storage/dcache_pool.py:110:17: E225 missing whitespace around operator
lib/ansible/modules/storage/dcache_pool.py:112:1: E302 expected 2 blank lines, found 1

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

lib/ansible/modules/storage/dcache_pool.py:0:0: E105 GPLv3 license header not found in the first 20 lines of the module
lib/ansible/modules/storage/dcache_pool.py:0:0: E203 requests import found, should use ansible.module_utils.urls instead
lib/ansible/modules/storage/dcache_pool.py:101:0: E208 module_utils imports should import specific components, not "*"

click here for bot help

Dmytro Karpenko added some commits Feb 27, 2019

@ansibot ansibot removed the ci_verified label Feb 27, 2019

@ansibot

This comment has been minimized.

Copy link
Contributor

ansibot commented Feb 27, 2019

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

lib/ansible/modules/storage/dcache_pool.py:109:0: bare-except No exception type(s) specified

The test ansible-test sanity --test import --python 2.6 [explain] failed with 1 error:

lib/ansible/modules/storage/dcache_pool.py:102:0: ImportError: No module named requests.auth

The test ansible-test sanity --test import --python 2.7 [explain] failed with 1 error:

lib/ansible/modules/storage/dcache_pool.py:102:0: ImportError: No module named requests.auth

The test ansible-test sanity --test import --python 3.5 [explain] failed with 1 error:

lib/ansible/modules/storage/dcache_pool.py:102:0: ImportError: No module named 'requests'

The test ansible-test sanity --test import --python 3.6 [explain] failed with 1 error:

lib/ansible/modules/storage/dcache_pool.py:102:0: ModuleNotFoundError: No module named 'requests'

The test ansible-test sanity --test import --python 3.7 [explain] failed with 1 error:

lib/ansible/modules/storage/dcache_pool.py:102:0: ModuleNotFoundError: No module named 'requests'

The test ansible-test sanity --test import --python 3.8 [explain] failed with 1 error:

lib/ansible/modules/storage/dcache_pool.py:102:0: ModuleNotFoundError: No module named 'requests'

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

lib/ansible/modules/storage/dcache_pool.py:109:1: E722 do not use bare 'except'

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

lib/ansible/modules/storage/dcache_pool.py:0:0: E105 GPLv3 license header not found in the first 20 lines of the module
lib/ansible/modules/storage/dcache_pool.py:0:0: E203 requests import found, should use ansible.module_utils.urls instead

click here for bot help

@ansibot ansibot added the ci_verified label Feb 27, 2019

@ansibot ansibot added the stale_ci label Mar 7, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.