OpenStack compute's bugs note

Install at Ubuntu 10.04 LTS:
  1. When running euca-terminate-instance command.
    Edit /usr/lib/pymodules/python2.6/nova/db/sqlalchemy/api.py
    From:
    701 def instance_destroy(context, instance_id):
    702     session = get_session()
    703     with session.begin():
    704         session.execute('update instances set deleted=1,'
    705                         'deleted_at=:at where id=:id',
    706                         {'id': instance_id,
    707                          'at': datetime.datetime.utcnow()})
    708         session.execute('update security_group_instance_association '
    709                         'set deleted=1,deleted_at=:at where instance_id=:id',
    710                         {'id': instance_id,
    711                          'at': datetime.datetime.utcnow()})

    To:
    701 def instance_destroy(context, instance_id):
    702     session = get_session()
    703     with session.begin():
    704         session.execute('update instances set deleted=true,'
    705                         'deleted_at=:at where id=:id',
    706                         {'id': instance_id,
    707                          'at': datetime.datetime.utcnow()})
    708         session.execute('update security_group_instance_association '
    709                         'set deleted=true,deleted_at=:at where instance_id=:id',
    710                         {'id': instance_id,
    711                          'at': datetime.datetime.utcnow()})

  2. When running nova-manage instance_type list command.
    Edit /usr/lib/pymodules/python2.6/nova/db/sqlalchemy/api.py
    From:
    2157         inst_types = session.query(models.InstanceTypes).\
    2158                         filter_by(deleted=inactive).\
    2159                         order_by("name").\
    2160                         all()

    To:
    2157         inst_types = session.query(models.InstanceTypes).\
    2158                         filter_by(deleted=false).\
    2159                         order_by("name").\
    2160                         all()

留言

/k寫道…
the second bug is fixed in lp734680

熱門文章