Royce Lv has uploaded a new change for review.
Change subject: [WIP]clean authKey for managers ......................................................................
[WIP]clean authKey for managers
when authKey is omitted, it will use current_process().authKey, and this key will be herited when using Process() to start child. So no authKey manager is used for child/parent communication.
Change-Id: Iff8a8169d30fc12b212d550474ef18189b5acc8d Signed-off-by:Royce Lvlvroyce@linux.vnet.ibm.com --- M vdsm/supervdsm.py M vdsm/supervdsmServer.py 2 files changed, 2 insertions(+), 19 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/93/11193/1
diff --git a/vdsm/supervdsm.py b/vdsm/supervdsm.py index 10abae0..0512e30 100644 --- a/vdsm/supervdsm.py +++ b/vdsm/supervdsm.py @@ -117,21 +117,6 @@ for f in (self.pidfile, self.timestamp, self.address): utils.rmFile(f)
- def _start(self): - self._authkey = str(uuid.uuid4()) - self._log.debug("Launching Super Vdsm") - - # we pass to svdsm filenames and uid. Svdsm will use those filenames - # to create its internal files and give to the passed uid the - # permissions to read those files. - superVdsmCmd = [constants.EXT_PYTHON, SUPERVDSM, - self._authkey, str(os.getpid()), - self.pidfile, self.timestamp, self.address, - str(os.getuid())] - - misc.execCmd(superVdsmCmd, sync=False, sudo=True) - sleep(2) - def kill(self): try: with open(self.pidfile, "r") as f: @@ -142,7 +127,6 @@ exc_info=True)
self._cleanOldFiles() - self._authkey = None self._manager = None self._svdsm = None self._firstLaunch = True @@ -179,8 +163,7 @@ return False
def _connect(self): - self._manager = _SuperVdsmManager(address=self.address, - authkey=self._authkey) + self._manager = _SuperVdsmManager(address=self.address) self._manager.register('instance') self._manager.register('open') self._log.debug("Trying to connect to Super Vdsm") diff --git a/vdsm/supervdsmServer.py b/vdsm/supervdsmServer.py index 77d2798..d789b4c 100755 --- a/vdsm/supervdsmServer.py +++ b/vdsm/supervdsmServer.py @@ -400,7 +400,7 @@
try: log.debug("Creating remote object manager") - manager = _SuperVdsmManager(address=address, authkey=authkey) + manager = _SuperVdsmManager(address=address) manager.register('instance', callable=_SuperVdsm)
server = manager.get_server()
-- To view, visit http://gerrit.ovirt.org/11193 To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange Gerrit-Change-Id: Iff8a8169d30fc12b212d550474ef18189b5acc8d Gerrit-PatchSet: 1 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Royce Lv lvroyce@linux.vnet.ibm.com
oVirt Jenkins CI Server has posted comments on this change.
Change subject: [WIP]clean authKey for managers ......................................................................
Patch Set 1:
Build Started http://jenkins.ovirt.org/job/vdsm_unit_tests_manual_gerrit/840/ (1/2)
-- To view, visit http://gerrit.ovirt.org/11193 To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment Gerrit-Change-Id: Iff8a8169d30fc12b212d550474ef18189b5acc8d Gerrit-PatchSet: 1 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Royce Lv lvroyce@linux.vnet.ibm.com Gerrit-Reviewer: oVirt Jenkins CI Server
oVirt Jenkins CI Server has posted comments on this change.
Change subject: [WIP]clean authKey for managers ......................................................................
Patch Set 1:
Build Started http://jenkins.ovirt.org/job/vdsm_pep8_gerrit/805/ (2/2)
-- To view, visit http://gerrit.ovirt.org/11193 To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment Gerrit-Change-Id: Iff8a8169d30fc12b212d550474ef18189b5acc8d Gerrit-PatchSet: 1 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Royce Lv lvroyce@linux.vnet.ibm.com Gerrit-Reviewer: oVirt Jenkins CI Server
oVirt Jenkins CI Server has posted comments on this change.
Change subject: [WIP]clean authKey for managers ......................................................................
Patch Set 1: Fails
Build Failed
http://jenkins.ovirt.org/job/vdsm_pep8_gerrit/805/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_unit_tests_manual_gerrit/840/ : FAILURE
-- To view, visit http://gerrit.ovirt.org/11193 To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment Gerrit-Change-Id: Iff8a8169d30fc12b212d550474ef18189b5acc8d Gerrit-PatchSet: 1 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Royce Lv lvroyce@linux.vnet.ibm.com Gerrit-Reviewer: oVirt Jenkins CI Server
oVirt Jenkins CI Server has posted comments on this change.
Change subject: [WIP]clean authKey for managers ......................................................................
Patch Set 2:
Build Started http://jenkins.ovirt.org/job/vdsm_pep8_gerrit/815/ (1/2)
-- To view, visit http://gerrit.ovirt.org/11193 To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment Gerrit-Change-Id: Iff8a8169d30fc12b212d550474ef18189b5acc8d Gerrit-PatchSet: 2 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Royce Lv lvroyce@linux.vnet.ibm.com Gerrit-Reviewer: Royce Lv lvroyce@linux.vnet.ibm.com Gerrit-Reviewer: oVirt Jenkins CI Server
oVirt Jenkins CI Server has posted comments on this change.
Change subject: [WIP]clean authKey for managers ......................................................................
Patch Set 2:
Build Started http://jenkins.ovirt.org/job/vdsm_unit_tests_manual_gerrit/850/ (2/2)
-- To view, visit http://gerrit.ovirt.org/11193 To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment Gerrit-Change-Id: Iff8a8169d30fc12b212d550474ef18189b5acc8d Gerrit-PatchSet: 2 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Royce Lv lvroyce@linux.vnet.ibm.com Gerrit-Reviewer: Royce Lv lvroyce@linux.vnet.ibm.com Gerrit-Reviewer: oVirt Jenkins CI Server
oVirt Jenkins CI Server has posted comments on this change.
Change subject: [WIP]clean authKey for managers ......................................................................
Patch Set 2: Fails
Build Failed
http://jenkins.ovirt.org/job/vdsm_pep8_gerrit/815/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_unit_tests_manual_gerrit/850/ : FAILURE
-- To view, visit http://gerrit.ovirt.org/11193 To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment Gerrit-Change-Id: Iff8a8169d30fc12b212d550474ef18189b5acc8d Gerrit-PatchSet: 2 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Royce Lv lvroyce@linux.vnet.ibm.com Gerrit-Reviewer: Royce Lv lvroyce@linux.vnet.ibm.com Gerrit-Reviewer: oVirt Jenkins CI Server
oVirt Jenkins CI Server has posted comments on this change.
Change subject: [WIP]clean authKey for managers ......................................................................
Patch Set 3:
Build Started http://jenkins.ovirt.org/job/vdsm_pep8_gerrit/822/ (1/2)
-- To view, visit http://gerrit.ovirt.org/11193 To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment Gerrit-Change-Id: Iff8a8169d30fc12b212d550474ef18189b5acc8d Gerrit-PatchSet: 3 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Royce Lv lvroyce@linux.vnet.ibm.com Gerrit-Reviewer: Royce Lv lvroyce@linux.vnet.ibm.com Gerrit-Reviewer: oVirt Jenkins CI Server
oVirt Jenkins CI Server has posted comments on this change.
Change subject: [WIP]clean authKey for managers ......................................................................
Patch Set 3:
Build Started http://jenkins.ovirt.org/job/vdsm_unit_tests_manual_gerrit/857/ (2/2)
-- To view, visit http://gerrit.ovirt.org/11193 To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment Gerrit-Change-Id: Iff8a8169d30fc12b212d550474ef18189b5acc8d Gerrit-PatchSet: 3 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Royce Lv lvroyce@linux.vnet.ibm.com Gerrit-Reviewer: Royce Lv lvroyce@linux.vnet.ibm.com Gerrit-Reviewer: oVirt Jenkins CI Server
oVirt Jenkins CI Server has posted comments on this change.
Change subject: [WIP]clean authKey for managers ......................................................................
Patch Set 3:
Build Successful
http://jenkins.ovirt.org/job/vdsm_pep8_gerrit/822/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_unit_tests_manual_gerrit/857/ : SUCCESS
-- To view, visit http://gerrit.ovirt.org/11193 To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment Gerrit-Change-Id: Iff8a8169d30fc12b212d550474ef18189b5acc8d Gerrit-PatchSet: 3 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Royce Lv lvroyce@linux.vnet.ibm.com Gerrit-Reviewer: Royce Lv lvroyce@linux.vnet.ibm.com Gerrit-Reviewer: Yaniv Bronhaim ybronhei@redhat.com Gerrit-Reviewer: oVirt Jenkins CI Server
Yaniv Bronhaim has posted comments on this change.
Change subject: [WIP]clean authKey for managers ......................................................................
Patch Set 3:
you can't omit it before changing the communication between the two.. it's all need to be merged together. this patch should be part of changing the use in multiprocessing to fork and the RPC style.
-- To view, visit http://gerrit.ovirt.org/11193 To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment Gerrit-Change-Id: Iff8a8169d30fc12b212d550474ef18189b5acc8d Gerrit-PatchSet: 3 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Royce Lv lvroyce@linux.vnet.ibm.com Gerrit-Reviewer: Royce Lv lvroyce@linux.vnet.ibm.com Gerrit-Reviewer: Yaniv Bronhaim ybronhei@redhat.com Gerrit-Reviewer: oVirt Jenkins CI Server
Royce Lv has posted comments on this change.
Change subject: [WIP]clean authKey for managers ......................................................................
Patch Set 3:
As I wrote in the commit message, we can use multiprocessing manager without key to do parent/child IPC.It has been tested. If we're going to use crabRPC, that will be the second step after the frame work is stable.And I think the framework should be independent from IPC method.
-- To view, visit http://gerrit.ovirt.org/11193 To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment Gerrit-Change-Id: Iff8a8169d30fc12b212d550474ef18189b5acc8d Gerrit-PatchSet: 3 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Royce Lv lvroyce@linux.vnet.ibm.com Gerrit-Reviewer: Royce Lv lvroyce@linux.vnet.ibm.com Gerrit-Reviewer: Yaniv Bronhaim ybronhei@redhat.com Gerrit-Reviewer: oVirt Jenkins CI Server
oVirt Jenkins CI Server has posted comments on this change.
Change subject: [WIP]omit authKey to use the default one ......................................................................
Patch Set 4:
Build Started http://jenkins.ovirt.org/job/vdsm_unit_tests_gerrit_el/7/ (1/3)
-- To view, visit http://gerrit.ovirt.org/11193 To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment Gerrit-Change-Id: Iff8a8169d30fc12b212d550474ef18189b5acc8d Gerrit-PatchSet: 4 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Royce Lv lvroyce@linux.vnet.ibm.com Gerrit-Reviewer: Royce Lv lvroyce@linux.vnet.ibm.com Gerrit-Reviewer: Yaniv Bronhaim ybronhei@redhat.com Gerrit-Reviewer: oVirt Jenkins CI Server
oVirt Jenkins CI Server has posted comments on this change.
Change subject: [WIP]omit authKey to use the default one ......................................................................
Patch Set 4:
Build Started http://jenkins.ovirt.org/job/vdsm_unit_tests_gerrit/899/ (2/3)
-- To view, visit http://gerrit.ovirt.org/11193 To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment Gerrit-Change-Id: Iff8a8169d30fc12b212d550474ef18189b5acc8d Gerrit-PatchSet: 4 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Royce Lv lvroyce@linux.vnet.ibm.com Gerrit-Reviewer: Royce Lv lvroyce@linux.vnet.ibm.com Gerrit-Reviewer: Yaniv Bronhaim ybronhei@redhat.com Gerrit-Reviewer: oVirt Jenkins CI Server
oVirt Jenkins CI Server has posted comments on this change.
Change subject: [WIP]omit authKey to use the default one ......................................................................
Patch Set 4:
Build Started http://jenkins.ovirt.org/job/vdsm_pep8_gerrit/864/ (3/3)
-- To view, visit http://gerrit.ovirt.org/11193 To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment Gerrit-Change-Id: Iff8a8169d30fc12b212d550474ef18189b5acc8d Gerrit-PatchSet: 4 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Royce Lv lvroyce@linux.vnet.ibm.com Gerrit-Reviewer: Royce Lv lvroyce@linux.vnet.ibm.com Gerrit-Reviewer: Yaniv Bronhaim ybronhei@redhat.com Gerrit-Reviewer: oVirt Jenkins CI Server
oVirt Jenkins CI Server has posted comments on this change.
Change subject: [WIP]omit authKey to use the default one ......................................................................
Patch Set 4: Fails
Build Failed
http://jenkins.ovirt.org/job/vdsm_pep8_gerrit/864/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_unit_tests_gerrit/899/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_unit_tests_gerrit_el/7/ : FAILURE
-- To view, visit http://gerrit.ovirt.org/11193 To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment Gerrit-Change-Id: Iff8a8169d30fc12b212d550474ef18189b5acc8d Gerrit-PatchSet: 4 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Royce Lv lvroyce@linux.vnet.ibm.com Gerrit-Reviewer: Royce Lv lvroyce@linux.vnet.ibm.com Gerrit-Reviewer: Yaniv Bronhaim ybronhei@redhat.com Gerrit-Reviewer: oVirt Jenkins CI Server
Itamar Heim has abandoned this change.
Change subject: [WIP]omit authKey to use the default one ......................................................................
Abandoned
supervdsm design changed this - please re-open if relevant
vdsm-patches@lists.fedorahosted.org