Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-41506

On Red Hat Satellite 6.18, an error is returned when organization defaults are set and the organization is listed using either the hammer organization list command or an API call.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • 6.18.1
    • API
    • None
    • False
    • Important
    • sat-endeavour
    • None
    • None
    • None
    • None

      Description of problem:

      The hammer defaults add --param-name organization_id --param-value 1 command works successfully on Satellite 6.17, but it fails on Satellite 6.18 when using the organization_id default option with the value 1.

      How reproducible:

       

      Is this issue a regression from an earlier version:

      Yes, the same hammer command executes successfully on Satellite 6.17, but it fails on Satellite 6.18.

      Steps to Reproduce:

      *Reproducer*  

      *On 6.17*  
      ```

      1. hammer organization list
        --|------|------|-----------|------
        ID | TITLE  | NAME   | DESCRIPTION | LABEL 
        --|------|------|-----------|------
        1  | RedHat | RedHat |             | RedHat
        --|------|------|-----------|------
      1. hammer defaults add --param-name organization_id --param-value 1
        Added organization_id default-option with value 1.
      1. hammer organization list
        --|------|------|-----------|------
        ID | TITLE  | NAME   | DESCRIPTION | LABEL 
        --|------|------|-----------|------
        1  | RedHat | RedHat |             | RedHat
        --|------|------|-----------|------
        ```

      *After Upgrade to 6.18*  
      ```
      Upgrade finished.

      1. hammer organization list
        Internal Server Error: the server was unable to finish the request. This may be caused by unavailability of some required service, incorrect API call or a server-side bug. There may be more information in the server's logs.
        ```

      Workaround  
      Renaming the config file or deleting the default parameter resolves the issue and allows the `hammer organization list` command to work again.  

      ```

      1. hammer defaults delete --param-name organization_id
        organization_id was deleted successfully.
      1. hammer organization list
        --|------|------|-----------|------
        ID | TITLE  | NAME   | DESCRIPTION | LABEL 
        --|------|------|-----------|------
        1  | RedHat | RedHat |             | RedHat
        --|------|------|-----------|------
      1. mv ~/.hammer/defaults.yml ~/.hammer/defaults.yml.bkp
        ```

      Actual behavior:
      [Describe the issue in detail, including what is happening and where]

      Expected behavior:
      [Describe what should be happening instead]

      Business Impact / Additional info:

       

              Unassigned Unassigned
              rhn-support-ssavant SAGAR SAVANT
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: