Giter Site home page Giter Site logo

nova's People

Contributors

ameade avatar berrange avatar comstud avatar djipko avatar dprince avatar edleafe avatar gkotton avatar gmannos avatar hanlind avatar ironcamel avatar jaypipes avatar jichenjc avatar jkoelker avatar jogo avatar justinsb avatar kk7ds avatar markmc avatar mdbooth avatar mikalstill avatar rconradharris avatar russellb avatar sahid avatar sdague avatar slashk avatar sleepsonthefloor avatar soulxu avatar throughnothing avatar tr3buchet avatar vishvananda avatar xtoddx avatar

Watchers

 avatar

Forkers

bopopescu

nova's Issues

G69.1.001【集群同步】getIcsHostsByClusterId

URL:http://192.168.1.61:8774/v2.1/clusters/ics.402881955cb2476a015cb5b591d200b0/hosts

测试结果:正常无问题,异常流无问题

返回信息:
{
"hosts" : [
{
"status" : "REACHABLE",
"name" : "192.168.1.21",
"clusterName" : "cluster",
"ip" : "192.168.1.21",
"clusterId" : "402881955cb2476a015cb5b591d200b0",
"memoryUsage" : 8.59,
"cpuUsage" : 14.07,
"pnicNum" : 8,
"totalMem" : 322240,
"id" : "d3cd3fca-b17b-4263-ae9c-c8e17e8c23ad",
"logicalProcessor" : 40
},
{
"status" : "REACHABLE",
"name" : "192.168.1.22",
"clusterName" : "cluster",
"ip" : "192.168.1.22",
"clusterId" : "402881955cb2476a015cb5b591d200b0",
"memoryUsage" : 1.52,
"cpuUsage" : 4.94,
"pnicNum" : 8,
"totalMem" : 322240,
"id" : "d5cce8b5-7aa7-4e1f-9ea7-533a0df43b51",
"logicalProcessor" : 40
}
],
"error" : ""
}

G110.1.001 【获取主机下的虚拟机列表】 getVmsByIcsHostId

URL:http://192.168.1.61:8774/v2.1/icsHosts/4cc6542b-e1be-4a8c-95ab-9ae0a64e787d/vms

测试结果:正常流无问题,异常流无问题

返回信息:
{
"vms" : [
{
"status" : "STARTED",
"hostId" : "4cc6542b-e1be-4a8c-95ab-9ae0a64e787d",
"name" : "openstack_247795f3_00a9_4182_9532_d1b45ce2c067",
"hostName" : "inode-54362-40656",
"nics" : [
{
"deviceName" : "openstack5047",
"downlinkBurst" : 0,
"ip" : "55.9.3.11",
"uplinkBurst" : 0,
"gateway" : "55.9.3.1",
"autoGenerated" : false,
"id" : "b8651708-e579-4efc-be1f-85b449d4a0f1",
"deviceType" : "NETWORK",
"status" : null,
"enable" : false,
"nolocalName" : "0",
"inboundRate" : 0.0,
"mac" : "fa:16:3e:f2:eb:99",
"deviceId" : "c49f0f83-8eb3-4bf9-8168-27904ea1b4f2",
"downlinkQueue" : null,
"name" : "Network Adapter 0",
"downlinkRate" : 0,
"uplinkRate" : 0,
"netmask" : "255.255.255.0",
"innerName" : null,
"model" : "RTL8139",
"outboundRate" : 0.0
}
],
"disks" : [
{
"busModel" : "VIRTIO",
"readIops" : 0,
"monWriteIops" : 0.0,
"writeThroughput" : 0.0,
"enabled" : false,
"writeBps" : 0,
"label" : "vda",
"volume" : {
"size" : 1.0,
"volumePolicy" : "THICK",
"mountedHostIds" : null,
"volumeStatus" : "UNAVAILABLE",
"id" : "6016ceee-b37b-422b-bd36-a0bb3a0ca1d3",
"realSize" : 0,
"uuid" : "58395671-20d5-4b23-a631-16af1919ab03",
"dataStoreName" : "openstackcfs1",
"shared" : false,
"dataStoreId" : "402881955cb2476a015cbb809ed80402",
"type" : null,
"description" : null,
"format" : "QCOW2",
"deleteModel" : "RESET_ZERO_AFTER_DELETE",
"dataStoreType" : "OCFS",
"offset" : 202,
"blockDeviceId" : null,
"md5" : null,
"name" : "6016ceee-b37b-422b-bd36-a0bb3a0ca1d3",
"bootable" : true,
"vmName" : null,
"dataStoreSize" : 0.0
},
"readBps" : 0,
"readThroughput" : 0.0,
"monReadIops" : 0.0,
"usage" : 0.0,
"id" : "402881955cbb863f015cbf98fdf00d87",
"writeIops" : 0
}
],
"cpuNum" : 2,
"memory" : 1024,
"id" : "247795f3-00a9-4182-9532-d1b45ce2c067"
}
]
}

【虚拟机热迁移/冷迁移】 migrateVm

URL:http://192.168.1.61:8774/v2.1/servers/30d6cc48-8e48-46b7-b03e-54e3d8420f80/action

输入参数:
{"migrateExtend": {"nodeTarget": "d5cce8b5-7aa7-4e1f-9ea7-533a0df43b51"}}

测试结果:正常流无问题,异常流无问题

返回结果:
{
"migrateExtend" : {
"hostId" : "d5cce8b5-7aa7-4e1f-9ea7-533a0df43b51",
"vmId" : "30d6cc48-8e48-46b7-b03e-54e3d8420f80",
"result" : {
"processId" : "45623",
"state" : "FINISHED",
"endTime" : "2017-06-19 15:53:35",
"name" : "MigrateVM",
"startTime" : "2017-06-19 15:53:25"
},
"success" : true
}
}

【虚拟机软关机】shutdownVm

与虚拟化同事沟通后,因ics-manager未加入验证,该bug在MantisBT已反馈,导致该接口无法正常测试。该接口已废弃,未在ICM上层集成中使用,该功能最新实现为通过扩展原生关机API实现(扩展原有传参)。

【Cpu Qos】特种集采需求

##Cpu qos:

     查询url:http://10.7.35.61:8774/v2.1/cpuqos/{id}          get

     设置、更新url:http://10.7.35.61:8774/v2.1/cpuqos         post     
     例如,输入参数:
     {
          "vmid": "id””,
          " vcpu_qos ":"-1"
      }

G73.2.002【查询主机监控信息】getWsthostmessage

URL:http://192.168.1.61:8774/v2.1/wsthost/d5cce8b5-7aa7-4e1f-9ea7-533a0df43b51/wsthostmessage

测试结果:正常流无问题,异常流无问题

返回信息:
{
"cpuTotalHz" : 44.0,
"cpuModel" : [
"CONROE",
"PENRYN",
"NEHALEM",
"WESTMERE",
"SANDYBRIDGE",
"IVYBRIDGE",
"HASWELL",
"BROADWELL"
],
"freeCpu" : 42.88,
"ip" : null,
"normalRunTime" : 163848.0,
"clusterId" : "402881955cb2476a015cb5b591d200b0",
"memoryUsage" : 1.15,
"logicCpuNum" : 20,
"cpuType" : "Intel(R) Xeon(R) CPU E5-2630 v4 @ 2.20GHz",
"id" : "d5cce8b5-7aa7-4e1f-9ea7-533a0df43b51",
"usedCpu" : 1.12,
"logicUsedMemory" : 0.0,
"cpuSocket" : 2,
"logicTotalMem" : 483359.25,
"networkDtos" : null,
"pnicNum" : 8,
"freeMemory" : 318508.75,
"cfsDomainStatus" : null,
"status" : "REACHABLE",
"hostBmcDto" : null,
"totalMem" : 322239.5,
"vtDegree" : 1.5,
"clusterName" : "cluster",
"cpuUsage" : 2.54,
"dataCenterName" : "",
"monMountState" : null,
"password" : "",
"dataCenterId" : "",
"mountPath" : null,
"name" : "192.168.1.22",
"switchUplinkPortDto" : null,
"disks" : [
{
"status" : "UNKNOWN",
"medium" : null,
"vendor" : null,
"displayCapacity" : "557.99",
"wwid" : "232b8d53000d00000",
"writeThroughput" : 81.13,
"readIops" : 9.19,
"readThroughput" : 2.31,
"usage" : 0.0,
"model" : null,
"scsiId" : null,
"id" : null,
"transport" : null,
"writeIops" : 14.66
},
{
"status" : "UNKNOWN",
"medium" : null,
"vendor" : null,
"displayCapacity" : "3072.0",
"wwid" : "3600000e00d2a0000002a068400010000",
"writeThroughput" : 6.82,
"readIops" : 51.23,
"readThroughput" : 0.55,
"usage" : 0.0,
"model" : null,
"scsiId" : null,
"id" : null,
"transport" : null,
"writeIops" : 1.05
},
{
"status" : "UNKNOWN",
"medium" : null,
"vendor" : null,
"displayCapacity" : "10.0",
"wwid" : "3600000e00d2a0000002a068400000000",
"writeThroughput" : 0.25,
"readIops" : 0.5,
"readThroughput" : 0.5,
"usage" : 0.0,
"model" : null,
"scsiId" : null,
"id" : null,
"transport" : null,
"writeIops" : 0.5
},
{
"status" : "UNKNOWN",
"medium" : null,
"vendor" : null,
"displayCapacity" : "2048.0",
"wwid" : "3600000e00d2a0000002a068400030000",
"writeThroughput" : 0.0,
"readIops" : 0.0,
"readThroughput" : 0.0,
"usage" : 0.0,
"model" : null,
"scsiId" : null,
"id" : null,
"transport" : null,
"writeIops" : 0.0
},
{
"status" : "UNKNOWN",
"medium" : null,
"vendor" : null,
"displayCapacity" : "5120.0",
"wwid" : "3600000e00d2a0000002a068400020000",
"writeThroughput" : 6.82,
"readIops" : 51.23,
"readThroughput" : 0.54,
"usage" : 0.0,
"model" : null,
"scsiId" : null,
"id" : null,
"transport" : null,
"writeIops" : 1.05
}
],
"powerstate" : "UNKNOWN",
"usedMemory" : 3730.75,
"logicFreeMemory" : 483359.25,
"pnics" : [
{
"macAddress" : "6c:92:bf:42:1f:42",
"speedDuplex" : null,
"downloadRate" : 0.0,
"driverVersion" : null,
"connectionStatus" : "DOWN",
"useState" : null,
"pciDeviceBus" : null,
"uploadRate" : 0.0,
"speed" : null,
"belongsTarget" : null,
"slot" : null,
"vendorID" : null,
"gsoOffload" : false,
"tsoOffload" : false,
"id" : null,
"sriovSupportVfs" : 0,
"sriov" : false,
"type" : null,
"function" : null,
"bus" : null,
"driver" : null,
"firmwareName" : null,
"passthru" : false,
"name" : "eth-0",
"mtu" : 0,
"groOffload" : false,
"deviceID" : null,
"hostip" : null,
"adapterType" : null
},
{
"macAddress" : "6c:92:bf:42:1f:43",
"speedDuplex" : null,
"downloadRate" : 0.0,
"driverVersion" : null,
"connectionStatus" : "DOWN",
"useState" : null,
"pciDeviceBus" : null,
"uploadRate" : 0.0,
"speed" : null,
"belongsTarget" : null,
"slot" : null,
"vendorID" : null,
"gsoOffload" : false,
"tsoOffload" : false,
"id" : null,
"sriovSupportVfs" : 0,
"sriov" : false,
"type" : null,
"function" : null,
"bus" : null,
"driver" : null,
"firmwareName" : null,
"passthru" : false,
"name" : "eth-1",
"mtu" : 0,
"groOffload" : false,
"deviceID" : null,
"hostip" : null,
"adapterType" : null
},
{
"macAddress" : "6c:92:bf:02:c5:91",
"speedDuplex" : null,
"downloadRate" : 3.73,
"driverVersion" : null,
"connectionStatus" : "UP",
"useState" : null,
"pciDeviceBus" : null,
"uploadRate" : 4.16,
"speed" : null,
"belongsTarget" : null,
"slot" : null,
"vendorID" : null,
"gsoOffload" : false,
"tsoOffload" : false,
"id" : null,
"sriovSupportVfs" : 0,
"sriov" : false,
"type" : null,
"function" : null,
"bus" : null,
"driver" : null,
"firmwareName" : null,
"passthru" : false,
"name" : "eth-2",
"mtu" : 0,
"groOffload" : false,
"deviceID" : null,
"hostip" : null,
"adapterType" : null
},
{
"macAddress" : "6c:92:bf:02:c5:92",
"speedDuplex" : null,
"downloadRate" : 0.32,
"driverVersion" : null,
"connectionStatus" : "UP",
"useState" : null,
"pciDeviceBus" : null,
"uploadRate" : 0.0,
"speed" : null,
"belongsTarget" : null,
"slot" : null,
"vendorID" : null,
"gsoOffload" : false,
"tsoOffload" : false,
"id" : null,
"sriovSupportVfs" : 0,
"sriov" : false,
"type" : null,
"function" : null,
"bus" : null,
"driver" : null,
"firmwareName" : null,
"passthru" : false,
"name" : "eth-3",
"mtu" : 0,
"groOffload" : false,
"deviceID" : null,
"hostip" : null,
"adapterType" : null
},
{
"macAddress" : "6c:92:bf:02:c5:8d",
"speedDuplex" : null,
"downloadRate" : 0.0,
"driverVersion" : null,
"connectionStatus" : "DOWN",
"useState" : null,
"pciDeviceBus" : null,
"uploadRate" : 0.0,
"speed" : null,
"belongsTarget" : null,
"slot" : null,
"vendorID" : null,
"gsoOffload" : false,
"tsoOffload" : false,
"id" : null,
"sriovSupportVfs" : 0,
"sriov" : false,
"type" : null,
"function" : null,
"bus" : null,
"driver" : null,
"firmwareName" : null,
"passthru" : false,
"name" : "eth-4",
"mtu" : 0,
"groOffload" : false,
"deviceID" : null,
"hostip" : null,
"adapterType" : null
},
{
"macAddress" : "6c:92:bf:02:c5:8e",
"speedDuplex" : null,
"downloadRate" : 0.0,
"driverVersion" : null,
"connectionStatus" : "DOWN",
"useState" : null,
"pciDeviceBus" : null,
"uploadRate" : 0.0,
"speed" : null,
"belongsTarget" : null,
"slot" : null,
"vendorID" : null,
"gsoOffload" : false,
"tsoOffload" : false,
"id" : null,
"sriovSupportVfs" : 0,
"sriov" : false,
"type" : null,
"function" : null,
"bus" : null,
"driver" : null,
"firmwareName" : null,
"passthru" : false,
"name" : "eth-5",
"mtu" : 0,
"groOffload" : false,
"deviceID" : null,
"hostip" : null,
"adapterType" : null
},
{
"macAddress" : "90:e2:ba:c3:6b:2c",
"speedDuplex" : null,
"downloadRate" : 0.0,
"driverVersion" : null,
"connectionStatus" : "DOWN",
"useState" : null,
"pciDeviceBus" : null,
"uploadRate" : 0.0,
"speed" : null,
"belongsTarget" : null,
"slot" : null,
"vendorID" : null,
"gsoOffload" : false,
"tsoOffload" : false,
"id" : null,
"sriovSupportVfs" : 0,
"sriov" : false,
"type" : null,
"function" : null,
"bus" : null,
"driver" : null,
"firmwareName" : null,
"passthru" : false,
"name" : "eth-6",
"mtu" : 0,
"groOffload" : false,
"deviceID" : null,
"hostip" : null,
"adapterType" : null
},
{
"macAddress" : "90:e2:ba:c3:6b:2d",
"speedDuplex" : null,
"downloadRate" : 0.0,
"driverVersion" : null,
"connectionStatus" : "DOWN",
"useState" : null,
"pciDeviceBus" : null,
"uploadRate" : 0.0,
"speed" : null,
"belongsTarget" : null,
"slot" : null,
"vendorID" : null,
"gsoOffload" : false,
"tsoOffload" : false,
"id" : null,
"sriovSupportVfs" : 0,
"sriov" : false,
"type" : null,
"function" : null,
"bus" : null,
"driver" : null,
"firmwareName" : null,
"passthru" : false,
"name" : "eth-7",
"mtu" : 0,
"groOffload" : false,
"deviceID" : null,
"hostip" : null,
"adapterType" : null
}
],
"model" : "NF5280M4",
"logicalProcessor" : 40
}

【内存优先级】特种集采需求

##mem优先级:

 查询url:http://10.7.35.61:8774/v2.1/mempriority/{id}        get

 设置、更新url:http://10.7.35.61:8774/v2.1/mempriority        post     
 例如,输入参数:
	{
	"vmid": "id””,
	" priority":"1024"
	}

【根据Id获取主机信息】 getIcsHostById

URL:http://192.168.1.61:8774/v2.1/icsHosts/4cc6542b-e1be-4a8c-95ab-9ae0a64e787d

测试结果:正常流无问题,异常流无问题

返回信息:
{
"host" : {
"status" : "REACHABLE",
"name" : "192.168.1.23",
"clusterName" : "cluster1",
"ip" : "192.168.1.23",
"clusterId" : "402881955cb2476a015cbb7ec2bd03ec",
"memoryUsage" : 1.25,
"cpuUsage" : 3.95,
"pnicNum" : 8,
"totalMem" : 257732,
"id" : "4cc6542b-e1be-4a8c-95ab-9ae0a64e787d",
"logicalProcessor" : 40
},
"error" : ""
}

【cpu优先级】特种集采需求

    ##  cpu优先级:

     查询url:http://10.7.35.61:8774/v2.1/cpupriority/{id}         get

     设置、更新url:http://10.7.35.61:8774/v2.1/cpupriority        post     
     例如,输入post参数:
    {
        "vmid": "id””,
        " vcpushares":"1024"
    }

【Disk Qos】特种集采需求

##disk qos:

 查询url:http://10.7.35.61:8774/v2.1/diskqos/{id}         get

 设置、更新url:http://10.7.35.61:8774/v2.1/diskqos         post     
 例如,输入参数:
{
	"vmid":"95fe46cf-54cf-429e-88e6-2e2b6b8edc56",
	"disk_qos": 
	{
		"enabled":true, 
		"readBps":"1", 
		"writeBps":"1", 
		"readIops":"1", 
		"writeIops":"1", 
		"totalBps":"0", 
		"totalIops":"0"
	}
}

    # 其中enabled为bool型,其他均为字符串型

G73.2.001.001-G73.2.001.007【主机、虚拟机监控】

【主机信息】
http://100.2.30.220:8774/v2.1/wsthost/${host_id}/wsthostmessage

【虚拟机信息】
http://100.2.30.220:8774/v2.1/wstvms/${vm_id}/wstvmsmessage

{
"haMaxLimit" : 0,
"migratable" : true,
"vncPort" : 5908,
"toolsInstalled" : false,
"vcpuPins" : [
"all"
],
"boot" : "HD",
"maxMemory" : 524288,
"hostName" : "allinone-59587-81246",
"memoryUsage" : 0.0,
"cpuNum" : 1,
"vncSharePolicy" : "FORCE_SHARED",
"panickPolicy" : "NO_ACTION",
"vcpuPin" : "all",
"cpuCore" : 1,
"initialized" : false,
"cpuShares" : 1024,
"id" : "01db152f-aa01-4697-bcb0-fd60d0df79ee",
"vncPasswd" : "root",
"cpuHotplugEnabled" : false,
"uuid" : "d47e0d31-3ed2-4d66-a0de-51ea8b021cee",
"cpuSocket" : 1,
"haEnabled" : true,
"cpuModelEnabled" : false,
"guestosLabel" : "Windows 2000",
"state" : "UNKNOWN",
"template" : false,
"memory" : 1024,
"toolsType" : "VMTOOLS",
"status" : "STARTED",
"hostId" : "d3cd3fca-b17b-4263-ae9c-c8e17e8c23ad",
"description" : null,
"routerFlag" : false,
"runningTime" : 65564.0,
"hostIp" : "192.168.1.21",
"cdrom" : {
"path" : "",
"connected" : false,
"type" : "FILE",
"startConnected" : false
},
"cpuModelType" : "CONROE",
"cpuUsage" : 3.68,
"usb" : null,
"configLocation" : "i-000020.conf",
"name" : "openstack_01db152f_aa01_4697_bcb0_fd60d0df79ee",
"storagePriority" : 0,
"disks" : [
{
"busModel" : "VIRTIO",
"readIops" : 0,
"monWriteIops" : 0.0,
"writeThroughput" : 0.0,
"enabled" : false,
"writeBps" : 0,
"label" : "vda",
"volume" : {
"size" : 2.0,
"volumePolicy" : "THICK",
"mountedHostIds" : null,
"volumeStatus" : "UNAVAILABLE",
"id" : "ca92205b-e5f5-4643-9684-521c75c2b6fc",
"realSize" : 0,
"uuid" : "189e17d0-cdec-4cb8-bc9b-34278953969b",
"dataStoreName" : "openstackcfs",
"shared" : false,
"dataStoreId" : "402881955cb2476a015cb5b83af400c2",
"type" : null,
"description" : null,
"format" : "QCOW2",
"deleteModel" : "RESET_ZERO_AFTER_DELETE",
"dataStoreType" : "CFS",
"offset" : 444,
"blockDeviceId" : null,
"md5" : null,
"name" : "ca92205b-e5f5-4643-9684-521c75c2b6fc",
"bootable" : true,
"vmName" : null,
"dataStoreSize" : 782.68
},
"readBps" : 0,
"readThroughput" : 0.0,
"monReadIops" : 0.0,
"usage" : 1.55,
"id" : "402881955cbb863f015cbbd1289d0333",
"writeIops" : 0
}
],
"splashTime" : 0,
"guestosType" : "Windows",
"memHotplugEnabled" : false,
"nics" : [
{
"deviceName" : "openstack5003",
"downlinkBurst" : 0,
"ip" : "11.11.1.8",
"uplinkBurst" : 0,
"gateway" : "11.11.1.1",
"autoGenerated" : false,
"id" : "dc19ee4a-98a9-4fae-90b5-a7e5706610af",
"deviceType" : "NETWORK",
"status" : "DOWN",
"enable" : false,
"nolocalName" : "0",
"inboundRate" : 0.0,
"mac" : "fa:16:3e:43:9a:1f",
"deviceId" : "a4290528-4015-46ba-a0f5-2b6c7546f84c",
"downlinkQueue" : null,
"name" : "Network Adapter 0",
"downlinkRate" : 0,
"uplinkRate" : 0,
"netmask" : "255.255.255.0",
"innerName" : null,
"model" : "RTL8139",
"outboundRate" : 0.0
}
],
"innerName" : "i-000020",
"maxCpuNum" : 1,
"hotplugEnabled" : false
}

G7.1.001【热扩容】live_resize

G7.1.001 【热扩容】live_resize
G7.1.001 【热扩容】 live_resize_switch
G7.1.001 【热扩容】live_resize_flavor_check
G7.1.001 【热扩容】live_resize_confirm

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.