Project

General

Profile

Actions

action #160826

open

openQA Project - coordination #112862: [saga][epic] Future ideas for easy multi-machine handling: MM-tests as first-class citizens

openQA Project - coordination #111929: [epic] Stable multi-machine tests covering multiple physical workers

Optimize gre_tunnel_preup.sh generation jinja template size:S

Added by nicksinger 6 months ago. Updated 3 months ago.

Status:
Workable
Priority:
Low
Assignee:
-
Category:
Feature requests
Target version:
Start date:
2024-05-21
Due date:
% Done:

0%

Estimated time:
Tags:

Description

Observation

#160646-3 shows that we generate a lot of empty lines with https://gitlab.suse.de/openqa/salt-states-openqa/-/blob/master/openqa/openvswitch.sls?ref_type=heads#L96-128
This can be optimized by using {%- and -%} at a lot more places to avoid linebreak generation for e.g. if-statements of set commands. Care must be taken to not remove linebreaks where they are actually needed to produce valid yaml which results in a working shell script.

Acceptance criteria

  • AC1: The rendered openvswitch state definition is more readable

Acceptance tests

  • AT1-1: salt 'worker29.oqa.prg2.suse.org' cp.get_template salt://openqa/openvswitch.sls /tmp/openvswitch shows no redundant blank lines

Suggestions

  • Add a -, e.g. {%- for remote in otherworkers -%}

https://progress.opensuse.org/issues/160826

Optimize gre_tunnel_preup.sh generation jinja template

Observation

#160646-3 shows that we generate a lot of empty lines with https://gitlab.suse.de/openqa/salt-states-openqa/-/blob/master/openqa/openvswitch.sls?ref_type=heads#L96-128
This can be optimized by using {%- and -%} at a lot more places to avoid linebreak generation for e.g. if-statements of set commands. Care must be taken to not remove linebreaks where they are actually needed to produce valid yaml which results in a working shell script.

Acceptance criteria

  • AC1: The rendered openvswitch state definition is more readable

Acceptance tests

  • AT1-1: salt 'worker29.oqa.prg2.suse.org' cp.get_template salt://openqa/openvswitch.sls /tmp/openvswitch shows no redundant blank lines

Suggestions

  • Add a -, e.g. {%- for remote in otherworkers -%}

Related issues 2 (1 open1 closed)

Related to openQA Infrastructure - action #157606: Prevent missing gre tunnel connections in our salt states due to misconfigurationBlockedokurz2024-03-19

Actions
Copied from openQA Infrastructure - action #160646: multiple multi-machine test failures, no GRE tunnels are setup between machines anymore at all size:MResolvedybonatakis2024-05-21

Actions
Actions #1

Updated by nicksinger 6 months ago

  • Copied from action #160646: multiple multi-machine test failures, no GRE tunnels are setup between machines anymore at all size:M added
Actions #2

Updated by mkittler 6 months ago

  • Target version set to future
Actions #3

Updated by okurz 6 months ago

  • Due date deleted (2024-06-05)
Actions #4

Updated by okurz 6 months ago

  • Parent task set to #111929
Actions #5

Updated by okurz 4 months ago

  • Target version changed from future to Tools - Next
Actions #6

Updated by okurz 3 months ago

  • Related to action #157606: Prevent missing gre tunnel connections in our salt states due to misconfiguration added
Actions #7

Updated by okurz 3 months ago

  • Subject changed from Optimize gre_tunnel_preup.sh generation jinja template to Optimize gre_tunnel_preup.sh generation jinja template size:S
  • Description updated (diff)
  • Status changed from New to Workable
Actions

Also available in: Atom PDF