XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login
    1. Home
    2. Bryanvh
    B
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 7
    • Groups 0

    Bryanvh

    @Bryanvh

    1
    Reputation
    2
    Profile views
    7
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    Bryanvh Unfollow Follow

    Best posts made by Bryanvh

    • RE: Adding new host to pool fails - Stunnel SSL certiticate verification failure

      @LucienLassalle

      Thanks for the quick response and the effort in recreating the issue!

      It all played out exactly as you laid it out, even the cert showing up as a .new.pem at first.

      Out of curiosity, what in your testing did result in causing this issue? Is it possible that my upgrade from 8.2 to 8.3 may have caused the underlying issue?

      posted in XCP-ng
      B
      Bryanvh

    Latest posts made by Bryanvh

    • RE: Adding new host to pool fails - Stunnel SSL certiticate verification failure

      @LucienLassalle

      Interesting. I'm not sure I was all the way up to date when I upgraded to 8.3 and it's possible I was a month or two behind. I only upgraded because I ran across a need for the virtualized TPM support (which is cool to see implemented!).

      Thanks again for all the effort in looking at this!

      posted in XCP-ng
      B
      Bryanvh
    • RE: Adding new host to pool fails - Stunnel SSL certiticate verification failure

      @LucienLassalle

      Thanks for the quick response and the effort in recreating the issue!

      It all played out exactly as you laid it out, even the cert showing up as a .new.pem at first.

      Out of curiosity, what in your testing did result in causing this issue? Is it possible that my upgrade from 8.2 to 8.3 may have caused the underlying issue?

      posted in XCP-ng
      B
      Bryanvh
    • RE: Adding new host to pool fails - Stunnel SSL certiticate verification failure

      @LucienLassalle
      I'm not sure if this points toward an issue but, when running the openssl command to check the pool cert using the UUID checked first here, I get this error
      b65969a9-ec32-4b94-9aef-6ed1fe1e202a-image.jpeg

      I get the same error when trying to check for the pool cert on the host that is trying to join the pool. Even if the pool cert was copied to the joining host, if this points to an issue with that cert, then I suppose that might be the cause of the error?

      For the additional questions:
      Yes, they are time synchronized and are all using pool.ntp.org
      Yes, they are all up to date. 3 of the hosts (the existing pool) were previously on 8.2 but were updated to 8.3 and the new host I am trying to join was set up fresh on 8.3.
      Yes, the stunnel service reports that it is running correctly.

      And, as expected based on the previous error, verifying the cert fails with the same error as shown when trying to check the pool's cert fingerprint.

      Here's what I see in the logs after trying to join the host to the pool:
      Pool Master
      26265d3f-bb1b-44cb-b8b4-901a30c0a18e-image.jpeg
      Joining Host
      be868a34-1efb-4809-90bb-c199982231ea-image.jpeg

      posted in XCP-ng
      B
      Bryanvh
    • RE: Adding new host to pool fails - Stunnel SSL certiticate verification failure

      @LucienLassalle

      Here's the output from the pool master.
      The xapi-pool-tls cert at least isn't empty.
      2c80406a-8398-45bc-aa49-ce16acae9912-image.jpeg

      And it still appears to be valid
      0db145ec-4a02-41e2-9b82-aa79524ba966-image.jpeg

      The xapi-ssl cert also looks correct and un-expired
      b2004ec3-cd55-4c4a-a9c8-58cb2f01deb2-image.jpeg
      5e0a2bc4-54b7-42f1-ba54-5007f670550c-image.jpeg

      posted in XCP-ng
      B
      Bryanvh
    • RE: Adding new host to pool fails - Stunnel SSL certiticate verification failure

      @semarie
      Yes. This screenshot is from the pool master. But, both it and the new host had the same output.

      For clarity's sake, I have never applied an SSL cert to these hosts. This seems to be whatever built-in certs the system is using and signing.

      Is there a way to fix these certs? Was the xe host-refresh-server-certificate host=hostname command not the correct command to fix this?

      posted in XCP-ng
      B
      Bryanvh
    • RE: Adding new host to pool fails - Stunnel SSL certiticate verification failure

      @semarie

      Maybe this points at an issue. It looks like the cert file is empty? And this is after I ran that command to refresh the cert. I get this same output for both the pool master and the host I am trying to add.

      84fc3624-7777-4f6a-b81f-c09586a63d05-image.jpeg

      Then the openssl x509 command says it's unable to load the cert or read it. I assume that's because it's empty?

      As for the time and date, yes the pool master and this server are in sync. At first, I had forgotten to set the new host to use the NTP pool during setup and Xen Orchestra helpfully yelled at me about that. Haha

      posted in XCP-ng
      B
      Bryanvh
    • Adding new host to pool fails - Stunnel SSL certiticate verification failure

      Posting this here because in the hopes someone has an answer and that this helps anyone else encountering the issue.

      I have a pool of a few hosts which I recently upgraded to XCP-NG 8.3 from 8.2. And, now, I am attempting to add a new host to this pool to increase my resource capacity. However, after adding the new server in Xen Orchestra, I go to my primary pool to begin the process of adding the new server but that fails with an error "Internal_Error(Stunnel.Stunnel [some text that runs off the screen] routines::certificate verify failed"))"

      The full error is as follows:

      "Stunnel.Stunnel_verify_error("0A000086:SSL routines::certificate verify failed")"

      And the complete readout of the event is as follows:

      {
        "id": "0mpn7bwnk",
        "properties": {
          "method": "pool.mergeInto",
          "params": {
            "sources": [
              "65c279b5-5a9d-db33-92f1-3f057fbafda6"
            ],
            "target": "f735841b-af37-0547-5d1e-8cb11bc51f0d",
            "force": true
          },
          "name": "API call: pool.mergeInto",
          "userId": "905ebdb9-6698-4902-8e60-9a028d1aa441",
          "type": "api.call"
        },
        "start": 1779834203408,
        "status": "failure",
        "updatedAt": 1779834206165,
        "end": 1779834206165,
        "result": {
          "code": "INTERNAL_ERROR",
          "params": [
            "Stunnel.Stunnel_verify_error(\"0A000086:SSL routines::certificate verify failed\")"
          ],
          "call": {
            "duration": 2713,
            "method": "pool.join_force",
            "params": [
              "* session id *",
              "192.168.1.11",
              "root",
              "* obfuscated *"
            ]
          },
          "message": "INTERNAL_ERROR(Stunnel.Stunnel_verify_error(\"0A000086:SSL routines::certificate verify failed\"))",
          "name": "XapiError",
          "stack": "XapiError: INTERNAL_ERROR(Stunnel.Stunnel_verify_error(\"0A000086:SSL routines::certificate verify failed\"))\n    at Function.wrap (file:///usr/local/lib/node_modules/xo-server/node_modules/xen-api/_XapiError.mjs:16:12)\n    at file:///usr/local/lib/node_modules/xo-server/node_modules/xen-api/transports/json-rpc.mjs:38:21\n    at runNextTicks (node:internal/process/task_queues:60:5)\n    at processImmediate (node:internal/timers:454:9)\n    at process.callbackTrampoline (node:internal/async_hooks:130:17)"
        }
      }
      

      Obviously, it's unhappy about the certs. But I can't figure out why. For additional context, I have never messed with the certs on these servers previously. Based on some other forum posts, I went and checked the cert at /etc/stunnel/xapi-stunnel-ca-bundle.pem on the pool master as well as this new host. Seeing that it exists but unsure of whether it was still integral, I even ran xe host-refresh-server-certificate host=hostname on both just in case. Despite that, this error persists. Does anyone have any insight into the error or a possible fix from what they may have encountered themselves previously?

      posted in XCP-ng
      B
      Bryanvh