Do not create logs symlinks for nodes in discover
Change-Id: Ie5a63e296d70483d29ab73992b8ab38a160baa2d Closes-Bug: 1640760
This commit is contained in:
parent
9e69e8d0d6
commit
c4235e362f
|
@ -27,9 +27,17 @@ class LogsArchivator(base.Base):
|
||||||
def restore(self):
|
def restore(self):
|
||||||
domain = helpers.get_astute_dict()["DNS_DOMAIN"]
|
domain = helpers.get_astute_dict()["DNS_DOMAIN"]
|
||||||
dirname = "/var/log/remote/"
|
dirname = "/var/log/remote/"
|
||||||
|
|
||||||
|
pairs = []
|
||||||
|
|
||||||
with fuel_client.set_auth_context(self.context):
|
with fuel_client.set_auth_context(self.context):
|
||||||
pairs = [(n.data["meta"]["system"]["fqdn"], n.data["ip"])
|
for node in objects.Node.get_all():
|
||||||
for n in objects.Node.get_all()]
|
fqdn = node.data["meta"]["system"]["fqdn"]
|
||||||
|
# log creation not required for nodes in bootstrap
|
||||||
|
if fqdn.startswith('bootstrap'):
|
||||||
|
continue
|
||||||
|
pairs.append((fqdn, node.data["ip"]))
|
||||||
|
|
||||||
subprocess.call(["systemctl", "stop", "rsyslog"])
|
subprocess.call(["systemctl", "stop", "rsyslog"])
|
||||||
try:
|
try:
|
||||||
for fqdn, ip_addr in pairs:
|
for fqdn, ip_addr in pairs:
|
||||||
|
|
Loading…
Reference in New Issue