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

[Sat617] Assigning  multiple CVs to a client fails with error 500 when allow_multiple_content_views setting is disabled

XMLWordPrintable

    • Sprint 146
    • Important
    • None

      Description of problem:
      When assigning multiple content views to a client and allow_multiple_content_views setting is disabled fails with an Internal Server Error
       

      How reproducible:
      Satellite 6.17 Snap 1
       

      Is this issue a regression from an earlier version:
      No
       

      Steps to Reproduce:

      1. Make sure allow_multiple_content_views setting is disabled

      hammer settings set --name allow_multiple_content_views --value false
      

      2. Try to assign multiple CVs to a client

      hammer host update --content-view-environments "prd/cv-os-rhel-9-x86_64,app_dev/cv-custom-rhel-9-x86_64" --name r9sat617.example.com
      

      Actual behavior:
      The command fails with:

      hammer host update --content-view-environments "prd/cv-os-rhel-9-x86_64,app_dev/cv-custom-rhel-9-x86_64" --name r9sat617.example.com
      Could not update the host:
        500 Internal Server Error
      

      Expected behavior:
      The command should provide the same error message as shown when assigning multiple CVs to an activation key:

      hammer activation-key update --content-view-environments "prd/cv-os-rhel-9-x86_64,app_dev/cv-custom-rhel-9-x86_64" --name ak-os-rhel-9-x86_64
      Could not update the activation key:
        Assigning an activation key to multiple content view environments is not enabled. To enable, set the allow_multiple_content_views setting.
      

      Business Impact / Additional info:

       

              rhn-engineering-jlenz Jeremy Lenz
              rhn-support-smeyer Stefan Meyer
              Partha Aji Partha Aji
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: