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 CCFD227055C for ; Thu, 8 May 2025 14:30:02 +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=1746714602; cv=none; b=MUGacNkm/PRHaegcrgIT3AoWVCXo9pcsqDK7FOvMgdYYbUjkrcDnQr0ApyBaCUAQykpEO4Zh+jqQeMz8zueUluj2oDYROYaSU/fUMXZO0Mxu2LQS+22GOOhc9ICDKv99IcPez+51XlTO6z6Vek5tm1xTQNTE0+b9i+Ur5TzPzes= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746714602; c=relaxed/simple; bh=+g/VAEKJ/GFPu0kYB6Ym4W30C6TTPpoPthfQ35uVWt8=; h=References:From:To:Cc:Subject:Date:In-reply-to:Message-ID: MIME-Version:Content-Type; b=PYjJmSf7eUfZyvkG2oEeV4Gl95m1fILRLC+ZM+pC15OvTQEbwRP5m1D2zlfgoXaeFDceP6GtiIE6ZbOUfbyWQIFyPa+6Ag8y0q6zZwTwqtpnkGK3ADx/CyoLYXzqm7MpX3FBt1CQiMvHxeUZA6pILOBQzO4ZAGtmY96jOxipj+Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=c9i4sCOI; 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="c9i4sCOI" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A7D5EC4CEED; Thu, 8 May 2025 14:30:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1746714602; bh=+g/VAEKJ/GFPu0kYB6Ym4W30C6TTPpoPthfQ35uVWt8=; h=References:From:To:Cc:Subject:Date:In-reply-to:From; b=c9i4sCOIXknZear9NDFE5svZhgb38t3U/zGrFq0vtNBM3cXT7DCF0g7E2HFs9w+4E K1suR64PUa7pXxsy1xctJ/ZunLL30gzOL38qmIshW0FboiuR7tGIVjVm4C6ajpsALe bT5fqdXJbK2S8+9voPTwovukOb91zAAcd3fWiW1x1W6yARigZRSbhIvQl6rGSnrCCP HcM6lXvJKixJ0eABe6yugqLTptlQTJQg0JlLgMhYvKiOWSFE4NVijmO8PNaKqYQQFv yIqkSeS128+fhJ1a/pQSB7JYfTESqPZ0by4WDq9DIYmC2rPJ8PNQrskxrj/fgzsnNQ EVrRGpxE5hjog== References: <20250507095522.1027554-1-chandanbabu@kernel.org> <0081c933-a6b3-4caa-83f3-f1a1fa53fff7@oracle.com> <87ikmbmepa.fsf@debian-BULLSEYE-live-builder-AMD64> <8989d657-b425-4763-b201-85f938ebe715@oracle.com> User-agent: mu4e 1.10.8; emacs 29.2 From: Chandan Babu R To: Chuck Lever Cc: Luis Chamberlain , kdevops@lists.linux.dev Subject: Re: [PATCH] terraform/oci: Add VM.Standard.x86.Generic shape to available options Date: Thu, 08 May 2025 19:57:48 +0530 In-reply-to: <8989d657-b425-4763-b201-85f938ebe715@oracle.com> Message-ID: <87ecwzmazg.fsf@debian-BULLSEYE-live-builder-AMD64> Precedence: bulk X-Mailing-List: kdevops@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain On Thu, May 08, 2025 at 09:11:29 AM -0400, Chuck Lever wrote: > On 5/8/25 9:07 AM, Chandan Babu R wrote: >> On Wed, May 07, 2025 at 10:52:39 AM -0700, Luis Chamberlain wrote: >>> On Wed, May 07, 2025 at 01:33:07PM -0400, Chuck Lever wrote: >>>> On 5/7/25 1:05 PM, Luis Chamberlain wrote: >>>>> On Wed, May 07, 2025 at 03:25:16PM +0530, Chandan Babu R wrote: >>>>>> The VM.Standard.x86.Generic is another shape available for Oracle Linux kernel >>>>>> developers. This commit adds this shape to the list of available flexible >>>>>> shapes. >>>>>> >>>>>> Signed-off-by: Chandan Babu R >>>>>> --- >>>>>> Chuck, >>>>>> >>>>>> Kconfig's "choice" construct does not allow "free text" to be >>>>>> entered. Hence, I had to add the new entry as a choice. >>>>> >>>>> You can resolve this as follows? >>>>> >>>>> diff --git a/terraform/oci/kconfigs/shapes/Kconfig.flex b/terraform/oci/kconfigs/shapes/Kconfig.flex >>>>> index c2b3f5719c48..e8d0860aac67 100644 >>>>> --- a/terraform/oci/kconfigs/shapes/Kconfig.flex >>>>> +++ b/terraform/oci/kconfigs/shapes/Kconfig.flex >>>>> @@ -73,6 +73,7 @@ endchoice >>>>> config TERRAFORM_OCI_SHAPE >>>>> string >>>>> output yaml >>>>> + default "VM.Standard.x86.Generic" if TERRAFORM_OCI_SHAPE_VM_STANDARD_X86_GENERIC >>>>> default "VM.Standard3.Flex" if TERRAFORM_OCI_SHAPE_VM_STANDARD3_FLEX >>>>> default "VM.Standard.E4.Flex" if TERRAFORM_OCI_SHAPE_VM_STANDARD_E4_FLEX >>>>> default "VM.Standard.E5.Flex" if TERRAFORM_OCI_SHAPE_VM_STANDARD_E5_FLEX >>>> >>>> I'm able to select the VM.Standard.x86.Generic shape by going to >>>> >>>> Bring up methods -> Node bring up methods >>>> >>>> Choose Terraform then OCI, then >>>> >>>> Compute -> OCI shape family >>>> >>>> and choose "Generic" >>>> >>>> Is that not working? >>> >>> Oh never mind, I thought Chandan had an issue with using kconfig choice >>> to map to string. If the respective string is already populated my >>> recomendaiton is nonsense :) >>> >> >> Sorry, it was my mistake. I did not check the options under "Generic Shapes". >> >> Sorry once again. >> > > It is perhaps not as obvious as it should be. The classification of shapes is correct. I somehow missed the "Generic" shape menu entry. -- Chandan