Gargi-jais11 opened a new pull request, #7832: URL: https://github.com/apache/ozone/pull/7832
## What changes were proposed in this pull request? Currently, when running the ozone admin namespace summary command for an OBS bucket, a warning message incorrectly states that the Namespace CLI is not designed for OBS bucket layout, even though Recon does support OBS buckets. Steps to Reproduce: ``` sh-4.2$ ozone sh bucket create --layout OBJECT_STORE /volume1/obs-bucket sh-4.2$ ozone admin namespace summary /volume1/obs-bucket ``` Output we need to fix: ``` Connecting to Recon: http://recon:9888/api/v1/namespace/summary?path=/volume1/obs-bucket ...[Warning] Namespace CLI is not designed for OBS bucket layout. Bucket being accessed must be of type FILE_SYSTEM_OPTIMIZED bucket layout or LEGACY bucket layout with 'ozone.om.enable.filesystem.paths' set to true.Entity Type : "BUCKET" ``` This warning was misleading because Recon correctly processes OBS buckets in the namespace summary. The same warning message is displayed for the follwing files: - FileSizeDistSubCommand - QuotaUsageSubCommand - SummarySubCommand Proposed Fix: 1. Remove or modify the warning message so that it does not appear for OBS buckets. 2. Ensure that the Namespace CLI properly detects and supports OBS bucket layouts. 3. Validate that all affected commands (FileSizeDistSubCommand, QuotaUsageSubCommand, SummarySubCommand) do not display this incorrect warning. Files Fixed: - `FileSizeDistSubCommand.java` - `QuotaUsageSubCommand.java` - `SummarySubCommand.java` - `NSSummaryCLIUtils.java` - `TestNSSummaryAdmin.java` ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-12229 ## How was this patch tested? Below is the workflow link which passed successfully: https://github.com/Gargi-jais11/ozone/actions/runs/13194677618 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
