cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CLOUDSTACK-8352) [marvin] Integrate vcenter communication through marvin
Date Wed, 01 Apr 2015 09:45:53 GMT

    [ https://issues.apache.org/jira/browse/CLOUDSTACK-8352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14390294#comment-14390294
] 

ASF subversion and git services commented on CLOUDSTACK-8352:
-------------------------------------------------------------

Commit c9fc7e65b7e823de0cda21f5c6175a65a18f73c9 in cloudstack's branch refs/heads/master from
SrikanteswaraRao Talluri
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=c9fc7e6 ]

CLOUDSTACK-8352: vcenter library for marvin which makes use of 'pyvmomi'
vmware sdk python binding to interact with vcenter server.

Tested against vcenter 5.5


> [marvin] Integrate  vcenter communication through  marvin
> ---------------------------------------------------------
>
>                 Key: CLOUDSTACK-8352
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-8352
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: marvin
>    Affects Versions: 4.6.0
>            Reporter: Srikanteswararao Talluri
>            Assignee: Srikanteswararao Talluri
>             Fix For: 4.6.0
>
>
> Marvin should be able to get details of host, vm, dvswitch etc., from vcenter.
> This is going to be implemented using vmware sdk for python pyvmomi.
> Usage:
> vc_object = Vcenter("x.x.x.x", "username", "password")
> print '###get one dc########'
> print(vc_object.get_datacenters(name='testDC'))
> print '###get multiple dcs########'
> for i in vc_object.get_datacenters():
> print
> print '###get one dv########'
> print vc_object.get_dvswitches(name='dvSwitch')
> print '###get multiple dvs########'
> for i in vc_object.get_dvswitches():
> print
> print '###get one dvportgroup########'
> print(vc_object.get_dvportgroups(name='cloud.guest.207.200.1-dvSwitch'))
> print "###get one dvportgroup and the vms associated with it########"
> for vm in vc_object.get_dvportgroups(name='cloud.guest.207.200.1-dvSwitch')[0]['dvportgroup']['vmlist']:
> print(vm.name)
> print(vm.network)
> print '###get multiple dvportgroups########'
> for i in vc_object.get_dvportgroups():
> print
> print vc_object.get_vms(name='VM1')



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message