Skip to content

Commit 5e6b550

Browse files
authored
Update logs that indicate a successful request forwarding connection (#838)
## Description <!-- Summarize the problem being solved, what was changed, why it was changed, and if applicable, how end user behavior was changed. --> This PR updates the request forwarding docs to show the logs to expect when an agent has successfully connected with request forwarding enabled. These logs changed in v1.15.1 of the agent, so I've updated the docs back to that version. ## Testing Plan You'll need an HCP Terraform account with the Premium tier entitlement. 1. [Follow instructions in the docs to connect an agent,](https://developer.hashicorp.com/terraform/cloud-docs/agents/agents#run-an-agent-with-docker) making sure to turn the request forwarding flag on and debug logging enabled `-request-forwarding=true -log-level=debug` 1. Check that the successful connection logs match what is here. 1. Check the docs for any typos.
2 parents 24500cc + 850e90f commit 5e6b550

File tree

9 files changed

+54
-18
lines changed

9 files changed

+54
-18
lines changed

content/terraform-docs-agents/v1.15.x/docs/cloud-docs/agents/request-forwarding.mdx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,12 @@ flag, or set the environment variable `TFC_AGENT_REQUEST_FORWARDING=true`. When
4343
the agent starts, you will see the following log messages:
4444

4545
```
46-
[INFO] core: Request forwarding is enabled
47-
[INFO] grpc_connector: Connected to broker, awaiting requests
46+
[INFO] core: Broker connection is enabled
47+
[INFO] grpc_connector: Connecting to broker: host=agents.terraform.io:7146
48+
[INFO] grpc_connector: agent grpc server serving...
49+
[INFO] grpc_connector: Keep alive is enabled: host=agents.terraform.io:7146
50+
[DEBUG] rpc_server: Handling broker authorization challenge
51+
[DEBUG] rpc_server: status-event: successful connection
4852
```
4953

5054
These log messages indicate that the agent has successfully connected to HCP Terraform

content/terraform-docs-agents/v1.16.x/docs/cloud-docs/agents/request-forwarding.mdx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,12 @@ flag, or set the environment variable `TFC_AGENT_REQUEST_FORWARDING=true`. When
4242
the agent starts, you will see the following log messages:
4343

4444
```
45-
[INFO] core: Request forwarding is enabled
46-
[INFO] grpc_connector: Connected to broker, awaiting requests
45+
[INFO] core: Broker connection is enabled
46+
[INFO] grpc_connector: Connecting to broker: host=agents.terraform.io:7146
47+
[INFO] grpc_connector: agent grpc server serving...
48+
[INFO] grpc_connector: Keep alive is enabled: host=agents.terraform.io:7146
49+
[DEBUG] rpc_server: Handling broker authorization challenge
50+
[DEBUG] rpc_server: status-event: successful connection
4751
```
4852

4953
These log messages indicate that the agent has successfully connected to HCP Terraform

content/terraform-docs-agents/v1.17.x/docs/cloud-docs/agents/request-forwarding.mdx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,12 @@ flag, or set the environment variable `TFC_AGENT_REQUEST_FORWARDING=true`. When
4040
the agent starts, you will see the following log messages:
4141

4242
```
43-
[INFO] core: Request forwarding is enabled
44-
[INFO] grpc_connector: Connected to broker, awaiting requests
43+
[INFO] core: Broker connection is enabled
44+
[INFO] grpc_connector: Connecting to broker: host=agents.terraform.io:7146
45+
[INFO] grpc_connector: agent grpc server serving...
46+
[INFO] grpc_connector: Keep alive is enabled: host=agents.terraform.io:7146
47+
[DEBUG] rpc_server: Handling broker authorization challenge
48+
[DEBUG] rpc_server: status-event: successful connection
4549
```
4650

4751
These log messages indicate that the agent has successfully connected to HCP Terraform

content/terraform-docs-agents/v1.18.x/docs/cloud-docs/agents/request-forwarding.mdx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,12 @@ flag, or set the environment variable `TFC_AGENT_REQUEST_FORWARDING=true`. When
4040
the agent starts, you will see the following log messages:
4141

4242
```
43-
[INFO] core: Request forwarding is enabled
44-
[INFO] grpc_connector: Connected to broker, awaiting requests
43+
[INFO] core: Broker connection is enabled
44+
[INFO] grpc_connector: Connecting to broker: host=agents.terraform.io:7146
45+
[INFO] grpc_connector: agent grpc server serving...
46+
[INFO] grpc_connector: Keep alive is enabled: host=agents.terraform.io:7146
47+
[DEBUG] rpc_server: Handling broker authorization challenge
48+
[DEBUG] rpc_server: status-event: successful connection
4549
```
4650

4751
These log messages indicate that the agent has successfully connected to HCP Terraform

content/terraform-docs-agents/v1.19.x/docs/cloud-docs/agents/request-forwarding.mdx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,12 @@ flag, or set the environment variable `TFC_AGENT_REQUEST_FORWARDING=true`. When
4040
the agent starts, you will see the following log messages:
4141

4242
```
43-
[INFO] core: Request forwarding is enabled
44-
[INFO] grpc_connector: Connected to broker, awaiting requests
43+
[INFO] core: Broker connection is enabled
44+
[INFO] grpc_connector: Connecting to broker: host=agents.terraform.io:7146
45+
[INFO] grpc_connector: agent grpc server serving...
46+
[INFO] grpc_connector: Keep alive is enabled: host=agents.terraform.io:7146
47+
[DEBUG] rpc_server: Handling broker authorization challenge
48+
[DEBUG] rpc_server: status-event: successful connection
4549
```
4650

4751
These log messages indicate that the agent has successfully connected to HCP Terraform

content/terraform-docs-agents/v1.20.x/docs/cloud-docs/agents/request-forwarding.mdx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,12 @@ flag, or set the environment variable `TFC_AGENT_REQUEST_FORWARDING=true`. When
4040
the agent starts, you will see the following log messages:
4141

4242
```
43-
[INFO] core: Request forwarding is enabled
44-
[INFO] grpc_connector: Connected to broker, awaiting requests
43+
[INFO] core: Broker connection is enabled
44+
[INFO] grpc_connector: Connecting to broker: host=agents.terraform.io:7146
45+
[INFO] grpc_connector: agent grpc server serving...
46+
[INFO] grpc_connector: Keep alive is enabled: host=agents.terraform.io:7146
47+
[DEBUG] rpc_server: Handling broker authorization challenge
48+
[DEBUG] rpc_server: status-event: successful connection
4549
```
4650

4751
These log messages indicate that the agent has successfully connected to HCP Terraform

content/terraform-docs-agents/v1.21.x/docs/cloud-docs/agents/request-forwarding.mdx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,12 @@ flag, or set the environment variable `TFC_AGENT_REQUEST_FORWARDING=true`. When
4040
the agent starts, you will see the following log messages:
4141

4242
```
43-
[INFO] core: Request forwarding is enabled
44-
[INFO] grpc_connector: Connected to broker, awaiting requests
43+
[INFO] core: Broker connection is enabled
44+
[INFO] grpc_connector: Connecting to broker: host=agents.terraform.io:7146
45+
[INFO] grpc_connector: agent grpc server serving...
46+
[INFO] grpc_connector: Keep alive is enabled: host=agents.terraform.io:7146
47+
[DEBUG] rpc_server: Handling broker authorization challenge
48+
[DEBUG] rpc_server: status-event: successful connection
4549
```
4650

4751
These log messages indicate that the agent has successfully connected to HCP Terraform

content/terraform-docs-agents/v1.22.x/docs/cloud-docs/agents/request-forwarding.mdx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,12 @@ flag, or set the environment variable `TFC_AGENT_REQUEST_FORWARDING=true`. When
4040
the agent starts, you will see the following log messages:
4141

4242
```
43-
[INFO] core: Request forwarding is enabled
44-
[INFO] grpc_connector: Connected to broker, awaiting requests
43+
[INFO] core: Broker connection is enabled
44+
[INFO] grpc_connector: Connecting to broker: host=agents.terraform.io:7146
45+
[INFO] grpc_connector: agent grpc server serving...
46+
[INFO] grpc_connector: Keep alive is enabled: host=agents.terraform.io:7146
47+
[DEBUG] rpc_server: Handling broker authorization challenge
48+
[DEBUG] rpc_server: status-event: successful connection
4549
```
4650

4751
These log messages indicate that the agent has successfully connected to HCP Terraform

content/terraform-docs-agents/v1.23.x/docs/cloud-docs/agents/request-forwarding.mdx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,12 @@ flag, or set the environment variable `TFC_AGENT_REQUEST_FORWARDING=true`. When
4242
the agent starts, you will see the following log messages:
4343

4444
```
45-
[INFO] core: Request forwarding is enabled
46-
[INFO] grpc_connector: Connected to broker, awaiting requests
45+
[INFO] core: Broker connection is enabled
46+
[INFO] grpc_connector: Connecting to broker: host=agents.terraform.io:7146
47+
[INFO] grpc_connector: agent grpc server serving...
48+
[INFO] grpc_connector: Keep alive is enabled: host=agents.terraform.io:7146
49+
[DEBUG] rpc_server: Handling broker authorization challenge
50+
[DEBUG] rpc_server: status-event: successful connection
4751
```
4852

4953
These log messages indicate that the agent has successfully connected to HCP Terraform

0 commit comments

Comments
 (0)