Re: [one-users] oneimage filter by path or source
Hi, On Sat, Sep 13, 2014 at 2:45 PM, Daniel Dehennin daniel.dehen...@baby-gnu.org wrote: Maxim Terletskiy terlets...@emu.ru writes: Is it possible to list images with specific path or source? Good afternoon, This feature[1] is already registered in the backlog. Regards. Footnotes: [1] http://dev.opennebula.org/issues/2372 Actually, since the source is not a column, ticket 2372 would not apply. This would require a more general filter. Maxim, what would be your use case? If you need to do a one-time search, you can filter the data through the api [1] or using xpath: $ oneimage list -x | xpath -e '/IMAGE_POOL/IMAGE[PATH=/tmp/ttylinux.raw]/ID' Regards. [1] http://docs.opennebula.org/4.8/integration/system_interfaces/ruby.html -- Carlos Martín, MSc Project Engineer OpenNebula - Flexible Enterprise Cloud Made Simple www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org | @OpenNebula http://twitter.com/opennebula cmar...@opennebula.org ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] oneimage filter by path or source
Carlos Martín Sánchez cmar...@opennebula.org writes: [...] Actually, since the source is not a column, ticket 2372 would not apply. This would require a more general filter. Maxim, what would be your use case? If you need to do a one-time search, you can filter the data through the api [1] or using xpath: $ oneimage list -x | xpath -e '/IMAGE_POOL/IMAGE[PATH=/tmp/ttylinux.raw]/ID' +1 I used the xpath tool from libxml-xpath-perl to make several complicated XPath queries to find images not used by any templates. Finaly, I prefer this solution since it's more UNIX' spirit, piping several simple[1] commands. Regards. Footnotes: [1] In term of XPath, simple looks like a joke ;-) -- Daniel Dehennin Récupérer ma clef GPG: gpg --recv-keys 0xCC1E9E5B7A6FE2DF Fingerprint: 3E69 014E 5C23 50E8 9ED6 2AAD CC1E 9E5B 7A6F E2DF signature.asc Description: PGP signature ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
[one-users] oneimage filter by path or source
Is it possible to list images with specific path or source? ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] oneimage filter by path or source
Maxim Terletskiy terlets...@emu.ru writes: Is it possible to list images with specific path or source? Good afternoon, This feature[1] is already registered in the backlog. Regards. Footnotes: [1] http://dev.opennebula.org/issues/2372 -- Daniel Dehennin Récupérer ma clef GPG: gpg --recv-keys 0xCC1E9E5B7A6FE2DF Fingerprint: 3E69 014E 5C23 50E8 9ED6 2AAD CC1E 9E5B 7A6F E2DF signature.asc Description: PGP signature ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org