hpreston / cisco_cloud

Sample Python Library’s and Scripts for working with Cisco’s Cloud Software Packages. Including: UCS Director Intercloud Fabric Director Prime Service Catalog VACS
26 stars 10 forks source link

icfd_vm_details.py returns module not supported or activated #1

Closed vallard closed 9 years ago

vallard commented 9 years ago

Great library! I ran the following:

./icfd_vm_details.py 1

and it returned some garbage. I went into the library and added some code:

 j = json.loads(r.text)
    if j['serviceError']:
      return j['serviceError']
    else:
      return j['serviceResult']['rows']

Now it says:

u'REMOTE_SERVICE_EXCEPTION: Cannot execute operation Intercloud:userAPIGetVMSummary, not supported or module not activated'

Is this an error on my part? Or is it dependent upon which version of Intercloud Fabric you are using? I am using 1.0(0.) (or at least that's what I saw in the logs... this is dcloud )

vallard commented 9 years ago

Using Version 2.1.1. The icfd_vm_list.py works great! Got the VMID from that output (9 in the output below)

{u'Assigned_To_User': u'',
  u'Category': u'App Category 1',
  u'Cloud': u'vCloud',
  u'Custom_Attributes': u'',
  u'Group_Name': u'dCloudORG',
  u'Guest_OS_Type': u'CentOS 6.3 (64bit)',
  u'Host_Name': u'App-Server-7',
  u'IP_Address': u'54.172.199.43',
  u'Image_Id': u'',
  u'Last_Status_Update': u'Mar 16, 2015 18:02:11 UTC',
  u'Power_State': u'ON',
  u'Provisioned_Time': u'',
  u'Scheduled_Termination_Time': u'',
  u'VM_Annotation': u'',
  u'VM_ID': 9,
  u'VM_Label': u'',
  u'VM_Name': u'App-Server-7',
  u'VM_Protected': u'No',
  u'vCenter_Ip': u'',
  u'vCenter_VM_Id': u'',
  u'vDC': u'dCloudORG-AWS-VDC'}
vallard commented 9 years ago

Looks like its not supported in the 2.1.1 version and just 2.1.2. Closing the issue.