-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
6.17.0
-
False
-
-
False
-
0
-
Phoenix - Subscriptions
-
-
-
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:
- is related to
-
SAT-31394 Attempting to assign content-view-environments via hammer when LCE is not synced by content source should propagate error message text to hammer
-
- New
-