Announcement

Collapse
No announcement yet.

Can't get PTS to work through a proxy correctly

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Can't get PTS to work through a proxy correctly

    I have a Phoromatic setup consisting of four identical systems, one is acting as a controller/phoromatic server, and the other three are clients. I can configure the proxy settings on the server and everything works correctly. If I set the proxy configuration on the clients, the clients cannot communicate with the server, as they attempt to do so through the proxy. If I don't set the proxy configuration (This is the proxy config from within PTS), the clients will connect to the server just fine, however they cannot download any of the tests. Is there a proxy setting in one of the backend programs (PHP, etc..) that can be set so that it will use the proxy when attempting downloading of tests and such, but not when communicating with the Phoromatic server? Short of setting up a Squid proxy on the server and using iptables rules to redirect port 8000 traffic to PTS and everything else to the Squid port... I have tried using the cache configuration on the Phoromatic server and adding the required tests to the cache, however I seem to be getting checksum errors when the client tries to download from the cache. I tried setting the "http_proxy" environment variable on one of the clients, it seems to be able to download some of the test files and others it fails on.

  • #2
    Hmmm, so long story short, you're looking at the ability for PTS clients to be using a proxy via the current setup, but when communicating with the Phoromatic server to ignore the proxy? If it's just looking at disabling PTS proxy usage when communicating to Phoromatic Server, please confirm, and should be able to make that an easy option.
    Michael Larabel
    https://www.michaellarabel.com/

    Comment


    • #3
      Right, I want the clients to not use the proxy when communicating with the server, but they need it anytime they are communicating with the outside world.

      Comment


      • #4
        Originally posted by bigbadsubaru View Post
        Right, I want the clients to not use the proxy when communicating with the server, but they need it anytime they are communicating with the outside world.
        I assume your local IP address is in the same block as the Phoromatic server address you're connecting to? (Just brainstorming the best way to handle this, in which case could make it automatic rather than doing a manual switch).
        Michael Larabel
        https://www.michaellarabel.com/

        Comment


        • #5
          Originally posted by Michael View Post

          I assume your local IP address is in the same block as the Phoromatic server address you're connecting to? (Just brainstorming the best way to handle this, in which case could make it automatic rather than doing a manual switch).
          Right, the server is at 192.0.0.100 and the clients are all .104 .108 and .112 (on the 10 gigabit interfaces at least, the gigabit interfaces all have 172 addresses but they're all on the same subnet.)

          10 gigabit interfaces aren't connected to the outside world, just to a switch (Ultimately I'd like to build a test suite that uses Netperf and/or iperf to test traffic speed between the systems, but gotta get the basic stuff working first!), gigabit interfaces are connected to the outside world but are behind a firewall.

          Comment


          • #6
            Originally posted by bigbadsubaru View Post
            Right, the server is at 192.0.0.100 and the clients are all .104 .108 and .112 (on the 10 gigabit interfaces at least, the gigabit interfaces all have 172 addresses but they're all on the same subnet.)

            10 gigabit interfaces aren't connected to the outside world, just to a switch (Ultimately I'd like to build a test suite that uses Netperf and/or iperf to test traffic speed between the systems, but gotta get the basic stuff working first!), gigabit interfaces are connected to the outside world but are behind a firewall.
            Can you try using Phoronix Test Suite Git on the clients? Or at least applying this patch: https://github.com/phoronix-test-sui...e9867f685a4a5b

            This would unconditionally not use the proxy for Phoromatic client to server communication.

            Michael Larabel
            https://www.michaellarabel.com/

            Comment


            • #7
              Works like a champ now! A few of the tests give an error but I think it's dependency issues for stuff that doesn't get automatically installed, not a connectivity issue anymore. :-)

              Comment


              • #8
                Originally posted by bigbadsubaru View Post
                Works like a champ now! A few of the tests give an error but I think it's dependency issues for stuff that doesn't get automatically installed, not a connectivity issue anymore. :-)
                Great!
                Michael Larabel
                https://www.michaellarabel.com/

                Comment

                Working...
                X