Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-49455

Simple-test jenkins job broken

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Test Blocker
    • 7.1.0
    • 7.1.0
    • qe, test-execution
    • None
    • Untriaged
    • 1
    • Unknown

    Description

      Our simple-test jenkins job is broken by this change:

       
      commit a0c7a7838cde886cde4baccc60c0cbac7a8edece
      Author: Girish Benakappa <girish.benakappa@couchbase.com>
      Date:   Mon Nov 8 11:49:08 2021 -0800
       
          use https for node add always - MB-40469
       
          Change-Id: I2f92771bc4f2b8e3f0bbdcaf0c22f35b3892217e
          Reviewed-on: http://review.couchbase.org/c/testrunner/+/165278
          Reviewed-by: Mihir Kamdar <mihir.kamdar@couchbase.com>
          Tested-by: Girish Benakappa <girish.benakappa@couchbase.com>
       
       
      diff --git a/lib/membase/api/rest_client.py b/lib/membase/api/rest_client.py
      index df9413c71..02403a314 100644
      --- a/lib/membase/api/rest_client.py
      +++ b/lib/membase/api/rest_client.py
      @@ -1540,10 +1540,9 @@ class RestConnection(object):
           # returns otpNode
           def add_node(self, user='', password='', remoteIp='', port='8091', zone_name='', services=None):
               otpNode = None
      -        protocol = "http"
      -        if CbServer.use_https or CbServer.n2n_encryption:
      -            port = CbServer.ssl_port
      -            protocol = "https"
      +
      +        port = CbServer.ssl_port
      +        protocol = "https"
      

      The problem is caused by usage of wrong https port. The port is not always 18091. In case of cluster run it could be 1900

      {N}

      .

      Error:

      14:16:20 b'[2021-11-09 22:16:20,778] - [rest_client:1067] ERROR - POST http://127.0.0.1:9000/controller/addNode body: hostname=https%3A%2F%2F127.0.0.1%3A18091&user=Administrator&password=asdasd headers: {\'Content-Type\': \'application/x-www-form-urlencoded\', \'Authorization\': \'Basic QWRtaW5pc3RyYXRvcjphc2Rhc2Q=\', \'Accept\': \'*/*\'} error: 400 reason: unknown b\'["Failed to connect to https://127.0.0.1:18091. Could not connect to \\\\"127.0.0.1\\\\" on port 18091.  This could be due to an incorrect host/port combination or a firewall in place between the servers."]\' auth: Administrator:asdasd'
      

      Jenkins job: http://cv.jenkins.couchbase.com/job/ns-server-simple-test/3064/

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            girish.benakappa Girish Benakappa
            timofey.barmin Timofey Barmin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty