← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1196022] Re: glance-replicator failed for some images in "killed" status

 

Peng Yong, based on current design, the image with "killed" status won't
be listed by "glance image-list", there is a bp tracking this
requirement: https://blueprints.launchpad.net/glance/+spec/image-error-
state-management. Please let me know if I missed anything.

** Changed in: glance
       Status: New => Incomplete

** Changed in: glance
       Status: Incomplete => Invalid

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1196022

Title:
  glance-replicator failed for some images in "killed" status

Status in OpenStack Image Registry and Delivery Service (Glance):
  Invalid

Bug description:
  I would like to replicate two glances in different IDC.

  it has four images in master glance, and glance-replicator only
  transfer three images to slaves:

  master:root# glance index
                                                                                                                                                            <<<
  ID                                   Name                           Disk Format          Container Format     Size
  ------------------------------------ ------------------------------ -------------------- -------------------- --------------
  8989dfb3-c730-4960-bb7f-654412158132 debian7.1.64                   qcow2                ovf                       625095168
  aa03a7ea-5b62-4c5f-94de-b74b96df53e6 ubuntu12.04.64                 qcow2                ovf                       788368384
  73580a27-f6bb-42c0-87b0-8b5ed622af35 centos6.64                     qcow2                ovf                       398486528
  7d01016b-9888-4880-91f7-09cbeceffe75 win2k3                         qcow2                ovf                      3320315904

  slave# glance index                                                                                                                                                            <<<
  ID                                   Name                           Disk Format          Container Format     Size
  ------------------------------------ ------------------------------ -------------------- -------------------- --------------
  aa03a7ea-5b62-4c5f-94de-b74b96df53e6 ubuntu12.04.64                 qcow2                ovf                       788368384
  7d01016b-9888-4880-91f7-09cbeceffe75 win2k3                         qcow2                ovf                      3320315904
  73580a27-f6bb-42c0-87b0-8b5ed622af35 centos6.64                     qcow2                ovf                       398486528

  it will not transfer the image "8989dfb3-c730-4960-bb7f-654412158132".

  then i run sql from slave:

  mysql> select id,status from images;
  +--------------------------------------+--------+
  | id                                   | status |
  +--------------------------------------+--------+
  | 73580a27-f6bb-42c0-87b0-8b5ed622af35 | active |
  | 7d01016b-9888-4880-91f7-09cbeceffe75 | active |
  | 8989dfb3-c730-4960-bb7f-654412158132 | killed |
  | aa03a7ea-5b62-4c5f-94de-b74b96df53e6 | active |
  +--------------------------------------+--------+
  4 rows in set (0.00 sec)

  
  if i delete the "killed" record from slave and run glance-replicator again, it will work now.

  there are bug in "glance index" and glance-replicator when handle
  images in "killed" status

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