You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ek...@apache.org on 2015/05/27 09:56:20 UTC

[1/3] git commit: updated refs/heads/master to ace44f7

Repository: cloudstack
Updated Branches:
  refs/heads/master dce34ad74 -> ace44f7f1


Pep8 changes that got lost with the strange double push request problem last time


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/56483436
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/56483436
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/56483436

Branch: refs/heads/master
Commit: 56483436f028aaf0821ce3c1fad144d6cbd9f47c
Parents: 7673051
Author: Ian Southam <is...@schubergphilis.com>
Authored: Tue May 26 07:07:43 2015 -0400
Committer: Ian Southam <is...@schubergphilis.com>
Committed: Tue May 26 07:07:43 2015 -0400

----------------------------------------------------------------------
 .../patches/debian/config/opt/cloud/bin/configure.py    | 12 ++++++------
 .../patches/debian/config/opt/cloud/bin/cs/CsHelper.py  |  5 +++--
 .../debian/config/opt/cloud/bin/cs/CsRedundant.py       |  4 ++--
 .../debian/config/opt/cloud/bin/cs_firewallrules.py     |  1 +
 systemvm/test/python/TestCsCmdLine.py                   |  1 -
 systemvm/test/python/TestCsInterface.py                 |  3 ---
 systemvm/test/python/TestCsRule.py                      |  2 +-
 systemvm/test/python/runtests.sh                        |  2 +-
 8 files changed, 14 insertions(+), 16 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/56483436/systemvm/patches/debian/config/opt/cloud/bin/configure.py
----------------------------------------------------------------------
diff --git a/systemvm/patches/debian/config/opt/cloud/bin/configure.py b/systemvm/patches/debian/config/opt/cloud/bin/configure.py
index c0b2ad5..5e6bc83 100755
--- a/systemvm/patches/debian/config/opt/cloud/bin/configure.py
+++ b/systemvm/patches/debian/config/opt/cloud/bin/configure.py
@@ -609,7 +609,7 @@ class CsForwardingRules(CsDataBag):
         fw_prerout_rule += " -j DNAT --to-destination %s" % rule["internal_ip"]
         if not rule["internal_ports"] == "any":
             fw_prerout_rule += ":" + self.portsToString(rule["internal_ports"], "-")
-        
+
         fw_postrout_rule = "-A POSTROUTING -d %s/32 " % rule["public_ip"]
         if not rule["protocol"] == "any":
             fw_postrout_rule += " -m %s -p %s" % (rule["protocol"], rule["protocol"])
@@ -618,7 +618,7 @@ class CsForwardingRules(CsDataBag):
         fw_postrout_rule += " -j SNAT --to-source %s" % rule["internal_ip"]
         if not rule["internal_ports"] == "any":
             fw_postrout_rule += ":" + self.portsToString(rule["internal_ports"], "-")
-        
+
         fw_output_rule = "-A OUTPUT -d %s/32" % rule["public_ip"]
         if not rule["protocol"] == "any":
             fw_output_rule += " -m %s -p %s" % (rule["protocol"], rule["protocol"])
@@ -627,7 +627,7 @@ class CsForwardingRules(CsDataBag):
         fw_output_rule += " -j DNAT --to-destination %s" % rule["internal_ip"]
         if not rule["internal_ports"] == "any":
             fw_output_rule += ":" + self.portsToString(rule["internal_ports"], "-")
-        
+
         self.fw.append(["nat", "", fw_prerout_rule])
         self.fw.append(["nat", "", fw_postrout_rule])
         self.fw.append(["nat", "", fw_output_rule])
@@ -691,10 +691,10 @@ def main(argv):
 
     mon = CsMonitor("monitorservice", config)
     mon.process()
-    
-    #Save iptables configuration - will be loaded on reboot by the iptables-restore that is configured on /etc/rc.local
+
+    # Save iptables configuration - will be loaded on reboot by the iptables-restore that is configured on /etc/rc.local
     CsHelper.save_iptables("iptables-save", "/etc/iptables/router_rules.v4")
     CsHelper.save_iptables("ip6tables-save", "/etc/iptables/router_rules.v6")
-    
+
 if __name__ == "__main__":
     main(sys.argv)

http://git-wip-us.apache.org/repos/asf/cloudstack/blob/56483436/systemvm/patches/debian/config/opt/cloud/bin/cs/CsHelper.py
----------------------------------------------------------------------
diff --git a/systemvm/patches/debian/config/opt/cloud/bin/cs/CsHelper.py b/systemvm/patches/debian/config/opt/cloud/bin/cs/CsHelper.py
index 708422c..3b2488b 100755
--- a/systemvm/patches/debian/config/opt/cloud/bin/cs/CsHelper.py
+++ b/systemvm/patches/debian/config/opt/cloud/bin/cs/CsHelper.py
@@ -27,6 +27,7 @@ import shutil
 from netaddr import *
 from pprint import pprint
 
+
 def is_mounted(name):
     for i in execute("mount"):
         vals = i.lstrip().split()
@@ -165,10 +166,10 @@ def execute(command):
 def save_iptables(command, iptables_file):
     """ Execute command """
     logging.debug("Saving iptables for %s" % command)
-    
+
     result = execute(command)
     fIptables = open(iptables_file, "w+")
-    
+
     for line in result:
         fIptables.write(line)
         fIptables.write("\n")

http://git-wip-us.apache.org/repos/asf/cloudstack/blob/56483436/systemvm/patches/debian/config/opt/cloud/bin/cs/CsRedundant.py
----------------------------------------------------------------------
diff --git a/systemvm/patches/debian/config/opt/cloud/bin/cs/CsRedundant.py b/systemvm/patches/debian/config/opt/cloud/bin/cs/CsRedundant.py
index 3e78f4c..11173b6 100755
--- a/systemvm/patches/debian/config/opt/cloud/bin/cs/CsRedundant.py
+++ b/systemvm/patches/debian/config/opt/cloud/bin/cs/CsRedundant.py
@@ -169,12 +169,12 @@ class CsRedundant(object):
         for iter in range(0, iterations):
             try:
                 s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
-                s.bind( '\0master_lock')
+                s.bind('\0master_lock')
                 return s
             except socket.error, e:
                 error_code = e.args[0]
                 error_string = e.args[1]
-                print "Process already running (%d:%s ). Exiting" % ( error_code, error_string)
+                print "Process already running (%d:%s). Exiting" % (error_code, error_string)
                 logging.info("Master is already running, waiting")
                 sleep(1)
 

http://git-wip-us.apache.org/repos/asf/cloudstack/blob/56483436/systemvm/patches/debian/config/opt/cloud/bin/cs_firewallrules.py
----------------------------------------------------------------------
diff --git a/systemvm/patches/debian/config/opt/cloud/bin/cs_firewallrules.py b/systemvm/patches/debian/config/opt/cloud/bin/cs_firewallrules.py
index d617a09..c0ccedd 100755
--- a/systemvm/patches/debian/config/opt/cloud/bin/cs_firewallrules.py
+++ b/systemvm/patches/debian/config/opt/cloud/bin/cs_firewallrules.py
@@ -18,6 +18,7 @@
 from pprint import pprint
 import copy
 
+
 def merge(dbag, data):
     dbagc = copy.deepcopy(dbag)
     if "rules" not in data:

http://git-wip-us.apache.org/repos/asf/cloudstack/blob/56483436/systemvm/test/python/TestCsCmdLine.py
----------------------------------------------------------------------
diff --git a/systemvm/test/python/TestCsCmdLine.py b/systemvm/test/python/TestCsCmdLine.py
index 594ccd9..ccd0585 100644
--- a/systemvm/test/python/TestCsCmdLine.py
+++ b/systemvm/test/python/TestCsCmdLine.py
@@ -45,7 +45,6 @@ class TestCsCmdLine(unittest.TestCase):
         self.assertTrue(self.cscmdline.is_redundant() is True)
 
     def test_get_guest_gw(self):
-        self.assertTrue(self.cscmdline.get_guest_gw() == '1.2.3.4')
         tval = "192.168.1.4"
         self.cscmdline.set_guest_gw(tval)
         self.assertTrue(self.cscmdline.get_guest_gw() == tval)

http://git-wip-us.apache.org/repos/asf/cloudstack/blob/56483436/systemvm/test/python/TestCsInterface.py
----------------------------------------------------------------------
diff --git a/systemvm/test/python/TestCsInterface.py b/systemvm/test/python/TestCsInterface.py
index 7c73c5c..f30e599 100644
--- a/systemvm/test/python/TestCsInterface.py
+++ b/systemvm/test/python/TestCsInterface.py
@@ -31,9 +31,6 @@ class TestCsInterface(unittest.TestCase):
         csconfig.cl = self.cmdline
         self.csinterface = CsInterface({}, csconfig)
 
-    def test_get_gateway(self):
-        self.assertTrue(self.csinterface.get_gateway() == "1.2.3.4")
-
     def test_is_public(self):
         self.assertTrue(self.csinterface.is_public() is False)
 

http://git-wip-us.apache.org/repos/asf/cloudstack/blob/56483436/systemvm/test/python/TestCsRule.py
----------------------------------------------------------------------
diff --git a/systemvm/test/python/TestCsRule.py b/systemvm/test/python/TestCsRule.py
index f8b6fae..2e37505 100644
--- a/systemvm/test/python/TestCsRule.py
+++ b/systemvm/test/python/TestCsRule.py
@@ -26,7 +26,7 @@ class TestCsRule(unittest.TestCase):
         merge.DataBag.DPATH = "."
 
     def test_init(self):
-        csrule = CsRule(["one", "two", "three", "four"])
+        csrule = CsRule("eth1")
         self.assertTrue(csrule is not None)
 
 if __name__ == '__main__':

http://git-wip-us.apache.org/repos/asf/cloudstack/blob/56483436/systemvm/test/python/runtests.sh
----------------------------------------------------------------------
diff --git a/systemvm/test/python/runtests.sh b/systemvm/test/python/runtests.sh
index 8ecdb3d..6d6a196 100644
--- a/systemvm/test/python/runtests.sh
+++ b/systemvm/test/python/runtests.sh
@@ -21,7 +21,7 @@
 export PYTHONPATH="../../patches/debian/config/opt/cloud/bin/"
 export PYTHONDONTWRITEBYTECODE=False
 
-pep8 --max-line-length=179 --exclude=monitorServices.py,baremetal-vr.py `find ../../patches -name \*.py`
+pep8 --max-line-length=179 --exclude=monitorServices.py,baremetal-vr.py,passwd_server_ip.py `find ../../patches -name \*.py`
 pep8 --max-line-length=179 *py
 
 nosetests .


[3/3] git commit: updated refs/heads/master to ace44f7

Posted by ek...@apache.org.
Merge branch 'fix/pep8_issues'

This closes #304

Signed-off by Wilder "Ekho" Rodrigues


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/ace44f7f
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/ace44f7f
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/ace44f7f

Branch: refs/heads/master
Commit: ace44f7f13ef670898781f23638c579ef0ca6bea
Parents: dce34ad 6b415cb
Author: wilderrodrigues <wr...@schubergphilis.com>
Authored: Wed May 27 09:54:43 2015 +0200
Committer: wilderrodrigues <wr...@schubergphilis.com>
Committed: Wed May 27 09:54:43 2015 +0200

----------------------------------------------------------------------
 .../patches/debian/config/opt/cloud/bin/configure.py    | 12 ++++++------
 .../patches/debian/config/opt/cloud/bin/cs/CsHelper.py  |  5 +++--
 .../debian/config/opt/cloud/bin/cs/CsRedundant.py       |  4 ++--
 .../debian/config/opt/cloud/bin/cs_firewallrules.py     |  1 +
 systemvm/test/python/TestCsCmdLine.py                   |  1 -
 systemvm/test/python/TestCsInterface.py                 |  3 ---
 systemvm/test/python/TestCsRule.py                      |  2 +-
 systemvm/test/python/runtests.sh                        |  2 +-
 8 files changed, 14 insertions(+), 16 deletions(-)
----------------------------------------------------------------------



[2/3] git commit: updated refs/heads/master to ace44f7

Posted by ek...@apache.org.
Merge branch 'feature_fix_pep8_2' of https://github.com/isoutham/cloudstack into fix/pep8_issues

Testing PR #304


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/6b415cb2
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/6b415cb2
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/6b415cb2

Branch: refs/heads/master
Commit: 6b415cb26f65863268f5ca1b09e18cf82defe9bc
Parents: dce34ad 5648343
Author: wilderrodrigues <wr...@schubergphilis.com>
Authored: Wed May 27 09:34:07 2015 +0200
Committer: wilderrodrigues <wr...@schubergphilis.com>
Committed: Wed May 27 09:34:07 2015 +0200

----------------------------------------------------------------------
 .../patches/debian/config/opt/cloud/bin/configure.py    | 12 ++++++------
 .../patches/debian/config/opt/cloud/bin/cs/CsHelper.py  |  5 +++--
 .../debian/config/opt/cloud/bin/cs/CsRedundant.py       |  4 ++--
 .../debian/config/opt/cloud/bin/cs_firewallrules.py     |  1 +
 systemvm/test/python/TestCsCmdLine.py                   |  1 -
 systemvm/test/python/TestCsInterface.py                 |  3 ---
 systemvm/test/python/TestCsRule.py                      |  2 +-
 systemvm/test/python/runtests.sh                        |  2 +-
 8 files changed, 14 insertions(+), 16 deletions(-)
----------------------------------------------------------------------