bug 921087: i18n-key and local-storage hard-coded in xenapi
This fix introduces a new flag 'sr_matching_filter', whose default value is
'other-config:i18n-key=local-storage'. This filter is used for finding the
SR on which to install guest instances. The default value is the Local
Storage in default XenServer/XCP installations, and it is what was hard-coded
so far.
To select an SR with a different matching criteria, this flag can be set
to 'other-config:my_favorite_sr=true'. On the other hand, to fall back on
the Default SR, as displayed by XenCenter and as returned by
xenapi.pool.get_default_SR, this flag can be set to to 'default-sr:true'.
This changeset also makes a small code simplification along the way.
Reviewed: https:/ /review. openstack. org/3380 github. com/openstack/ nova/commit/ c56d677a7313b8b 29406eaebdd27e5 9b2c1ee927
Committed: http://
Submitter: Jenkins
Branch: master
commit c56d677a7313b8b 29406eaebdd27e5 9b2c1ee927
Author: Armando Migliaccio <email address hidden>
Date: Wed Jan 25 00:35:34 2012 +0000
bug 921087: i18n-key and local-storage hard-coded in xenapi
This fix introduces a new flag 'sr_matching_ filter' , whose default value is config: i18n-key= local-storage' . This filter is used for finding the
'other-
SR on which to install guest instances. The default value is the Local
Storage in default XenServer/XCP installations, and it is what was hard-coded
so far.
To select an SR with a different matching criteria, this flag can be set config: my_favorite_ sr=true' . On the other hand, to fall back on pool.get_ default_ SR, this flag can be set to to 'default-sr:true'.
to 'other-
the Default SR, as displayed by XenCenter and as returned by
xenapi.
This changeset also makes a small code simplification along the way.
Change-Id: Ia5ee438389c59a 5ef0b858e854864 3d57ef16c77