opentofu: opentofu 1.9.0 plan stuck forever with azure provider

Community note

Hello! We begin migrate from terraform 0.14.8 to opentofu 1.9.0 and we upgrade terraform provider from 2.36.0 to 3.117.1. With terraform all works perfect, but for opentofu on terraform plan stuck forever.

We run terraform in docker container. Also we try to run from our runner and from local laptop with host docker network.

OpenTofu Version

1.9.0

OpenTofu Configuration Files

our configuration can see here https://github.com/deckhouse/deckhouse/tree/1de8786c54319779d67f10e6d7fc47c17e5bb754/candi/cloud-providers/azure/terraform-modules

Debug Output

│ │ │ 2025-05-18T10:23:36.811Z [DEBUG] provider.terraform-provider-azurerm: plugin address: network=unix address=/tmp/plugin33967006       ↵
│ │ │ timestamp=2025-05-18T10:23:36.810Z
│ │ │ 2025-05-18T10:23:36.811Z [DEBUG] provider: using plugin: version=5
│ │ │ 2025-05-18T10:23:36.821Z [TRACE] BuiltinEvalContext: Initialized "provider[\"registry.opentofu.org/hashicorp/azurerm\"]"%!s(<nil>)   ↵
│ │ │ provider for provider["registry.opentofu.org/hashicorp/azurerm"]
│ │ │ 2025-05-18T10:23:36.821Z [TRACE] provider.stdio: waiting for stdio data
│ │ │ 2025-05-18T10:23:36.821Z [TRACE] tofu.contextPlugins: Serving provider "registry.opentofu.org/hashicorp/azurerm" schema from global  ↵
│ │ │ schema cache
│ │ │ 2025-05-18T10:23:36.821Z [TRACE] NodeApplyableProvider: configuring provider["registry.opentofu.org/hashicorp/azurerm"]
│ │ │ 2025-05-18T10:23:36.821Z [TRACE] buildProviderConfig for provider["registry.opentofu.org/hashicorp/azurerm"]: using explicit config  ↵
│ │ │ only
│ │ │ 2025-05-18T10:23:36.821Z [TRACE] GRPCProvider: GetProviderSchema
│ │ │ 2025-05-18T10:23:36.821Z [TRACE] GRPCProvider: GetProviderSchema: serving from global schema cache:                                  ↵
│ │ │ address=registry.opentofu.org/hashicorp/azurerm
│ │ │ 2025-05-18T10:23:36.822Z [TRACE] GRPCProvider: ValidateProviderConfig
│ │ │ 2025-05-18T10:23:36.822Z [TRACE] GRPCProvider: GetProviderSchema
│ │ │ 2025-05-18T10:23:36.822Z [TRACE] GRPCProvider: GetProviderSchema: serving from global schema cache:                                  ↵
│ │ │ address=registry.opentofu.org/hashicorp/azurerm
│ │ │ 2025-05-18T10:23:36.823Z [TRACE] provider.terraform-provider-azurerm: Received request: @caller=/home/nick/src/3rdparty/terraform-pr ↵
│ │ │ ovider-azurerm/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server/server.go:549 @module=sdk.proto                   ↵
│ │ │ tf_provider_addr=provider tf_proto_version=5.6 tf_req_id=2f1215cb-c6fb-8e46-2fc4-a8c8184fd39c tf_rpc=PrepareProviderConfig           ↵
│ │ │ timestamp=2025-05-18T10:23:36.823Z
│ │ │ 2025-05-18T10:23:36.823Z [TRACE] provider.terraform-provider-azurerm: Skipping protocol data file writing because no data directory  ↵
│ │ │ is set. Use the TF_LOG_SDK_PROTO_DATA_DIR environment variable to enable this functionality.: tf_proto_version=5.6                   ↵
│ │ │ tf_provider_addr=provider tf_req_id=2f1215cb-c6fb-8e46-2fc4-a8c8184fd39c @caller=/home/nick/src/3rdparty/terraform-provider-azurerm/ ↵
│ │ │ vendor/github.com/hashicorp/terraform-plugin-go/internal/logging/protocol_data.go:41 @module=sdk.proto tf_rpc=PrepareProviderConfig  ↵
│ │ │ timestamp=2025-05-18T10:23:36.823Z
│ │ │ 2025-05-18T10:23:36.823Z [TRACE] provider.terraform-provider-azurerm: Sending request downstream: tf_proto_version=5.6               ↵
│ │ │ tf_provider_addr=provider tf_req_id=2f1215cb-c6fb-8e46-2fc4-a8c8184fd39c @caller=/home/nick/src/3rdparty/terraform-provider-azurerm/ ↵
│ │ │ vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tf5serverlogging/downstream_request.go:22 @module=sdk.proto       ↵
│ │ │ tf_rpc=PrepareProviderConfig timestamp=2025-05-18T10:23:36.823Z
│ │ │ 2025-05-18T10:23:36.823Z [TRACE] provider.terraform-provider-azurerm: Preparing provider configuration: tf_provider_addr=provider    ↵
│ │ │ tf_req_id=2f1215cb-c6fb-8e46-2fc4-a8c8184fd39c tf_rpc=PrepareProviderConfig @caller=/home/nick/src/3rdparty/terraform-provider-azure ↵
│ │ │ rm/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema/grpc_provider.go:170 @module=sdk.helper_schema                  ↵
│ │ │ timestamp=2025-05-18T10:23:36.823Z
│ │ │ 2025-05-18T10:23:36.824Z [TRACE] provider.terraform-provider-azurerm: Calling downstream: @caller=/home/nick/src/3rdparty/terraform- ↵
│ │ │ provider-azurerm/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema/grpc_provider.go:258 @module=sdk.helper_schema    ↵
│ │ │ tf_provider_addr=provider tf_req_id=2f1215cb-c6fb-8e46-2fc4-a8c8184fd39c tf_rpc=PrepareProviderConfig                                ↵
│ │ │ timestamp=2025-05-18T10:23:36.824Z
│ │ │ 2025-05-18T10:23:36.849Z [TRACE] provider.terraform-provider-azurerm: Called downstream: tf_provider_addr=provider                   ↵
│ │ │ tf_req_id=2f1215cb-c6fb-8e46-2fc4-a8c8184fd39c tf_rpc=PrepareProviderConfig @caller=/home/nick/src/3rdparty/terraform-provider-azure ↵
│ │ │ rm/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema/grpc_provider.go:260 @module=sdk.helper_schema                  ↵
│ │ │ timestamp=2025-05-18T10:23:36.849Z
│ │ │ 2025-05-18T10:23:36.849Z [TRACE] provider.terraform-provider-azurerm: Received downstream response: @caller=/home/nick/src/3rdparty/ ↵
│ │ │ terraform-provider-azurerm/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tf5serverlogging/downstream_request.go ↵
│ │ │ :42 @module=sdk.proto tf_rpc=PrepareProviderConfig diagnostic_error_count=0 diagnostic_warning_count=0 tf_proto_version=5.6          ↵
│ │ │ tf_provider_addr=provider tf_req_duration_ms=26 tf_req_id=2f1215cb-c6fb-8e46-2fc4-a8c8184fd39c timestamp=2025-05-18T10:23:36.849Z
│ │ │ 2025-05-18T10:23:36.850Z [TRACE] provider.terraform-provider-azurerm: Served request: @module=sdk.proto                              ↵
│ │ │ tf_rpc=PrepareProviderConfig @caller=/home/nick/src/3rdparty/terraform-provider-azurerm/vendor/github.com/hashicorp/terraform-plugin ↵
│ │ │ -go/tfprotov5/tf5server/server.go:570 tf_proto_version=5.6 tf_provider_addr=provider tf_req_id=2f1215cb-c6fb-8e46-2fc4-a8c8184fd39c  ↵
│ │ │ timestamp=2025-05-18T10:23:36.849Z
│ │ │ 2025-05-18T10:23:36.850Z [WARN]  ValidateProviderConfig from "provider[\"registry.opentofu.org/hashicorp/azurerm\"]" changed the     ↵
│ │ │ config value, but that value is unused
│ │ │ 2025-05-18T10:23:36.850Z [TRACE] GRPCProvider: ConfigureProvider
│ │ │ 2025-05-18T10:23:36.850Z [TRACE] GRPCProvider: GetProviderSchema
│ │ │ 2025-05-18T10:23:36.850Z [TRACE] GRPCProvider: GetProviderSchema: serving from global schema cache:                                  ↵
│ │ │ address=registry.opentofu.org/hashicorp/azurerm
│ │ │ 2025-05-18T10:23:36.851Z [TRACE] provider.terraform-provider-azurerm: Received request: @module=sdk.proto @caller=/home/nick/src/3rd ↵
│ │ │ party/terraform-provider-azurerm/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server/server.go:578                   ↵
│ │ │ tf_provider_addr=provider tf_req_id=14dfcb51-5cdb-ebac-c6d6-186750bc48b9 tf_rpc=Configure tf_proto_version=5.6                       ↵
│ │ │ timestamp=2025-05-18T10:23:36.851Z
│ │ │ 2025-05-18T10:23:36.851Z [TRACE] provider.terraform-provider-azurerm: No announced client capabilities: @caller=/home/nick/src/3rdpa ↵
│ │ │ rty/terraform-provider-azurerm/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tf5serverlogging/client_capabiliti ↵
│ │ │ es.go:16 tf_proto_version=5.6 tf_rpc=Configure @module=sdk.proto tf_provider_addr=provider                                           ↵
│ │ │ tf_req_id=14dfcb51-5cdb-ebac-c6d6-186750bc48b9 timestamp=2025-05-18T10:23:36.851Z
│ │ │ 2025-05-18T10:23:36.851Z [TRACE] provider.terraform-provider-azurerm: Sending request downstream: tf_proto_version=5.6               ↵
│ │ │ tf_provider_addr=provider tf_req_id=14dfcb51-5cdb-ebac-c6d6-186750bc48b9 tf_rpc=Configure @caller=/home/nick/src/3rdparty/terraform- ↵
│ │ │ provider-azurerm/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tf5serverlogging/downstream_request.go:22        ↵
│ │ │ @module=sdk.proto timestamp=2025-05-18T10:23:36.851Z
│ │ │ 2025-05-18T10:23:36.852Z [TRACE] provider.terraform-provider-azurerm: Calling downstream: tf_rpc=Configure @caller=/home/nick/src/3r ↵
│ │ │ dparty/terraform-provider-azurerm/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema/grpc_provider.go:610             ↵
│ │ │ @module=sdk.helper_schema tf_provider_addr=provider tf_req_id=14dfcb51-5cdb-ebac-c6d6-186750bc48b9                                   ↵
│ │ │ timestamp=2025-05-18T10:23:36.852Z
│ │ │ 2025-05-18T10:23:36.852Z [DEBUG] provider.terraform-provider-azurerm: Configuring built-in cloud environment by name: "public":      ↵
│ │ │ timestamp=2025-05-18T10:23:36.852Z
│ │ │ 2025-05-18T10:23:36.853Z [DEBUG] provider.terraform-provider-azurerm: POST                                                           ↵
│ │ │ https://login.microsoftonline.com/xxxxxx/oauth2/v2.0/token: timestamp=2025-05-18T10:23:36.853Z
│ │ │ 2025-05-18T10:23:37.134Z [DEBUG] provider.terraform-provider-azurerm: Generated Provider Correlation Request Id:                     ↵
│ │ │ 57000c9f-3327-f251-b986-f7aa9519ae6b: timestamp=2025-05-18T10:23:37.134Z
│ │ │ 2025-05-18T10:23:37.493Z [DEBUG] provider.terraform-provider-azurerm: POST                                                           ↵
│ │ │ https://login.microsoftonline.com/xxxxx/oauth2/v2.0/token: timestamp=2025-05-18T10:23:37.493Z
│ │ │ 2025-05-18T10:23:37.611Z [DEBUG] provider.terraform-provider-azurerm: AzureRM Request: 
│ │ │ GET /subscriptions/xxxxxx/providers?api-version=2022-09-01 HTTP/1.1
│ │ │ Host: management.azure.com
│ │ │ User-Agent: HashiCorp/go-azure-sdk (Go-http-Client/1.1 providers/2022-09-01) HashiCorp Terraform/1.9.0 (+https://www.terraform.io)   ↵
│ │ │ terraform-provider-azurerm/dev pid-222c6c49-1b0a-5959-a213-6608f9eb8820
│ │ │ Accept: application/json; charset=utf-8; IEEE754Compatible=false
│ │ │ Content-Type: application/json; charset=utf-8
│ │ │ Odata-Maxversion: 4.0
│ │ │ Odata-Version: 4.0
│ │ │ X-Ms-Correlation-Request-Id: 57000c9f-3327-f251-b986-f7aa9519ae6b
│ │ │ Accept-Encoding: gzip: timestamp=2025-05-18T10:23:37.611Z
│ │ │ 2025-05-18T10:23:37.611Z [DEBUG] provider.terraform-provider-azurerm: GET                                                            ↵
│ │ │ https://management.azure.com/subscriptions/6bee52a1-03e5-43d6-8e38-a37d54c1e556/providers?api-version=2022-09-01:                    ↵
│ │ │ timestamp=2025-05-18T10:23:37.611Z
│ │ │ 2025-05-18T10:23:41.705Z [TRACE] dag/walk: vertex "azurerm_subnet.kube (expand)" is waiting for "azurerm_virtual_network.kube        ↵
│ │ │ (expand)"
│ │ │ 2025-05-18T10:23:41.705Z [TRACE] dag/walk: vertex "azurerm_network_security_group.kube (expand)" is waiting for                      ↵
│ │ │ "azurerm_resource_group.kube (expand)"
│ │ │ 2025-05-18T10:23:41.705Z [TRACE] dag/walk: vertex "azurerm_subnet_network_security_group_association.kube (expand)" is waiting for   ↵
│ │ │ "azurerm_subnet.kube (expand)"
│ │ │ 2025-05-18T10:23:41.705Z [TRACE] dag/walk: vertex "root" is waiting for "provider[\"registry.opentofu.org/hashicorp/azurerm\"]       ↵
│ │ │ (close)"
│ │ │ 2025-05-18T10:23:41.705Z [TRACE] dag/walk: vertex "azurerm_virtual_network.kube (expand)" is waiting for                             ↵
│ │ │ "azurerm_resource_group.kube (expand)"
│ │ │ 2025-05-18T10:23:41.705Z [TRACE] dag/walk: vertex "azurerm_nat_gateway_public_ip_association.kube (expand)" is waiting for           ↵
│ │ │ "azurerm_public_ip.kube (expand)"
│ │ │ 2025-05-18T10:23:41.705Z [TRACE] dag/walk: vertex "azurerm_resource_group.kube (expand)" is waiting for                              ↵
│ │ │ "provider[\"registry.opentofu.org/hashicorp/azurerm\"]"
│ │ │ 2025-05-18T10:23:41.705Z [TRACE] dag/walk: vertex "azurerm_network_security_rule.icmp (expand)" is waiting for                       ↵
│ │ │ "azurerm_network_security_group.kube (expand)"
│ │ │ 2025-05-18T10:23:41.705Z [TRACE] dag/walk: vertex "azurerm_route_table.kube (expand)" is waiting for "azurerm_resource_group.kube    ↵
│ │ │ (expand)"
│ │ │ 2025-05-18T10:23:41.705Z [TRACE] dag/walk: vertex "azurerm_subnet_route_table_association.kube (expand)" is waiting for              ↵
│ │ │ "azurerm_subnet.kube (expand)"
│ │ │ 2025-05-18T10:23:41.705Z [TRACE] dag/walk: vertex "azurerm_nat_gateway.kube (expand)" is waiting for "azurerm_resource_group.kube    ↵
│ │ │ (expand)"
│ │ │ 2025-05-18T10:23:41.705Z [TRACE] dag/walk: vertex "azurerm_virtual_network_peering.remote-with-kube (expand)" is waiting for         ↵
│ │ │ "azurerm_virtual_network.kube (expand)"
│ │ │ 2025-05-18T10:23:41.706Z [TRACE] dag/walk: vertex "local.peered_vnets_data (expand)" is waiting for                                  ↵
│ │ │ "data.azurerm_virtual_network.remote (expand)"
│ │ │ 2025-05-18T10:23:41.706Z [TRACE] dag/walk: vertex "azurerm_subnet_nat_gateway_association.kube (expand)" is waiting for              ↵
│ │ │ "azurerm_subnet.kube (expand)"
│ │ │ 2025-05-18T10:23:41.706Z [TRACE] dag/walk: vertex "provider[\"registry.opentofu.org/hashicorp/azurerm\"] (close)" is waiting for     ↵
│ │ │ "azurerm_virtual_network_peering.remote-with-kube (expand)"
│ │ │ 2025-05-18T10:23:41.706Z [TRACE] dag/walk: vertex "azurerm_virtual_network_peering.kube-with-remote (expand)" is waiting for         ↵
│ │ │ "azurerm_virtual_network.kube (expand)"
│ │ │ 2025-05-18T10:23:41.706Z [TRACE] dag/walk: vertex "data.azurerm_virtual_network.remote (expand)" is waiting for                      ↵
│ │ │ "provider[\"registry.opentofu.org/hashicorp/azurerm\"]"
│ │ │ 2025-05-18T10:23:41.706Z [TRACE] dag/walk: vertex "output.cloud_discovery_data (expand)" is waiting for "azurerm_subnet.kube (expand)"
│ │ │ 2025-05-18T10:23:41.717Z [TRACE] dag/walk: vertex "azurerm_public_ip.kube (expand)" is waiting for "azurerm_resource_group.kube      ↵
│ │ │ (expand)"
│ │ │ 2025-05-18T10:23:41.717Z [TRACE] dag/walk: vertex "azurerm_network_security_rule.ssh (expand)" is waiting for                        ↵
│ │ │ "azurerm_network_security_group.kube (expand)"

Expected Behavior

plan should work

Actual Behavior

plan stuck forever

Steps to Reproduce

 │ │ Tofu Command:
│ │ │  opentofu -chdir=/deckhouse/candi/cloud-providers/azure/layouts/standard/base-infrastructure init -plugin-dir=/plugins -no-color     ↵
│ │ │ -input=false
│ │ │ Tofu Command envs:
│ │ │  DHCTL_DEBUG=yes HOSTNAME=nick-XiaoXinPro-14-AHP9 EDITOR=vim PWD=/ HOME=/root LANG=C.UTF-8 COLUMNS=178 TERM=xterm SHLVL=1            ↵
│ │ │ LC_ALL=C.UTF-8 PATH=/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin _=/dhctl-new TF_IN_AUTOMATION=yes              ↵
│ │ │ TF_SKIP_CREATING_DEPS_LOCK_FILE=yes TF_DATA_DIR=/tmp/dhctl/tf_dhctl TF_LOG=TRACE AZURE_GO_SDK_LOG_LEVEL=DEBUG HTTP_PROXY=            ↵
│ │ │ HTTPS_PROXY= NO_PROXY=
│ │ │ /bin/opentofu -chdir=/deckhouse/candi/cloud-providers/azure/layouts/standard/base-infrastructure init -plugin-dir=/plugins           ↵
│ │ │ -no-color -input=false
 │ │ Tofu Command:
│ │ │  opentofu -chdir=/deckhouse/candi/cloud-providers/azure/layouts/standard/base-infrastructure plan -input=false -no-color             ↵
│ │ │ -var-file=/tmp/dhctl/cluster-config.auto.3710826901.tfvars.json                                                                      ↵
│ │ │ -state=/tmp/dhctl/e5df21b60ae6b4c1b8928e5331c10e055b6847613294d063dce3187d3531bcd8/base-infrastructure.tfstate -detailed-exitcode    ↵
│ │ │ -out=/tmp/dhctl/base-infrastructure-dhctl.4294250618.tfplan
│ │ │ Tofu Command envs:
│ │ │  DHCTL_DEBUG=yes HOSTNAME=nick-XiaoXinPro-14-AHP9 EDITOR=vim PWD=/ HOME=/root LANG=C.UTF-8 COLUMNS=178 TERM=xterm SHLVL=1            ↵
│ │ │ LC_ALL=C.UTF-8 PATH=/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin _=/dhctl-new TF_IN_AUTOMATION=yes              ↵
│ │ │ TF_SKIP_CREATING_DEPS_LOCK_FILE=yes TF_DATA_DIR=/tmp/dhctl/tf_dhctl TF_LOG=TRACE AZURE_GO_SDK_LOG_LEVEL=DEBUG HTTP_PROXY=            ↵
│ │ │ HTTPS_PROXY= NO_PROXY=
│ │ │ /bin/opentofu -chdir=/deckhouse/candi/cloud-providers/azure/layouts/standard/base-infrastructure plan -input=false -no-color         ↵
│ │ │ -var-file=/tmp/dhctl/cluster-config.auto.3710826901.tfvars.json                                                                      ↵
│ │ │ -state=/tmp/dhctl/e5df21b60ae6b4c1b8928e5331c10e055b6847613294d063dce3187d3531bcd8/base-infrastructure.tfstate -detailed-exitcode    ↵
│ │ │ -out=/tmp/dhctl/base-infrastructure-dhctl.4294250618.tfplan

Additional Context

No response

References

About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Comments: 17 (7 by maintainers)

Most upvoted comments

Thanks for that additional example, @lakshmisnm.

I think at this point we have two main possibilities to explore:

  1. OpenTofu itself is doing something slightly different than Terraform when configuring plugins.
  2. The OpenTofu project’s rebuilt versions of these providers behave differently than the ones shipped by the original development teams.

We could test for the second case by trying to use OpenTofu’s providers with Terraform. (The opposite is not allowed for the same reason that caused the OpenTofu project to need to provide its own builds in the first place.)

To force Terraform to use OpenTofu’s builds you can explicitly set the registry hostname in your required_providers block:

terraform {
  required_providers {
    azurerm = {
      source = "registry.opentofu.org/hashicorp/azurerm"
    }
  }
}

This configuration explicitly selects the OpenTofu project’s builds of the provider, even when using Terraform. This could therefore help us determine whether the problem is in OpenTofu itself or in these rebuilt plugins, by testing whether this behavior of getting stuck at few configuration step happens under Terraform too when using OpenTofu’s provider builds.

I’ve shown an azurerm provider example above because that was the original motivation for this issue, but the same strategy should work for the aws provider too.

If someone who can already reliably reproduce the original problem could try that and let us know the result then that will hopefully get us closer to a concrete theory about what’s going on here. Thanks!

Thanks for that additional information, @name212!

If I’m reading the log correctly, it seems like the problem is occurring at the step where OpenTofu asks the provider to configure itself based on the information in your provider "azurerm" block, before it interacts with any specific resources.

There are log entries that appear to be generated by the provider in response to that request, and so it seems that for some reason OpenTofu is not getting a response from the provider and so is unable to continue to the resources that belong to this provider.

If I’m correct in that assessment then I expect this would be reproducible with a simpler configuration that includes only the provider block and one resource associated with that provider, such as an azurerm_resource_group resource.

Would you be able to try this again with a simplified configuration like that to see if it reproduces? I’m hoping to find a smaller reproduction case that we’ll be able to try to repeat ourselves against an Azure account we control, so we can hopefully debug this more directly.

Thanks!

Thanks @name212! We’ll take a closer look at this soon. (I don’t personally have access to an Azure account right now, so I’m going to ask if anyone else on the team does, or otherwise get myself set up with one.)


@moksongmin, if you’re interested it would be helpful to try a similar small reproduction case like @name212 tried above, but for hashicorp/aws instead. If you have encountered the same problem then it should be reproducible with just a provider "aws" block and only one resource block that uses that provider.

There are other known reasons for the hashicorp/aws plugin to appear to be stuck when configuring – for example, if it tries to access EC2 metadata service when you are running on a computer outside of EC2, and that request gets dropped by a firewall – so I’d like to understand whether your situation is the same or if you just have a similar situation with a different root problem. Thanks!