Running Cudet to check customizations of an env fails with "[ERROR] Could't load databases." error

Bug #1625638 reported by Dmitriy Kruglov
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Invalid
Low
MOS Maintenance

Bug Description

Detailed bug description:
Executing cudet tool for checking if an env has been customized fails with "[ERROR] Could't load databases." error.

Steps to reproduce:
1 Deploy a 9.1 cluster, e.g. 1 controller + 1 compute + 1 cinder nodes
2 Install Cudet
  yum install -y python-cudet
3 Run the tool against env or node
  cudet -n <NODE_ID>

Expected result: the tool is executed and reports the env customizations if any.
Actual result: command execution returns "[ERROR] Could't load databases." error.

Cudet output with enabled debug: http://pastebin.com/VHstf6rd

Description of the environment:
MOS 9.1, snapshot #284

Tags: area-library
summary: - [system-tests] System tests for environment customizations check fail on
- attempt to verify the generated report
+ Cudet fails to check customizations of an env
description: updated
summary: - Cudet fails to check customizations of an env
+ Running Cudet to check customizations of an env fails with "[ERROR]
+ Could't load databases." error
Changed in fuel:
assignee: Dmitriy Kruglov (dkruglov) → nobody
importance: High → Critical
Changed in fuel:
assignee: nobody → Denis Meltsaykin (dmeltsaykin)
description: updated
Revision history for this message
Dmitriy Kruglov (dkruglov) wrote :

Additional details:
The root cause is that cudet looks for repository report in http://mirror.fuel-infra.org/mcv/mos/.
And for a particular release the report is supposedly to be published after the release itself (e.g. 9.1).

Still it is not OK that cudet fails to operate because of non-existing url. This way the other checks to be performed by cudet are blocked (e.g. md5 verification of file changes on nodes, etc.)
The proper way in this case would be to continue operating and in the command output/report notify in the corresponding section that cudet failed to access release report via the corresponding url.

tags: added: blocker-for-qa
tags: removed: area-qa
Changed in fuel:
assignee: Denis Meltsaykin (dmeltsaykin) → Fuel Sustaining (fuel-sustaining-team)
tags: added: swarm-blocker
Revision history for this message
Maksim Malchuk (mmalchuk) wrote :

please provide the diagnostic snapshot

Changed in fuel:
status: New → Incomplete
tags: added: area-library
Revision history for this message
Dmitry Kalashnik (dkalashnik) wrote :
Revision history for this message
Dmitry Kalashnik (dkalashnik) wrote :
Changed in fuel:
status: Incomplete → New
Dmitry Pyzhov (dpyzhov)
Changed in fuel:
assignee: Fuel Sustaining (fuel-sustaining-team) → MOS Maintenance (mos-maintenance)
Changed in fuel:
status: New → Confirmed
Revision history for this message
Vitaly Sedelnik (vsedelnik) wrote :

It's expected behavior that cudet fails if unable to load database. In the comment #1 you are actually asking to fail in different way. There is also workaround to upload database locally so cudet will use it instead of downloading from the mirror. You should use this workaround in your test scenarios.

Because of above reasons I am downgrading it from Critical to Low, see below the definitions:
- Critical: Data corruption / complete failure affecting most users, no workaround
- Low: Small issue with an easy workaround

Also retargeting to 9.2 because of Low importance.

Changed in fuel:
importance: Critical → Low
milestone: 9.1 → 9.2
Revision history for this message
Dmitriy Kruglov (dkruglov) wrote :

It's not a trivial workaround if it assumes patching code on fuel master on the fly in the test.
Anyway, thank you for the update.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to fuel-qa (stable/mitaka)

Related fix proposed to branch: stable/mitaka
Review: https://review.openstack.org/374737

tags: removed: blocker-for-qa swarm-blocker
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on fuel-qa (stable/mitaka)

Change abandoned by Dmitriy Kruglov (<email address hidden>) on branch: stable/mitaka
Review: https://review.openstack.org/374737
Reason: No longer needed.

Revision history for this message
Denis Meltsaykin (dmeltsaykin) wrote :

Since 9.1 is released and the database is published as well, I'm going to close the issue as Invalid.

Changed in fuel:
status: Confirmed → Invalid
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.