From mboxrd@z Thu Jan 1 00:00:00 1970 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 52AE635691D for ; Wed, 27 Aug 2025 14:28:38 +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=1756304918; cv=none; b=i2x2jHEpd9BRfqOMmRWsB5hKQaFpBIoC4fsFN8oRl3/JE5QR4IMTl+B3GsQYsuU5x0brmC3jYmDMvE8GWC/lBsEppP89932iZ9pBMZpYmRq197BzbZr1agVvrjgGf/guSEGgF4IjOf51F2ipP8mTh7bIcR2D1AfCRdEv9w8ZfRs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756304918; c=relaxed/simple; bh=fmLoxgcIUBhhEE54kn0xQ4UvZa9vy+h0vecZq+y+59U=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=QTXNFrrndoC5xfnRRpIZaO1gZHlcWHb3Qeq2Wdad1UK0W3SeviC//ir/gZJfRcp8DEyEDV2+kTVJS8Jd3YNkjxQmufuvqHA/rEvXtWdmkkPNkRAb857j+1qlzHVZYMB3QcgZo6ziESGr2j96ZVq9yzedGEk4SgZDW3GBQhfKo30= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=LwXIHFab; 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="LwXIHFab" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B2864C4CEF6; Wed, 27 Aug 2025 14:28:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1756304917; bh=fmLoxgcIUBhhEE54kn0xQ4UvZa9vy+h0vecZq+y+59U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LwXIHFab7IIph4vPkT7Lrqg48KHe7GeQCoVaDaI0MQddLApFVONvaOoNUzz/1MBs1 j6uLq6E4mAiTUwdl74nnquOAubjhG6uaGfBQw4bweQ0B+Yl39kZWPShfMjIRWOuSe2 AcS8YJ6/uQVIppwT8lImmvhGYa0kFWdox+LBV8yjT8Nc8ryrDlXeix7UhZ3nH4o+6v e+oX8GnyVG6z8X8REWTcAao5ZCyDns7LKexIaNrCKR8+lp7K0X6L+GF7mjlEkdg63S yB9MS99/TwCFB6FEuLTcznFY3/iOHodHGGzSLW4gMeD0swFcD4iNNkPcMew/CfUCyv dPXrFOu+TvYZA== From: Chuck Lever To: Cc: Chuck Lever Subject: [PATCH v1 08/26] terraform/oci: Work around oracle/oci provider bug Date: Wed, 27 Aug 2025 10:28:03 -0400 Message-ID: <20250827142832.2629291-9-cel@kernel.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20250827142832.2629291-1-cel@kernel.org> References: <20250827142832.2629291-1-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=UTF-8 Content-Transfer-Encoding: 8bit From: Chuck Lever First, I was getting module.volumes[0].oci_core_volume.kdevops_volume_extra[0]: Creating... ╷ │ Error: 400-CannotParseRequest, Incorrectly formatted request. Please refer to our documentation for help. No idea why, though maybe this is the first time I've tried using us-east1 when my home region is us-central. Nothing I tried changed this result, and there's no obvious problem with the way that the oci_core_volume resource is specified, which hasn't changed in many months. All documentation I consulted stated that because the root module explicitly specifies exactly one provider, child modules are supposed to inherit that provider. But that isn't happening here: $ terraform providers Providers required by configuration: . ├── provider[registry.terraform.io/oracle/oci] ~> 6.0 └── module.volumes └── provider[registry.terraform.io/hashicorp/oci] And looks like it's a bug that was never fixed: https://github.com/oracle/terraform-provider-oci/issues/1608 The only workaround I understood was to switch the root module back to using the hashicorp/oci provider so that the root and "volumes" module use the same provider. Signed-off-by: Chuck Lever --- terraform/oci/provider.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/terraform/oci/provider.tf b/terraform/oci/provider.tf index 08d0d2c526c6..610d2059577a 100644 --- a/terraform/oci/provider.tf +++ b/terraform/oci/provider.tf @@ -2,8 +2,8 @@ terraform { required_version = ">= 0.12.6" required_providers { oci = { - source = "oracle/oci" - version = "~> 6" + source = "hashicorp/oci" + version = "> 7" } } } -- 2.51.0