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

The first module of Telefonica cloud #44256

Closed
wants to merge 2 commits into from

Conversation

zengchen1024
Copy link
Contributor

SUMMARY
This pr wants to add the first module of Telefonica cloud.

ISSUE TYPE
Feature Pull Request

@ansibot ansibot added affects_2.7 This issue/PR affects Ansible v2.7 cloud core_review In order to be merged, this PR must follow the core review workflow. feature This issue/PR relates to a feature request. module This issue/PR relates to a module. needs_triage Needs a first human triage before being processed. new_contributor This PR is the first contribution by a new community member. 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. test This PR relates to tests. labels Aug 16, 2018
@ansibot
Copy link
Contributor

ansibot commented Aug 16, 2018

The test ansible-test sanity --test no-underscore-variable [explain] failed with 2 errors:

lib/ansible/modules/cloud/telefonica/tfc_app_smn_topic.py:60:53: use `dummy` instead of `_` for a variable name
lib/ansible/modules/cloud/telefonica/tfc_app_smn_topic.py:96:53: use `dummy` instead of `_` for a variable name

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. labels Aug 16, 2018
@samdoran samdoran removed the needs_triage Needs a first human triage before being processed. label Aug 16, 2018
@zengchen1024 zengchen1024 force-pushed the new_smn_topic branch 2 times, most recently from 037dfad to 859befe Compare August 20, 2018 06:44
@@ -0,0 +1,10 @@
# This is the configuration template for ansible-test HWC integration tests.
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 is not needed since there is no cloud test plugin using it.

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, I will remove it!

@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 Aug 28, 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 Sep 5, 2018
@ansibot
Copy link
Contributor

ansibot commented Oct 27, 2018

@zengchen1024 this PR contains more than one new module.

Please submit only one new module per pull request. For a detailed explanation, please read the grouped modules 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. and removed core_review In order to be merged, this PR must follow the core review workflow. 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 Oct 27, 2018
@ansibot
Copy link
Contributor

ansibot commented Oct 27, 2018

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

test/units/module_utils/hwc/test_dict_comparison.py:34:24: comparison-with-itself Redundant comparison - d == d
test/units/module_utils/hwc/test_dict_comparison.py:66:24: comparison-with-itself Redundant comparison - d == d
test/units/module_utils/hwc/test_dict_comparison.py:111:24: comparison-with-itself Redundant comparison - d == d
test/units/module_utils/hwc/test_dict_comparison.py:153:24: comparison-with-itself Redundant comparison - d == d

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

lib/ansible/modules/cloud/telefonica/tfc_manage_ces_alarm_rule.py:32:0: anomalous-backslash-in-string Anomalous backslash in string: '\-'. String constant might be missing an r prefix.
lib/ansible/modules/cloud/telefonica/tfc_manage_ces_alarm_rule.py:32:0: anomalous-backslash-in-string Anomalous backslash in string: '\-'. String constant might be missing an r prefix.
lib/ansible/modules/cloud/telefonica/tfc_manage_ces_alarm_rule.py:32:0: anomalous-backslash-in-string Anomalous backslash in string: '\-'. String constant might be missing an r prefix.
lib/ansible/modules/cloud/telefonica/tfc_manage_ces_alarm_rule.py:32:0: anomalous-backslash-in-string Anomalous backslash in string: '\-'. String constant might be missing an r prefix.
lib/ansible/modules/cloud/telefonica/tfc_manage_ces_alarm_rule.py:32:0: anomalous-backslash-in-string Anomalous backslash in string: '\-'. String constant might be missing an r prefix.
lib/ansible/modules/cloud/telefonica/tfc_manage_ces_alarm_rule.py:32:0: anomalous-backslash-in-string Anomalous backslash in string: '\-'. String constant might be missing an r prefix.
lib/ansible/modules/cloud/telefonica/tfc_manage_ces_alarm_rule.py:32:0: anomalous-backslash-in-string Anomalous backslash in string: '\_'. String constant might be missing an r prefix.
lib/ansible/modules/cloud/telefonica/tfc_manage_ces_alarm_rule.py:32:0: anomalous-backslash-in-string Anomalous backslash in string: '\_'. String constant might be missing an r prefix.
lib/ansible/modules/cloud/telefonica/tfc_manage_ces_alarm_rule.py:32:0: anomalous-backslash-in-string Anomalous backslash in string: '\_'. String constant might be missing an r prefix.
lib/ansible/modules/cloud/telefonica/tfc_manage_ces_alarm_rule.py:286:0: anomalous-backslash-in-string Anomalous backslash in string: '\-'. String constant might be missing an r prefix.
lib/ansible/modules/cloud/telefonica/tfc_manage_ces_alarm_rule.py:286:0: anomalous-backslash-in-string Anomalous backslash in string: '\-'. String constant might be missing an r prefix.
lib/ansible/modules/cloud/telefonica/tfc_manage_ces_alarm_rule.py:286:0: anomalous-backslash-in-string Anomalous backslash in string: '\-'. String constant might be missing an r prefix.
lib/ansible/modules/cloud/telefonica/tfc_manage_ces_alarm_rule.py:286:0: anomalous-backslash-in-string Anomalous backslash in string: '\-'. String constant might be missing an r prefix.
lib/ansible/modules/cloud/telefonica/tfc_manage_ces_alarm_rule.py:286:0: anomalous-backslash-in-string Anomalous backslash in string: '\-'. String constant might be missing an r prefix.
lib/ansible/modules/cloud/telefonica/tfc_manage_ces_alarm_rule.py:286:0: anomalous-backslash-in-string Anomalous backslash in string: '\-'. String constant might be missing an r prefix.
lib/ansible/modules/cloud/telefonica/tfc_manage_ces_alarm_rule.py:286:0: anomalous-backslash-in-string Anomalous backslash in string: '\_'. String constant might be missing an r prefix.
lib/ansible/modules/cloud/telefonica/tfc_manage_ces_alarm_rule.py:286:0: anomalous-backslash-in-string Anomalous backslash in string: '\_'. String constant might be missing an r prefix.
lib/ansible/modules/cloud/telefonica/tfc_manage_ces_alarm_rule.py:286:0: anomalous-backslash-in-string Anomalous backslash in string: '\_'. String constant might be missing an r prefix.

The test ansible-test sanity --test ansible-doc --python 2.6 [explain] failed with 4 errors:

lib/ansible/modules/cloud/telefonica/tfc_compute_as_config.py:0:0: has a documentation error formatting or is missing documentation.
lib/ansible/modules/cloud/telefonica/tfc_compute_as_group.py:0:0: has a documentation error formatting or is missing documentation.
lib/ansible/modules/cloud/telefonica/tfc_compute_as_policy.py:0:0: has a documentation error formatting or is missing documentation.
lib/ansible/modules/cloud/telefonica/tfc_manage_ces_alarm_rule.py:0:0: has a documentation error formatting or is missing documentation.

The test ansible-test sanity --test ansible-doc --python 2.7 [explain] failed with 4 errors:

lib/ansible/modules/cloud/telefonica/tfc_compute_as_config.py:0:0: has a documentation error formatting or is missing documentation.
lib/ansible/modules/cloud/telefonica/tfc_compute_as_group.py:0:0: has a documentation error formatting or is missing documentation.
lib/ansible/modules/cloud/telefonica/tfc_compute_as_policy.py:0:0: has a documentation error formatting or is missing documentation.
lib/ansible/modules/cloud/telefonica/tfc_manage_ces_alarm_rule.py:0:0: has a documentation error formatting or is missing documentation.

The test ansible-test sanity --test ansible-doc --python 3.5 [explain] failed with 4 errors:

lib/ansible/modules/cloud/telefonica/tfc_compute_as_config.py:0:0: has a documentation error formatting or is missing documentation.
lib/ansible/modules/cloud/telefonica/tfc_compute_as_group.py:0:0: has a documentation error formatting or is missing documentation.
lib/ansible/modules/cloud/telefonica/tfc_compute_as_policy.py:0:0: has a documentation error formatting or is missing documentation.
lib/ansible/modules/cloud/telefonica/tfc_manage_ces_alarm_rule.py:0:0: has a documentation error formatting or is missing documentation.

The test ansible-test sanity --test ansible-doc --python 3.6 [explain] failed with 4 errors:

lib/ansible/modules/cloud/telefonica/tfc_compute_as_config.py:0:0: has a documentation error formatting or is missing documentation.
lib/ansible/modules/cloud/telefonica/tfc_compute_as_group.py:0:0: has a documentation error formatting or is missing documentation.
lib/ansible/modules/cloud/telefonica/tfc_compute_as_policy.py:0:0: has a documentation error formatting or is missing documentation.
lib/ansible/modules/cloud/telefonica/tfc_manage_ces_alarm_rule.py:0:0: has a documentation error formatting or is missing documentation.

The test ansible-test sanity --test ansible-doc --python 3.7 [explain] failed with 4 errors:

lib/ansible/modules/cloud/telefonica/tfc_compute_as_config.py:0:0: has a documentation error formatting or is missing documentation.
lib/ansible/modules/cloud/telefonica/tfc_compute_as_group.py:0:0: has a documentation error formatting or is missing documentation.
lib/ansible/modules/cloud/telefonica/tfc_compute_as_policy.py:0:0: has a documentation error formatting or is missing documentation.
lib/ansible/modules/cloud/telefonica/tfc_manage_ces_alarm_rule.py:0:0: has a documentation error formatting or is missing documentation.

The test ansible-test sanity --test docs-build [explain] failed with the error:

Command "/usr/bin/python test/sanity/code-smell/docs-build.py" returned exit status 1.
>>> Standard Error
Command 'make singlehtmldocs' failed with status code: 2
--> Standard Output
cat _themes/srtd/static/css/theme.css | sed -e 's/^[ 	]*//g; s/[ 	]*$//g; s/\([:{;,]\) /\1/g; s/ {/{/g; s/\/\*.*\*\///g; /^$/d' | sed -e :a -e '$!N; s/\n\(.\)/\1/; ta' > _themes/srtd/static/css/theme.min.css
PYTHONPATH=../../lib ../bin/dump_config.py --template-file=../templates/config.rst.j2 --output-dir=rst/reference_appendices/ -d ../../lib/ansible/config/base.yml
mkdir -p rst/cli
PYTHONPATH=../../lib ../bin/generate_man.py --template-file=../templates/cli_rst.j2 --output-dir=rst/cli/ --output-format rst ../../lib/ansible/cli/*.py
PYTHONPATH=../../lib ../bin/dump_keywords.py --template-dir=../templates --output-dir=rst/reference_appendices/ -d ./keyword_desc.yml
PYTHONPATH=../../lib ../bin/plugin_formatter.py -t rst --template-dir=../templates --module-dir=../../lib/ansible/modules -o rst/modules/ 
Makefile:93: recipe for target 'modules' failed
--> Standard Error
Traceback (most recent call last):
  File "../bin/plugin_formatter.py", line 720, in <module>
    main()
  File "../bin/plugin_formatter.py", line 678, in main
    plugin_info, categories = get_plugin_info(options.module_dir, limit_to=options.limit_to, verbose=(options.verbosity > 0))
  File "../bin/plugin_formatter.py", line 269, in get_plugin_info
    doc, examples, returndocs, metadata = plugin_docs.get_docstring(module_path, fragment_loader, verbose=verbose)
  File "/root/ansible/lib/ansible/utils/plugin_docs.py", line 99, in get_docstring
    data = read_docstring(filename, verbose=verbose, ignore_errors=ignore_errors)
  File "/root/ansible/lib/ansible/parsing/plugin_docs.py", line 62, in read_docstring
    data[varkey] = AnsibleLoader(child.value.s, file_name=filename).get_single_data()
  File "/usr/local/lib/python3.6/dist-packages/yaml/constructor.py", line 35, in get_single_data
    node = self.get_single_node()
  File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 36, in get_single_node
    document = self.compose_document()
  File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 55, in compose_document
    node = self.compose_node(None, None)
  File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 84, in compose_node
    node = self.compose_mapping_node(anchor)
  File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 133, in compose_mapping_node
    item_value = self.compose_node(node, item_key)
  File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 84, in compose_node
    node = self.compose_mapping_node(anchor)
  File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 133, in compose_mapping_node
    item_value = self.compose_node(node, item_key)
  File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 84, in compose_node
    node = self.compose_mapping_node(anchor)
  File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 133, in compose_mapping_node
    item_value = self.compose_node(node, item_key)
  File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 84, in compose_node
    node = self.compose_mapping_node(anchor)
  File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 133, in compose_mapping_node
    item_value = self.compose_node(node, item_key)
  File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 84, in compose_node
    node = self.compose_mapping_node(anchor)
  File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 133, in compose_mapping_node
    item_value = self.compose_node(node, item_key)
  File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 84, in compose_node
    node = self.compose_mapping_node(anchor)
  File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 133, in compose_mapping_node
    item_value = self.compose_node(node, item_key)
  File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 84, in compose_node
    node = self.compose_mapping_node(anchor)
  File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 133, in compose_mapping_node
    item_value = self.compose_node(node, item_key)
  File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 82, in compose_node
    node = self.compose_sequence_node(anchor)
  File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 111, in compose_sequence_node
    node.value.append(self.compose_node(node, index))
  File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 84, in compose_node
    node = self.compose_mapping_node(anchor)
  File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 127, in compose_mapping_node
    while not self.check_event(MappingEndEvent):
  File "/usr/local/lib/python3.6/dist-packages/yaml/parser.py", line 98, in check_event
    self.current_event = self.state()
  File "/usr/local/lib/python3.6/dist-packages/yaml/parser.py", line 428, in parse_block_mapping_key
    if self.check_token(KeyToken):
  File "/usr/local/lib/python3.6/dist-packages/yaml/scanner.py", line 115, in check_token
    while self.need_more_tokens():
  File "/usr/local/lib/python3.6/dist-packages/yaml/scanner.py", line 149, in need_more_tokens
    self.stale_possible_simple_keys()
  File "/usr/local/lib/python3.6/dist-packages/yaml/scanner.py", line 289, in stale_possible_simple_keys
    "could not find expected ':'", self.get_mark())
yaml.scanner.ScannerError: while scanning a simple key
  in "<unicode string>", line 39, column 31:
                                  configuration or not. If DSS dev ... 
                                  ^
could not find expected ':'
  in "<unicode string>", line 40, column 31:
                                  specified, all the data stores m ... 
                                  ^
make: *** [modules] Error 1

click here for bot help

@zengchen1024 zengchen1024 force-pushed the new_smn_topic branch 2 times, most recently from 2045cb4 to c8a6525 Compare October 29, 2018 08:15
@ansibot ansibot added core_review In order to be merged, this PR must follow the core review workflow. needs_ci This PR requires CI testing to be performed. Please close and re-open this PR to trigger CI. 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 needs_ci This PR requires CI testing to be performed. Please close and re-open this PR to trigger CI. 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 Oct 29, 2018
@ansibot
Copy link
Contributor

ansibot commented Oct 29, 2018

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

test/units/module_utils/hwc/test_dict_comparison.py:34:24: comparison-with-itself Redundant comparison - d == d
test/units/module_utils/hwc/test_dict_comparison.py:66:24: comparison-with-itself Redundant comparison - d == d
test/units/module_utils/hwc/test_dict_comparison.py:111:24: comparison-with-itself Redundant comparison - d == d
test/units/module_utils/hwc/test_dict_comparison.py:153:24: comparison-with-itself Redundant comparison - d == d

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

lib/ansible/modules/cloud/telefonica/tfc_app_smn_topic.py:325:1: E303 too many blank lines (4)

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

lib/ansible/modules/cloud/telefonica/tfc_app_smn_topic.py:0:0: E307 version_added should be 2.8. Currently 2.7

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. labels Oct 29, 2018
'test': 'original'
}
d = DictComparison(value1)
self.assertTrue(d == d)
Copy link
Member

Choose a reason for hiding this comment

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

Use self.assertEqual(d, d) instead of self.assertTrue(d == d).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@mattclay Thanks for your reviewing! I have done the modification. Please review again. Thanks!

@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 Oct 30, 2018
@zengchen1024
Copy link
Contributor Author

@mattclay Could you please take a look at this pr? Thank you very much!!!

@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 13, 2018
@Click2Cloud-Gamma
Copy link

@mattclay It would be really great if you can share your feedback regarding the PR OR please review it once again?

@Click2Cloud-Gamma
Copy link

bot_status

@zengchen1024 zengchen1024 reopened this Dec 12, 2018
@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 Dec 12, 2018
@Click2Cloud-Gamma
Copy link

@ansibot @mattclay @samdoran The PR is ready_for_review. Could you please review it.

@Click2Cloud-Gamma
Copy link

@ansibot @mattclay @samdoran Please have a look at this PR and review it once again. Thank you so much.
ready_for_review

@Click2Cloud-Gamma
Copy link

@ansibot @mattclay Could you please review this PR once again for further process. Thank you so much.
ready_for_review

@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 Dec 25, 2018
@Click2Cloud-Gamma
Copy link

@ansibot @mattclay @samdoran The PR is ready_for_review. Could you please review it.

1 similar comment
@zengchen1024
Copy link
Contributor Author

@ansibot @mattclay @samdoran The PR is ready_for_review. Could you please review it.

@Click2Cloud-Gamma
Copy link

@ansibot @mattclay @samdoran Please have a look at this PR and review it once again.
ready_for_review

@ansible ansible locked and limited conversation to collaborators Jul 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.7 This issue/PR affects Ansible v2.7 cloud core_review In order to be merged, this PR must follow the core review workflow. feature This issue/PR relates to a feature request. module This issue/PR relates to a module. new_contributor This PR is the first contribution by a new community member. new_module This PR includes a new module. 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

5 participants