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

junos scp module #31950

Merged
merged 9 commits into from Jan 19, 2018
Merged

junos scp module #31950

merged 9 commits into from Jan 19, 2018

Conversation

GIC-de
Copy link
Contributor

@GIC-de GIC-de commented Oct 19, 2017

SUMMARY

The junos_scp module transfers files via SCP from or to remote devices running Junos.

Example Usage:

  - name: upload file to device
    junos_scp:
        src: /tmp/test.text
        provider: "{{ provider }}"
ISSUE TYPE
  • New Module Pull Request
COMPONENT NAME
  • lib/ansible/modules/network/junos/junos_scp.py
ANSIBLE VERSION
ansible 2.3.2.0

@ansibot
Copy link
Contributor

ansibot commented Oct 19, 2017

@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_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. labels Oct 19, 2017
@ansibot
Copy link
Contributor

ansibot commented Oct 19, 2017

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

lib/ansible/modules/network/junos/junos_scp.py:0:0: E306 version_added is not a valid version number: '2.X'
lib/ansible/modules/network/junos/junos_scp.py:0:0: E312 No RETURN provided

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. ci_verified Changes made in this PR are causing tests to fail. labels Oct 19, 2017
@ansibot
Copy link
Contributor

ansibot commented Oct 19, 2017

@Qalthos

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 19, 2017
@mkrizek mkrizek removed the needs_triage Needs a first human triage before being processed. label Oct 20, 2017
@ansibot ansibot added 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 new_contributor This PR is the first contribution by a new community member. labels Nov 2, 2017
@gundalow
Copy link
Contributor

@GIC-de As of Ansible 2.4 all Network modules require tests, Can you please add a unit and integration test for this. Thanks in advance.

@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 11, 2017
@ansibot
Copy link
Contributor

ansibot commented Dec 11, 2017

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

lib/ansible/modules/network/junos/junos_scp.py:89:0: ImportError: No module named junos

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

lib/ansible/modules/network/junos/junos_scp.py:89:0: ImportError: No module named junos

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

lib/ansible/modules/network/junos/junos_scp.py:89:0: ImportError: No module named 'ansible.module_utils.junos'

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

lib/ansible/modules/network/junos/junos_scp.py:89:0: ModuleNotFoundError: No module named 'ansible.module_utils.junos'

The test ansible-test sanity --test import --python 3.7 [?] failed with the following error:

lib/ansible/modules/network/junos/junos_scp.py:89:0: ModuleNotFoundError: No module named 'ansible.module_utils.junos'

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 Dec 11, 2017
@ansibot
Copy link
Contributor

ansibot commented Jan 10, 2018

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

lib/ansible/modules/network/junos/junos_scp.py:89:0: ImportError: No module named junos

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

lib/ansible/modules/network/junos/junos_scp.py:89:0: ImportError: No module named junos

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

lib/ansible/modules/network/junos/junos_scp.py:89:0: ImportError: No module named 'ansible.module_utils.junos'

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

lib/ansible/modules/network/junos/junos_scp.py:89:0: ModuleNotFoundError: No module named 'ansible.module_utils.junos'

The test ansible-test sanity --test import --python 3.7 [?] failed with the following error:

lib/ansible/modules/network/junos/junos_scp.py:89:0: ModuleNotFoundError: No module named 'ansible.module_utils.junos'

click here for bot help

@GIC-de
Copy link
Contributor Author

GIC-de commented Jan 11, 2018

I need help with the failed sanity check. Locally the test was working but it failed in your environment. The error is confusing because this part of the code (import ansible.mudle_utils.junos...) is 100% equal to the existing modules like junos_package.

@gundalow
Copy link
Contributor

Our CI (Shippable) rebase PRs before running tests. I believe you are seeing this as in the devel branch'module_utils has been reorganized.

I believe you need to rebase this PR. After that you will nerd something like module_utils.networking.{platform}

@gundalow
Copy link
Contributor

@ganeshrn
Copy link
Member

@GIC-de After rebase you need to update import statement as ansible.module_utils.network.junos.junos
Reference: https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/network/junos/junos_command.py#L175

@ansibot
Copy link
Contributor

ansibot commented Jan 11, 2018

@GIC-de this PR contains the following merge commits:

Please rebase your branch to remove these commits.

click here for bot help

@ansibot ansibot added merge_commit This PR contains at least one merge commit. Please resolve! needs_rebase https://docs.ansible.com/ansible/devel/dev_guide/developing_rebasing.html labels Jan 11, 2018
Christian Giese added 8 commits January 11, 2018 10:06
This module transfers files via SCP from or to remote devices running Junos.
+ update docu
+ rename arg download to remote_src (simitlar to copy module)
+ exception handling for transfer errors
@ansibot ansibot removed merge_commit This PR contains at least one merge commit. Please resolve! needs_rebase https://docs.ansible.com/ansible/devel/dev_guide/developing_rebasing.html labels Jan 11, 2018
@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 Jan 11, 2018
@gundalow
Copy link
Contributor

rebuild_merge

@ansibot ansibot merged commit 2697c0e into ansible:devel Jan 19, 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.5 This issue/PR affects Ansible v2.5 core_review In order to be merged, this PR must follow the core review workflow. module This issue/PR relates to a module. networking Network category 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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants