Antoni Segura Puimedon has uploaded a new change for review.
Change subject: split vdsm-network restoration service from vdsmd ......................................................................
split vdsm-network restoration service from vdsmd
Right now the task of doing network restoration is delegated to the vdsmd service initialization. This has the disadvantages of: - Disabling vdsmd can render the machine unaccessible as the vdsm networks will not be started upon boot. - Not allowing to run it before network.target, making boot slower (other services may configure the nets before the restoration).
Change-Id: I70cdf1e8a1e7063ec850081ac6199728d4cde381 Signed-off-by: Antoni S. Puimedon asegurap@redhat.com --- M init/systemd/Makefile.am A init/systemd/vdsm-network.service.in M init/vdsmd_init_common.sh.in M vdsm/vdsm-restore-net-config 4 files changed, 50 insertions(+), 18 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/41/29441/1
diff --git a/init/systemd/Makefile.am b/init/systemd/Makefile.am index 4a871df..07c4ae8 100644 --- a/init/systemd/Makefile.am +++ b/init/systemd/Makefile.am @@ -23,8 +23,9 @@ nodist_noinst_DATA = \ supervdsmd.service \ systemd-vdsmd \ - vdsm-tmpfiles.d.conf \ vdsmd.service \ + vdsm-network.service \ + vdsm-tmpfiles.d.conf \ $(NULL)
CLEANFILES = \ @@ -35,8 +36,9 @@ EXTRA_DIST = \ supervdsmd.service.in \ systemd-vdsmd.in \ - vdsm-tmpfiles.d.conf.in \ vdsmd.service.in \ + vdsm-network.service.in \ + vdsm-tmpfiles.d.conf.in \ $(NULL)
all-local: \ diff --git a/init/systemd/vdsm-network.service.in b/init/systemd/vdsm-network.service.in new file mode 100644 index 0000000..97aa3e2 --- /dev/null +++ b/init/systemd/vdsm-network.service.in @@ -0,0 +1,20 @@ +[Unit] +Description=Virtual Desktop Server Manager network restoration +Wants=network.target +Before=network.target network.service NetworkManager.service + +[Service] +Type=oneshot +RemainAfterExit=yes +EnvironmentFile=-/etc/sysconfig/vdsm +ExecStartPre=@BINDIR@/vdsm-tool --vvverbose --append --logfile=@VDSMLOGDIR@/upgrade.log upgrade-unified-persistence +ExecStartPre=@BINDIR@/vdsm-tool --vvverbose --append --logfile=@VDSMLOGDIR@/upgrade.log upgrade-3.0.0-networks +ExecStart=@VDSMDIR@/vdsm-restore-net-config --conditional + +# With the following two directives, we make sure that using systemctl to +# restart will actually restore the networks +RemainAfterExit=yes +ExecStopPost=rm @VDSMRUN@/nets_restored + +[Install] +WantedBy=multi-user.target diff --git a/init/vdsmd_init_common.sh.in b/init/vdsmd_init_common.sh.in index e142470..327d2c3 100644 --- a/init/vdsmd_init_common.sh.in +++ b/init/vdsmd_init_common.sh.in @@ -189,15 +189,6 @@ }
-task_restore_nets(){ - local restoration_file="@VDSMRUNDIR@/nets_restored" - if [ ! -f "${restoration_file}" ]; then - "@PYTHON@" "@VDSMDIR@/vdsm-restore-net-config" || return 1 - touch "${restoration_file}" - fi - return 0 -} - task_unified_network_persistence_upgrade(){ "$VDSM_TOOL" ${UPGRADE_LOGGING_PARAMS} upgrade-unified-persistence } @@ -253,7 +244,6 @@ test_space \ test_lo \ unified_network_persistence_upgrade \ - restore_nets \ upgrade_300_nets \ " ;; diff --git a/vdsm/vdsm-restore-net-config b/vdsm/vdsm-restore-net-config index 7adfcac..1c4a9eb 100755 --- a/vdsm/vdsm-restore-net-config +++ b/vdsm/vdsm-restore-net-config @@ -1,4 +1,4 @@ -#! /usr/bin/python +#! /usr/bin/env python2 # # Copyright 2011-2014 Red Hat, Inc. # @@ -18,10 +18,14 @@ # # Refer to the README and COPYING files for full details of the license # +import argparse import logging import logging.config +import os +import sys
from vdsm.config import config +from vdsm import constants, utils
# Ifcfg persistence restoration from network.configurators import ifcfg @@ -79,11 +83,20 @@ yield cls
-def restore(): - if config.get('vars', 'net_persistence') == 'unified': - unified_restoration() +def restore(conditional=False): + if conditional: + restoration_file = constants.P_RUN + 'nets_restored' + if not os.path.exists(restoration_file): + _restore() + utils.touchFile(restoration_file) else: - ifcfg_restoration() + _restore() + + +if config.get('vars', 'net_persistence') == 'unified': + _restore = unified_restoration() +else: + _restore = ifcfg_restoration()
if __name__ == '__main__': @@ -95,4 +108,11 @@ level=logging.DEBUG) logging.error('Could not init proper logging', exc_info=True)
- restore() + parser = argparse.ArgumentParser( + description="Copies the specified file to /config and then bindmounts " + "it back at it's original location. The file is stored with its full " + "path detail.") + parser.add_argument('--conditional', action='store_true', default=False) + + arguments = parser.parse_args(sys.argv[1:]) + restore(conditional=arguments.conditional)
oVirt Jenkins CI Server has posted comments on this change.
Change subject: split vdsm-network restoration service from vdsmd ......................................................................
Patch Set 1:
Build Failed
http://jenkins.ovirt.org/job/vdsm_master_unit_tests_gerrit_el/9812/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_pep8_gerrit/10597/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_unit-tests_created/10754/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_network_functional_tests_gerrit/157... : There was an infra issue, please contact infra@ovirt.org
Antoni Segura Puimedon has posted comments on this change.
Change subject: split vdsm-network restoration service from vdsmd ......................................................................
Patch Set 1:
(1 comment)
http://gerrit.ovirt.org/#/c/29441/1/init/systemd/vdsm-network.service.in File init/systemd/vdsm-network.service.in:
Line 12: ExecStart=@VDSMDIR@/vdsm-restore-net-config --conditional Line 13: Line 14: # With the following two directives, we make sure that using systemctl to Line 15: # restart will actually restore the networks Line 16: RemainAfterExit=yes This is repeated! Line 17: ExecStopPost=rm @VDSMRUN@/nets_restored Line 18: Line 19: [Install]
oVirt Jenkins CI Server has posted comments on this change.
Change subject: split vdsm-network restoration service from vdsmd ......................................................................
Patch Set 2:
Build Failed
http://jenkins.ovirt.org/job/vdsm_master_unit_tests_gerrit_el/12819/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_unit-tests_created/13771/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_network_functional_tests_gerrit/227... : There was an infra issue, please contact infra@ovirt.org
http://jenkins.ovirt.org/job/vdsm_master_pep8_gerrit/13608/ : SUCCESS
Antoni Segura Puimedon has posted comments on this change.
Change subject: split network restoration from vdsmd.service ......................................................................
Patch Set 3:
I did some interactive testing on el7 and the following was working:
- Nets were restored on boot. - systemctl reload vdsm-network works (tested when having three nets in RunningConfig and two in PersistentConfig) - systemctl restart works for the above case as well. - /usr/share/vdsm/vdsm-net-restore-config works for the same case - vdsm-tool restore-nets owrks for the same case as well.
Ido Barkan has posted comments on this change.
Change subject: split network restoration from vdsmd.service ......................................................................
Patch Set 3: Code-Review-1
(4 comments)
http://gerrit.ovirt.org/#/c/29441/3/vdsm/vdsm-restore-net-config File vdsm/vdsm-restore-net-config:
Line 39: import pkgutil Line 40: Line 41: RESTORATION_FILE = constants.P_VDSM_RUN + 'nets_restored' Line 42: Line 43: def ifcfg_restoration(**opts): missing newline (in general, pep8) Line 44: configWriter = ifcfg.ConfigWriter() Line 45: configWriter.restorePersistentBackup() Line 46: Line 47:
Line 66: # so that changes of configurator and persistence system are smooth. Line 67: Line 68: if flush_configurators: Line 69: _configurator_flush() Line 70: libvirt.flush() why is libvirt.flush() was moved here from the configurator itself? Line 71: Line 72: persistentConfig = PersistentConfig() Line 73: nets, bonds = _filter_nets_bonds(persistentConfig.networks, Line 74: persistentConfig.bonds)
Line 144: _configured_restore(**opts) Line 145: Line 146: Line 147: if config.get('vars', 'net_persistence') == 'unified': Line 148: _configured_restore= unified_restoration missing whitespace Line 149: else: Line 150: _configured_restore = ifcfg_restoration Line 151: Line 152:
Line 164: "it back at it's original location. The file is stored with its full " Line 165: "path detail.") Line 166: parser.add_argument('--conditional', action='store_true', default=False, Line 167: help='Perform only when "%s" does not exist' % Line 168: RESTORATION_FILE) mixed tabs and spaces Line 169: subparsers = parser.add_subparsers(help='sub-command help') Line 170: Line 171: # reconfigure Line 172: parser_reconfigure = subparsers.add_parser(
Antoni Segura Puimedon has posted comments on this change.
Change subject: split network restoration from vdsmd.service ......................................................................
Patch Set 3:
(4 comments)
Thanks for the comments Ido!
http://gerrit.ovirt.org/#/c/29441/3/vdsm/vdsm-restore-net-config File vdsm/vdsm-restore-net-config:
Line 39: import pkgutil Line 40: Line 41: RESTORATION_FILE = constants.P_VDSM_RUN + 'nets_restored' Line 42: Line 43: def ifcfg_restoration(**opts):
missing newline (in general, pep8)
Done Line 44: configWriter = ifcfg.ConfigWriter() Line 45: configWriter.restorePersistentBackup() Line 46: Line 47:
Line 66: # so that changes of configurator and persistence system are smooth. Line 67: Line 68: if flush_configurators: Line 69: _configurator_flush() Line 70: libvirt.flush()
why is libvirt.flush() was moved here from the configurator itself?
Because the configurators deal with device configuration, so it was a bit shaky that the base class did libvirt flushing as well.
Moving it here allows us to have configurator flushing in the vdsm-network-cleanup.service (which happens so early in boot that it can't use libvirt), and then do the libvirt flush before configuring networks here. Line 71: Line 72: persistentConfig = PersistentConfig() Line 73: nets, bonds = _filter_nets_bonds(persistentConfig.networks, Line 74: persistentConfig.bonds)
Line 144: _configured_restore(**opts) Line 145: Line 146: Line 147: if config.get('vars', 'net_persistence') == 'unified': Line 148: _configured_restore= unified_restoration
missing whitespace
Done Line 149: else: Line 150: _configured_restore = ifcfg_restoration Line 151: Line 152:
Line 164: "it back at it's original location. The file is stored with its full " Line 165: "path detail.") Line 166: parser.add_argument('--conditional', action='store_true', default=False, Line 167: help='Perform only when "%s" does not exist' % Line 168: RESTORATION_FILE)
mixed tabs and spaces
Done Line 169: subparsers = parser.add_subparsers(help='sub-command help') Line 170: Line 171: # reconfigure Line 172: parser_reconfigure = subparsers.add_parser(
oVirt Jenkins CI Server has posted comments on this change.
Change subject: split network restoration from vdsmd.service ......................................................................
Patch Set 3:
Build Failed
http://jenkins.ovirt.org/job/vdsm_master_unit_tests_gerrit_el/12865/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-el7_created/93/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_unit-tests_created/13817/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-fc21_created/88/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-el6_created/653/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-fc20_created/634... : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_pep8_gerrit/13654/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_network_functional_tests_gerrit/228... : There was an infra issue, please contact infra@ovirt.org
oVirt Jenkins CI Server has posted comments on this change.
Change subject: split network restoration from vdsmd.service ......................................................................
Patch Set 4:
Build Failed
http://jenkins.ovirt.org/job/vdsm_master_unit_tests_gerrit_el/12870/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-el7_created/97/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_unit-tests_created/13822/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-fc21_created/92/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-el6_created/657/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-fc20_created/638... : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_pep8_gerrit/13659/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_network_functional_tests_gerrit/228... : There was an infra issue, please contact infra@ovirt.org
Antoni Segura Puimedon has posted comments on this change.
Change subject: split network restoration from vdsmd.service ......................................................................
Patch Set 4:
(1 comment)
http://gerrit.ovirt.org/#/c/29441/4/vdsm/vdsm-restore-net-config File vdsm/vdsm-restore-net-config:
Line 59: for bond in runningConfig.bonds: Line 60: removeBonds[bond] = {'remove': True} Line 61: logging.debug('Removing all networks (%s) and bonds (%s) in running ' Line 62: 'config.', removeNetworks, removeBonds) Line 63: setupNetworks(removeNetworks, removeBonds, connectivityCheck=False, Only run setupNetworks if there is stuff in removeNetworks or removeBonds. Line 64: _inRollback=True) Line 65: Line 66: # Flush vdsm configurations left-overs from any configurator on the system Line 67: # so that changes of configurator and persistence system are smooth.
Ido Barkan has posted comments on this change.
Change subject: split network restoration from vdsmd.service ......................................................................
Patch Set 4:
(1 comment)
http://gerrit.ovirt.org/#/c/29441/4/vdsm/vdsm-restore-net-config File vdsm/vdsm-restore-net-config:
Line 127: if sys.modules[cls.__module__].is_available(): Line 128: yield cls Line 129: Line 130: Line 131: def _configurator_flush(conditional=False, **opts): opts parameter deserves a coment that it is there just to conform to _configurator_flush signature, so nobody will attempt to remove it, as it is not used. Line 132: """Flush vdsm configurations left-overs from any configurator on the system Line 133: so that changes of configurator and persistence system are smooth.""" Line 134: if (conditional and upgrade._upgrade_needed( Line 135: unified_persistence.UpgradeUnifiedPersistence)):
Antoni Segura Puimedon has posted comments on this change.
Change subject: split network restoration from vdsmd.service ......................................................................
Patch Set 8:
Since now systemd behaves differently, it's better to take this logic out of vdsmd_init_common.sh.in (as the latest version does).
oVirt Jenkins CI Server has posted comments on this change.
Change subject: split network restoration from vdsmd.service ......................................................................
Patch Set 5:
Build Failed
http://jenkins.ovirt.org/job/vdsm_master_unit_tests_gerrit_el/12914/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-el7_created/99/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_unit-tests_created/13866/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-fc21_created/94/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-el6_created/660/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-fc20_created/640... : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_pep8_gerrit/13703/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_network_functional_tests_gerrit/229... : There was an infra issue, please contact infra@ovirt.org
oVirt Jenkins CI Server has posted comments on this change.
Change subject: split network restoration from vdsmd.service ......................................................................
Patch Set 6:
Build Failed
http://jenkins.ovirt.org/job/vdsm_master_unit_tests_gerrit_el/12915/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-el7_created/100/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_unit-tests_created/13867/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-fc21_created/95/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-el6_created/661/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-fc20_created/641... : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_pep8_gerrit/13704/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_network_functional_tests_gerrit/229... : There was an infra issue, please contact infra@ovirt.org
oVirt Jenkins CI Server has posted comments on this change.
Change subject: split network restoration from vdsmd.service ......................................................................
Patch Set 7:
Build Failed
http://jenkins.ovirt.org/job/vdsm_master_unit_tests_gerrit_el/12916/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-el7_created/101/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_unit-tests_created/13868/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-fc21_created/96/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-el6_created/662/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-fc20_created/642... : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_pep8_gerrit/13705/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_network_functional_tests_gerrit/229... : There was an infra issue, please contact infra@ovirt.org
oVirt Jenkins CI Server has posted comments on this change.
Change subject: split network restoration from vdsmd.service ......................................................................
Patch Set 8:
Build Failed
http://jenkins.ovirt.org/job/vdsm_master_unit_tests_gerrit_el/12917/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-el7_created/102/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_unit-tests_created/13869/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-fc21_created/97/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-el6_created/663/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-fc20_created/643... : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_pep8_gerrit/13706/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_network_functional_tests_gerrit/229... : There was an infra issue, please contact infra@ovirt.org
oVirt Jenkins CI Server has posted comments on this change.
Change subject: split network restoration from vdsmd.service ......................................................................
Patch Set 9:
Build Failed
http://jenkins.ovirt.org/job/vdsm_master_unit_tests_gerrit_el/12928/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-el7_created/104/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_unit-tests_created/13880/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-fc21_created/99/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-el6_created/665/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-fc20_created/645... : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_network_functional_tests_gerrit/229... : There was an infra issue, please contact infra@ovirt.org
http://jenkins.ovirt.org/job/vdsm_master_pep8_gerrit/13717/ : SUCCESS
Ido Barkan has posted comments on this change.
Change subject: split network restoration from vdsmd.service ......................................................................
Patch Set 9:
(6 comments)
https://gerrit.ovirt.org/#/c/29441/9/init/systemd/vdsm-network.service.in File init/systemd/vdsm-network.service.in:
Line 1: [Unit] I think this unit file should be renamed to vdsm-network-restoration Line 2: Description=Virtual Desktop Server Manager network restoration Line 3: Wants=network.target Line 4: Requires=vdsm-network-cleanup.service libvirtd.service Line 5: After=libvirtd.service
Line 4: Requires=vdsm-network-cleanup.service libvirtd.service Line 5: After=libvirtd.service Line 6: Line 7: [Service] Line 8: Type=oneshot should we use Type=forking here? Line 9: EnvironmentFile=-/etc/sysconfig/vdsm Line 10: ExecStartPre=@BINDIR@/vdsm-tool --vvverbose --append --logfile=@VDSMLOGDIR@/upgrade.log upgrade-unified-persistence Line 11: ExecStartPre=@BINDIR@/vdsm-tool --vvverbose --append --logfile=@VDSMLOGDIR@/upgrade.log upgrade-3.0.0-networks Line 12: ExecStart=@VDSMDIR@/vdsm-restore-net-config reconfigure --no-flush
Line 9: EnvironmentFile=-/etc/sysconfig/vdsm Line 10: ExecStartPre=@BINDIR@/vdsm-tool --vvverbose --append --logfile=@VDSMLOGDIR@/upgrade.log upgrade-unified-persistence Line 11: ExecStartPre=@BINDIR@/vdsm-tool --vvverbose --append --logfile=@VDSMLOGDIR@/upgrade.log upgrade-3.0.0-networks Line 12: ExecStart=@VDSMDIR@/vdsm-restore-net-config reconfigure --no-flush Line 13: RemainAfterExit=yes why oneshot+ remainAfterExit is this for faster accomplishment of the restoration? remainAfterExit behavioris very confusing Line 14: Line 15: # Allow systemctl reload Line 16: ExecReload=/usr/share/vdsm/vdsm-restore-net-config reconfigure Line 17:
https://gerrit.ovirt.org/#/c/29441/9/vdsm/vdsm-restore-net-config File vdsm/vdsm-restore-net-config:
Line 59: for bond in runningConfig.bonds: Line 60: removeBonds[bond] = {'remove': True} Line 61: logging.debug('Removing all networks (%s) and bonds (%s) in running ' Line 62: 'config.', removeNetworks, removeBonds) Line 63: if removeNetworks or removeBonds: Is this just a small optimization? Line 64: setupNetworks(removeNetworks, removeBonds, connectivityCheck=False, Line 65: _inRollback=True) Line 66: Line 67: # Flush vdsm configurations left-overs from any configurator on the system
Line 75: nets, bonds = _filter_nets_bonds(persistentConfig.networks, Line 76: persistentConfig.bonds) Line 77: logging.debug('Calling setupNetworks with networks (%s) and bond (%s).', Line 78: nets, bonds) Line 79: if nets or bonds: again, just an optimization? Line 80: setupNetworks(nets, bonds, connectivityCheck=False, _inRollback=True) Line 81: Line 82: Line 83: def _filter_nets_bonds(nets, bonds):
Line 129: if sys.modules[cls.__module__].is_available(): Line 130: yield cls Line 131: Line 132: Line 133: def _configurator_flush(**opts): is this really needs to be a part of this patch? or can it be separated? Can you explain the purpose of it? Line 134: """Flush vdsm configurations left-overs from any configurator on the system Line 135: so that changes of configurator and persistence system are smooth. Only Line 136: done if upgrade to unified persistence is not pending""" Line 137: if (not upgrade._upgrade_needed(
automation@ovirt.org has posted comments on this change.
Change subject: split network restoration from vdsmd.service ......................................................................
Patch Set 10:
* Update tracker::IGNORE, no Bug-Url found * Check Bug-Url::WARN, no bug url found, make sure header matches 'Bug-Url: ' and is a valid url. * Check merged to previous::IGNORE, Not in stable branch (['ovirt-3.5', 'ovirt-3.4', 'ovirt-3.3'])
oVirt Jenkins CI Server has posted comments on this change.
Change subject: split network restoration from vdsmd.service ......................................................................
Patch Set 10:
Build Failed
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-el7_created/589/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-fc21_created/581... : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_pep8_gerrit/16674/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-el6_created/1148... : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_unit-tests_created/16846/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-fc20_created/113... : SUCCESS
Dan Kenigsberg has posted comments on this change.
Change subject: split network restoration from vdsmd.service ......................................................................
Patch Set 10: Code-Review+1
Would you follow with another patch with a separate vdsm-cleanup patch?
Ido Barkan has posted comments on this change.
Change subject: split network restoration from vdsmd.service ......................................................................
Patch Set 10:
yes
automation@ovirt.org has posted comments on this change.
Change subject: split network restoration from vdsmd.service ......................................................................
Patch Set 11:
* Update tracker::IGNORE, no Bug-Url found * Check Bug-Url::WARN, no bug url found, make sure header matches 'Bug-Url: ' and is a valid url. * Check merged to previous::IGNORE, Not in stable branch (['ovirt-3.5', 'ovirt-3.4', 'ovirt-3.3'])
automation@ovirt.org has posted comments on this change.
Change subject: split network restoration from vdsmd.service ......................................................................
Patch Set 12:
* Update tracker::IGNORE, no Bug-Url found * Check Bug-Url::WARN, no bug url found, make sure header matches 'Bug-Url: ' and is a valid url. * Check merged to previous::IGNORE, Not in stable branch (['ovirt-3.5', 'ovirt-3.4', 'ovirt-3.3'])
Ido Barkan has posted comments on this change.
Change subject: split network restoration from vdsmd.service ......................................................................
Patch Set 11: Verified+1
did the following tests: 1. after restoring nets with bootproto dhcp- dhclient still lives 2. if the service vdsm-metwork fails badly- vdsmd indeed will not start 3. vdsm-restore-net-config does not restore twice the networks. only if the nets_restore mark is missing. 4. vdsm-tool restore-nets works 5. non-dhcp restored networks are still restored correctly and vdsmd starts 6. 'systemd-analyze plot looks' right
oVirt Jenkins CI Server has posted comments on this change.
Change subject: split network restoration from vdsmd.service ......................................................................
Patch Set 11:
Build Successful
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-el7_created/590/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-fc21_created/582... : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_pep8_gerrit/16678/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-el6_created/1149... : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_unit-tests_created/16850/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-fc20_created/113... : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_network_functional_tests_gerrit/279... : SUCCESS
automation@ovirt.org has posted comments on this change.
Change subject: split network restoration from vdsmd.service ......................................................................
Patch Set 13:
* Update tracker::#1187244::OK * Check Bug-Url::OK * Check Public Bug::#1187244::OK, public bug * Check Product::#1187244::OK, Correct product Red Hat Enterprise Virtualization Manager * Check TR::SKIP, not in a monitored branch (ovirt-3.5 ovirt-3.4 ovirt-3.3 ovirt-3.2) * Check merged to previous::IGNORE, Not in stable branch (['ovirt-3.5', 'ovirt-3.4', 'ovirt-3.3'])
oVirt Jenkins CI Server has posted comments on this change.
Change subject: split network restoration from vdsmd.service ......................................................................
Patch Set 12:
Build Failed
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-el7_created/592/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-fc21_created/584... : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_pep8_gerrit/16681/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-el6_created/1151... : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_unit-tests_created/16853/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-fc20_created/113... : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_network_functional_tests_gerrit/279... : SUCCESS
oVirt Jenkins CI Server has posted comments on this change.
Change subject: split network restoration from vdsmd.service ......................................................................
Patch Set 13:
Build Failed
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-el7_created/596/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-fc21_created/588... : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_pep8_gerrit/16690/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-el6_created/1155... : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_unit-tests_created/16862/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-fc20_created/113... : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_network_functional_tests_gerrit/279... : SUCCESS
Ido Barkan has posted comments on this change.
Change subject: split network restoration from vdsmd.service ......................................................................
Patch Set 13:
(1 comment)
https://gerrit.ovirt.org/#/c/29441/13/vdsm/vdsm-restore-net-config File vdsm/vdsm-restore-net-config:
Line 172: help=force_option_help) Line 173: Line 174: options, args = parser.parse_args() Line 175: Line 176: if len(args) < 1 and not options.force: the path to the resotre_nets mark can be internal here Line 177: parser.error('unless passing --force, %s must be supplied with the ' Line 178: 'path of a file-mark for testing if networks where ' Line 179: 'already restored.' % (parser.get_prog_name())) Line 180:
automation@ovirt.org has posted comments on this change.
Change subject: split network restoration from vdsmd.service ......................................................................
Patch Set 14:
* Update tracker::#1187244::OK * Check Bug-Url::OK * Check Public Bug::#1187244::OK, public bug * Check Product::#1187244::OK, Correct product Red Hat Enterprise Virtualization Manager * Check TR::SKIP, not in a monitored branch (ovirt-3.5 ovirt-3.4 ovirt-3.3 ovirt-3.2) * Check merged to previous::IGNORE, Not in stable branch (['ovirt-3.5', 'ovirt-3.4', 'ovirt-3.3'])
oVirt Jenkins CI Server has posted comments on this change.
Change subject: split network restoration from vdsmd.service ......................................................................
Patch Set 14:
Build Failed
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-el7_created/603/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-fc21_created/595... : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_pep8_gerrit/16709/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-el6_created/1162... : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_unit-tests_created/16881/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-fc20_created/114... : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_network_functional_tests_gerrit/279... : SUCCESS
automation@ovirt.org has posted comments on this change.
Change subject: split network restoration from vdsmd.service ......................................................................
Patch Set 15:
* Update tracker::#1187244::OK * Check Bug-Url::OK * Check Public Bug::#1187244::OK, public bug * Check Product::#1187244::OK, Correct product Red Hat Enterprise Virtualization Manager * Check TR::SKIP, not in a monitored branch (ovirt-3.5 ovirt-3.4 ovirt-3.3 ovirt-3.2) * Check merged to previous::IGNORE, Not in stable branch (['ovirt-3.5', 'ovirt-3.4', 'ovirt-3.3'])
oVirt Jenkins CI Server has posted comments on this change.
Change subject: split network restoration from vdsmd.service ......................................................................
Patch Set 15: Code-Review-1 Verified-1
Build Failed
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-el7_created/605/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-fc21_created/597... : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_pep8_gerrit/16721/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-el6_created/1164... : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_unit-tests_created/16893/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-fc20_created/114... : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_network_functional_tests_gerrit/280... : The patch does not pass the network functional tests
Ido Barkan has posted comments on this change.
Change subject: split network restoration from vdsmd.service ......................................................................
Patch Set 15:
functional tests all pass on my centos7
Petr Horáček has posted comments on this change.
Change subject: split network restoration from vdsmd.service ......................................................................
Patch Set 15: Code-Review-1
(2 comments)
https://gerrit.ovirt.org/#/c/29441/15//COMMIT_MSG Commit Message:
Line 12: ExecStartPre stage, it might kill dhclient, if that was spawned on Line 13: dhcp persistent interfaces. Line 14: Line 15: This patch splits systemd vdsm service into 2 dependant units: Line 16: 1. vdsm-network.service which upgrades unified persistence and 3.0.0 . Line 17: networks if needed and then restore networks as it's main mission Line 18: Line 19: 2: vdsmd.service which reconfigure the persistent network configuration Line 20: of vdsm using the configured net_configurator
Line 15: This patch splits systemd vdsm service into 2 dependant units: Line 16: 1. vdsm-network.service which upgrades unified persistence and 3.0.0 Line 17: networks if needed and then restore networks as it's main mission Line 18: Line 19: 2: vdsmd.service which reconfigure the persistent network configuration : Line 20: of vdsm using the configured net_configurator Line 21: Line 22: Note that from now on, disabling vdsmd cannot render the machine Line 23: unaccessible as the vdsm networks will be started upon boot.
automation@ovirt.org has posted comments on this change.
Change subject: split network restoration from vdsmd.service ......................................................................
Patch Set 16:
* Update tracker::#1187244::OK * Check Bug-Url::OK * Check Public Bug::#1187244::OK, public bug * Check Product::#1187244::OK, Correct product Red Hat Enterprise Virtualization Manager * Check TR::SKIP, not in a monitored branch (ovirt-3.5 ovirt-3.4 ovirt-3.3 ovirt-3.2) * Check merged to previous::IGNORE, Not in stable branch (['ovirt-3.5', 'ovirt-3.4', 'ovirt-3.3'])
Petr Horáček has posted comments on this change.
Change subject: split network restoration from vdsmd.service ......................................................................
Patch Set 16: Code-Review+1
oVirt Jenkins CI Server has posted comments on this change.
Change subject: split network restoration from vdsmd.service ......................................................................
Patch Set 16: Code-Review-1 Verified-1
Build Unstable
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-el7_created/616/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-fc21_created/608... : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_pep8_gerrit/16823/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-el6_created/1175... : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_unit-tests_created/16995/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-fc20_created/115... : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_network_functional_tests_gerrit/280... : The patch does not pass the network functional tests
Ido Barkan has posted comments on this change.
Change subject: split network restoration from vdsmd.service ......................................................................
Patch Set 15:
(2 comments)
https://gerrit.ovirt.org/#/c/29441/15//COMMIT_MSG Commit Message:
Line 12: ExecStartPre stage, it might kill dhclient, if that was spawned on Line 13: dhcp persistent interfaces. Line 14: Line 15: This patch splits systemd vdsm service into 2 dependant units: Line 16: 1. vdsm-network.service which upgrades unified persistence and 3.0.0
.
Done Line 17: networks if needed and then restore networks as it's main mission Line 18: Line 19: 2: vdsmd.service which reconfigure the persistent network configuration Line 20: of vdsm using the configured net_configurator
Line 15: This patch splits systemd vdsm service into 2 dependant units: Line 16: 1. vdsm-network.service which upgrades unified persistence and 3.0.0 Line 17: networks if needed and then restore networks as it's main mission Line 18: Line 19: 2: vdsmd.service which reconfigure the persistent network configuration
:
Done Line 20: of vdsm using the configured net_configurator Line 21: Line 22: Note that from now on, disabling vdsmd cannot render the machine Line 23: unaccessible as the vdsm networks will be started upon boot.
automation@ovirt.org has posted comments on this change.
Change subject: split network restoration from vdsmd.service ......................................................................
Patch Set 17:
* Update tracker::#1187244::OK * Check Bug-Url::OK * Check Public Bug::#1187244::OK, public bug * Check Product::#1187244::OK, Correct product Red Hat Enterprise Virtualization Manager * Check TR::SKIP, not in a monitored branch (ovirt-3.5 ovirt-3.4 ovirt-3.3 ovirt-3.2) * Check merged to previous::IGNORE, Not in stable branch (['ovirt-3.5', 'ovirt-3.4', 'ovirt-3.3'])
oVirt Jenkins CI Server has posted comments on this change.
Change subject: split network restoration from vdsmd.service ......................................................................
Patch Set 17:
Build Failed
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-el7_created/619/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-fc21_created/611... : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_pep8_gerrit/16838/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-el6_created/1178... : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_unit-tests_created/17010/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-fc20_created/116... : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_network_functional_tests_gerrit/280... : SUCCESS
Ondřej Svoboda has posted comments on this change.
Change subject: split network restoration from vdsmd.service ......................................................................
Patch Set 17: Code-Review-1
(5 comments)
Why --force had to be used?
https://gerrit.ovirt.org/#/c/29441/17//COMMIT_MSG Commit Message:
Line 17: it's its
Line 23: unaccessible "inaccessible" is more common
https://gerrit.ovirt.org/#/c/29441/17/lib/vdsm/tool/restore_nets.py File lib/vdsm/tool/restore_nets.py:
Line 41: '--force' Why did you need to use --force?
https://gerrit.ovirt.org/#/c/29441/17/vdsm/vdsm-restore-net-config File vdsm/vdsm-restore-net-config:
Line 143: os.utime(file_path, None) Line 144: Line 145: Line 146: def restore(force_restore=False): Line 147: if not force_restore and _nets_already_restored(_NETS_RESTORED_MARK): What if networks are _in the process_ of restoration, shouldn't we also use some kind of locking? Line 148: logging.info('networks already restored. doing nothing.') Line 149: return Line 150: Line 151: if config.get('vars', 'net_persistence') == 'unified':
Line 170: "the restore action first tests for an existence of " \ : "a mark that is made after the last successful " \ : "restore action. Unless this option is used, " \ : "restore will be a no-op if this mark exists." Please use parentheses instead of slashes :-)
Ondřej Svoboda has posted comments on this change.
Change subject: split network restoration from vdsmd.service ......................................................................
Patch Set 17:
(1 comment)
https://gerrit.ovirt.org/#/c/29441/17//COMMIT_MSG Commit Message:
Line 19: reconfigure s
automation@ovirt.org has posted comments on this change.
Change subject: split network restoration from vdsmd.service ......................................................................
Patch Set 18:
* Update tracker::#1187244::OK * Check Bug-Url::OK * Check Public Bug::#1187244::OK, public bug * Check Product::#1187244::OK, Correct product Red Hat Enterprise Virtualization Manager * Check TR::SKIP, not in a monitored branch (ovirt-3.5 ovirt-3.4 ovirt-3.3 ovirt-3.2) * Check merged to previous::IGNORE, Not in stable branch (['ovirt-3.5', 'ovirt-3.4', 'ovirt-3.3'])
Ido Barkan has posted comments on this change.
Change subject: split network restoration from vdsmd.service ......................................................................
Patch Set 17:
(3 comments)
https://gerrit.ovirt.org/#/c/29441/17//COMMIT_MSG Commit Message:
Line 17: it's
its
Done
Line 19: reconfigure
s
Done
Line 23: unaccessible
"inaccessible" is more common
Done
Ido Barkan has posted comments on this change.
Change subject: split network restoration from vdsmd.service ......................................................................
Patch Set 18: Verified+1
Ido Barkan has posted comments on this change.
Change subject: split network restoration from vdsmd.service ......................................................................
Patch Set 18:
--force had to be used in order to maintain older behavior (see vdsm-tool 'restore-nets' verb)
oVirt Jenkins CI Server has posted comments on this change.
Change subject: split network restoration from vdsmd.service ......................................................................
Patch Set 18:
Build Successful
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-el7_created/624/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-fc21_created/616... : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_pep8_gerrit/16852/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-el6_created/1183... : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_unit-tests_created/17024/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-fc20_created/116... : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_network_functional_tests_gerrit/281... : SUCCESS
Ido Barkan has posted comments on this change.
Change subject: split network restoration from vdsmd.service ......................................................................
Patch Set 17:
(1 comment)
https://gerrit.ovirt.org/#/c/29441/17/vdsm/vdsm-restore-net-config File vdsm/vdsm-restore-net-config:
Line 170: "the restore action first tests for an existence of " \ : "a mark that is made after the last successful " \ : "restore action. Unless this option is used, " \ : "restore will be a no-op if this mark exists."
Please use parentheses instead of slashes :-)
Done
Dan Kenigsberg has posted comments on this change.
Change subject: split network restoration from vdsmd.service ......................................................................
Patch Set 18: Code-Review-1
(3 comments)
https://gerrit.ovirt.org/#/c/29441/18/init/systemd/vdsm-network.service.in File init/systemd/vdsm-network.service.in:
Line 7: [Service] Line 8: Type=oneshot Line 9: EnvironmentFile=-/etc/sysconfig/vdsm Line 10: ExecStartPre=@BINDIR@/vdsm-tool --vvverbose --append --logfile=@VDSMLOGDIR@/upgrade.log upgrade-unified-persistence Line 11: ExecStartPre=@BINDIR@/vdsm-tool --vvverbose --append --logfile=@VDSMLOGDIR@/upgrade.log upgrade-3.0.0-networks on a separate patch - upgrade-3.0.0 BEFORE the new upgrade-unified Line 12: ExecStart=@VDSMDIR@/vdsm-restore-net-config Line 13: RemainAfterExit=yes Line 14: Line 15: [Install]
https://gerrit.ovirt.org/#/c/29441/18/vdsm/vdsm-restore-net-config File vdsm/vdsm-restore-net-config:
Line 17: # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Line 18: # Line 19: # Refer to the README and COPYING files for full details of the license Line 20: # Line 21: import optparse please keep sorted; and better use argparse, just like vdsm-tool Line 22: import logging Line 23: import logging.config Line 24: import sys Line 25: import os
Line 166: level=logging.DEBUG) Line 167: logging.error('Could not init proper logging', exc_info=True) Line 168: Line 169: parser = optparse.OptionParser("usage: %prog [options] nets_restored_mark") Line 170: force_option_help = "the restore action first tests for an existence of " \ "restore networks even if the " + _NETS_RESTORED_MARK + "mark exists. The mark is created upon a previous successful restore" Line 171: "a mark that is made after the last successful " \ Line 172: "restore action. Unless this option is used, " \ Line 173: "restore will be a no-op if this mark exists." Line 174: parser.add_option('--force', action='store_true', default=False,
Ido Barkan has posted comments on this change.
Change subject: split network restoration from vdsmd.service ......................................................................
Patch Set 18:
(2 comments)
https://gerrit.ovirt.org/#/c/29441/18/vdsm/vdsm-restore-net-config File vdsm/vdsm-restore-net-config:
Line 17: # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Line 18: # Line 19: # Refer to the README and COPYING files for full details of the license Line 20: # Line 21: import optparse
please keep sorted; and better use argparse, just like vdsm-tool
Done Line 22: import logging Line 23: import logging.config Line 24: import sys Line 25: import os
Line 166: level=logging.DEBUG) Line 167: logging.error('Could not init proper logging', exc_info=True) Line 168: Line 169: parser = optparse.OptionParser("usage: %prog [options] nets_restored_mark") Line 170: force_option_help = "the restore action first tests for an existence of " \
"restore networks even if the " + _NETS_RESTORED_MARK + "mark exists. The m
Done Line 171: "a mark that is made after the last successful " \ Line 172: "restore action. Unless this option is used, " \ Line 173: "restore will be a no-op if this mark exists." Line 174: parser.add_option('--force', action='store_true', default=False,
automation@ovirt.org has posted comments on this change.
Change subject: split network restoration from vdsmd.service ......................................................................
Patch Set 19:
* Update tracker::#1187244::OK * Check Bug-Url::OK * Check Public Bug::#1187244::OK, public bug * Check Product::#1187244::OK, Correct product Red Hat Enterprise Virtualization Manager * Check TR::SKIP, not in a monitored branch (ovirt-3.5 ovirt-3.4 ovirt-3.3 ovirt-3.2) * Check merged to previous::IGNORE, Not in stable branch (['ovirt-3.5', 'ovirt-3.4', 'ovirt-3.3'])
oVirt Jenkins CI Server has posted comments on this change.
Change subject: split network restoration from vdsmd.service ......................................................................
Patch Set 19:
Build Started (1/7) -> http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-el7_created/654/
oVirt Jenkins CI Server has posted comments on this change.
Change subject: split network restoration from vdsmd.service ......................................................................
Patch Set 19:
Build Started (2/7) -> http://jenkins.ovirt.org/job/vdsm_master_pep8_gerrit/16993/
oVirt Jenkins CI Server has posted comments on this change.
Change subject: split network restoration from vdsmd.service ......................................................................
Patch Set 19:
Build Started (3/7) -> http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-el6_created/1213...
oVirt Jenkins CI Server has posted comments on this change.
Change subject: split network restoration from vdsmd.service ......................................................................
Patch Set 19:
Build Started (4/7) -> http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-fc21_created/646...
oVirt Jenkins CI Server has posted comments on this change.
Change subject: split network restoration from vdsmd.service ......................................................................
Patch Set 19:
Build Started (5/7) -> http://jenkins.ovirt.org/job/vdsm_master_network_functional_tests_gerrit/282...
oVirt Jenkins CI Server has posted comments on this change.
Change subject: split network restoration from vdsmd.service ......................................................................
Patch Set 19:
Build Started (6/7) -> http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-fc20_created/119...
oVirt Jenkins CI Server has posted comments on this change.
Change subject: split network restoration from vdsmd.service ......................................................................
Patch Set 19:
Build Started (7/7) -> http://jenkins.ovirt.org/job/vdsm_master_unit-tests_created/17167/
oVirt Jenkins CI Server has posted comments on this change.
Change subject: split network restoration from vdsmd.service ......................................................................
Patch Set 19:
Build Failed
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-el7_created/654/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-fc21_created/646... : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_pep8_gerrit/16993/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-el6_created/1213... : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_unit-tests_created/17167/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-fc20_created/119... : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_network_functional_tests_gerrit/282... : SUCCESS
Dan Kenigsberg has posted comments on this change.
Change subject: split network restoration from vdsmd.service ......................................................................
Patch Set 19: Code-Review+2
Ido Barkan has posted comments on this change.
Change subject: split network restoration from vdsmd.service ......................................................................
Patch Set 19: Verified+1
Dan Kenigsberg has submitted this change and it was merged.
Change subject: split network restoration from vdsmd.service ......................................................................
split network restoration from vdsmd.service
Right now the task of doing network restoration is delegated to the vdsmd service initialization. Since systemd does not expect that a long lived deamon such as dhclient will stay alive after ExecStartPre stage, it might kill dhclient, if that was spawned on dhcp persistent interfaces.
This patch splits systemd vdsm service into 2 dependant units: 1. vdsm-network.service which upgrades unified persistence and 3.0.0 networks if needed and then restore networks as its main mission
2. vdsmd.service which reconfigures the persistent network configuration of vdsm using the configured net_configurator
Note that from now on, disabling vdsmd cannot render the machine inaccessible as the vdsm networks will be started upon boot. Note also that since it is inconvenient to implement logic on service files, vdsm-restore-net-config learned how to no-op when nets_restored mark exists and this functionality was removed from the bash part.
Bug-Url: https://bugzilla.redhat.com/1187244 Change-Id: I70cdf1e8a1e7063ec850081ac6199728d4cde381 Signed-off-by: Ido Barkan ibarkan@redhat.com Reviewed-on: https://gerrit.ovirt.org/29441 Reviewed-by: Dan Kenigsberg danken@redhat.com --- M .gitignore M init/systemd/Makefile.am A init/systemd/vdsm-network.service.in M init/systemd/vdsmd.service.in M init/sysvinit/vdsmd.init.in M init/vdsmd_init_common.sh.in M lib/vdsm/tool/restore_nets.py M vdsm.spec.in M vdsm/vdsm-restore-net-config 9 files changed, 87 insertions(+), 28 deletions(-)
Approvals: Ido Barkan: Verified Dan Kenigsberg: Looks good to me, approved
automation@ovirt.org has posted comments on this change.
Change subject: split network restoration from vdsmd.service ......................................................................
Patch Set 20:
* Update tracker::#1187244::OK * Set MODIFIED::bug 1187244::::#1187244::::IGNORE, not oVirt prod but Red Hat Enterprise Virtualization Manager
oVirt Jenkins CI Server has posted comments on this change.
Change subject: split network restoration from vdsmd.service ......................................................................
Patch Set 20:
Build Started (1/9) -> http://jenkins.ovirt.org/job/vdsm_master_create-rpms-el6-x86_64_merged/779/
oVirt Jenkins CI Server has posted comments on this change.
Change subject: split network restoration from vdsmd.service ......................................................................
Patch Set 20:
Build Started (2/9) -> http://jenkins.ovirt.org/job/vdsm_master-libgfapi_create-rpms-fc21-x86_64_me...
oVirt Jenkins CI Server has posted comments on this change.
Change subject: split network restoration from vdsmd.service ......................................................................
Patch Set 20:
Build Started (3/9) -> http://jenkins.ovirt.org/job/vdsm_master_unit-tests_merged/4760/
oVirt Jenkins CI Server has posted comments on this change.
Change subject: split network restoration from vdsmd.service ......................................................................
Patch Set 20:
Build Started (4/9) -> http://jenkins.ovirt.org/job/vdsm_master_create-rpms-fc21-x86_64_merged/752/
oVirt Jenkins CI Server has posted comments on this change.
Change subject: split network restoration from vdsmd.service ......................................................................
Patch Set 20:
Build Started (5/9) -> http://jenkins.ovirt.org/job/vdsm_master-libgfapi_create-rpms-el6-x86_64_mer...
oVirt Jenkins CI Server has posted comments on this change.
Change subject: split network restoration from vdsmd.service ......................................................................
Patch Set 20:
Build Started (6/9) -> http://jenkins.ovirt.org/job/vdsm_master_create-rpms-el7-x86_64_merged/782/
oVirt Jenkins CI Server has posted comments on this change.
Change subject: split network restoration from vdsmd.service ......................................................................
Patch Set 20:
Build Started (7/9) -> http://jenkins.ovirt.org/job/vdsm_master-libgfapi_create-rpms-el7-x86_64_mer...
oVirt Jenkins CI Server has posted comments on this change.
Change subject: split network restoration from vdsmd.service ......................................................................
Patch Set 20:
Build Started (8/9) -> http://jenkins.ovirt.org/job/vdsm_master-libgfapi_create-rpms-fc20-x86_64_me...
oVirt Jenkins CI Server has posted comments on this change.
Change subject: split network restoration from vdsmd.service ......................................................................
Patch Set 20:
Build Started (9/9) -> http://jenkins.ovirt.org/job/vdsm_master_create-rpms-fc20-x86_64_merged/786/
oVirt Jenkins CI Server has posted comments on this change.
Change subject: split network restoration from vdsmd.service ......................................................................
Patch Set 20:
Build Failed
http://jenkins.ovirt.org/job/vdsm_master_create-rpms-el6-x86_64_merged/779/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master-libgfapi_create-rpms-fc21-x86_64_me... : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_unit-tests_merged/4760/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_create-rpms-fc21-x86_64_merged/752/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master-libgfapi_create-rpms-el6-x86_64_mer... : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_create-rpms-el7-x86_64_merged/782/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master-libgfapi_create-rpms-el7-x86_64_mer... : FAILURE
http://jenkins.ovirt.org/job/vdsm_master-libgfapi_create-rpms-fc20-x86_64_me... : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_create-rpms-fc20-x86_64_merged/786/ : SUCCESS
vdsm-patches@lists.fedorahosted.org