group.of.nepali.translators team mailing list archive
-
group.of.nepali.translators team
-
Mailing list archive
-
Message #33214
[Bug 1728982] Re: [SRU] openstack mirror with keystone v3 always imports new images
** Changed in: simplestreams (Ubuntu Bionic)
Status: In Progress => Fix Released
** Changed in: simplestreams (Ubuntu Bionic)
Assignee: Rafael David Tinoco (rafaeldtinoco) => (unassigned)
--
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/1728982
Title:
[SRU] openstack mirror with keystone v3 always imports new images
Status in simplestreams:
Fix Released
Status in simplestreams package in Ubuntu:
Fix Released
Status in simplestreams source package in Xenial:
Won't Fix
Status in simplestreams source package in Artful:
Won't Fix
Status in simplestreams source package in Bionic:
Fix Released
Status in simplestreams source package in Disco:
Fix Released
Bug description:
[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.
To manage notifications about this bug go to:
https://bugs.launchpad.net/simplestreams/+bug/1728982/+subscriptions