Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-8768

mod_cluster excluded-contexts doesn't exclude slash prefixed /contexts; should perform normalization

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 11.0.0.Beta1
    • 11.0.0.Alpha1
    • mod_cluster
    • None

      Test instructions:

      [rhusar@syrah wildfly-11.0.0.Beta1-SNAPSHOT]$ ./bin/jboss-cli.sh -c
      [standalone@localhost:9990 /] /subsystem=modcluster/mod-cluster-config=configuration:write-attribute(name=excluded-contexts,value="default-host:/clusterbench"
      {"outcome" => "success"}
      [standalone@localhost:9990 /] :reload
      {
          "outcome" => "success",
          "result" => undefined
      }
      [standalone@localhost:9990 /] /subsystem=modcluster/:read-proxies-info
      {
          "outcome" => "success",
          "result" => [
              "localhost:9090",
              "Node: [1],Name: node1,Balancer: mycluster,LBGroup: ,Host: 127.0.0.1,Port: 8009,Type: ajp,Flushpackets: Off,Flushwait: 10,Ping: 10,Smax: 26,Ttl: 60,Elected: 0,Read: 0,Transfered: 0,Connected: 0,Load: 73
      Vhost: [1:1:1], Alias: localhost
      Vhost: [1:1:2], Alias: default-host
      Context: [1:1:1], Context: /wildfly-services, Status: ENABLED
      Context: [1:1:2], Context: /clusterbench-passivating, Status: ENABLED
      Context: [1:1:3], Context: /tmp, Status: ENABLED
      Context: [1:1:4], Context: /, Status: ENABLED
      Context: [1:1:5], Context: /clusterbench, Status: ENABLED
      "
          ]
      }
      [standalone@localhost:9990 /] /subsystem=modcluster/mod-cluster-config=configuration:write-attribute(name=excluded-contexts,value="default-host:clusterbench"
      {
          "outcome" => "success",
          "response-headers" => {
              "operation-requires-reload" => true,
              "process-state" => "reload-required"
          }
      }
      [standalone@localhost:9990 /] :reload
      {
          "outcome" => "success",
          "result" => undefined
      }
      [standalone@localhost:9990 /] /subsystem=modcluster/:read-proxies-info
      {
          "outcome" => "success",
          "result" => [
              "localhost:9090",
              "Node: [1],Name: node1,Balancer: mycluster,LBGroup: ,Host: 127.0.0.1,Port: 8009,Type: ajp,Flushpackets: Off,Flushwait: 10,Ping: 10,Smax: 26,Ttl: 60,Elected: 0,Read: 0,Transfered: 0,Connected: 0,Load: 69
      Vhost: [1:1:1], Alias: localhost
      Vhost: [1:1:2], Alias: default-host
      Context: [1:1:2], Context: /tmp, Status: ENABLED
      Context: [1:1:3], Context: /clusterbench-passivating, Status: ENABLED
      Context: [1:1:4], Context: /wildfly-services, Status: ENABLED
      Context: [1:1:5], Context: /, Status: ENABLED
      "
          ]
      }
      

            [WFLY-8768] mod_cluster excluded-contexts doesn't exclude slash prefixed /contexts; should perform normalization

            Amol Dongare made changes -
            Workflow Original: GIT Pull Request workflow [ 12829099 ] New: GIT Pull Request workflow v1.0 [ 14251345 ]

            Kabir Khan added a comment -

            Bulk closing issues

            Kabir Khan added a comment - Bulk closing issues
            Kabir Khan made changes -
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            Kabir Khan made changes -
            Fix Version/s New: 11.0.0.Beta1 [ 12328763 ]
            Resolution New: Done [ 1 ]
            Status Original: Pull Request Sent [ 10011 ] New: Resolved [ 5 ]
            Radoslav Husar made changes -
            Priority Original: Minor [ 4 ] New: Major [ 3 ]
            Radoslav Husar made changes -
            Git Pull Request New: https://github.com/wildfly/wildfly/pull/10178
            Status Original: Pull Request Sent [ 10011 ] New: Pull Request Sent [ 10011 ]
            Automated transition triggered when Radoslav Husar created pull request #1987 in GitHub -
            Status Original: Open [ 1 ] New: Pull Request Sent [ 10011 ]
            Radoslav Husar made changes -
            Link New: This issue cloned to WFLY-8805 [ WFLY-8805 ]
            Radoslav Husar made changes -
            Priority Original: Major [ 3 ] New: Minor [ 4 ]
            Radoslav Husar made changes -
            Link New: This issue cloned to WFLY-8804 [ WFLY-8804 ]
            Radoslav Husar made changes -
            Description Original: Steps:

            {noformat}
            [rhusar@syrah wildfly-11.0.0.Beta1-SNAPSHOT]$ ./bin/jboss-cli.sh -c
            [standalone@localhost:9990 /] /subsystem=modcluster/mod-cluster-config=configuration:write-attribute(name=excluded-contexts,value="default-host:/clusterbench"
            {"outcome" => "success"}
            [standalone@localhost:9990 /] :reload
            {
                "outcome" => "success",
                "result" => undefined
            }
            [standalone@localhost:9990 /] /subsystem=modcluster/:read-proxies-info
            {
                "outcome" => "success",
                "result" => [
                    "localhost:9090",
                    "Node: [1],Name: node1,Balancer: mycluster,LBGroup: ,Host: 127.0.0.1,Port: 8009,Type: ajp,Flushpackets: Off,Flushwait: 10,Ping: 10,Smax: 26,Ttl: 60,Elected: 0,Read: 0,Transfered: 0,Connected: 0,Load: 73
            Vhost: [1:1:1], Alias: localhost
            Vhost: [1:1:2], Alias: default-host
            Context: [1:1:1], Context: /wildfly-services, Status: ENABLED
            Context: [1:1:2], Context: /clusterbench-passivating, Status: ENABLED
            Context: [1:1:3], Context: /tmp, Status: ENABLED
            Context: [1:1:4], Context: /, Status: ENABLED
            Context: [1:1:5], Context: /clusterbench, Status: ENABLED
            "
                ]
            }
            [standalone@localhost:9990 /] /subsystem=modcluster/mod-cluster-config=configuration:write-attribute(name=excluded-contexts,value="default-host:clusterbench"
            {
                "outcome" => "success",
                "response-headers" => {
                    "operation-requires-reload" => true,
                    "process-state" => "reload-required"
                }
            }
            [standalone@localhost:9990 /] :reload
            {
                "outcome" => "success",
                "result" => undefined
            }
            [standalone@localhost:9990 /] /subsystem=modcluster/:read-proxies-info
            {
                "outcome" => "success",
                "result" => [
                    "localhost:9090",
                    "Node: [1],Name: node1,Balancer: mycluster,LBGroup: ,Host: 127.0.0.1,Port: 8009,Type: ajp,Flushpackets: Off,Flushwait: 10,Ping: 10,Smax: 26,Ttl: 60,Elected: 0,Read: 0,Transfered: 0,Connected: 0,Load: 69
            Vhost: [1:1:1], Alias: localhost
            Vhost: [1:1:2], Alias: default-host
            Context: [1:1:2], Context: /tmp, Status: ENABLED
            Context: [1:1:3], Context: /clusterbench-passivating, Status: ENABLED
            Context: [1:1:4], Context: /wildfly-services, Status: ENABLED
            Context: [1:1:5], Context: /, Status: ENABLED
            "
                ]
            }
            {noformat}
            New: Test instructions:

            {noformat}
            [rhusar@syrah wildfly-11.0.0.Beta1-SNAPSHOT]$ ./bin/jboss-cli.sh -c
            [standalone@localhost:9990 /] /subsystem=modcluster/mod-cluster-config=configuration:write-attribute(name=excluded-contexts,value="default-host:/clusterbench"
            {"outcome" => "success"}
            [standalone@localhost:9990 /] :reload
            {
                "outcome" => "success",
                "result" => undefined
            }
            [standalone@localhost:9990 /] /subsystem=modcluster/:read-proxies-info
            {
                "outcome" => "success",
                "result" => [
                    "localhost:9090",
                    "Node: [1],Name: node1,Balancer: mycluster,LBGroup: ,Host: 127.0.0.1,Port: 8009,Type: ajp,Flushpackets: Off,Flushwait: 10,Ping: 10,Smax: 26,Ttl: 60,Elected: 0,Read: 0,Transfered: 0,Connected: 0,Load: 73
            Vhost: [1:1:1], Alias: localhost
            Vhost: [1:1:2], Alias: default-host
            Context: [1:1:1], Context: /wildfly-services, Status: ENABLED
            Context: [1:1:2], Context: /clusterbench-passivating, Status: ENABLED
            Context: [1:1:3], Context: /tmp, Status: ENABLED
            Context: [1:1:4], Context: /, Status: ENABLED
            Context: [1:1:5], Context: /clusterbench, Status: ENABLED
            "
                ]
            }
            [standalone@localhost:9990 /] /subsystem=modcluster/mod-cluster-config=configuration:write-attribute(name=excluded-contexts,value="default-host:clusterbench"
            {
                "outcome" => "success",
                "response-headers" => {
                    "operation-requires-reload" => true,
                    "process-state" => "reload-required"
                }
            }
            [standalone@localhost:9990 /] :reload
            {
                "outcome" => "success",
                "result" => undefined
            }
            [standalone@localhost:9990 /] /subsystem=modcluster/:read-proxies-info
            {
                "outcome" => "success",
                "result" => [
                    "localhost:9090",
                    "Node: [1],Name: node1,Balancer: mycluster,LBGroup: ,Host: 127.0.0.1,Port: 8009,Type: ajp,Flushpackets: Off,Flushwait: 10,Ping: 10,Smax: 26,Ttl: 60,Elected: 0,Read: 0,Transfered: 0,Connected: 0,Load: 69
            Vhost: [1:1:1], Alias: localhost
            Vhost: [1:1:2], Alias: default-host
            Context: [1:1:2], Context: /tmp, Status: ENABLED
            Context: [1:1:3], Context: /clusterbench-passivating, Status: ENABLED
            Context: [1:1:4], Context: /wildfly-services, Status: ENABLED
            Context: [1:1:5], Context: /, Status: ENABLED
            "
                ]
            }
            {noformat}
            Radoslav Husar made changes -
            Description New: Steps:

            {noformat}
            [rhusar@syrah wildfly-11.0.0.Beta1-SNAPSHOT]$ ./bin/jboss-cli.sh -c
            [standalone@localhost:9990 /] /subsystem=modcluster/mod-cluster-config=configuration:write-attribute(name=excluded-contexts,value="default-host:/clusterbench"
            {"outcome" => "success"}
            [standalone@localhost:9990 /] :reload
            {
                "outcome" => "success",
                "result" => undefined
            }
            [standalone@localhost:9990 /] /subsystem=modcluster/:read-proxies-info
            {
                "outcome" => "success",
                "result" => [
                    "localhost:9090",
                    "Node: [1],Name: node1,Balancer: mycluster,LBGroup: ,Host: 127.0.0.1,Port: 8009,Type: ajp,Flushpackets: Off,Flushwait: 10,Ping: 10,Smax: 26,Ttl: 60,Elected: 0,Read: 0,Transfered: 0,Connected: 0,Load: 73
            Vhost: [1:1:1], Alias: localhost
            Vhost: [1:1:2], Alias: default-host
            Context: [1:1:1], Context: /wildfly-services, Status: ENABLED
            Context: [1:1:2], Context: /clusterbench-passivating, Status: ENABLED
            Context: [1:1:3], Context: /tmp, Status: ENABLED
            Context: [1:1:4], Context: /, Status: ENABLED
            Context: [1:1:5], Context: /clusterbench, Status: ENABLED
            "
                ]
            }
            [standalone@localhost:9990 /] /subsystem=modcluster/mod-cluster-config=configuration:write-attribute(name=excluded-contexts,value="default-host:clusterbench"
            {
                "outcome" => "success",
                "response-headers" => {
                    "operation-requires-reload" => true,
                    "process-state" => "reload-required"
                }
            }
            [standalone@localhost:9990 /] :reload
            {
                "outcome" => "success",
                "result" => undefined
            }
            [standalone@localhost:9990 /] /subsystem=modcluster/:read-proxies-info
            {
                "outcome" => "success",
                "result" => [
                    "localhost:9090",
                    "Node: [1],Name: node1,Balancer: mycluster,LBGroup: ,Host: 127.0.0.1,Port: 8009,Type: ajp,Flushpackets: Off,Flushwait: 10,Ping: 10,Smax: 26,Ttl: 60,Elected: 0,Read: 0,Transfered: 0,Connected: 0,Load: 69
            Vhost: [1:1:1], Alias: localhost
            Vhost: [1:1:2], Alias: default-host
            Context: [1:1:2], Context: /tmp, Status: ENABLED
            Context: [1:1:3], Context: /clusterbench-passivating, Status: ENABLED
            Context: [1:1:4], Context: /wildfly-services, Status: ENABLED
            Context: [1:1:5], Context: /, Status: ENABLED
            "
                ]
            }
            {noformat}
            Radoslav Husar created issue -

              rhn-engineering-rhusar Radoslav Husar
              rhn-engineering-rhusar Radoslav Husar
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: