tempest init is throwing warning UserWarning: converting 'True' to a string" with murano tempest plugin

Bug #1685767 reported by chandan kumar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Murano
Fix Released
Undecided
chandan kumar

Bug Description

Tempest init is throwing UserWarning: converting 'False' to a string with murano tempest plugin.
(.thor) [chkumar246@assassin tempest_tracebin]$ tempest init foobar
2017-04-24 16:10:04.585 22459 INFO tempest [-] Using tempest config file /etc/tempest/tempest.conf
/home/chkumar246/killbox/rdo/tempest_tracebin/.thor/lib/python2.7/site-packages/oslo_config/types.py:54: UserWarning: converting 'False' to a string
  warnings.warn('converting \'%s\' to a string' % str_val)
(.thor) [chkumar246@assassin tempest_tracebin]$ tempest list-plugins
+--------------+-------------------------------------------------+
| Name | EntryPoint |
+--------------+-------------------------------------------------+
| murano_tests | murano_tempest_tests.plugin:MuranoTempestPlugin |
+--------------+-------------------------------------------------+
(.thor) [chkumar246@assassin tempest_tracebin]$

It appears that https://github.com/openstack/murano/blob/master/murano_tempest_tests/config.py#L86
run_service_broker_tests is set default o False which is boolean but config type is defined to string that's why it is throwing warning while doing tempest init.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to murano (master)

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

Changed in murano:
assignee: nobody → chandan kumar (chkumar246)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to murano (master)

Reviewed: https://review.openstack.org/459239
Committed: https://git.openstack.org/cgit/openstack/murano/commit/?id=4b91b82b5c1ce0bb91736870eee50dcdb9f0bfa5
Submitter: Jenkins
Branch: master

commit 4b91b82b5c1ce0bb91736870eee50dcdb9f0bfa5
Author: Chandan Kumar <email address hidden>
Date: Mon Apr 24 16:13:49 2017 +0530

    Fix config type of run_service_broker_tests to Boolean

    * As per the default value of run_service_broker_tests is Boolean
      but config type is defined as string, It needs to be fixed other
      wise tempest init will throw warning.

    Change-Id: Ic0cd6d6cb7409c0bd4088c9eb3b743d44e9f7100
    Closes-Bug: #1685767

Changed in murano:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to murano (stable/ocata)

Fix proposed to branch: stable/ocata
Review: https://review.openstack.org/459499

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to murano (stable/ocata)

Reviewed: https://review.openstack.org/459499
Committed: https://git.openstack.org/cgit/openstack/murano/commit/?id=c951054021abc55a0707bd6ae016306b6eeedda0
Submitter: Jenkins
Branch: stable/ocata

commit c951054021abc55a0707bd6ae016306b6eeedda0
Author: Chandan Kumar <email address hidden>
Date: Mon Apr 24 16:13:49 2017 +0530

    Fix config type of run_service_broker_tests to Boolean

    * As per the default value of run_service_broker_tests is Boolean
      but config type is defined as string, It needs to be fixed other
      wise tempest init will throw warning.

    Change-Id: Ic0cd6d6cb7409c0bd4088c9eb3b743d44e9f7100
    Closes-Bug: #1685767
    (cherry picked from commit 4b91b82b5c1ce0bb91736870eee50dcdb9f0bfa5)

tags: added: in-stable-ocata
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/murano 4.0.0.0b2

This issue was fixed in the openstack/murano 4.0.0.0b2 development milestone.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/murano ocata-eol

This issue was fixed in the openstack/murano ocata-eol release.

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.