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 8A5703064B9 for ; Tue, 2 Sep 2025 13:54:33 +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=1756821273; cv=none; b=FwfeVGIRHsBejGVtIeHiVlljA+Q21oE+jDcx8M3WODTxhM/IKnuBqViRbNaEKCdKTt1WYyXFeO62oZj/1nmfUondKa65IdJwz0Ct64ue1QbWOj65f1ipT5+vQw7g2WgmRwfVbFJLrs/WMre+P02NPPfh0eVtDh4QAElVu5uOZ8E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756821273; c=relaxed/simple; bh=sGcXa4dMx5MTRF5CoWtJCpF/ovXyTOY4jruAD62NGH8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=PYlrt+VLuZmBazwHIU50foIJvD1Pyy65VEckJWWEUpLgSsc1eB6N2/6mNFOJI5XpyOmt2d6w3Jg3aQer2RognyalYhhFRsfjmIJA3OKTjFE0ugoRuyJ7IZCQLgsyNh6RDVpBkGig8JK4Q38+u4OZHZh7k51J5J1v3b2jeg94d3Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ccczrDFZ; 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="ccczrDFZ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CBD6BC4CEED; Tue, 2 Sep 2025 13:54:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1756821273; bh=sGcXa4dMx5MTRF5CoWtJCpF/ovXyTOY4jruAD62NGH8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ccczrDFZ5SLTn9sDJpiSQ15WWoeMb8fgvGS+Z/bZtIkOtqWo3RE9jRrBDBFwpO+gg dalPKmvs+K6fNWgaPaXt5K6lATDfp2XL1VL+NlkUpo1PBW6jTBYg+7CHlj4cGHaTEW tfOBasxr3LZEo1EHZgNw/yQaxLb56AZHWhvnCWn2nIS/imslLQorGt6AgZu1df9RT0 haDVeBgMY9aHj1GjfsuudhXFNn/PSUyoVXdslPuXjmpyCCiReR64b3xaThqsawQwfU J1Vy3vtcVjM77ccFxSKXlv8sqvjJNNZf76qtTCKN5cRg0zxyWGIuVQd2//URaGB3J5 zCOxsppxUEreA== From: Chuck Lever To: Cc: Chuck Lever , Luis Chamberlain Subject: [PATCH v2 08/37] terraform/oci: Work around oracle/oci provider bug Date: Tue, 2 Sep 2025 09:53:55 -0400 Message-ID: <20250902135426.815079-9-cel@kernel.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20250902135426.815079-1-cel@kernel.org> References: <20250902135426.815079-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