Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consul connect service mesh not working with consul 1.14.0 #15295

Closed
suikast42 opened this issue Nov 17, 2022 · 3 comments
Closed

Consul connect service mesh not working with consul 1.14.0 #15295

suikast42 opened this issue Nov 17, 2022 · 3 comments
Labels

Comments

@suikast42
Copy link
Contributor

suikast42 commented Nov 17, 2022

Nomad version

v 1.4.2

Consul version

v 1.14.0

Issue

The simple counter dash app form the connect examples does not work anymore if I updgrade consul to the latest verson 1.14.0

After the update to consul 1.14.0 I can see in the log of the connect-proxy-count-dashboard that something goes wrong with the tls connection.

[2022-11-17 21:09:00.873][1][warning][config] [./source/common/config/grpc_stream.h:201] DeltaAggregatedResources gRPC config stream to local_agent closed since 202s ago: 14, upstream connect error or disconnect/reset before headers. reset reason: connection failure, transport failure reason: TLS error: 268435703:SSL routines:OPENSSL_internal:WRONG_VERSION_NUMBER

The used job file

job "countdash_app_mesh" {
  datacenters = ["nomadder1"]
  group "api" {
    network {
      mode = "bridge"
    }

    service {
      name = "count-api"
      port = "9001"
      connect {
        sidecar_service {}
      }
    }

    task "count-api" {
      driver = "docker"

      config {
        image = "hashicorpnomad/counter-api:v3"
        ports = ["http"]
      }

      resources {
        cpu    = 100
        memory = 128
      }
    }
  }

  group "dashboard" {
    network {
      mode = "bridge"

      port "http" {
        to = 9002
      }
    }

    service {
      name = "count-dashboard"
      port = "9002"
            tags = [
              "traefik.enable=true",
              "traefik.consulcatalog.connect=true",
              "traefik.http.routers.count-dashboard.tls=true",
              "traefik.http.routers.count-dashboard.rule=Host(`count.cloud.private`)"
            ]

      connect {
        sidecar_service {
          proxy {
            upstreams {
              destination_name = "count-api"
              local_bind_port  = 8080
            }
          }
        }
      }
    }

    task "dashboard" {
      driver = "docker"

      env {
        CONSUL_TLS_SERVER_NAME = "localhost"
        COUNTING_SERVICE_URL   = "http://${NOMAD_UPSTREAM_ADDR_count_api}"
      }

      config {
        image = "hashicorpnomad/counter-dashboard:v3"
      }

      resources {
        cpu    = 100
        memory = 128
      }
    }
  }
}
@jrasell
Copy link
Member

jrasell commented Nov 18, 2022

Hi @suikast42; you also raised #15266 which described problems with running Nomad Consul Connect integration with Consul 1.14.0, albeit you are seeing different errors. Could you explain a little more about your configuration and how it has changed in order to generate a different error in that other issue? I will close this issue out in order to keep all information in a single place. Thanks.

@jrasell jrasell closed this as completed Nov 18, 2022
@suikast42 suikast42 changed the title Consul connect service mesh not working with consul 1.4.0 Consul connect service mesh not working with consul 1.14.0 Feb 14, 2023
@suikast42
Copy link
Contributor Author

Hi @suikast42; you also raised #15266 which described problems with running Nomad Consul Connect integration with Consul 1.14.0, albeit you are seeing different errors. Could you explain a little more about your configuration and how it has changed in order to generate a different error in that other issue? I will close this issue out in order to keep all information in a single place. Thanks.

This is still not working. I tested it with the latest beta relase. See #16186

Copy link

I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 14, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants