Ask Your Question
1

Heat stack DB error

asked 2014-05-15 11:34:09 -0500

updated 2014-05-19 07:20:00 -0500

I am autoscaling a stack on heat. When i run the stress command in stack to put some load on it for increasing the memory usage and autoscale this error appear in heat engine logs.

2014-05-19 17:14:45.216 INFO heat.engine.watchrule [-] WATCH: stack:90d53942-7cd1-4bc2-b003-8067cb1fee2d, watch_name:demg-MEMAlarmLow, new_state:ALARM

2014-05-19 17:14:45.265 INFO heat.engine.watchrule [-] WATCH: stack:90d53942-7cd1-4bc2-b003-8067cb1fee2d, watch_name:demg-MEMAlarmHigh, new_state:NORMAL

2014-05-19 17:14:45.266 INFO heat.engine.watchrule [-] no action for new state NORMAL 2014-05-19 17:14:45.268 ERROR heat.openstack.common.db.sqlalchemy.session [-] DB exception wrapped. 2014-05-19 17:14:45.268 TRACE heat.openstack.common.db.sqlalchemy.session Traceback (most recent call last):

2014-05-19 17:14:45.268 TRACE heat.openstack.common.db.sqlalchemy.session File "/opt/stack/heat/heat/openstack/common/db/sqlalchemy/session.py", line 439, in _wrap 2014-05-19 17:14:45.268 TRACE heat.openstack.common.db.sqlalchemy.session return f(self, args, *kwargs) 2014-05-19 17:14:45.268 TRACE heat.openstack.common.db.sqlalchemy.session File "/opt/stack/heat/heat/openstack/common/db/sqlalchemy/session.py", line 705, in flush 2014-05-19 17:14:45.268 TRACE heat.openstack.common.db.sqlalchemy.session return super(Session, self).flush(args, *kwargs)

2014-05-19 17:14:45.268 TRACE heat.openstack.common.db.sqlalchemy.session File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 1812, in flush 2014-05-19 17:14:45.268 TRACE heat.openstack.common.db.sqlalchemy.session raise sa_exc.InvalidRequestError("Session is already flushing") 2014-05-19 17:14:45.268 TRACE heat.openstack.common.db.sqlalchemy.session InvalidRequestError: Session is already flushing 2014-05-19 17:14:45.268 TRACE heat.openstack.common.db.sqlalchemy.session 2014-05-19 17:14:45.274 ERROR heat.engine.resource [-] signal ScalingPolicy "WebServerScaleDownPolicy" [b0eb686fc78c49cb8a5598b375dcd927] Stack "demg" [90d53942-7cd1-4bc2-b003-8067cb1fee2d] : Session is already flushing

2014-05-19 17:14:45.274 TRACE heat.engine.resource Traceback (most recent call last): 2014-05-19 17:14:45.274 TRACE heat.engine.resource File "/opt/stack/heat/heat/engine/resource.py", line 882, in signal 2014-05-19 17:14:45.274 TRACE heat.engine.resource
self._add_event('signal', self.status, get_string_details()) 2014-05-19 17:14:45.274 TRACE heat.engine.resource File "/opt/stack/heat/heat/engine/resource.py", line 750, in _add_event 2014-05-19 17:14:45.274 TRACE heat.engine.resource ev.store() 2014-05-19 17:14:45.274 TRACE heat.engine.resource File "/opt/stack/heat/heat/engine/event.py", line 93, in store

2014-05-19 17:14:45.274 TRACE heat.engine.resource new_ev = db_api.event_create(self.context, ev) 2014-05-19 17:14:45.274 TRACE heat.engine.resource File "/opt/stack/heat/heat/db/api.py", line 199, in event_create 2014-05-19 17:14:45.274 TRACE heat.engine.resource return IMPL.event_create(context, values) 2014-05-19 17:14:45.274 TRACE heat.engine.resource File "/opt/stack/heat/heat/db/sqlalchemy/api.py", line 579, in event_create 2014-05-19 17:14:45.274 TRACE heat.engine.resource
event_ref.save(_session(context)) 2014-05-19 17:14:45.274 TRACE heat.engine.resource File "/opt/stack/heat/heat ...

(more)
edit retag flag offensive close merge delete

Comments

i saw https://bugs.launchpad.net/ceilometer/+bug/1183996 (https://bugs.launchpad.net/ceilometer...) related to the problem that i am facing, but this has been resolved in the havana release, i have icehouse still the same problem persists, any indication towards the issue will be appreciable

Syed Awais Ali gravatar imageSyed Awais Ali ( 2014-06-03 06:02:06 -0500 )edit

Please raise a bug in launchpad for this error. https://bugs.launchpad.net/heat

zaneb gravatar imagezaneb ( 2014-06-03 14:37:29 -0500 )edit

reported the bug

Syed Awais Ali gravatar imageSyed Awais Ali ( 2014-06-04 02:17:31 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-09-28 23:05:07 -0500

asalkeld gravatar image

Hi

This has just landed, if this is reproducable can you give it a test? https://github.com/openstack/heat/com...

It looks like it should fix your problem.

Thanks Angus

edit flag offensive delete link more

Comments

Thanks Angus, I would definitely try this, and will update this thread.

Syed Awais Ali gravatar imageSyed Awais Ali ( 2014-09-29 02:28:55 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-05-15 11:34:09 -0500

Seen: 751 times

Last updated: Sep 28 '14