[glance] pushing image to all stores upon creation
Hi everyone, AFAIK the procedure to make an image available in all the stores is: 1) Create an image (on a selected/default store) 2) Import the image with all_stores option I am looking for ways to eliminate the second step and make uploading to all stores the default behaviour. 1) Is there a config for this? 2) If not, can glance plugins/flows be used to implement this behaviour? Both sync and async approaches are fine as long as images created via dashboard are pushed to all stores all well. Looking forward to your guidance. Thanks in advance. Regards, Can
Hi Can, You can use glance image-create-via-import command with —all-stores True option or you can specify comma separated name of stores using —stores option for same command. Thanks & Best Regards, Abhishek Kekane On Mon, 2 Jun 2025 at 2:09 PM, Can Özyurt <acozyurt@gmail.com> wrote:
Hi everyone,
AFAIK the procedure to make an image available in all the stores is:
1) Create an image (on a selected/default store) 2) Import the image with all_stores option
I am looking for ways to eliminate the second step and make uploading to all stores the default behaviour.
1) Is there a config for this? 2) If not, can glance plugins/flows be used to implement this behaviour?
Both sync and async approaches are fine as long as images created via dashboard are pushed to all stores all well.
Looking forward to your guidance. Thanks in advance.
Regards, Can
Hi Abhishek, Thanks for a fast response! Is image-create-via-import specific to CLI? Is there a way to benefit from image-create-via-import via dashboards? On Mon, 2 Jun 2025 at 11:44, Abhishek Kekane <akekane@redhat.com> wrote:
Hi Can,
You can use glance image-create-via-import command with —all-stores True option or you can specify comma separated name of stores using —stores option for same command.
Thanks & Best Regards,
Abhishek Kekane
On Mon, 2 Jun 2025 at 2:09 PM, Can Özyurt <acozyurt@gmail.com> wrote:
Hi everyone,
AFAIK the procedure to make an image available in all the stores is:
1) Create an image (on a selected/default store) 2) Import the image with all_stores option
I am looking for ways to eliminate the second step and make uploading to all stores the default behaviour.
1) Is there a config for this? 2) If not, can glance plugins/flows be used to implement this behaviour?
Both sync and async approaches are fine as long as images created via dashboard are pushed to all stores all well.
Looking forward to your guidance. Thanks in advance.
Regards, Can
Yes, it’s specific to CLI, unfortunately there is no support in dashboard yet. It is still a todo thing but we don’t have capacity at this moment to take this up. Thanks & Best Regards, Abhishek Kekane On Mon, 2 Jun 2025 at 2:25 PM, Can Özyurt <acozyurt@gmail.com> wrote:
Hi Abhishek,
Thanks for a fast response!
Is image-create-via-import specific to CLI? Is there a way to benefit from image-create-via-import via dashboards?
On Mon, 2 Jun 2025 at 11:44, Abhishek Kekane <akekane@redhat.com> wrote:
Hi Can,
You can use glance image-create-via-import command with —all-stores True option or you can specify comma separated name of stores using —stores option for same command.
Thanks & Best Regards,
Abhishek Kekane
On Mon, 2 Jun 2025 at 2:09 PM, Can Özyurt <acozyurt@gmail.com> wrote:
Hi everyone,
AFAIK the procedure to make an image available in all the stores is:
1) Create an image (on a selected/default store) 2) Import the image with all_stores option
I am looking for ways to eliminate the second step and make uploading to all stores the default behaviour.
1) Is there a config for this? 2) If not, can glance plugins/flows be used to implement this behaviour?
Both sync and async approaches are fine as long as images created via dashboard are pushed to all stores all well.
Looking forward to your guidance. Thanks in advance.
Regards, Can
Hi Abhishek, Thanks for the info. Do you think a sync hook can be implemented by the admin through plugin/flows or any other way? I don't know much about plugins and their capabilities, so I would appreciate it if you could comment on that. On Mon, 2 Jun 2025 at 14:06, Abhishek Kekane <akekane@redhat.com> wrote:
Yes, it’s specific to CLI, unfortunately there is no support in dashboard yet. It is still a todo thing but we don’t have capacity at this moment to take this up.
Thanks & Best Regards,
Abhishek Kekane
On Mon, 2 Jun 2025 at 2:25 PM, Can Özyurt <acozyurt@gmail.com> wrote:
Hi Abhishek,
Thanks for a fast response!
Is image-create-via-import specific to CLI? Is there a way to benefit from image-create-via-import via dashboards?
On Mon, 2 Jun 2025 at 11:44, Abhishek Kekane <akekane@redhat.com> wrote:
Hi Can,
You can use glance image-create-via-import command with —all-stores True option or you can specify comma separated name of stores using —stores option for same command.
Thanks & Best Regards,
Abhishek Kekane
On Mon, 2 Jun 2025 at 2:09 PM, Can Özyurt <acozyurt@gmail.com> wrote:
Hi everyone,
AFAIK the procedure to make an image available in all the stores is:
1) Create an image (on a selected/default store) 2) Import the image with all_stores option
I am looking for ways to eliminate the second step and make uploading to all stores the default behaviour.
1) Is there a config for this? 2) If not, can glance plugins/flows be used to implement this behaviour?
Both sync and async approaches are fine as long as images created via dashboard are pushed to all stores all well.
Looking forward to your guidance. Thanks in advance.
Regards, Can
Hi Can, I am not sure how helpful that would be, may be someone from horizon should comment on this. Thanks & Best Regards, Abhishek Kekane On Mon, 2 Jun 2025 at 5:13 PM, Can Özyurt <acozyurt@gmail.com> wrote:
Hi Abhishek,
Thanks for the info.
Do you think a sync hook can be implemented by the admin through plugin/flows or any other way? I don't know much about plugins and their capabilities, so I would appreciate it if you could comment on that.
On Mon, 2 Jun 2025 at 14:06, Abhishek Kekane <akekane@redhat.com> wrote:
Yes, it’s specific to CLI, unfortunately there is no support in dashboard yet. It is still a todo thing but we don’t have capacity at this moment to take this up.
Thanks & Best Regards,
Abhishek Kekane
On Mon, 2 Jun 2025 at 2:25 PM, Can Özyurt <acozyurt@gmail.com> wrote:
Hi Abhishek,
Thanks for a fast response!
Is image-create-via-import specific to CLI? Is there a way to benefit from image-create-via-import via dashboards?
On Mon, 2 Jun 2025 at 11:44, Abhishek Kekane <akekane@redhat.com> wrote:
Hi Can,
You can use glance image-create-via-import command with —all-stores True option or you can specify comma separated name of stores using —stores option for same command.
Thanks & Best Regards,
Abhishek Kekane
On Mon, 2 Jun 2025 at 2:09 PM, Can Özyurt <acozyurt@gmail.com> wrote:
Hi everyone,
AFAIK the procedure to make an image available in all the stores is:
1) Create an image (on a selected/default store) 2) Import the image with all_stores option
I am looking for ways to eliminate the second step and make uploading to all stores the default behaviour.
1) Is there a config for this? 2) If not, can glance plugins/flows be used to implement this behaviour?
Both sync and async approaches are fine as long as images created via dashboard are pushed to all stores all well.
Looking forward to your guidance. Thanks in advance.
Regards, Can
Hi Abhishek, Excuse me if I am repeating the question unnecessarily. I think we mixed the term plugin for the projects. I was talking about glance plugins like decompression, injection, conversion. To my understanding these functions can be hooked additionally for import. Is it correct? Do you think a default "push to all stores" functionality can be implemented with this?
This plugin may only be used as part of the interoperable image import workflow (POST v2/images/{image_id}/import). *It has no effect on the image data upload call* (PUT v2/images/{image_id}/file).
This is from docs stated for all the builtin plugins. I think the dashboard is primarily using /file endpoint to push. Is it possible to hook any plugins to /file? I would appreciate if you could enlighten me on this subject. Thanks in advance. Regards, Can On Mon, 2 Jun 2025 at 15:02, Abhishek Kekane <akekane@redhat.com> wrote:
Hi Can,
I am not sure how helpful that would be, may be someone from horizon should comment on this.
Thanks & Best Regards,
Abhishek Kekane
On Mon, 2 Jun 2025 at 5:13 PM, Can Özyurt <acozyurt@gmail.com> wrote:
Hi Abhishek,
Thanks for the info.
Do you think a sync hook can be implemented by the admin through plugin/flows or any other way? I don't know much about plugins and their capabilities, so I would appreciate it if you could comment on that.
On Mon, 2 Jun 2025 at 14:06, Abhishek Kekane <akekane@redhat.com> wrote:
Yes, it’s specific to CLI, unfortunately there is no support in dashboard yet. It is still a todo thing but we don’t have capacity at this moment to take this up.
Thanks & Best Regards,
Abhishek Kekane
On Mon, 2 Jun 2025 at 2:25 PM, Can Özyurt <acozyurt@gmail.com> wrote:
Hi Abhishek,
Thanks for a fast response!
Is image-create-via-import specific to CLI? Is there a way to benefit from image-create-via-import via dashboards?
On Mon, 2 Jun 2025 at 11:44, Abhishek Kekane <akekane@redhat.com> wrote:
Hi Can,
You can use glance image-create-via-import command with —all-stores True option or you can specify comma separated name of stores using —stores option for same command.
Thanks & Best Regards,
Abhishek Kekane
On Mon, 2 Jun 2025 at 2:09 PM, Can Özyurt <acozyurt@gmail.com> wrote:
Hi everyone,
AFAIK the procedure to make an image available in all the stores is:
1) Create an image (on a selected/default store) 2) Import the image with all_stores option
I am looking for ways to eliminate the second step and make uploading to all stores the default behaviour.
1) Is there a config for this? 2) If not, can glance plugins/flows be used to implement this behaviour?
Both sync and async approaches are fine as long as images created via dashboard are pushed to all stores all well.
Looking forward to your guidance. Thanks in advance.
Regards, Can
participants (2)
-
Abhishek Kekane
-
Can Özyurt