Change in vdsm[ovirt-3.5]: Handle and store serial to guest device names mapping

vfeenstr at redhat.com vfeenstr at redhat.com
Wed Aug 20 15:33:03 UTC 2014


Vinzenz Feenstra has uploaded a new change for review.

Change subject: Handle and store serial to guest device names mapping
......................................................................

Handle and store serial to guest device names mapping

The serial to guest device name mapping helps to identify 'physical' hard
drives in the guest OS from the outside and correlate our disk images to
those drives and their name in the guest OS.

Guest agent implementation: http://gerrit.ovirt.org/#/c/31465/

Change-Id: I69db18414b17b23eb7bcbfbd8b2584f622e53276
Bug-Url: https://bugzilla.redhat.com/1127607
Signed-off-by: Vinzenz Feenstra <vfeenstr at redhat.com>
Reviewed-on: http://gerrit.ovirt.org/31497
Reviewed-by: Allon Mureinik <amureini at redhat.com>
Reviewed-by: Liron Aravot <laravot at redhat.com>
Reviewed-by: Francesco Romani <fromani at redhat.com>
Reviewed-by: Dan Kenigsberg <danken at redhat.com>
(cherry picked from commit 7621349e624dd4a3fcced6137d3cb4e2927a3865)
---
M vdsm/virt/guestagent.py
1 file changed, 2 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/25/31725/1

diff --git a/vdsm/virt/guestagent.py b/vdsm/virt/guestagent.py
index 31c0a26..1435c57 100644
--- a/vdsm/virt/guestagent.py
+++ b/vdsm/virt/guestagent.py
@@ -120,6 +120,7 @@
         self._sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
         self._stopped = True
         self.guestStatus = None
+        self.guestDiskMapping = {}
         self.guestInfo = {
             'username': user,
             'memUsage': 0,
@@ -303,6 +304,7 @@
                 disk['used'] = str(disk['used'])
                 disks.append(disk)
             self.guestInfo['disksUsage'] = disks
+            self.guestDiskMapping = args.get('mapping', {})
         elif message == 'number-of-cpus':
             self.guestInfo['guestCPUCount'] = int(args['count'])
         else:


-- 
To view, visit http://gerrit.ovirt.org/31725
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I69db18414b17b23eb7bcbfbd8b2584f622e53276
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: ovirt-3.5
Gerrit-Owner: Vinzenz Feenstra <vfeenstr at redhat.com>


More information about the vdsm-patches mailing list