Sync from SUSE:SLFO:Main vhostmd revision f727423f492296c432f8014df66c96bd
This commit is contained in:
parent
0eca4e900d
commit
3ebf8c6557
@ -1,9 +1,16 @@
|
|||||||
Disable virtio transport in SUSE-provided config file
|
SUSE-specific config file changes
|
||||||
|
|
||||||
In SUSE distros, the default vhostmd config file has only enabled
|
In SUSE distros, the default vhostmd config file has historically only
|
||||||
one transport - vbd. Comment the recently added virtio transport.
|
enabled the vbd transport. Preserve the behavior by commenting the
|
||||||
Users can uncomment it and restart vhostmd if virtio transport is
|
recently added virtio transport. Users can uncomment it and restart
|
||||||
desired, similar to the xenstore transport.
|
vhostmd if virtio transport is desired, similar to the xenstore transport.
|
||||||
|
|
||||||
|
In SUSE enterprise distros, the 'Vendor' field in package information
|
||||||
|
contains 'SUSE LLC <https://www.suse.com/>'. This field is used as the
|
||||||
|
value for the 'VirtualizationVendor' metric. The URL contains special
|
||||||
|
XML characters that need escaped. A simpler and perhaps better approach
|
||||||
|
is to strip the URL and only provide the company name. (One could argue
|
||||||
|
this hunk of the patch is upstream material.)
|
||||||
|
|
||||||
Index: vhostmd-1.2/vhostmd.xml
|
Index: vhostmd-1.2/vhostmd.xml
|
||||||
===================================================================
|
===================================================================
|
||||||
@ -18,3 +25,12 @@ Index: vhostmd-1.2/vhostmd.xml
|
|||||||
<!-- <transport>xenstore</transport> -->
|
<!-- <transport>xenstore</transport> -->
|
||||||
</globals>
|
</globals>
|
||||||
<metrics>
|
<metrics>
|
||||||
|
@@ -53,7 +53,7 @@ the logical && operator must be replaced
|
||||||
|
<metric type="string" context="host">
|
||||||
|
<name>VirtualizationVendor</name>
|
||||||
|
<action>
|
||||||
|
- rpm -q --qf '%{VENDOR}\n' -qf /etc/os-release
|
||||||
|
+ rpm -q --qf '%{VENDOR}\n' -f /etc/os-release | sed -e 's/<.*//' -e 's/ *$//'
|
||||||
|
</action>
|
||||||
|
</metric>
|
||||||
|
<metric type="string" context="host">
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Dec 6 00:25:00 UTC 2024 - James Fehlig <jfehlig@suse.com>
|
||||||
|
|
||||||
|
- conf: Update the 'VirtualizationVendor' action to strip any
|
||||||
|
URLs that may follow the vendor name
|
||||||
|
Modified vhostmd-conf.patch
|
||||||
|
bsc#1230961
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Oct 1 17:55:04 UTC 2024 - James Fehlig <jfehlig@suse.com>
|
Tue Oct 1 17:55:04 UTC 2024 - James Fehlig <jfehlig@suse.com>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user