Merge pull request #1634 from shapeblue/patchviasocket-49-py26fix

[blocker] CLOUDSTACK-9452: add python-argparse dependency on el6,7 rpmsThe patchviasocket script was rewritten in Python from PR #1533 and made
assumptions that Python 2.7 would be available. In case of CentOS, python 2.7
may not be available or installed. This change ensures that python-argparse
is installed which is used by this script.

/cc @wido @sverrirab @karuturi @jburwell

@blueorangutan package

* pr/1634:
  CLOUDSTACK-9452: add python-argparse dependency on el6,7 rpms

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
Rohit Yadav 2016-08-24 12:14:02 +05:30
commit fa3fe7bb05
3 changed files with 3 additions and 1 deletions

View File

@ -96,6 +96,7 @@ management, and intelligence in CloudStack.
%package common
Summary: Apache CloudStack common files and scripts
Requires: python
Requires: python-argparse
Obsoletes: cloud-test < 4.1.0
Obsoletes: cloud-scripts < 4.1.0
Obsoletes: cloud-utils < 4.1.0

View File

@ -91,6 +91,7 @@ management, and intelligence in CloudStack.
%package common
Summary: Apache CloudStack common files and scripts
Requires: python
Requires: python-argparse
Group: System Environment/Libraries
%description common
The Apache CloudStack files shared between agent and management server

View File

@ -1239,7 +1239,7 @@ public class LibvirtComputingResource extends ServerResourceBase implements Serv
command.add("-p", cmdLine.replaceAll(" ", "%"));
result = command.execute();
if (result != null) {
s_logger.debug("passcmd failed:" + result);
s_logger.error("passcmd failed:" + result);
return false;
}
return true;