Skip to content

Instantly share code, notes, and snippets.

@braoru
Created May 5, 2015 05:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save braoru/8244f8cf62f955baa0bb to your computer and use it in GitHub Desktop.
Save braoru/8244f8cf62f955baa0bb to your computer and use it in GitHub Desktop.
(io-deploy-prod)[sebastien@localhost io-deploy-prod]$ python sample_vmware.py
DEBUG:vcr.cassette:Entered context for cassette at hello_world_vcenter.yaml.
INFO:requests.packages.urllib3.connectionpool:Starting new HTTPS connection (1): mtxvcef01
DEBUG:vcr.stubs:Got <Request (GET) https://mtxvcef01//sdk/vimServiceVersions.xml>
INFO:vcr.stubs:<Request (GET) https://mtxvcef01//sdk/vimServiceVersions.xml> not in cassette, sending to real server
DEBUG:requests.packages.urllib3.connectionpool:"GET //sdk/vimServiceVersions.xml HTTP/1.1" 200 552
DEBUG:vcr.stubs:Got <Request (POST) https://mtxvcef01/sdk>
DEBUG:vcr.matchers:Requests <Request (POST) https://mtxvcef01/sdk> and <Request (GET) https://mtxvcef01//sdk/vimServiceVersions.xml> differ according to the following matchers: [(False, <function method at 0x7f6fcd806c80>), (False, <function path at 0x7f6fcd806ed8>)]
INFO:vcr.stubs:<Request (POST) https://mtxvcef01/sdk> not in cassette, sending to real server
DEBUG:vcr.stubs:Got <Request (POST) https://mtxvcef01/sdk>
DEBUG:vcr.matchers:Requests <Request (POST) https://mtxvcef01/sdk> and <Request (GET) https://mtxvcef01//sdk/vimServiceVersions.xml> differ according to the following matchers: [(False, <function method at 0x7f6fcd806c80>), (False, <function path at 0x7f6fcd806ed8>)]
INFO:vcr.stubs:<Request (POST) https://mtxvcef01/sdk> not in cassette, sending to real server
INFO:test_pyvmomi:preparing virtual host creation config...
DEBUG:vcr.stubs:Got <Request (POST) https://mtxvcef01/sdk>
DEBUG:vcr.matchers:Requests <Request (POST) https://mtxvcef01/sdk> and <Request (GET) https://mtxvcef01//sdk/vimServiceVersions.xml> differ according to the following matchers: [(False, <function method at 0x7f6fcd806c80>), (False, <function path at 0x7f6fcd806ed8>)]
INFO:vcr.stubs:<Request (POST) https://mtxvcef01/sdk> not in cassette, sending to real server
DEBUG:vcr.stubs:Got <Request (POST) https://mtxvcef01/sdk>
DEBUG:vcr.matchers:Requests <Request (POST) https://mtxvcef01/sdk> and <Request (GET) https://mtxvcef01//sdk/vimServiceVersions.xml> differ according to the following matchers: [(False, <function method at 0x7f6fcd806c80>), (False, <function path at 0x7f6fcd806ed8>)]
INFO:vcr.stubs:<Request (POST) https://mtxvcef01/sdk> not in cassette, sending to real server
DEBUG:vcr.stubs:Got <Request (POST) https://mtxvcef01/sdk>
DEBUG:vcr.matchers:Requests <Request (POST) https://mtxvcef01/sdk> and <Request (GET) https://mtxvcef01//sdk/vimServiceVersions.xml> differ according to the following matchers: [(False, <function method at 0x7f6fcd806c80>), (False, <function path at 0x7f6fcd806ed8>)]
INFO:vcr.stubs:<Request (POST) https://mtxvcef01/sdk> not in cassette, sending to real server
DEBUG:vcr.stubs:Got <Request (POST) https://mtxvcef01/sdk>
DEBUG:vcr.matchers:Requests <Request (POST) https://mtxvcef01/sdk> and <Request (GET) https://mtxvcef01//sdk/vimServiceVersions.xml> differ according to the following matchers: [(False, <function method at 0x7f6fcd806c80>), (False, <function path at 0x7f6fcd806ed8>)]
INFO:vcr.stubs:<Request (POST) https://mtxvcef01/sdk> not in cassette, sending to real server
DEBUG:vcr.stubs:Got <Request (POST) https://mtxvcef01/sdk>
DEBUG:vcr.matchers:Requests <Request (POST) https://mtxvcef01/sdk> and <Request (GET) https://mtxvcef01//sdk/vimServiceVersions.xml> differ according to the following matchers: [(False, <function method at 0x7f6fcd806c80>), (False, <function path at 0x7f6fcd806ed8>)]
INFO:vcr.stubs:<Request (POST) https://mtxvcef01/sdk> not in cassette, sending to real server
DEBUG:vcr.stubs:Got <Request (POST) https://mtxvcef01/sdk>
DEBUG:vcr.matchers:Requests <Request (POST) https://mtxvcef01/sdk> and <Request (GET) https://mtxvcef01//sdk/vimServiceVersions.xml> differ according to the following matchers: [(False, <function method at 0x7f6fcd806c80>), (False, <function path at 0x7f6fcd806ed8>)]
INFO:vcr.stubs:<Request (POST) https://mtxvcef01/sdk> not in cassette, sending to real server
DEBUG:vcr.stubs:Got <Request (POST) https://mtxvcef01/sdk>
DEBUG:vcr.matchers:Requests <Request (POST) https://mtxvcef01/sdk> and <Request (GET) https://mtxvcef01//sdk/vimServiceVersions.xml> differ according to the following matchers: [(False, <function method at 0x7f6fcd806c80>), (False, <function path at 0x7f6fcd806ed8>)]
INFO:vcr.stubs:<Request (POST) https://mtxvcef01/sdk> not in cassette, sending to real server
'vim.ResourcePool:resgroup-12'
DEBUG:vcr.stubs:Got <Request (POST) https://mtxvcef01/sdk>
DEBUG:vcr.matchers:Requests <Request (POST) https://mtxvcef01/sdk> and <Request (GET) https://mtxvcef01//sdk/vimServiceVersions.xml> differ according to the following matchers: [(False, <function method at 0x7f6fcd806c80>), (False, <function path at 0x7f6fcd806ed8>)]
INFO:vcr.stubs:<Request (POST) https://mtxvcef01/sdk> not in cassette, sending to real server
DEBUG:vcr.stubs:Got <Request (POST) https://mtxvcef01/sdk>
DEBUG:vcr.matchers:Requests <Request (POST) https://mtxvcef01/sdk> and <Request (GET) https://mtxvcef01//sdk/vimServiceVersions.xml> differ according to the following matchers: [(False, <function method at 0x7f6fcd806c80>), (False, <function path at 0x7f6fcd806ed8>)]
INFO:vcr.stubs:<Request (POST) https://mtxvcef01/sdk> not in cassette, sending to real server
DEBUG:vcr.stubs:Got <Request (POST) https://mtxvcef01/sdk>
DEBUG:vcr.matchers:Requests <Request (POST) https://mtxvcef01/sdk> and <Request (GET) https://mtxvcef01//sdk/vimServiceVersions.xml> differ according to the following matchers: [(False, <function method at 0x7f6fcd806c80>), (False, <function path at 0x7f6fcd806ed8>)]
INFO:vcr.stubs:<Request (POST) https://mtxvcef01/sdk> not in cassette, sending to real server
DEBUG:vcr.stubs:Got <Request (POST) https://mtxvcef01/sdk>
DEBUG:vcr.matchers:Requests <Request (POST) https://mtxvcef01/sdk> and <Request (GET) https://mtxvcef01//sdk/vimServiceVersions.xml> differ according to the following matchers: [(False, <function method at 0x7f6fcd806c80>), (False, <function path at 0x7f6fcd806ed8>)]
INFO:vcr.stubs:<Request (POST) https://mtxvcef01/sdk> not in cassette, sending to real server
DEBUG:vcr.stubs:Got <Request (POST) https://mtxvcef01/sdk>
DEBUG:vcr.matchers:Requests <Request (POST) https://mtxvcef01/sdk> and <Request (GET) https://mtxvcef01//sdk/vimServiceVersions.xml> differ according to the following matchers: [(False, <function method at 0x7f6fcd806c80>), (False, <function path at 0x7f6fcd806ed8>)]
INFO:vcr.stubs:<Request (POST) https://mtxvcef01/sdk> not in cassette, sending to real server
DEBUG:vcr.stubs:Got <Request (POST) https://mtxvcef01/sdk>
DEBUG:vcr.matchers:Requests <Request (POST) https://mtxvcef01/sdk> and <Request (GET) https://mtxvcef01//sdk/vimServiceVersions.xml> differ according to the following matchers: [(False, <function method at 0x7f6fcd806c80>), (False, <function path at 0x7f6fcd806ed8>)]
INFO:vcr.stubs:<Request (POST) https://mtxvcef01/sdk> not in cassette, sending to real server
DEBUG:vcr.stubs:Got <Request (POST) https://mtxvcef01/sdk>
DEBUG:vcr.matchers:Requests <Request (POST) https://mtxvcef01/sdk> and <Request (GET) https://mtxvcef01//sdk/vimServiceVersions.xml> differ according to the following matchers: [(False, <function method at 0x7f6fcd806c80>), (False, <function path at 0x7f6fcd806ed8>)]
INFO:vcr.stubs:<Request (POST) https://mtxvcef01/sdk> not in cassette, sending to real server
DEBUG:vcr.stubs:Got <Request (POST) https://mtxvcef01/sdk>
DEBUG:vcr.matchers:Requests <Request (POST) https://mtxvcef01/sdk> and <Request (GET) https://mtxvcef01//sdk/vimServiceVersions.xml> differ according to the following matchers: [(False, <function method at 0x7f6fcd806c80>), (False, <function path at 0x7f6fcd806ed8>)]
INFO:vcr.stubs:<Request (POST) https://mtxvcef01/sdk> not in cassette, sending to real server
DEBUG:vcr.stubs:Got <Request (POST) https://mtxvcef01/sdk>
DEBUG:vcr.matchers:Requests <Request (POST) https://mtxvcef01/sdk> and <Request (GET) https://mtxvcef01//sdk/vimServiceVersions.xml> differ according to the following matchers: [(False, <function method at 0x7f6fcd806c80>), (False, <function path at 0x7f6fcd806ed8>)]
INFO:vcr.stubs:<Request (POST) https://mtxvcef01/sdk> not in cassette, sending to real server
DEBUG:vcr.stubs:Got <Request (POST) https://mtxvcef01/sdk>
DEBUG:vcr.matchers:Requests <Request (POST) https://mtxvcef01/sdk> and <Request (GET) https://mtxvcef01//sdk/vimServiceVersions.xml> differ according to the following matchers: [(False, <function method at 0x7f6fcd806c80>), (False, <function path at 0x7f6fcd806ed8>)]
INFO:vcr.stubs:<Request (POST) https://mtxvcef01/sdk> not in cassette, sending to real server
DEBUG:vcr.stubs:Got <Request (POST) https://mtxvcef01/sdk>
DEBUG:vcr.matchers:Requests <Request (POST) https://mtxvcef01/sdk> and <Request (GET) https://mtxvcef01//sdk/vimServiceVersions.xml> differ according to the following matchers: [(False, <function method at 0x7f6fcd806c80>), (False, <function path at 0x7f6fcd806ed8>)]
INFO:vcr.stubs:<Request (POST) https://mtxvcef01/sdk> not in cassette, sending to real server
DEBUG:vcr.stubs:Got <Request (POST) https://mtxvcef01/sdk>
DEBUG:vcr.matchers:Requests <Request (POST) https://mtxvcef01/sdk> and <Request (GET) https://mtxvcef01//sdk/vimServiceVersions.xml> differ according to the following matchers: [(False, <function method at 0x7f6fcd806c80>), (False, <function path at 0x7f6fcd806ed8>)]
INFO:vcr.stubs:<Request (POST) https://mtxvcef01/sdk> not in cassette, sending to real server
DEBUG:vcr.stubs:Got <Request (POST) https://mtxvcef01/sdk>
DEBUG:vcr.matchers:Requests <Request (POST) https://mtxvcef01/sdk> and <Request (GET) https://mtxvcef01//sdk/vimServiceVersions.xml> differ according to the following matchers: [(False, <function method at 0x7f6fcd806c80>), (False, <function path at 0x7f6fcd806ed8>)]
INFO:vcr.stubs:<Request (POST) https://mtxvcef01/sdk> not in cassette, sending to real server
DEBUG:vcr.stubs:Got <Request (POST) https://mtxvcef01/sdk>
DEBUG:vcr.matchers:Requests <Request (POST) https://mtxvcef01/sdk> and <Request (GET) https://mtxvcef01//sdk/vimServiceVersions.xml> differ according to the following matchers: [(False, <function method at 0x7f6fcd806c80>), (False, <function path at 0x7f6fcd806ed8>)]
INFO:vcr.stubs:<Request (POST) https://mtxvcef01/sdk> not in cassette, sending to real server
DEBUG:vcr.stubs:Got <Request (POST) https://mtxvcef01/sdk>
DEBUG:vcr.matchers:Requests <Request (POST) https://mtxvcef01/sdk> and <Request (GET) https://mtxvcef01//sdk/vimServiceVersions.xml> differ according to the following matchers: [(False, <function method at 0x7f6fcd806c80>), (False, <function path at 0x7f6fcd806ed8>)]
INFO:vcr.stubs:<Request (POST) https://mtxvcef01/sdk> not in cassette, sending to real server
DEBUG:vcr.stubs:Got <Request (POST) https://mtxvcef01/sdk>
DEBUG:vcr.matchers:Requests <Request (POST) https://mtxvcef01/sdk> and <Request (GET) https://mtxvcef01//sdk/vimServiceVersions.xml> differ according to the following matchers: [(False, <function method at 0x7f6fcd806c80>), (False, <function path at 0x7f6fcd806ed8>)]
INFO:vcr.stubs:<Request (POST) https://mtxvcef01/sdk> not in cassette, sending to real server
DEBUG:vcr.stubs:Got <Request (POST) https://mtxvcef01/sdk>
DEBUG:vcr.matchers:Requests <Request (POST) https://mtxvcef01/sdk> and <Request (GET) https://mtxvcef01//sdk/vimServiceVersions.xml> differ according to the following matchers: [(False, <function method at 0x7f6fcd806c80>), (False, <function path at 0x7f6fcd806ed8>)]
INFO:vcr.stubs:<Request (POST) https://mtxvcef01/sdk> not in cassette, sending to real server
DEBUG:vcr.stubs:Got <Request (POST) https://mtxvcef01/sdk>
DEBUG:vcr.matchers:Requests <Request (POST) https://mtxvcef01/sdk> and <Request (GET) https://mtxvcef01//sdk/vimServiceVersions.xml> differ according to the following matchers: [(False, <function method at 0x7f6fcd806c80>), (False, <function path at 0x7f6fcd806ed8>)]
INFO:vcr.stubs:<Request (POST) https://mtxvcef01/sdk> not in cassette, sending to real server
DEBUG:vcr.stubs:Got <Request (POST) https://mtxvcef01/sdk>
DEBUG:vcr.matchers:Requests <Request (POST) https://mtxvcef01/sdk> and <Request (GET) https://mtxvcef01//sdk/vimServiceVersions.xml> differ according to the following matchers: [(False, <function method at 0x7f6fcd806c80>), (False, <function path at 0x7f6fcd806ed8>)]
INFO:vcr.stubs:<Request (POST) https://mtxvcef01/sdk> not in cassette, sending to real server
DEBUG:vcr.stubs:Got <Request (POST) https://mtxvcef01/sdk>
DEBUG:vcr.matchers:Requests <Request (POST) https://mtxvcef01/sdk> and <Request (GET) https://mtxvcef01//sdk/vimServiceVersions.xml> differ according to the following matchers: [(False, <function method at 0x7f6fcd806c80>), (False, <function path at 0x7f6fcd806ed8>)]
INFO:vcr.stubs:<Request (POST) https://mtxvcef01/sdk> not in cassette, sending to real server
DEBUG:vcr.stubs:Got <Request (POST) https://mtxvcef01/sdk>
DEBUG:vcr.matchers:Requests <Request (POST) https://mtxvcef01/sdk> and <Request (GET) https://mtxvcef01//sdk/vimServiceVersions.xml> differ according to the following matchers: [(False, <function method at 0x7f6fcd806c80>), (False, <function path at 0x7f6fcd806ed8>)]
INFO:vcr.stubs:<Request (POST) https://mtxvcef01/sdk> not in cassette, sending to real server
DEBUG:vcr.stubs:Got <Request (POST) https://mtxvcef01/sdk>
DEBUG:vcr.matchers:Requests <Request (POST) https://mtxvcef01/sdk> and <Request (GET) https://mtxvcef01//sdk/vimServiceVersions.xml> differ according to the following matchers: [(False, <function method at 0x7f6fcd806c80>), (False, <function path at 0x7f6fcd806ed8>)]
INFO:vcr.stubs:<Request (POST) https://mtxvcef01/sdk> not in cassette, sending to real server
DEBUG:vcr.stubs:Got <Request (POST) https://mtxvcef01/sdk>
DEBUG:vcr.matchers:Requests <Request (POST) https://mtxvcef01/sdk> and <Request (GET) https://mtxvcef01//sdk/vimServiceVersions.xml> differ according to the following matchers: [(False, <function method at 0x7f6fcd806c80>), (False, <function path at 0x7f6fcd806ed8>)]
INFO:vcr.stubs:<Request (POST) https://mtxvcef01/sdk> not in cassette, sending to real server
DEBUG:vcr.stubs:Got <Request (POST) https://mtxvcef01/sdk>
DEBUG:vcr.matchers:Requests <Request (POST) https://mtxvcef01/sdk> and <Request (GET) https://mtxvcef01//sdk/vimServiceVersions.xml> differ according to the following matchers: [(False, <function method at 0x7f6fcd806c80>), (False, <function path at 0x7f6fcd806ed8>)]
INFO:vcr.stubs:<Request (POST) https://mtxvcef01/sdk> not in cassette, sending to real server
DEBUG:vcr.stubs:Got <Request (POST) https://mtxvcef01/sdk>
DEBUG:vcr.matchers:Requests <Request (POST) https://mtxvcef01/sdk> and <Request (GET) https://mtxvcef01//sdk/vimServiceVersions.xml> differ according to the following matchers: [(False, <function method at 0x7f6fcd806c80>), (False, <function path at 0x7f6fcd806ed8>)]
INFO:vcr.stubs:<Request (POST) https://mtxvcef01/sdk> not in cassette, sending to real server
DEBUG:vcr.stubs:Got <Request (POST) https://mtxvcef01/sdk>
DEBUG:vcr.matchers:Requests <Request (POST) https://mtxvcef01/sdk> and <Request (GET) https://mtxvcef01//sdk/vimServiceVersions.xml> differ according to the following matchers: [(False, <function method at 0x7f6fcd806c80>), (False, <function path at 0x7f6fcd806ed8>)]
INFO:vcr.stubs:<Request (POST) https://mtxvcef01/sdk> not in cassette, sending to real server
DEBUG:vcr.stubs:Got <Request (POST) https://mtxvcef01/sdk>
DEBUG:vcr.matchers:Requests <Request (POST) https://mtxvcef01/sdk> and <Request (GET) https://mtxvcef01//sdk/vimServiceVersions.xml> differ according to the following matchers: [(False, <function method at 0x7f6fcd806c80>), (False, <function path at 0x7f6fcd806ed8>)]
INFO:vcr.stubs:<Request (POST) https://mtxvcef01/sdk> not in cassette, sending to real server
DEBUG:vcr.stubs:Got <Request (POST) https://mtxvcef01/sdk>
DEBUG:vcr.matchers:Requests <Request (POST) https://mtxvcef01/sdk> and <Request (GET) https://mtxvcef01//sdk/vimServiceVersions.xml> differ according to the following matchers: [(False, <function method at 0x7f6fcd806c80>), (False, <function path at 0x7f6fcd806ed8>)]
INFO:vcr.stubs:<Request (POST) https://mtxvcef01/sdk> not in cassette, sending to real server
DEBUG:vcr.stubs:Got <Request (POST) https://mtxvcef01/sdk>
DEBUG:vcr.matchers:Requests <Request (POST) https://mtxvcef01/sdk> and <Request (GET) https://mtxvcef01//sdk/vimServiceVersions.xml> differ according to the following matchers: [(False, <function method at 0x7f6fcd806c80>), (False, <function path at 0x7f6fcd806ed8>)]
INFO:vcr.stubs:<Request (POST) https://mtxvcef01/sdk> not in cassette, sending to real server
DEBUG:vcr.stubs:Got <Request (POST) https://mtxvcef01/sdk>
DEBUG:vcr.matchers:Requests <Request (POST) https://mtxvcef01/sdk> and <Request (GET) https://mtxvcef01//sdk/vimServiceVersions.xml> differ according to the following matchers: [(False, <function method at 0x7f6fcd806c80>), (False, <function path at 0x7f6fcd806ed8>)]
INFO:vcr.stubs:<Request (POST) https://mtxvcef01/sdk> not in cassette, sending to real server
DEBUG:vcr.stubs:Got <Request (POST) https://mtxvcef01/sdk>
DEBUG:vcr.matchers:Requests <Request (POST) https://mtxvcef01/sdk> and <Request (GET) https://mtxvcef01//sdk/vimServiceVersions.xml> differ according to the following matchers: [(False, <function method at 0x7f6fcd806c80>), (False, <function path at 0x7f6fcd806ed8>)]
INFO:vcr.stubs:<Request (POST) https://mtxvcef01/sdk> not in cassette, sending to real server
DEBUG:vcr.stubs:Got <Request (POST) https://mtxvcef01/sdk>
DEBUG:vcr.matchers:Requests <Request (POST) https://mtxvcef01/sdk> and <Request (GET) https://mtxvcef01//sdk/vimServiceVersions.xml> differ according to the following matchers: [(False, <function method at 0x7f6fcd806c80>), (False, <function path at 0x7f6fcd806ed8>)]
INFO:vcr.stubs:<Request (POST) https://mtxvcef01/sdk> not in cassette, sending to real server
DEBUG:vcr.stubs:Got <Request (POST) https://mtxvcef01/sdk>
DEBUG:vcr.matchers:Requests <Request (POST) https://mtxvcef01/sdk> and <Request (GET) https://mtxvcef01//sdk/vimServiceVersions.xml> differ according to the following matchers: [(False, <function method at 0x7f6fcd806c80>), (False, <function path at 0x7f6fcd806ed8>)]
INFO:vcr.stubs:<Request (POST) https://mtxvcef01/sdk> not in cassette, sending to real server
DEBUG:vcr.stubs:Got <Request (POST) https://mtxvcef01/sdk>
DEBUG:vcr.matchers:Requests <Request (POST) https://mtxvcef01/sdk> and <Request (GET) https://mtxvcef01//sdk/vimServiceVersions.xml> differ according to the following matchers: [(False, <function method at 0x7f6fcd806c80>), (False, <function path at 0x7f6fcd806ed8>)]
INFO:vcr.stubs:<Request (POST) https://mtxvcef01/sdk> not in cassette, sending to real server
DEBUG:vcr.stubs:Got <Request (POST) https://mtxvcef01/sdk>
DEBUG:vcr.matchers:Requests <Request (POST) https://mtxvcef01/sdk> and <Request (GET) https://mtxvcef01//sdk/vimServiceVersions.xml> differ according to the following matchers: [(False, <function method at 0x7f6fcd806c80>), (False, <function path at 0x7f6fcd806ed8>)]
INFO:vcr.stubs:<Request (POST) https://mtxvcef01/sdk> not in cassette, sending to real server
DEBUG:vcr.stubs:Got <Request (POST) https://mtxvcef01/sdk>
DEBUG:vcr.matchers:Requests <Request (POST) https://mtxvcef01/sdk> and <Request (GET) https://mtxvcef01//sdk/vimServiceVersions.xml> differ according to the following matchers: [(False, <function method at 0x7f6fcd806c80>), (False, <function path at 0x7f6fcd806ed8>)]
INFO:vcr.stubs:<Request (POST) https://mtxvcef01/sdk> not in cassette, sending to real server
{
'vim.Datastore:datastore-11305': 'Local_DS-mtaesx7',
'vim.Datastore:datastore-11310': 'Local_DS-mtaesx8',
'vim.Datastore:datastore-11308': 'Local_DS-mtbesx7',
'vim.Datastore:datastore-11312': 'Local_DS-mtbesx8',
'vim.Datastore:datastore-15': 'Local_DS_mtaesx1',
'vim.Datastore:datastore-31': 'Local_DS_mtaesx2',
'vim.Datastore:datastore-39': 'Local_DS_mtaesx3',
'vim.Datastore:datastore-41': 'Local_DS_mtaesx4',
'vim.Datastore:datastore-6681': 'Local_DS_mtaesx5',
'vim.Datastore:datastore-7196': 'Local_DS_mtaesx6',
'vim.Datastore:datastore-34': 'Local_DS_mtbesx1',
'vim.Datastore:datastore-37': 'Local_DS_mtbesx2',
'vim.Datastore:datastore-43': 'Local_DS_mtbesx3',
'vim.Datastore:datastore-45': 'Local_DS_mtbesx4',
'vim.Datastore:datastore-6677': 'Local_DS_mtbesx5',
'vim.Datastore:datastore-7181': 'Local_DS_mtbesx6',
'vim.Datastore:datastore-5664': 'MTA_ESA',
'vim.Datastore:datastore-167': 'MTA_INFRA',
'vim.Datastore:datastore-273': 'MTA_NONPROD',
'vim.Datastore:datastore-1464': 'MTA_OSA',
'vim.Datastore:datastore-5666': 'MTA_PROD',
'vim.Datastore:datastore-5668': 'MTB_ESB',
'vim.Datastore:datastore-168': 'MTB_INFRA',
'vim.Datastore:datastore-274': 'MTB_NONPROD',
'vim.Datastore:datastore-1466': 'MTB_OSB',
'vim.Datastore:datastore-5670': 'MTB_PROD',
'vim.Datastore:datastore-283': 'MTX_APPS',
'vim.Datastore:datastore-282': 'MTX_DBS',
'vim.Datastore:datastore-281': 'MTX_INFRA',
'vim.Datastore:datastore-12191': 'Local_DS_mtbesx9',
'vim.Datastore:datastore-12200': 'Local_DS_mtaesx10',
'vim.Datastore:datastore-12205': 'Local_DS_mtbesx10',
'vim.Datastore:datastore-12187': 'Local_DS_mtaesx9',
}
DEBUG:vcr.stubs:Got <Request (POST) https://mtxvcef01/sdk>
DEBUG:vcr.matchers:Requests <Request (POST) https://mtxvcef01/sdk> and <Request (GET) https://mtxvcef01//sdk/vimServiceVersions.xml> differ according to the following matchers: [(False, <function method at 0x7f6fcd806c80>), (False, <function path at 0x7f6fcd806ed8>)]
INFO:vcr.stubs:<Request (POST) https://mtxvcef01/sdk> not in cassette, sending to real server
DEBUG:vcr.stubs:Got <Request (POST) https://mtxvcef01/sdk>
DEBUG:vcr.matchers:Requests <Request (POST) https://mtxvcef01/sdk> and <Request (GET) https://mtxvcef01//sdk/vimServiceVersions.xml> differ according to the following matchers: [(False, <function method at 0x7f6fcd806c80>), (False, <function path at 0x7f6fcd806ed8>)]
INFO:vcr.stubs:<Request (POST) https://mtxvcef01/sdk> not in cassette, sending to real server
DEBUG:vcr.stubs:Got <Request (POST) https://mtxvcef01/sdk>
DEBUG:vcr.matchers:Requests <Request (POST) https://mtxvcef01/sdk> and <Request (GET) https://mtxvcef01//sdk/vimServiceVersions.xml> differ according to the following matchers: [(False, <function method at 0x7f6fcd806c80>), (False, <function path at 0x7f6fcd806ed8>)]
INFO:vcr.stubs:<Request (POST) https://mtxvcef01/sdk> not in cassette, sending to real server
DEBUG:vcr.stubs:Got <Request (POST) https://mtxvcef01/sdk>
DEBUG:vcr.matchers:Requests <Request (POST) https://mtxvcef01/sdk> and <Request (GET) https://mtxvcef01//sdk/vimServiceVersions.xml> differ according to the following matchers: [(False, <function method at 0x7f6fcd806c80>), (False, <function path at 0x7f6fcd806ed8>)]
INFO:vcr.stubs:<Request (POST) https://mtxvcef01/sdk> not in cassette, sending to real server
DEBUG:vcr.stubs:Got <Request (POST) https://mtxvcef01/sdk>
DEBUG:vcr.matchers:Requests <Request (POST) https://mtxvcef01/sdk> and <Request (GET) https://mtxvcef01//sdk/vimServiceVersions.xml> differ according to the following matchers: [(False, <function method at 0x7f6fcd806c80>), (False, <function path at 0x7f6fcd806ed8>)]
INFO:vcr.stubs:<Request (POST) https://mtxvcef01/sdk> not in cassette, sending to real server
DEBUG:test_pyvmomi:'vim.HostSystem:host-36'
DEBUG:test_pyvmomi:creation specs generated
DEBUG:test_pyvmomi:pushing creation specs to vcenter
DEBUG:vcr.stubs:Got <Request (POST) https://mtxvcef01/sdk>
DEBUG:vcr.matchers:Requests <Request (POST) https://mtxvcef01/sdk> and <Request (GET) https://mtxvcef01//sdk/vimServiceVersions.xml> differ according to the following matchers: [(False, <function method at 0x7f6fcd806c80>), (False, <function path at 0x7f6fcd806ed8>)]
INFO:vcr.stubs:<Request (POST) https://mtxvcef01/sdk> not in cassette, sending to real server
DEBUG:vcr.stubs:Got <Request (POST) https://mtxvcef01/sdk>
DEBUG:vcr.matchers:Requests <Request (POST) https://mtxvcef01/sdk> and <Request (GET) https://mtxvcef01//sdk/vimServiceVersions.xml> differ according to the following matchers: [(False, <function method at 0x7f6fcd806c80>), (False, <function path at 0x7f6fcd806ed8>)]
INFO:vcr.stubs:<Request (POST) https://mtxvcef01/sdk> not in cassette, sending to real server
DEBUG:vcr.stubs:Got <Request (POST) https://mtxvcef01/sdk>
DEBUG:vcr.matchers:Requests <Request (POST) https://mtxvcef01/sdk> and <Request (GET) https://mtxvcef01//sdk/vimServiceVersions.xml> differ according to the following matchers: [(False, <function method at 0x7f6fcd806c80>), (False, <function path at 0x7f6fcd806ed8>)]
INFO:vcr.stubs:<Request (POST) https://mtxvcef01/sdk> not in cassette, sending to real server
DEBUG:vcr.stubs:Got <Request (POST) https://mtxvcef01/sdk>
DEBUG:vcr.matchers:Requests <Request (POST) https://mtxvcef01/sdk> and <Request (GET) https://mtxvcef01//sdk/vimServiceVersions.xml> differ according to the following matchers: [(False, <function method at 0x7f6fcd806c80>), (False, <function path at 0x7f6fcd806ed8>)]
INFO:vcr.stubs:<Request (POST) https://mtxvcef01/sdk> not in cassette, sending to real server
DEBUG:vcr.stubs:Got <Request (POST) https://mtxvcef01/sdk>
DEBUG:vcr.matchers:Requests <Request (POST) https://mtxvcef01/sdk> and <Request (GET) https://mtxvcef01//sdk/vimServiceVersions.xml> differ according to the following matchers: [(False, <function method at 0x7f6fcd806c80>), (False, <function path at 0x7f6fcd806ed8>)]
INFO:vcr.stubs:<Request (POST) https://mtxvcef01/sdk> not in cassette, sending to real server
DEBUG:vcr.stubs:Got <Request (POST) https://mtxvcef01/sdk>
DEBUG:vcr.matchers:Requests <Request (POST) https://mtxvcef01/sdk> and <Request (GET) https://mtxvcef01//sdk/vimServiceVersions.xml> differ according to the following matchers: [(False, <function method at 0x7f6fcd806c80>), (False, <function path at 0x7f6fcd806ed8>)]
INFO:vcr.stubs:<Request (POST) https://mtxvcef01/sdk> not in cassette, sending to real server
DEBUG:vcr.stubs:Got <Request (POST) https://mtxvcef01/sdk>
DEBUG:vcr.matchers:Requests <Request (POST) https://mtxvcef01/sdk> and <Request (GET) https://mtxvcef01//sdk/vimServiceVersions.xml> differ according to the following matchers: [(False, <function method at 0x7f6fcd806c80>), (False, <function path at 0x7f6fcd806ed8>)]
INFO:vcr.stubs:<Request (POST) https://mtxvcef01/sdk> not in cassette, sending to real server
DEBUG:vcr.stubs:Got <Request (POST) https://mtxvcef01/sdk>
DEBUG:vcr.matchers:Requests <Request (POST) https://mtxvcef01/sdk> and <Request (GET) https://mtxvcef01//sdk/vimServiceVersions.xml> differ according to the following matchers: [(False, <function method at 0x7f6fcd806c80>), (False, <function path at 0x7f6fcd806ed8>)]
INFO:vcr.stubs:<Request (POST) https://mtxvcef01/sdk> not in cassette, sending to real server
DEBUG:vcr.stubs:Got <Request (POST) https://mtxvcef01/sdk>
DEBUG:vcr.matchers:Requests <Request (POST) https://mtxvcef01/sdk> and <Request (GET) https://mtxvcef01//sdk/vimServiceVersions.xml> differ according to the following matchers: [(False, <function method at 0x7f6fcd806c80>), (False, <function path at 0x7f6fcd806ed8>)]
INFO:vcr.stubs:<Request (POST) https://mtxvcef01/sdk> not in cassette, sending to real server
DEBUG:vcr.cassette:Exiting context for cassette at hello_world_vcenter.yaml.
Traceback (most recent call last):
File "sample_vmware.py", line 495, in <module>
logger.debug(PyVmomiHelper.find_mac_address(vm))
File "sample_vmware.py", line 63, in find_mac_address
for device in vm.config.hardware.device:
AttributeError: 'NoneType' object has no attribute 'config'
(io-deploy-prod)[sebastien@localhost io-deploy-prod]$ ll
total 428
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment