[Heat] auto-scaling doesn't work properly

Bug #1586414 reported by Oleksandr Liemieshko on 2016-05-27
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mirantis OpenStack
High
Oleksii Chuprykov
8.0.x
High
Oleksii Chuprykov

Bug Description

This bug related with the upstream bug https://bugs.launchpad.net/heat/+bug/1569273

When resource scaling policy is signalled, it raises the below exception:

...
2016-05-24 15:23:21.829 17453 ERROR heat.engine.resource if not timeutils.is_older_than(last_adjust, cooldown):
2016-05-24 15:23:21.829 17453 ERROR heat.engine.resource File "/usr/lib/python2.7/dist-packages/oslo_utils/timeutils.py", line 110, in is_older_than
2016-05-24 15:23:21.829 17453 ERROR heat.engine.resource before = parse_isotime(before)
2016-05-24 15:23:21.829 17453 ERROR heat.engine.resource File "/usr/lib/python2.7/dist-packages/oslo_utils/timeutils.py", line 66, in parse_isotime
2016-05-24 15:23:21.829 17453 ERROR heat.engine.resource raise ValueError(six.text_type(e))
2016-05-24 15:23:21.829 17453 ERROR heat.engine.resource ValueError: Unable to parse date string u'scaling_in_progress'
2016-05-24 15:23:21.829 17453 ERROR heat.engine.resource
2016-05-24 15:23:21.830 17453 ERROR heat.engine.service [-] Unhandled error in asynchronous task
2016-05-24 15:23:21.830 17453 ERROR heat.engine.service Traceback (most recent call last):
2016-05-24 15:23:21.830 17453 ERROR heat.engine.service File "/usr/lib/python2.7/dist-packages/heat/engine/service.py", line 126, in log_exceptions
2016-05-24 15:23:21.830 17453 ERROR heat.engine.service gt.wait()
2016-05-24 15:23:21.830 17453 ERROR heat.engine.service File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line 175, in wait
2016-05-24 15:23:21.830 17453 ERROR heat.engine.service return self._exit_event.wait()
2016-05-24 15:23:21.830 17453 ERROR heat.engine.service File "/usr/lib/python2.7/dist-packages/eventlet/event.py", line 125, in wait
2016-05-24 15:23:21.830 17453 ERROR heat.engine.service current.throw(*self._exc)
2016-05-24 15:23:21.830 17453 ERROR heat.engine.service File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line 214, in main
2016-05-24 15:23:21.830 17453 ERROR heat.engine.service result = function(*args, **kwargs)
2016-05-24 15:23:21.830 17453 ERROR heat.engine.service File "/usr/lib/python2.7/dist-packages/heat/engine/service.py", line 117, in _start_with_trace
2016-05-24 15:23:21.830 17453 ERROR heat.engine.service return func(*args, **kwargs)
2016-05-24 15:23:21.830 17453 ERROR heat.engine.service File "/usr/lib/python2.7/dist-packages/heat/engine/service.py", line 1384, in _resource_signal
2016-05-24 15:23:21.830 17453 ERROR heat.engine.service needs_metadata_updates = rsrc.signal(details, need_check)
2016-05-24 15:23:21.830 17453 ERROR heat.engine.service File "/usr/lib/python2.7/dist-packages/heat/engine/resource.py", line 1707, in signal
2016-05-24 15:23:21.830 17453 ERROR heat.engine.service self._handle_signal(details)
2016-05-24 15:23:21.830 17453 ERROR heat.engine.service File "/usr/lib/python2.7/dist-packages/heat/engine/resource.py", line 1690, in _handle_signal
2016-05-24 15:23:21.830 17453 ERROR heat.engine.service raise failure
2016-05-24 15:23:21.830 17453 ERROR heat.engine.service ResourceFailure: ValueError: resources.scale_down_policy: Unable to parse date string u'scaling_in_progress'
2016-05-24 15:23:21.830 17453 ERROR heat.engine.service
...

[root@fuel ~]# fuel --f
api: '1'
auth_required: true
feature_groups:
- mirantis
openstack_version: liberty-8.0
release: '8.0'

[root@fuel ~]# rpm -qa |grep fuel-8
fuel-8.0.0-1.mos6270.noarch

Denis Klepikov (dklepikov) wrote :

High due to customer-found.
Was found on Fuel 8.0

Dina Belova (dbelova) wrote :

I'm marking bug a confirmed for now. Sergey Kraynev (Heat team) is going to check if upstream fix (that was merged to stable/liberty and stable/mitaka) is included to MOS 9.0 and MOS 8.0.

Changed in mos:
status: New → Confirmed
milestone: none → 8.0-updates
Oleksii Chuprykov (ochuprykov) wrote :

Waiting for a merge-sync.

Changed in mos:
status: Confirmed → In Progress
assignee: MOS Heat (mos-heat) → Oleksii Chuprykov (ochuprykov)
Peter Razumovsky (prazumovsky) wrote :

Fix also merged in 8.0 branch

Changed in mos:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers