Dan Kenigsberg has posted comments on this change.
Change subject: BZ#736114 bootstrap: override iptables if requested
......................................................................
Patch Set 1: (5 inline comments)
....................................................
File vds_bootstrap/vds_bootstrap.py
Line 159: -A INPUT -p tcp --dport 22 -j ACCEPT
Line 160: # guest consoles
Line 161: -A INPUT -p tcp -m multiport --dports 5634:6166 -j ACCEPT
Line 162: # migration
Line 163: -A INPUT -p tcp -m multiport --dports 49152:49216 -j ACCEPT
This makes some sense, but on the other had - I prefer to take this verbatim from RHEV-H.
Line 164: # snmp
Line 165: -A INPUT -p udp --dport 161 -j ACCEPT
Line 166: #
Line 167: -A INPUT -j REJECT --reject-with icmp-host-prohibited
Line 724: def overrideFirewall(self):
Line 725: self.message = 'overriden firewall successfully'
Line 726: self.rc = True
Line 727: self.st = 'OK'
Line 728: f = file('/etc/sysconfig/iptables', 'w')
Done
Line 729: try:
Line 730: f.write(__DEFAULT_IPTABLES__)
Line 731: finally:
Line 732: f.close()
Line 726: self.rc = True
Line 727: self.st = 'OK'
Line 728: f = file('/etc/sysconfig/iptables', 'w')
Line 729: try:
Line 730: f.write(__DEFAULT_IPTABLES__)
Done
Line 731: finally:
Line 732: f.close()
Line 733:
Line 734: self._xmlOutput('Firewall', self.st, None, None, self.message)
Line 871: def main():
Line 872: """
Line 873: Usage: vds_compat.py [-r rev_num] [-O organizationName] [-t systemTime]
Line 874: [-n netconsole_host:port] [-u (seProductRepo) true|false ]
Line 875: [-f (firewall) ] <url> <subject> <random_num>
ok, I'll fix it but keep it in another patch, as this script is never called manually - only by rhevm.
Line 876: """
Line 877: try:
Line 878: rev_num = None
Line 879: orgName = 'Red Hat Inc.'
Line 894: if o == "-u":
Line 895: usevdcrepo = (v.upper() == 'TRUE')
Line 896: elif o == '-f':
Line 897: overrideFirewall = True
Line 898: NEEDED_SERVICES.append('iptables')
I would not like to complicate the API to rhev-m. the meaning of -f is "whatever firewall you had, trash it, and replace by default ovirt firewall". Specifically this means "start firewall".
Line 899:
Line 900: url = args[0]
Line 901: subject = args[1]
Line 902: random_num = args[2]
--
To view, visit http://gerrit.usersys.redhat.com/945
To unsubscribe, visit http://gerrit.usersys.redhat.com/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I6a2e7d0512a2c9fc691135bf42b03fdcb3ee088a
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Dan Kenigsberg <danken(a)redhat.com>
Gerrit-Reviewer: Dan Kenigsberg <danken(a)redhat.com>
Gerrit-Reviewer: Yotam Oron <yoron(a)redhat.com>
Dan Kenigsberg has posted comments on this change.
Change subject: BZ#740887 Tune cache dirty ratio
......................................................................
Patch Set 2: I would prefer that you didn't submit this
(1 inline comment)
....................................................
File vdsm/clientIF.py
Line 107: self._networkSemaphore = threading.Semaphore()
Line 108: self._shutdownSemaphore = threading.Semaphore()
Line 109: self.log = log
Line 110: self._recovery = True
Line 111: self._tuneDirtyRatio()
wouldn't it be nicer if pushed into storage_dispatcher.__init__?
wait a minute... can vdsm even tune this? shouldn't this be root?
how about doing this in vdsmd^Wvdsm.tool?
Line 112: self._libvirt = libvirtconnection.get()
Line 113: self.serverPort = config.get('addresses', 'management_port')
Line 114: self.serverIP = self._getServerIP()
Line 115: self.server = self._createXMLRPCServer()
--
To view, visit http://gerrit.usersys.redhat.com/970
To unsubscribe, visit http://gerrit.usersys.redhat.com/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: Ibf5c8e4c0637c60092b89fba103b96b37bdafaa0
Gerrit-PatchSet: 2
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Federico Simoncelli <fsimonce(a)redhat.com>
Gerrit-Reviewer: Ayal Baron
Gerrit-Reviewer: Dan Kenigsberg <danken(a)redhat.com>
Gerrit-Reviewer: Federico Simoncelli <fsimonce(a)redhat.com>
Federico Simoncelli has posted comments on this change.
Change subject: BZ#740887 Tune cache dirty ratio
......................................................................
Patch Set 2: (1 inline comment)
....................................................
File vdsm/storage/misc.py
Line 1147:
Line 1148: def getfds():
Line 1149: return [int(fd) for fd in os.listdir("/proc/self/fd")]
Line 1150:
Line 1151: def setDirtyRatio(ratio=20):
Because the kernel defaults are different than what we set. If we consider this to be a misc utility library (that in theory anyone could use) I'd rather keep the kernel values as defaults and let vdsm set what it needs.
Line 1152: with file("/proc/sys/vm/dirty_ratio", "w") as f:
Line 1153: f.write(ratio)
Line 1154:
Line 1155: def setDirtyBackgroundRatio(ratio=10):
--
To view, visit http://gerrit.usersys.redhat.com/970
To unsubscribe, visit http://gerrit.usersys.redhat.com/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: Ibf5c8e4c0637c60092b89fba103b96b37bdafaa0
Gerrit-PatchSet: 2
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Federico Simoncelli <fsimonce(a)redhat.com>
Gerrit-Reviewer: Ayal Baron
Gerrit-Reviewer: Dan Kenigsberg <danken(a)redhat.com>
Gerrit-Reviewer: Federico Simoncelli <fsimonce(a)redhat.com>