Project

General

Profile

Actions

Bug #32421

closed

hammer export fails with super large chunk size (change chunk-size-mb to gb)

Added by Partha Aji over 3 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Inter Server Sync
Target version:

Description

```
  1. hammer content-export complete library --organization-title "export-153" --chunk-size-mb 100000000000000
    [................................................................................] [100%]
    Error: [Errno 32] Broken pipe
    undefined method `first' for nil:NilClass
    ```
    Fails while
```
  1. hammer content-export complete library --organization-title "export-153" --chunk-size-mb 1000000000000
    [................................................................................] [100%]
    ```
    works.

The issue here is that the user may accidentally assume `--chunk-size-mb` and feed unusually large numbers.
We need katello to handle this invalid size error better and fail gracefully.

Actions

Also available in: Atom PDF