Bug 1669427
| Summary: | Sahara CDH Plugin won't allow creation of Node Group Templates through Horizon | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Kevin Jones <kejones> | ||||
| Component: | openstack-sahara-ui | Assignee: | Telles Nobrega <tenobreg> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Luigi Toscano <ltoscano> | ||||
| Severity: | high | Docs Contact: | Tana <tberry> | ||||
| Priority: | high | ||||||
| Version: | 13.0 (Queens) | Keywords: | Triaged, ZStream | ||||
| Target Milestone: | z5 | ||||||
| Target Release: | 13.0 (Queens) | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | openstack-sahara-ui-8.0.1-3.el7ost | Doc Type: | If docs needed, set a value | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | |||||||
| : | 1669501 (view as bug list) | Environment: | |||||
| Last Closed: | 2019-03-14 13:36:31 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
|
Description
Kevin Jones
2019-01-25 08:57:56 UTC
This looks like https://storyboard.openstack.org/#!/story/1714575 but I thought we fixed it. It looks like a packaging problem, with the configuration file which fixes this (_12_toggle_data_upload_max_number_fields.py) not being injected correctly. If you can, can you please verify whether copying this file: http://git.openstack.org/cgit/openstack/sahara-dashboard/plain/sahara_dashboard/local_settings.d/_12_toggle_data_upload_max_number_fields.py inside the horizon container, into the directory /usr/share/openstack-dashboard/openstack_dashboard/local/local_settings.d, fixes the issue? Luigi is right. The issue has been fixed, we have to check if it was packaged properly for OSP13. Is there something else I need to do? I did the following on my 3 controllers. cd /var/lib/config-data/puppet-generated/horizon/ mkdir -p usr/share/openstack-dashboard/openstack_dashboard/local/local_settings.d curl http://git.openstack.org/cgit/openstack/sahara-dashboard/plain/sahara_dashboard/local_settings.d/_12_toggle_data_upload_max_number_fields.py -o usr/share/openstack-dashboard/openstack_dashboard/local/local_settings.d/_12_toggle_data_upload_max_number_fields.py docker restart horizon I now see the file with the setting set to 2000 in each of the 3 horizon containers. However, the node group template form submission still fails. Still same error in horizon log 2019-01-25 05:37:42,169 81 ERROR django.security.TooManyFieldsSent The number of GET/POST parameters exceeded settings.DATA_UPLOAD_MAX_NUMBER_FIELDS. Hi Kevin, It should be enough, but just to be sure, can you try a higher value for max number fields? If that doesn't work than we need to understand why the value is not being loaded by horizon. Thanks Yes, bumping to 5000 allows node group template creation through horizon now. Obviously I don't know what the minimum number is. I'd have to work my way back down to 2000 to find out I suppose. On all 3 controllers, I modified the file to change from 2000 to 5000 [root@overcloud-controller-2 ~]# vi /var/lib/config-data/puppet-generated/horizon/usr/share/openstack-dashboard/openstack_dashboard/local/local_settings.d/_12_toggle_data_upload_max_number_fields.py [root@overcloud-controller-2 ~]# cat /var/lib/config-data/puppet-generated/horizon/usr/share/openstack-dashboard/openstack_dashboard/local/local_settings.d/_12_toggle_data_upload_max_number_fields.py # toggle DATA_UPLOAD_MAX_NUMBER_FIELDS DATA_UPLOAD_MAX_NUMBER_FIELDS = 5000 [root@overcloud-controller-2 ~]# docker restart horizon horizon Result is attached. test-5000 node group template added via horizon. Created attachment 1523501 [details]
test-5000 node group template added via horizon
If I remember correctly 3000 should be more than enough. But I'm not 100% sure what the minimum value is. Playing a bit with the logs and the django code, I see that the number of requested fields is... 2001 (!) So we need to - raise the limit a bit (probably not 2001, but not too much), also upstream; - fix the packaging to install the package (maybe just link it in the right location, it looks like a symbolic link works too), also in RDO. The value of DATA_UPLOAD_MAX_NUMBER_FIELDS has been raised to 2600 and now it is possible to created CDH-based node group templates. Verified with: openstack-sahara-ui-8.0.1-3.el7ost.noarch python-django-horizon-13.0.1-4.el7ost.noarch python2-django-1.11.11-1.el7ost.noarch Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2019:0562 |