Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 DA1C01799F for ; Wed, 23 Apr 2025 17:04:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745427868; cv=none; b=A+PSFUqTLxqsrANeuCIDnSaYqyv/lCsCDnC4EZVFSEFKYneQ4okY9CybQnobnQYN4yCrT4QM7x9MyGro/q/Nv8VkdzRBRaf+Ce/MnToxmQfZiVDmbp22gRBUqhRa/UqdVM+uRwpbjoV8z4OP90WuBU2jqDse3UJto4OKyjKtPKo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745427868; c=relaxed/simple; bh=tR5Xi1q1wOpReMw7qCPZCnqhhXIEmBqwzrIdbRwWOpE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Oc2MvAItbva4iauETmgQoydsqeDjFOJVeQK++lXvs0RODYtQ+HTUo39fE4smil8vPCWMGzyQhWFnCAQXCTMY9gANT2zgc6RIzQ9YP+81xPmkB7ZNV3Yt4gBxpdLQx6fUGNeF17HJTmuFGGjMUbKYMbsc+1fZ+EkMGTp77QW+m54= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=TKe2g5m3; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="TKe2g5m3" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 50B4EC4CEE2; Wed, 23 Apr 2025 17:04:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1745427868; bh=tR5Xi1q1wOpReMw7qCPZCnqhhXIEmBqwzrIdbRwWOpE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=TKe2g5m3F6vjtPvXDIQqXbUteaRpaOG3aM43OtXgBSOqY8no9Vud168B+nbIbi4Xf IzNksKJEPPDsQwyVKDETaPjP3wQ+iPxDgtCHpP5k0yVb2JT0j3RgDHurpYcBGTha8H b2RlI49927R3OeEVXbEZn94IRx5nq6zn0nzHrBBkO4FrsIi3FXTd0AFtwkeAmEO5aE gNGD/M2Oem4qJcMGdbkERQIshwsb9wUyc47a0khGQpuaguNU6POLuM83pGr4383Mbm tdzX7OXxUtVgSoyrZHxJ+g19tV/Mef5gcj+Ys46FgH9aDakn/OJ4ENgy7sNlWt71AQ D3gN8kmedpIJA== Date: Wed, 23 Apr 2025 10:04:26 -0700 From: Luis Chamberlain To: cel@kernel.org Cc: kdevops@lists.linux.dev, Chuck Lever Subject: Re: [PATCH v3 1/1] guestfs: Per-user storage pools Message-ID: References: <20250423142009.685177-1-cel@kernel.org> <20250423142009.685177-2-cel@kernel.org> Precedence: bulk X-Mailing-List: kdevops@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250423142009.685177-2-cel@kernel.org> On Wed, Apr 23, 2025 at 10:20:09AM -0400, cel@kernel.org wrote: > From: Chuck Lever > > I'd like to be able to run more than one instance of kdevops per > physical host. Currently the kdevops guestfs set-up steers all > storage pool activity into ${STORAGE_POOL}/kdevops/guestfs, which > means there's a good change that two different logged-in users will > create virtual machines whose names (and block devices) conflict. > > So far I haven't been able to get the other storage pool-related > settings to add sufficient uniqueness to prevent this conflict. > > Instead, replace the "kdevops" string in the storage pool path with > the name of the user account running kdevops. > > Signed-off-by: Chuck Lever > --- > kconfigs/Kconfig.libvirt | 2 +- > scripts/bringup_guestfs.sh | 2 +- > scripts/destroy_guestfs.sh | 2 +- > scripts/guestfs.Makefile | 2 +- > 4 files changed, 4 insertions(+), 4 deletions(-) > > diff --git a/kconfigs/Kconfig.libvirt b/kconfigs/Kconfig.libvirt > index cba8abf1e24b..74a93f177732 100644 > --- a/kconfigs/Kconfig.libvirt > +++ b/kconfigs/Kconfig.libvirt > @@ -167,7 +167,7 @@ config LIBVIRT_STORAGE_POOL_PATH > config KDEVOPS_STORAGE_POOL_PATH > string > output yaml > - default "{{ libvirt_storage_pool_path }}/kdevops" > + default "{{ libvirt_storage_pool_path }}/{{ kdevops_storage_pool_user }}" So what I meant with my feedbakc was to make this an option. So for instance you can add a new Kconfig choice and the default KDEVOPS_STORAGE_POOL_USER_COMPAT and when that's true we default KDEVOPS_STORAGE_POOL_USER to "kdevops", otherwise it calls if KDEVOPS_STORAGE_POOL_USER_AUTO is set then the default is $USER. Then you can wackamole these two lines too: scripts/guestfs.Makefile:GUESTFS_ARGS += kdevops_storage_pool_user='$(USER)' scripts/vagrant.Makefile:VAGRANT_ARGS += kdevops_storage_pool_user='$(USER)' By making KDEVOPS_STORAGE_POOL_USER_COMPAT default it would work with existing deployments. Luis