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

Add perl-modules as install dependency for cloudstack-agent #1495

Merged
merged 1 commit into from May 13, 2016
Merged

Add perl-modules as install dependency for cloudstack-agent #1495

merged 1 commit into from May 13, 2016

Conversation

sverrirab
Copy link

Required to run perl scripts that configure networking for VMs.

@terbolous
Copy link
Contributor

Quite horrible that we need those modules for a simple perl script of 58 lines (including license header and empty lines). Not related to your PR though, but a good candidate to be rewritten in bash or python

@jburwell
Copy link
Contributor

@sverrirab how much effort would it be to port to Python? That seems far preferable for two reasons. First, as @eriweb rightly points out, it is a large dependency to take on for such a small script. Second, Python and bash are our scripting languages of choice. It does not seem sustainable to add runtimes/libraries for every scripting language people might want to use. Such sprawl will not only lead to bloat, but a system that fewer and fewer people can maintain.

Required to run perl scripts that configure networking for VMs.
That script fails silently if this is not installed.
@sverrirab
Copy link
Author

I agree that this is not a good approach but it is the current one and it is broken. How about we commit this fix and I submit a new PR to master with a new python script?

@wido
Copy link
Contributor

wido commented Apr 26, 2016

If this is broken right now and this fixes it, LGTM. But we should really ditch Perl and rewrite in Python or Bash.

Can you afterwards submit a PR against master?

@sverrirab
Copy link
Author

do you want this change as a new PR against master or just the rewritten script in python on master?

@ProjectMoon
Copy link

As this is a bug fix, I think it would be forward-merged into master. The next PR should be to rewrite the script in Python instead of Perl, and that would be on master only.

@rohityadavcloud
Copy link
Member

tag:easypr

@sverrirab
Copy link
Author

Created new PR on master: #1526

@rohityadavcloud
Copy link
Member

LGTM

1 similar comment
@wido
Copy link
Contributor

wido commented May 13, 2016

LGTM

@swill
Copy link
Contributor

swill commented May 13, 2016

I think we should merge this one at this point. @sverrirab my understanding is that once #1533 is merged, this will be required. If that is the case, when this one is merged, maybe you can work into that PR the reverting of this PR. Does that make sense?

@asfgit asfgit merged commit 64b72a5 into apache:4.7 May 13, 2016
asfgit pushed a commit that referenced this pull request May 13, 2016
…gent

Add perl-modules as install dependency for cloudstack-agentRequired to run perl scripts that configure networking for VMs.

* pr/1495:
  Add perl-modules as install dependency for cloudstack-agent

Signed-off-by: Will Stevens <williamstevens@gmail.com>
asfgit pushed a commit that referenced this pull request May 26, 2016
…-python

Convert patchviasocket to python (removes perl dependency for KVM agent)As requested here: #1495

No scripts are using perl so that install requirement can be removed.
The new scripts are using standard python packages only.
Includes extensive unit test.
Note: perl-modules requirement is missing (fixed in mentioned PR) so do not merge that onto master.

* pr/1533:
  Revert "Add perl-modules as install dependency for cloudstack-agent"
  patchviasocket improve error handling
  Convert patchviasocket to python (removes perl dependency for KVM agent)

Signed-off-by: Will Stevens <williamstevens@gmail.com>
@ProjectMoon ProjectMoon deleted the pr-install-perl-modules-on-agent branch May 26, 2016 11:36
syed pushed a commit to syed/cloudstack that referenced this pull request Jun 15, 2016
As requested here: apache#1495

No scripts are using perl so that install requirement can be removed.
The new scripts are using standard python packages only.
Includes extensive unit test.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants