Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BB96D757F3 for ; Mon, 31 Mar 2025 19:14:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743448476; cv=none; b=n6t3WbMYL+P1EpYtn3MevsD/DMMGe31WQSt6uxf6lIX/Xi6Oa1gb1ec+Xg8y3cvCUGWL1d7D7iA9ymRY4yz5snGubTQrUcibMXSokwmqiMB6pgpeOKq4KaaXtksP2hMcMrsVrXvW06k2Xia2dbb9vPpqKzTuqH9IujrsfbpI/vU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743448476; c=relaxed/simple; bh=L9BExYItGBldOcaOuGbkPlm/nnabhZXOJCKNvEn7Dac=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: In-Reply-To:Content-Type:Content-Disposition; b=MNelbSXTM47fL9IBaIiwqi4OkYQl0YuNemtnpKQb1kftEyNiXgZN8yRm55HmXkPStImU2UfheBbXXyT5W76XsvK7WTDPF+klSV6kTBbAmZllOcS9Sbzair6ehAA+noUA9Vr7NQyPd7xmeSluWHEUSKr4MIHAGRTSGUt0PyxAf08= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=hOFqy3HB; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="hOFqy3HB" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1743448473; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=c6bF5fyEKFaR/XeR7K/CVUIX2HEIS0fTBwfYwmgF6F8=; b=hOFqy3HBupRojVG7RG4jONvoC7ysWra8KI+LJaYT1LQbCu7bsbt2fZ4Tqp+IQDmjCxVBM8 Z7ph3XqfLYs2kgZeQH3J1FZDCMo6kVu5kt93g/tQ1PRE8pumGQFN3zODXDF6jpe4UVkrTF GtEjHYI1nIqiqzTGsWB3/g+774pIvx4= Received: from mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-86-5J-3HrUSO-it0qtI-mbPSQ-1; Mon, 31 Mar 2025 15:14:32 -0400 X-MC-Unique: 5J-3HrUSO-it0qtI-mbPSQ-1 X-Mimecast-MFC-AGG-ID: 5J-3HrUSO-it0qtI-mbPSQ_1743448471 Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id E7805180AF50; Mon, 31 Mar 2025 19:14:30 +0000 (UTC) Received: from aion.redhat.com (unknown [10.22.88.143]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 546EA3001D14; Mon, 31 Mar 2025 19:14:30 +0000 (UTC) Received: by aion.redhat.com (Postfix, from userid 1000) id 88A0D33D734; Mon, 31 Mar 2025 15:14:28 -0400 (EDT) Date: Mon, 31 Mar 2025 15:14:28 -0400 From: Scott Mayhew To: Luis Chamberlain Cc: kdevops@lists.linux.dev Subject: Re: [PATCH 6/6] gen_nodes: ensure kdevops prefix has no dashes Message-ID: References: <20250329230141.3718282-1-mcgrof@kernel.org> <20250329230141.3718282-7-mcgrof@kernel.org> Precedence: bulk X-Mailing-List: kdevops@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 In-Reply-To: X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: bwZ_9vijv-bqKsX9KKO9OfcHFgnuK7UuW0x1U5IZao0_1743448471 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, 31 Mar 2025, Luis Chamberlain wrote: > On Mon, Mar 31, 2025 at 01:35:41PM -0400, Scott Mayhew wrote: > > On Sat, 29 Mar 2025, Luis Chamberlain wrote: > > > > > Folks trying to use kdevops and testing with fstests will quickly > > > find out a surprise that their config is not being parsed correctly > > > until later. > > > > > > Fix this by preventing bringup if the prefix has a dash. > > > > > > We use the dash to help parallelize testing filesystem profiles and > > > so the host prefix goes before the filesystem name and test profile. > > > > Where does that happen? All of my kdevops setups use multiple dashes in > > the host prefix (e.g. "kdevops-nfs-fstests-rhel-10-nightly"), so this > > breaks my setup, and I'd imagine it breaks Chuck's too. > > Oh crap, sorry, does the NFS use of fstset not rely on the hostname to > infer the target test section? If not then how about this: No, it still maps the hostname to the test section, and unless I'm missing something there's no special handling. I use the same naming scheme for SMB as well, although I don't have nearly as many SMB workflows running as NFS. Unfortunately I'm using dedicated workflows for all my stuff so this patch won't work. Maybe just add a KDEVOPS_HOSTS_PREFIX_ALLOW_DASHES config option to allow this check to be bypassed? > > From a60443671181d889866265899ba8d1bc1d453d67 Mon Sep 17 00:00:00 2001 > From: Luis Chamberlain > Date: Mon, 31 Mar 2025 11:28:14 -0700 > Subject: [PATCH] gen_nodes: make prefix check only for fstests > > The oscheck script relies on the prefix heuristic to determine > the target filesystem test section, but not all users of fstests > use this. NFS uses its own heuristics. Fix this by localizing the > prefix check for fstests dedicated tests only. > > Fixes: 2b61c9992d9ee9 ("gen_nodes: ensure kdevops prefix has no dashes") > Reported-by: Scott Mayhew > Signed-off-by: Luis Chamberlain > --- > kconfigs/workflows/Kconfig | 1 + > playbooks/roles/gen_nodes/defaults/main.yml | 1 + > playbooks/roles/gen_nodes/tasks/main.yml | 4 +++- > 3 files changed, 5 insertions(+), 1 deletion(-) > > diff --git a/kconfigs/workflows/Kconfig b/kconfigs/workflows/Kconfig > index 4f969c60cab8..3075cbc13a82 100644 > --- a/kconfigs/workflows/Kconfig > +++ b/kconfigs/workflows/Kconfig > @@ -106,6 +106,7 @@ choice > config KDEVOPS_WORKFLOW_DEDICATE_FSTESTS > bool "fstests" > select KDEVOPS_WORKFLOW_ENABLE_FSTESTS > + output yaml > help > This will dedicate your configuration only to fstests. > > diff --git a/playbooks/roles/gen_nodes/defaults/main.yml b/playbooks/roles/gen_nodes/defaults/main.yml > index 8ff9b87993a7..dff556c3b716 100644 > --- a/playbooks/roles/gen_nodes/defaults/main.yml > +++ b/playbooks/roles/gen_nodes/defaults/main.yml > @@ -83,6 +83,7 @@ libvirt_largeio_base_size: 10240 > libvirt_largeio_pow_limit: 12 > > kdevops_workflows_dedicated_workflow: False > +kdevops_workflow_dedicate_fstests: False > kdevops_workflow_enable_fstests: False > kdevops_workflow_enable_blktests: False > > diff --git a/playbooks/roles/gen_nodes/tasks/main.yml b/playbooks/roles/gen_nodes/tasks/main.yml > index 8c6a1f705ee2..f14f5879dc58 100644 > --- a/playbooks/roles/gen_nodes/tasks/main.yml > +++ b/playbooks/roles/gen_nodes/tasks/main.yml > @@ -21,7 +21,9 @@ > - name: Fail if kdevops_host_prefix contains a dash > fail: > msg: "Invalid kdevops_host_prefix '{{ kdevops_host_prefix }}'. The prefix cannot contain a dash ('-')." > - when: kdevops_host_prefix is search("-") > + when: > + - kdevops_workflow_dedicate_fstests|bool > + - kdevops_host_prefix is search("-") > > - name: Create guestfs directory > ansible.builtin.file: > -- > 2.47.2 >