Uploaded image for project: 'StoRM'
  1. StoRM
  2. STOR-1500

When redis is disabled the health indicator for redis should be disabled

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 1.11.22
    • 1.11.21
    • webdav
    • Security Level: Public (Visbile by non-authn users.)
    • None

      The health endpoint returns down when service is up. Adding more details to the response, by adding in the application.yml:

      management.endpoint.health.show-details=always

      it returns "Unable to connect to Redis":

      [root@omii005-vm03 ~]# curl https://omii005-vm03.cnaf.infn.it:8443/actuator/health | jq '.'
        % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                       Dload  Upload   Total   Spent    Left  Speed
      100   392    0   392    0     0   2863      0 --:--:-- --:--:-- --:--:--  2882
      {
        "status": "DOWN",
        "components": {
          "diskSpace": {
            "status": "UP",
            "details": {
              "total": 14141865984,
              "free": 4123598848,
              "threshold": 10485760
            }
          },
          "ping": {
            "status": "UP"
          },
          "redis": {
            "status": "DOWN",
            "details": {
              "error": "org.springframework.data.redis.RedisConnectionFailureException: Unable to connect to Redis; nested exception is io.lettuce.core.RedisConnectionException: Unable to connect to localhost:6379"
            }
          }
        }
      }
      

      But redis is not configured in that endpoint. This looks like a bug in the current storm-webdav, meaning that when redis is disabled the health indicator for redis should be disabled as well.

            Unassigned Unassigned
            vianello Enrico Vianello
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: