← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1171161] Re: sqlalchemy impl of fixed_ip_count_by_project filters ips incorretly

 

** No longer affects: nova/grizzly

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1171161

Title:
  sqlalchemy impl of fixed_ip_count_by_project filters ips incorretly

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  SqlAlchemy implementation of db api filters ips by projects
  incorrectly (models.Instance.uuid == project_id)

  @require_context
  def fixed_ip_count_by_project(context, project_id, session=None):
      nova.context.authorize_project_context(context, project_id)
      return model_query(context, models.FixedIp.id,
                         base_model=models.FixedIp, read_deleted="no",
                         session=session).\
                  join((models.Instance,
                        models.Instance.uuid == models.FixedIp.instance_uuid)).\
                  filter(models.Instance.uuid == project_id).\
                  count()

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1171161/+subscriptions