[ConfigDB] There is no human readable information about hierarchy level values

Bug #1642326 reported by Dmytro Fomenko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
High
Alexander Kislitsky

Bug Description

There is no human readable information about hierarchy level values in tuning box:

nailgun=# select * from tuning_box_environment_hierarchy_level_value;
 id | level_id | value
----+----------+---------------------------
  1 | 1 | node-5.test.domain.local
  2 | 1 | node-4.test.domain.local
  3 | 1 | node-7.test.domain.local
  4 | 1 | node-6.test.domain.local
  5 | 1 | node-9.test.domain.local
  6 | 1 | node-8.test.domain.local
  7 | 1 | node-1.test.domain.local
  8 | 1 | node-3.test.domain.local
  9 | 1 | node-2.test.domain.local

We need ability to get these parameters for a tuning box environment.

Dmytro Fomenko (daks12)
summary: - There is no human readable information about hierarchy level values
+ [ConfigDB] There is no human readable information about hierarchy level
+ values
Changed in fuel:
assignee: nobody → Alexander Kislitsky (akislitsky)
importance: Undecided → High
status: New → Confirmed
milestone: none → 9.2
Changed in fuel:
status: Confirmed → In Progress
no longer affects: fuel/mitaka
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tuning-box (master)

Reviewed: https://review.openstack.org/398406
Committed: https://git.openstack.org/cgit/openstack/tuning-box/commit/?id=70158d0e1f757b849200ebe4dca3c50f6d35497e
Submitter: Jenkins
Branch: master

commit 70158d0e1f757b849200ebe4dca3c50f6d35497e
Author: Alexander Kislitsky <email address hidden>
Date: Wed Nov 16 18:05:43 2016 +0300

    Hierarchy levels API handled in the fuel2

    Referecne to level values added to DB model and level marshalling.
    Fuel2 commands lvl show, lvl list added.

    Change-Id: I11fb465c00c411464d75229fc2f8bffdbb8dcc53
    Closes-Bug: #1642326

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tuning-box (stable/mitaka)

Fix proposed to branch: stable/mitaka
Review: https://review.openstack.org/400151

tags: added: on-verification
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tuning-box (stable/mitaka)

Reviewed: https://review.openstack.org/400151
Committed: https://git.openstack.org/cgit/openstack/tuning-box/commit/?id=75ac77ead64318ca4646307a65a91e5997cf3da0
Submitter: Jenkins
Branch: stable/mitaka

commit 75ac77ead64318ca4646307a65a91e5997cf3da0
Author: Alexander Kislitsky <email address hidden>
Date: Wed Nov 16 18:05:43 2016 +0300

    Hierarchy levels API handled in the fuel2

    Referecne to level values added to DB model and level marshalling.
    Fuel2 commands lvl show, lvl list added.

    Change-Id: I11fb465c00c411464d75229fc2f8bffdbb8dcc53
    Closes-Bug: #1642326
    (cherry picked from commit 70158d0e1f757b849200ebe4dca3c50f6d35497e)

tags: added: in-stable-mitaka
Revision history for this message
Alexey. Kalashnikov (akalashnikov) wrote :

verified on 9.2 snapshot 553

Changed in fuel:
status: Fix Committed → Fix Released
tags: removed: on-verification
Revision history for this message
Alexey. Kalashnikov (akalashnikov) wrote :

Actually there is something wrong with output commands:

[root@nailgun ~]# fuel2 config env list
/usr/lib64/python2.7/site-packages/sqlalchemy/ext/declarative/api.py:173: SAWarning: Unmanaged access of declarative attribute __tablename__ from non-mapped class ModelMixin
  (desc.fget.__name__, cls.__name__))
+----+------------+------------------------+
| id | components | hierarchy_levels |
+----+------------+------------------------+
| 1 | [] | [] |
| 2 | [1] | [u'nodes', u'servers'] |
+----+------------+------------------------+

issue:
https://bugs.launchpad.net/fuel/+bug/1644814

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.