Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-2352

Client gets internal error instead of volume not found in secure cluster

    XMLWordPrintableJSON

Details

    Description

      New Freon generators create volume and bucket if necessary. This does not work in secure cluster for volume, but works for bucket:

      $ cd hadoop-ozone/dist/target/ozone-0.5.0-SNAPSHOT/compose/ozonesecure
      $ docker-compose exec scm bash
      $ kinit -kt /etc/security/keytabs/testuser.keytab testuser/scm@EXAMPLE.COM
      $ ozone freon ockg -n 1
      ...
      Check access operation failed for volume:vol1
      ...
      Successful executions: 0
      $ ozone sh volume create vol1
      $ ozone freon ockg -n 1
      ...
      2019-10-23 18:30:27,279 [main] INFO       - Creating Bucket: vol1/bucket1, with Versioning false and Storage Type set to DISK and Encryption set to false
      ...
      Successful executions: 1
      

      The problem is that VOLUME_NOT_FOUND result is lost during ACL check, and client gets INTERNAL_ERROR instead.

      Attachments

        Issue Links

          Activity

            People

              adoroszlai Attila Doroszlai
              adoroszlai Attila Doroszlai
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m