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

one_vm: moved to pyone added Persisten Deployment #57393

Merged
merged 9 commits into from Oct 16, 2019

Conversation

meerkampdvv
Copy link
Contributor

SUMMARY

Moved from python-oca to pyone which is the current python module shipped with Opennebula
Added Persistent deployment of VMs. #49550

ISSUE TYPE
  • Feature Pull Request
ADDITIONAL INFORMATION

In the latest official documentation [1] is said that pyone is the current python module to be installed with OpenNebula, so if it is not compatible with python-oca, the ansible module should use pyone instead of python-oca.

[1] http://docs.opennebula.org/5.8/deployment/opennebula_installation/frontend_installation.html


Moved from python-oca to pyone.
Added Persistent deployment of VMs.
@ansibot
Copy link
Contributor

ansibot commented Jun 5, 2019

@ansibot ansibot added affects_2.9 This issue/PR affects Ansible v2.9 cloud community_review In order to be merged, this PR must follow the community 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. support:community This issue/PR relates to code supported by the Ansible community. labels Jun 5, 2019
@ansibot
Copy link
Contributor

ansibot commented Jun 5, 2019

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

lib/ansible/modules/cloud/opennebula/one_vm.py:838:0: syntax-error invalid syntax (<unknown>, line 838)

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

lib/ansible/modules/cloud/opennebula/one_vm.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 1 error:

lib/ansible/modules/cloud/opennebula/one_vm.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 1 error:

lib/ansible/modules/cloud/opennebula/one_vm.py:0:0: has a documentation error formatting or is missing documentation.

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

lib/ansible/modules/cloud/opennebula/one_vm.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/python3.6 test/sanity/code-smell/docs-build.py" returned exit status 1.
>>> Standard Error
Command 'make singlehtmldocs' failed with status code: 2
--> Standard Output
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/ 
Evaluating module files...
Makefile:93: recipe for target 'modules' failed
--> Standard Error
Traceback (most recent call last):
  File "../bin/plugin_formatter.py", line 813, in <module>
    main()
  File "../bin/plugin_formatter.py", line 768, 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 298, 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 111, in get_docstring
    data = read_docstring(filename, verbose=verbose, ignore_errors=ignore_errors)
  File "/root/ansible/lib/ansible/parsing/plugin_docs.py", line 40, in read_docstring
    M = ast.parse(b_module_data.read())
  File "/usr/lib/python3.6/ast.py", line 35, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 838
    except pyone.OneException,e:
                             ^
SyntaxError: invalid syntax
make: *** [modules] Error 1

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

lib/ansible/modules/cloud/opennebula/one_vm.py:838:30: SyntaxError: except pyone.OneException,e:

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

lib/ansible/modules/cloud/opennebula/one_vm.py:838:30: SyntaxError: except pyone.OneException,e:

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

lib/ansible/modules/cloud/opennebula/one_vm.py:838:30: SyntaxError: except pyone.OneException,e:

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

lib/ansible/modules/cloud/opennebula/one_vm.py:838:30: SyntaxError: except pyone.OneException,e:

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

lib/ansible/modules/cloud/opennebula/one_vm.py:838:30: SyntaxError: invalid syntax

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

lib/ansible/modules/cloud/opennebula/one_vm.py:838:30: SyntaxError: invalid syntax

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

lib/ansible/modules/cloud/opennebula/one_vm.py:838:30: SyntaxError: invalid syntax

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

lib/ansible/modules/cloud/opennebula/one_vm.py:838:30: SyntaxError: invalid syntax

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

lib/ansible/modules/cloud/opennebula/one_vm.py:595:39: E231 missing whitespace after ','
lib/ansible/modules/cloud/opennebula/one_vm.py:595:42: E231 missing whitespace after ','
lib/ansible/modules/cloud/opennebula/one_vm.py:595:45: E231 missing whitespace after ','
lib/ansible/modules/cloud/opennebula/one_vm.py:633:5: E722 do not use bare 'except'
lib/ansible/modules/cloud/opennebula/one_vm.py:717:1: E303 too many blank lines (3)
lib/ansible/modules/cloud/opennebula/one_vm.py:730:29: E128 continuation line under-indented for visual indent
lib/ansible/modules/cloud/opennebula/one_vm.py:792:44: E231 missing whitespace after ','
lib/ansible/modules/cloud/opennebula/one_vm.py:838:30: E231 missing whitespace after ','
lib/ansible/modules/cloud/opennebula/one_vm.py:862:19: E272 multiple spaces before keyword
lib/ansible/modules/cloud/opennebula/one_vm.py:873:33: E231 missing whitespace after ','
lib/ansible/modules/cloud/opennebula/one_vm.py:873:36: E231 missing whitespace after ','
lib/ansible/modules/cloud/opennebula/one_vm.py:873:39: E231 missing whitespace after ','
lib/ansible/modules/cloud/opennebula/one_vm.py:924:161: E501 line too long (174 > 160 characters)
lib/ansible/modules/cloud/opennebula/one_vm.py:989:161: E501 line too long (168 > 160 characters)
lib/ansible/modules/cloud/opennebula/one_vm.py:1034:53: E231 missing whitespace after ','
lib/ansible/modules/cloud/opennebula/one_vm.py:1193:34: E231 missing whitespace after ','
lib/ansible/modules/cloud/opennebula/one_vm.py:1221:17: E722 do not use bare 'except'
lib/ansible/modules/cloud/opennebula/one_vm.py:1285:45: E231 missing whitespace after ','
lib/ansible/modules/cloud/opennebula/one_vm.py:1322:91: E202 whitespace before ')'
lib/ansible/modules/cloud/opennebula/one_vm.py:1388:161: E501 line too long (165 > 160 characters)

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

lib/ansible/modules/cloud/opennebula/one_vm.py:0:0: E401 Python SyntaxError while parsing module

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

lib/ansible/modules/cloud/opennebula/one_vm.py:838:30: python-syntax-error invalid syntax (<unknown>, line 838)

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 Jun 5, 2019
@ansibot
Copy link
Contributor

ansibot commented Jun 5, 2019

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

lib/ansible/modules/cloud/opennebula/one_vm.py:791:116: undefined-variable Undefined variable 'disks_num'
lib/ansible/modules/cloud/opennebula/one_vm.py:1471:0: trailing-whitespace Trailing whitespace

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

lib/ansible/modules/cloud/opennebula/one_vm.py:728:161: E501 line too long (164 > 160 characters)
lib/ansible/modules/cloud/opennebula/one_vm.py:923:5: E125 continuation line with same indent as next logical line
lib/ansible/modules/cloud/opennebula/one_vm.py:1471:1: W293 blank line contains whitespace
lib/ansible/modules/cloud/opennebula/one_vm.py:1471:1: W391 blank line at end of file

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

lib/ansible/modules/cloud/opennebula/one_vm.py:0:0: E309 version_added for new option (persistent) should be '2.9'. Currently StrictVersion ('0.0')
lib/ansible/modules/cloud/opennebula/one_vm.py:1470:0: E109 Next to last line should be: if __name__ == "__main__":

click here for bot help

@ansibot ansibot added the ci_verified Changes made in this PR are causing tests to fail. label Jun 5, 2019
@ansibot ansibot removed the ci_verified Changes made in this PR are causing tests to fail. label Jun 5, 2019
@ansibot
Copy link
Contributor

ansibot commented Jun 5, 2019

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

lib/ansible/modules/cloud/opennebula/one_vm.py:792:116: undefined-variable Undefined variable 'disks_num'

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

lib/ansible/modules/cloud/opennebula/one_vm.py:729:17: E122 continuation line missing indentation or outdented

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

lib/ansible/modules/cloud/opennebula/one_vm.py:0:0: E307 version_added should be '2.6'. Currently '2.9'
lib/ansible/modules/cloud/opennebula/one_vm.py:0:0: E309 version_added for new option (persistent) should be '2.9'. Currently StrictVersion ('0.0')

click here for bot help

@ansibot ansibot added the ci_verified Changes made in this PR are causing tests to fail. label Jun 5, 2019
@ansibot ansibot added community_review In order to be merged, this PR must follow the community review workflow. and removed 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. labels Jun 5, 2019
@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 13, 2019
@meerkampdvv meerkampdvv closed this Sep 3, 2019
@meerkampdvv meerkampdvv reopened this Sep 3, 2019
@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 Sep 3, 2019
@xorel
Copy link
Contributor

xorel commented Sep 3, 2019

LGTM

@ansibot ansibot removed the needs_triage Needs a first human triage before being processed. label Sep 3, 2019
@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 11, 2019
@meerkampdvv meerkampdvv reopened this Sep 13, 2019
@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 Sep 13, 2019
@meerkampdvv
Copy link
Contributor Author

Poking @ilicmilan @kustodian @rsmontero

@xorel i would like to maintain more of the Opennebula Modules any idea where to address this?

@xorel
Copy link
Contributor

xorel commented Sep 13, 2019

Thanks, @meerkampdvv for the interest! I just opened #62281 So let's wait for the ansible bots and Rubens approval.

@ansibot ansibot added the owner_pr This PR is made by the module's maintainer. label Sep 18, 2019
@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 28, 2019
@ansibot ansibot removed the new_contributor This PR is the first contribution by a new community member. label Oct 6, 2019
@meerkampdvv
Copy link
Contributor Author

@xorel could you take a look test on your side ?

@meerkampdvv meerkampdvv reopened this Oct 16, 2019
@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 16, 2019
@xorel
Copy link
Contributor

xorel commented Oct 16, 2019

I found some issues but they are not related to the oca -> pyone transition, so I will try to fix them separately.

@xorel
Copy link
Contributor

xorel commented Oct 16, 2019

LGTM

@ansibot ansibot added automerge This PR was automatically merged by ansibot. shipit This PR is ready to be merged by Core and removed community_review In order to be merged, this PR must follow the community review workflow. labels Oct 16, 2019
@ansibot ansibot merged commit 94c2313 into ansible:devel Oct 16, 2019
@ansible ansible locked and limited conversation to collaborators Nov 13, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.9 This issue/PR affects Ansible v2.9 automerge This PR was automatically merged by ansibot. cloud feature This issue/PR relates to a feature request. module This issue/PR relates to a module. owner_pr This PR is made by the module's maintainer. shipit This PR is ready to be merged by Core support:community This issue/PR relates to code supported by the Ansible community.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants