← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1411215] [NEW] Add an option to replicator to select which images to compare/copy

 

Public bug reported:

It would be nice to add some sort of filter to images considered by
glance-replicator.

Two types of a filters would be nice :

* a list of ids
* a list of names

(and maybe some sort of regexp on the names, for example --filter
"ubuntu-*")

A quick look at the code makes me think this can easily be added in the
def get_images just before the yield.

For interfacing I would add :

 --filter-by-name 'item1,item2,item3"
 --filter-by-name 'ubuntu-*'
 --filter-by-id 'id1,id2,id3' 

Am willing to contribute a patch if feature request is adopted (we are
going to implement it anyway).

** Affects: glance
     Importance: Undecided
         Status: New

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

Title:
  Add an option to replicator to select which images to compare/copy

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

Bug description:
  It would be nice to add some sort of filter to images considered by
  glance-replicator.

  Two types of a filters would be nice :

  * a list of ids
  * a list of names

  (and maybe some sort of regexp on the names, for example --filter
  "ubuntu-*")

  A quick look at the code makes me think this can easily be added in
  the def get_images just before the yield.

  For interfacing I would add :

   --filter-by-name 'item1,item2,item3"
   --filter-by-name 'ubuntu-*'
   --filter-by-id 'id1,id2,id3' 

  Am willing to contribute a patch if feature request is adopted (we are
  going to implement it anyway).

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


Follow ups

References