[nailgun] Introduce the settings.yaml validation

Bug #1432573 reported by Anastasia Palkina
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Triaged
Low
Fuel Sustaining
Mitaka
Won't Fix
Low
Fuel Python (Deprecated)
Newton
Triaged
Low
Fuel Sustaining

Bug Description

"build_id": "2015-03-15_22-54-44",
"ostf_sha": "e86c961ceacfa5a8398b6cbda7b70a5f06afb476",
"build_number": "200",
"release_versions": {"2014.2-6.1": {"VERSION": {"build_id": "2015-03-15_22-54-44", "ostf_sha": "e86c961ceacfa5a8398b6cbda7b70a5f06afb476", "build_number": "200", "api": "1.0", "nailgun_sha": "713e6684f9f54e29acfe6b8ebf641b9de2292628", "production": "docker", "python-fuelclient_sha": "cc64fff91fb0d78e5a02e7b93ceff224296f84fb", "astute_sha": "93e427ac49109fa3fd8b0e1d0bb3d14092be2e8c", "feature_groups": ["mirantis"], "release": "6.1", "fuelmain_sha": "c97fd8a789645bda48d06da224f994f8b52d82f5", "fuellib_sha": "553cb0cffa40a5f57313f962b6ec6a9bd89306ba"}}},
"auth_required": true,
"api": "1.0",
"nailgun_sha": "713e6684f9f54e29acfe6b8ebf641b9de2292628",
"production": "docker",
"python-fuelclient_sha": "cc64fff91fb0d78e5a02e7b93ceff224296f84fb",
"astute_sha": "93e427ac49109fa3fd8b0e1d0bb3d14092be2e8c",
"feature_groups": ["mirantis"],
"release": "6.1",
"fuelmain_sha": "c97fd8a789645bda48d06da224f994f8b52d82f5",
"fuellib_sha": "553cb0cffa40a5f57313f962b6ec6a9bd89306ba"

1. Install ISO
2. Remove feature_group 'mirantis' from /etc/fuel/version.yaml on master node
http://paste.openstack.org/show/192591/
3. Restart nailgun container
4. Open Web UI
5. Click to page Releases. Nothing happened. There is error in Firebug console: argument of type 'NoneType' is not iterable (see screen)
Also I cannot create new cluster because 'Release' field is empty (see screen)

Revision history for this message
Anastasia Palkina (apalkina) wrote :
Ryan Moe (rmoe)
Changed in fuel:
status: New → Confirmed
Revision history for this message
Aleksey Kasatkin (alekseyk-ru) wrote :

It is resulted in wrong format for 'feature_groups'. It should be a list. Do we need to check 'feature_groups' for proper value type? Opinions?

Changed in fuel:
status: Confirmed → New
Revision history for this message
Aleksey Kasatkin (alekseyk-ru) wrote :

So, you removed a list, not just 'mirantis' feature group.

Changed in fuel:
assignee: Fuel Python Team (fuel-python) → Alexander Kislitsky (akislitsky)
status: New → Confirmed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-web (master)

Fix proposed to branch: master
Review: https://review.openstack.org/165488

Changed in fuel:
status: Confirmed → In Progress
Revision history for this message
Ihor Kalnytskyi (ikalnytskyi) wrote : Re: For case without feature_group 'mirantis' page Releases doesn't work

I believe that the issue is invalid. The feature_groups has to be a list, either empty or not. We shouldn't perform checks in many places around the code.

Revision history for this message
Alexander Kislitsky (akislitsky) wrote :

I propose to change subject of the bug. We should introduce validation of settings.yaml.
But this it is not High level and not for 6.1.

summary: - For case without feature_group 'mirantis' page Releases doesn't work
+ [nailgun] Introduce the settings.yaml validation
Changed in fuel:
assignee: Alexander Kislitsky (akislitsky) → Fuel Python Team (fuel-python)
importance: High → Medium
status: In Progress → Triaged
milestone: 6.1 → 7.0
Dmitry Pyzhov (dpyzhov)
tags: added: feature-validation
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on fuel-web (master)

Change abandoned by Alexander Kislitsky (<email address hidden>) on branch: master
Review: https://review.openstack.org/165488
Reason: Requires feature implementation instead fast-fix.

Revision history for this message
Alexander Kislitsky (akislitsky) wrote :

Sorry, forgot about snapshot.
Attached now.

Revision history for this message
Alexander Kislitsky (akislitsky) wrote :

Wrong comment

Revision history for this message
Vladimir Sharshov (vsharshov) wrote :

This is feature. It is need blueprint to implementation.

tags: added: feature need-bp
Revision history for this message
Vladimir Sharshov (vsharshov) wrote :

Moving to 8.0

Changed in fuel:
status: Triaged → Won't Fix
Dmitry Pyzhov (dpyzhov)
Changed in fuel:
milestone: 7.0 → 8.0
status: Won't Fix → Triaged
no longer affects: fuel/8.0.x
Dmitry Pyzhov (dpyzhov)
tags: added: area-python
Revision history for this message
Alexander Kislitsky (akislitsky) wrote :

We passed SCF in 8.0. Moving the bug to 9.0.

Changed in fuel:
milestone: 8.0 → 9.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.