Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-2823 SCM HA Support
  3. HDDS-4806

Fix misc acceptance test: List pipelines on unknown host

    XMLWordPrintableJSON

    Details

      Description

      For now, SCMContainerLocationFailoverProxyProvider first use ozone.scm.names to create rpcProxy, if ozone.scm.names is not set, it falls back to use 

      ozone.scm.client.address. However, it breaks the master's behavior, which directly use ozone.scm.client.address to build the rpcProxy.

       

      In ozone admin --verbose pipeline list --scm unknown-host, unknown-host will be set to ozone.scm.client.address, the created rpcProxy will trigger "java.net.UnknownHostException: Invalid host name: "

       

      This Jira https://issues.apache.org/jira/browse/HDDS-4556 and PR https://github.com/apache/ozone/pull/1671  adds a smoketest for ozonescripts environment, helps to find this bug.

      ------------------------------------------------------------------------------ 
       List pipelines on unknown host | FAIL | 
       1'Pipeline[ Id: abdee66c-4fce-4099-a7b6-ab0dab03f52f, Nodes: 8df277fe-9d11-4dce-8c64-898e2ad83901{ip: 172.26.0.2, host: ozonescripts_datanode_1.ozonescripts_default, ports: [REPLICATION=9886, RATIS=9858, STANDALONE=9859], networkLocation: /default-rack, certSerialId: null, persistedOpState: IN_SERVICE, persistedOpStateExpiryEpochSec: 0}, Type:RATIS, Factor:ONE, State:OPEN, leaderId:8df277fe-9d11-4dce-8c64-898e2ad83901, CreationTimestamp2021-02-08T04:05:29.452Z] 
       Pipeline[ Id: d1ad94f4-bbe2-4676-8e4d-2f7261754b31, Nodes: 8df277fe-9d11-4dce-8c64-898e2ad83901{ip: 172.26.0.2, host: ozonescripts_datanode_1.ozonescripts_default, ports: [REPLICATION=9886, RATIS=9858, STANDALONE=9859], networkLocation: /default-rack, certSerialId: null, persistedOpState: IN_SERVICE, persistedOpStateExpiryEpochSec: 0}, Type:STAND_ALONE, Factor:ONE, State:CLOSED, leaderId:, CreationTimestamp2021-02-08T04:05:53.496Z]' does not contain 'Invalid host name' 
       ------------------------------------------------------------------------------ 
       Pipeline :: Test ozone admin pipeline command | FAIL |

       

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                glengeng Glen Geng
                Reporter:
                glengeng Glen Geng
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: