Francesco Romani has posted comments on this change.
Change subject: network: ifup: shorten name of the thread
......................................................................
Patch Set 2:
(1 comment)
https://gerrit.ovirt.org/#/c/62617/2/lib/vdsm/network/configurators/ifcfg.py
File lib/vdsm/network/configurators/ifcfg.py:
PS2, Line 865: 'ifup/%s'
maybe i'm missing something. this whole string must fit in 15
chars? what i
this whole string must fit in 15 chars?
Not for sure, not every time. But the old didn't, and we leave 10 chars for the iface
name, which has a decent chance to fit. Plus, IMO the new nome provides more context,
which is the purpose of this patchset.
what if iface name is longer than 10 chars?
pthread.py will (silently) truncate the name, so the thread will be created and run, but
the name will be incomplete.
does the slash has any special meaning?
No, we are using it as separator:
common-part-which-should-never-change/part-which-can-change-at-runtime
so we can wait, for example
ifup/enp0s25
ifup/enp0s3
elsewhere we have the jsonrpc executor threads:
jsonrpc/0
jsonrpc/1
...
jsonrpc/3
should we use a thread with static name, we could have
scheduler
(now we have vdsm.Scheduler, which works but it is not nice as it could be.)
--
To view, visit
https://gerrit.ovirt.org/62617
To unsubscribe, visit
https://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I2e59d97c16850521f4c45339677ee43c9f9bdd1e
Gerrit-PatchSet: 2
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Francesco Romani <fromani(a)redhat.com>
Gerrit-Reviewer: Dan Kenigsberg <danken(a)redhat.com>
Gerrit-Reviewer: Edward Haas <edwardh(a)redhat.com>
Gerrit-Reviewer: Francesco Romani <fromani(a)redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Nir Soffer <nsoffer(a)redhat.com>
Gerrit-Reviewer: Petr Horáček <phoracek(a)redhat.com>
Gerrit-Reviewer: gerrit-hooks <automation(a)ovirt.org>
Gerrit-HasComments: Yes