Change in vdsm[master]: Add simple text-based console in vdsClient

zhshzhou at linux.vnet.ibm.com zhshzhou at linux.vnet.ibm.com
Thu Oct 11 09:59:18 UTC 2012


Zhou Zheng Sheng has posted comments on this change.

Change subject: Add simple text-based console in vdsClient
......................................................................


Patch Set 3: (1 inline comment)

....................................................
File vdsm_cli/vdsClient.py
Line 1621:         if len(response['vmList']) == 0:
Line 1622:             return -1, 'Can not find vm \'%s\'' % args[0]
Line 1623: 
Line 1624:         vmName = response['vmList'][0]['vmName']
Line 1625:         p = subprocess.Popen(["virsh", "-c", conn, "console", vmName])
When I try to connect libvirtd using this code, virsh says it can not find CA cert in /etc/pki/CA. 

Since vdsm will configure libvirtd to use the CA cert and keys in /etc/pki/vdsm, I have to use a special connection string to connect to libvirtd:

virsh -c 'qemu+tls:///system?pkipath=/etc/pki/vdsm/certs/;keyfile=/etc/pki/vdsm/keys/vdsmkey.pem'

I find this information on http://libvirt.org/remote.html#Remote_URI_parameters
Line 1626:         p.wait()
Line 1627:         return 0, ''
Line 1628: 
Line 1629: if __name__ == '__main__':


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

Gerrit-MessageType: comment
Gerrit-Change-Id: I368dbcbc2e180161f256f3fb450c344acb6a6c8a
Gerrit-PatchSet: 3
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Xu He Jie <xuhj at linux.vnet.ibm.com>
Gerrit-Reviewer: Dan Kenigsberg <danken at redhat.com>
Gerrit-Reviewer: Mark Wu <wudxw at linux.vnet.ibm.com>
Gerrit-Reviewer: Ryan Harper <ryanh at us.ibm.com>
Gerrit-Reviewer: ShaoHe Feng <shaohef at linux.vnet.ibm.com>
Gerrit-Reviewer: Xu He Jie <xuhj at linux.vnet.ibm.com>
Gerrit-Reviewer: Zhou Zheng Sheng <zhshzhou at linux.vnet.ibm.com>


More information about the vdsm-patches mailing list