The i18n team has decided not to translate the logs because it
seems like it not very useful; operators prefer to have them in
English so that they can search for those strings on the internet.
Partially fix on nova/virt other paths will be fixed on next commits
Change-Id: Ie7821aa4a5147cdb0616741bd1a1b1fc22080440
We get a warning logged every time we try to load up osinfo
with an image metadata that does not have the 'os_distro'
property set. We should be smarter and just not try to load
osinfo at all if we know we cannot get results.
Change-Id: I79ebea3ed222fb0db01d0a33c62a677d0381f66c
Closes-Bug: #1675602
Currently osinfo module emits multiple error messages when libosinfo
module cannot be loaded. Since loading the libosinfo module is optional,
it should only report this once as an INFO log message.
Change-Id: If4b582d1ec39ba79b4f993543da11ec8c6bd023b
Closes-bug: #1543288
All osinfo tests will use the fake libosinfo module instead of
mocking it.
Adjsting the HardwareProperties to return virtio instead of virtio-net
and virtio-block as these names are not suppoted.
Partially implements blueprint libvirt-hardware-policy-from-libosinfo
Change-Id: I995d3fd3d5234327ff5e91c658833ff2d3a1562c
By default, hardware properties will be retrieved from the Glance image
properties. However, if such has not been provided, LibOsInfo database will
serve as an alternative source for these values.
In case, guest OS cannot be found in the database or the use of libosinfo is
disabled, default system values will be used.
Users will be able to set the Operating system id or a short-id via
the new os_name property in Glance image properties:
# glance image-update \
--property os_distro=fedora21 \
name-of-my-fedora-image
# glance image-update \
--property os_distro=http://fedoraproject.org/fedora/21 \
name-of-my-fedora-image
DocImpact
Partially implements blueprint libvirt-hardware-policy-from-libosinfo
Change-Id: I1ab0c33f7ac4690b72a14e7748356a6ec22c9308
Introducing a new library to retrieve information from libosinfo database.
Libosinfo database provides information about an optimal hardware configuration
for the guest instances, based on their Operating Systems.
Using this library it will be easier for the end user to boot a guest instance
with an optimal configuration by just providing the guest's OS name.
The following are the acceptable attributes:
* 'short-id' - the short name of the OS
eg fedora21, winxp
* 'id' - the unique URI identifier of the OS
eg http://fedoraproject.org/fedora/21, http://microsoft.com/win/xp
DocImpact
Partially Implements blueprint libvirt-hardware-policy-from-libosinfo
Change-Id: I35564d6280883e912030236fc23f233d19f56d38