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 610432367CE for ; Thu, 4 Sep 2025 15:15:32 +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=1756998933; cv=none; b=LGEtXEjW7TTckfzFRTtknHGbaFqqvcfRCv3eurZmeygZFe6GLOsa/IEUBWorHqvdbDTyfTpBIq7PQVL2ZUFKqmQXWqDs3BR5UQ05PtsHgcylCmlfTefuHhfl+y0CnDFYcDapnllUATUzmVrGk1dm4fAOmuhTVWA0cZcOz3XvEf8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756998933; c=relaxed/simple; bh=sGcXa4dMx5MTRF5CoWtJCpF/ovXyTOY4jruAD62NGH8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Tt9WGH/sUCelhvwCa92Zu1AvtOC+wX+xOvnvzz7Zj2FjgcSXaa3DkCB8BUYmHObxZqvj9mK/DIRrakP5wCGB+vj3On/EDaVCUXpxF9tssMXriXipWTlV32GBNYdNUDfUMzHiwNCUT45zZg8mZBDOMOE/RLSBtC1M/pTThFYOIUA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=pdRFmSne; 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="pdRFmSne" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 41680C4CEF9; Thu, 4 Sep 2025 15:15:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1756998932; bh=sGcXa4dMx5MTRF5CoWtJCpF/ovXyTOY4jruAD62NGH8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pdRFmSne0GqBo5q4isQjFEJaYQ+kKfOlX5Qw/b4b+ZdL3mxBGBneIQmP91m0SaTLl 0dQdKhI/yEGKM4qUIoL3QWJmEevucNlBH4sqkZ+ssCBr06fRby9XuXGnCEZ8pMh9oL TuCbctx6Hs/my1Vhy5vcWmUNDsZb2hzxTTb+sYNGPANE7bEU+NkuJpXCah9RWMh/Sf NFewjv8nG9vSmvegCu5as6My35AW2sX2vpxOGELPP8qGsXFdWU/7y6AXWL9CXNYF1i Q1KDCsNRTWh6cP2OA1cCGhyhUCnsrEVMhZUHgvGbRe5J7j/SLsYWgTnqqeTOXhqQre oRpPWIwkt7jWA== From: Chuck Lever To: Cc: Chuck Lever , Luis Chamberlain Subject: [PATCH v3 08/36] terraform/oci: Work around oracle/oci provider bug Date: Thu, 4 Sep 2025 11:14:56 -0400 Message-ID: <20250904151526.1596282-9-cel@kernel.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20250904151526.1596282-1-cel@kernel.org> References: <20250904151526.1596282-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. Reviewed-by: Luis Chamberlain 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