Hot package uses maxint, incompatible with Python 3.4.

Bug #1628954 reported by Felipe Monteiro
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Murano
In Progress
Undecided
Felipe Monteiro

Bug Description

Currently, hot_package.py uses sys.maxint to compute the maximum and minimum integers. However, sys.maxint is not compatible with Python 3.4. Thus, when the code is run against Python 3.4, an AttributeError is thrown.

The following stacktrace is produced:

Traceback (most recent call last):
  File "/opt/stack/mitaka-murano-gerrit/murano/tests/unit/packages/hot_package/test_hot_package.py", line 166, in test_translate_ui
    hot_package._translate_ui()
  File "/opt/stack/mitaka-murano-gerrit/murano/packages/hot_package.py", line 527, in _translate_ui
    groups = HotPackage._translate_ui_parameters(hot, self.description)
  File "/opt/stack/mitaka-murano-gerrit/murano/packages/hot_package.py", line 386, in _translate_ui_parameters
    parameter, parameter_value))
  File "/opt/stack/mitaka-murano-gerrit/murano/packages/hot_package.py", line 442, in _translate_ui_parameter
    translated.get('minLength', -sys.maxint - 1),
AttributeError: 'module' object has no attribute 'maxint'

Felipe Monteiro (fm577c)
Changed in murano:
assignee: nobody → Felipe Monteiro (fm577c)
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/379532

Changed in murano:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on murano (master)

Change abandoned by Felipe Monteiro (<email address hidden>) on branch: master
Review: https://review.openstack.org/379532
Reason: Already fixed by bug/1628830.

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.