Giter Site home page Giter Site logo

psphere-project / psphere Goto Github PK

View Code? Open in Web Editor NEW
53.0 53.0 30.0 560 KB

vSphere SDK for Python. Provision, manage and query objects in your vSphere infrastructure.

Home Page: http://psphere.readthedocs.org/

License: Apache License 2.0

Python 100.00%

psphere's People

Contributors

adamv avatar daubers avatar dkliban avatar frankcroth avatar graingert avatar imcleod avatar jkinred avatar noorul avatar psav avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

psphere's Issues

Get vm ipaddress

I'm trying to run this code:

#!/usr/bin/env python
# -*- coding: utf-8 -*-

import os
import sys
import time
import ConfigParser
from psphere.client import Client
from psphere.managedobjects import VirtualMachine
from pprint import pprint

client = Client("myHost", "Administrator", "myPassword")
vms = VirtualMachine.all(client)
for vm in vms:
    vm.summary.guest.ipAddress
    vm.config.hardware.memoryMB

And I get the following:

No handlers could be found for logger "psphere.config"
Traceback (most recent call last):
  File "./vmware2.py", line 15, in <module>
    vm.summary.guest.ipAddress
AttributeError: VirtualMachineGuestSummary instance has no attribute 'ipAddress'

What I'm I doing wrong?

VM annotation

I haven't found how to update VM's annotation from within psphere (vm.summary.config.annotation). I would like to set some metadata in there.

Is it a missing feature or I was blind and haven't found that?

Error in Importing OVF : ImportVApp

Hi,
I want to import ovf using psphere and when I called ImportVApp funtion its throwing an error. First I have created ovfDescriptor then pass this ovfDescriptor to create ImportOvfSpecParam and so far I have successfully executed my code. But in last step of calling ImportVApp() it's throwing an error message.

Error:
ImportVApp Type not found: 'configSpec':

Code where error lies:
httpNfcLease = rp.ImportVApp(spec= ovfImportResult.importSpec, folder= vmfolder,host= host)

StoragePod mob doesn't map correctly to returned results

StoragePod is the new Folder reference for Storage DRS pools. Currently, in the supported vmware platform you can do find_entity_views(mo_ref => 'StoragePod')...etc.

In psphere, this should work like a Datastore, HostSystem, ComputeResource, etc:

storagepods = StoragePod.all(client)

Modification of the property collector will need to be done to retrieve the new results.

SSL issue

CentOS release 6.5 (Final)
Python 2.6.6
psphere (0.5.2)

Attempting to connect to endpoint and getting
urllib2.URLError: <urlopen error [Errno 1] _ssl.c:492: error:100AE081:elliptic curve routines:EC_GROUP_new_by_curve_name:unknown group>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.