** Description changed:

+ [Impact]
+ 
+ On every execution of /etc/cron.*/glance_simplestreams_sync
+ simplestreams will upload all the images that match the configured
+ filters no matter of those same images were already uploaded in a
+ previous execution.
+ 
+ This will potentially lead to the inability to upload new images due to
+ not having enough free space.
+ 
+ [Test Case]
+ 
+ * deploy artful-pike
+   juju deploy ./artful-pike.yaml  # http://paste.ubuntu.com/p/RZqm3cGjqk/
+ 
+ * Wait until glance-simplestreams-sync runs the first sync-up execution.
+ * Verify the images are in glance running "openstack image list"
+ * Run the synchronization script again
+   juju ssh glance-simplestreams-sync/0 sudo 
/etc/cron.daily/glance_simplestreams-sync
+ 
+ Expected results:
+ 
+ "openstack image list" prints the same list of images as before running
+ the synchronization script for the 2nd time
+ 
+ Actual result:
+ 
+ "openstack image list" prints a list of images duplicates, e.g.:
+ 
+ $  openstack image list
+ 
+--------------------------------------+---------------------------------------------------------------+--------+
+ | ID                                   | Name                                 
                         | Status |
+ 
+--------------------------------------+---------------------------------------------------------------+--------+
+ | 7f946cbf-57e1-4704-92ea-928d8d4e9454 | 
auto-sync/ubuntu-trusty-14.04-amd64-server-20180404-disk1.img | active |
+ | 7a5afbf8-f072-49af-9629-483fc27c627a | 
auto-sync/ubuntu-trusty-14.04-amd64-server-20180404-disk1.img | active |
+ | c9a1dfbd-9e5d-4261-b43f-585e65f9733a | 
auto-sync/ubuntu-xenial-16.04-amd64-server-20180405-disk1.img | active |
+ | a731c994-61f3-43ea-b86c-227baec101e3 | 
auto-sync/ubuntu-xenial-16.04-amd64-server-20180405-disk1.img | active |
+ 
+--------------------------------------+---------------------------------------------------------------+--------+
+ 
+ [Potential Regression]
+ 
+ * this patch allows simplestreams to connect to swift and verify if the
+ image was already uploaded or not, any possible regression will manifest
+ around the ability of simplestreams to connect to swift.
+ 
+ [Other Info]
+ 
  When using the newly added (revno 450) v3 support for mirroring to
  openstack simplestreams will not notice that images already exist in
  glace.  The result is that every 'sync' will import all new images.
  
  The issue was simply that the tenant_id was not being correctly passed 
through to the glance query.
  It ended considering only existing images that were owned by None, which 
didn't match anything.
  
  Note:
-  * This bug is present in Artful when using the v3 keystone api. It is *not* 
present in xenial or zesty as they do not have v3 keystone support, and the 
code that is submitted for merge request has the fix included.
+  * This bug is present in Artful when using the v3 keystone api. It is *not* 
present in xenial or zesty as they do not have v3 keystone support, and the 
code that is submitted for merge request has the fix included.

** Summary changed:

- openstack mirror with keystone v3 always imports new images
+ [SRU] openstack mirror with keystone v3 always imports new images

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1728982

Title:
  [SRU] openstack mirror with keystone v3 always imports new images

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

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to