From 67b3c48dc9b322817f2a556e7afdf463be4c1ee8 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 9 Apr 2024 14:58:38 -0400 Subject: [PATCH] Clean up error output on syncfileclient execution --- .../el8-diskless/profiles/default/scripts/syncfileclient | 2 ++ confluent_osdeploy/el8/profiles/default/scripts/syncfileclient | 2 ++ .../el9-diskless/profiles/default/scripts/syncfileclient | 2 ++ .../genesis/profiles/default/scripts/syncfileclient | 2 ++ .../suse15-diskless/profiles/default/scripts/syncfileclient | 2 ++ confluent_osdeploy/suse15/profiles/hpc/scripts/syncfileclient | 2 ++ .../suse15/profiles/server/scripts/syncfileclient | 2 ++ .../profiles/default/scripts/syncfileclient | 2 ++ .../ubuntu20.04/profiles/default/scripts/syncfileclient | 2 ++ .../ubuntu22.04/profiles/default/scripts/syncfileclient | 2 ++ 10 files changed, 20 insertions(+) diff --git a/confluent_osdeploy/el8-diskless/profiles/default/scripts/syncfileclient b/confluent_osdeploy/el8-diskless/profiles/default/scripts/syncfileclient index ac60f5f7..237c443d 100644 --- a/confluent_osdeploy/el8-diskless/profiles/default/scripts/syncfileclient +++ b/confluent_osdeploy/el8-diskless/profiles/default/scripts/syncfileclient @@ -298,6 +298,8 @@ if __name__ == '__main__': status = synchronize() except Exception as e: sys.stderr.write(str(e)) + sys.stderr.write('\n') + sys.stderr.flush() status = 300 if status not in (204, 200): time.sleep((random.random()*3)+2) diff --git a/confluent_osdeploy/el8/profiles/default/scripts/syncfileclient b/confluent_osdeploy/el8/profiles/default/scripts/syncfileclient index ac60f5f7..237c443d 100644 --- a/confluent_osdeploy/el8/profiles/default/scripts/syncfileclient +++ b/confluent_osdeploy/el8/profiles/default/scripts/syncfileclient @@ -298,6 +298,8 @@ if __name__ == '__main__': status = synchronize() except Exception as e: sys.stderr.write(str(e)) + sys.stderr.write('\n') + sys.stderr.flush() status = 300 if status not in (204, 200): time.sleep((random.random()*3)+2) diff --git a/confluent_osdeploy/el9-diskless/profiles/default/scripts/syncfileclient b/confluent_osdeploy/el9-diskless/profiles/default/scripts/syncfileclient index ac60f5f7..237c443d 100644 --- a/confluent_osdeploy/el9-diskless/profiles/default/scripts/syncfileclient +++ b/confluent_osdeploy/el9-diskless/profiles/default/scripts/syncfileclient @@ -298,6 +298,8 @@ if __name__ == '__main__': status = synchronize() except Exception as e: sys.stderr.write(str(e)) + sys.stderr.write('\n') + sys.stderr.flush() status = 300 if status not in (204, 200): time.sleep((random.random()*3)+2) diff --git a/confluent_osdeploy/genesis/profiles/default/scripts/syncfileclient b/confluent_osdeploy/genesis/profiles/default/scripts/syncfileclient index ac60f5f7..237c443d 100644 --- a/confluent_osdeploy/genesis/profiles/default/scripts/syncfileclient +++ b/confluent_osdeploy/genesis/profiles/default/scripts/syncfileclient @@ -298,6 +298,8 @@ if __name__ == '__main__': status = synchronize() except Exception as e: sys.stderr.write(str(e)) + sys.stderr.write('\n') + sys.stderr.flush() status = 300 if status not in (204, 200): time.sleep((random.random()*3)+2) diff --git a/confluent_osdeploy/suse15-diskless/profiles/default/scripts/syncfileclient b/confluent_osdeploy/suse15-diskless/profiles/default/scripts/syncfileclient index ac60f5f7..237c443d 100644 --- a/confluent_osdeploy/suse15-diskless/profiles/default/scripts/syncfileclient +++ b/confluent_osdeploy/suse15-diskless/profiles/default/scripts/syncfileclient @@ -298,6 +298,8 @@ if __name__ == '__main__': status = synchronize() except Exception as e: sys.stderr.write(str(e)) + sys.stderr.write('\n') + sys.stderr.flush() status = 300 if status not in (204, 200): time.sleep((random.random()*3)+2) diff --git a/confluent_osdeploy/suse15/profiles/hpc/scripts/syncfileclient b/confluent_osdeploy/suse15/profiles/hpc/scripts/syncfileclient index ac60f5f7..237c443d 100644 --- a/confluent_osdeploy/suse15/profiles/hpc/scripts/syncfileclient +++ b/confluent_osdeploy/suse15/profiles/hpc/scripts/syncfileclient @@ -298,6 +298,8 @@ if __name__ == '__main__': status = synchronize() except Exception as e: sys.stderr.write(str(e)) + sys.stderr.write('\n') + sys.stderr.flush() status = 300 if status not in (204, 200): time.sleep((random.random()*3)+2) diff --git a/confluent_osdeploy/suse15/profiles/server/scripts/syncfileclient b/confluent_osdeploy/suse15/profiles/server/scripts/syncfileclient index ac60f5f7..237c443d 100644 --- a/confluent_osdeploy/suse15/profiles/server/scripts/syncfileclient +++ b/confluent_osdeploy/suse15/profiles/server/scripts/syncfileclient @@ -298,6 +298,8 @@ if __name__ == '__main__': status = synchronize() except Exception as e: sys.stderr.write(str(e)) + sys.stderr.write('\n') + sys.stderr.flush() status = 300 if status not in (204, 200): time.sleep((random.random()*3)+2) diff --git a/confluent_osdeploy/ubuntu20.04-diskless/profiles/default/scripts/syncfileclient b/confluent_osdeploy/ubuntu20.04-diskless/profiles/default/scripts/syncfileclient index ac60f5f7..237c443d 100644 --- a/confluent_osdeploy/ubuntu20.04-diskless/profiles/default/scripts/syncfileclient +++ b/confluent_osdeploy/ubuntu20.04-diskless/profiles/default/scripts/syncfileclient @@ -298,6 +298,8 @@ if __name__ == '__main__': status = synchronize() except Exception as e: sys.stderr.write(str(e)) + sys.stderr.write('\n') + sys.stderr.flush() status = 300 if status not in (204, 200): time.sleep((random.random()*3)+2) diff --git a/confluent_osdeploy/ubuntu20.04/profiles/default/scripts/syncfileclient b/confluent_osdeploy/ubuntu20.04/profiles/default/scripts/syncfileclient index ac60f5f7..237c443d 100644 --- a/confluent_osdeploy/ubuntu20.04/profiles/default/scripts/syncfileclient +++ b/confluent_osdeploy/ubuntu20.04/profiles/default/scripts/syncfileclient @@ -298,6 +298,8 @@ if __name__ == '__main__': status = synchronize() except Exception as e: sys.stderr.write(str(e)) + sys.stderr.write('\n') + sys.stderr.flush() status = 300 if status not in (204, 200): time.sleep((random.random()*3)+2) diff --git a/confluent_osdeploy/ubuntu22.04/profiles/default/scripts/syncfileclient b/confluent_osdeploy/ubuntu22.04/profiles/default/scripts/syncfileclient index ac60f5f7..237c443d 100644 --- a/confluent_osdeploy/ubuntu22.04/profiles/default/scripts/syncfileclient +++ b/confluent_osdeploy/ubuntu22.04/profiles/default/scripts/syncfileclient @@ -298,6 +298,8 @@ if __name__ == '__main__': status = synchronize() except Exception as e: sys.stderr.write(str(e)) + sys.stderr.write('\n') + sys.stderr.flush() status = 300 if status not in (204, 200): time.sleep((random.random()*3)+2)