diff --git a/tests_e2e/orchestrator/lib/agent_test_suite.py b/tests_e2e/orchestrator/lib/agent_test_suite.py index c9e177fcc..bed621076 100644 --- a/tests_e2e/orchestrator/lib/agent_test_suite.py +++ b/tests_e2e/orchestrator/lib/agent_test_suite.py @@ -239,13 +239,14 @@ def _initialize(self, environment: Environment, variables: Dict[str, Any], lisa_ if isinstance(environment.nodes[0], LocalNode): # We need to create a new VMSS. - # Use the same naming convention as LISA for the scale set name: lisa---e-n0 - # Note that we hardcode the scale set name to "n0" since we are creating a single scale set. - # Resource group name cannot have any uppercase characters, because the publicIP cannot have uppercase - # characters in its domain name label. + # Use the same naming convention as LISA for the scale set name: lisa----n0, + # except that, for the "rg_name", LISA uses "e" as prefix (e.g. "e0", "e1", etc.), while we use "w" (for + # WALinuxAgent, e.g. "w0", "w1", etc.) to avoid name collisions. Also, note that we hardcode the scale set name + # to "n0" since we are creating a single scale set. Lastly, the resource group name cannot have any uppercase + # characters, because the publicIP cannot have uppercase characters in its domain name label. AgentTestSuite._rg_count_lock.acquire() try: - self._resource_group_name = f"lisa-{self._runbook_name.lower()}-{RUN_ID}-e{AgentTestSuite._rg_count}" + self._resource_group_name = f"lisa-{self._runbook_name.lower()}-{RUN_ID}-w{AgentTestSuite._rg_count}" AgentTestSuite._rg_count += 1 finally: AgentTestSuite._rg_count_lock.release()