HewlettPackard / oneview-redfish-toolkit

HPE OneView Redfish Toolkit provides a REST service to answer DMTF's Redfish compliant requests by querying HPE OneView
Apache License 2.0
18 stars 21 forks source link

Improves debug log #482

Closed ricardogpsf closed 6 years ago

ricardogpsf commented 6 years ago

Closes #480

Example of logs when requesting /redfish/v1/CompositionService/ResourceZones/ae2f36c5-4243-4bbc-84a6-6a25c546f1e4 for "2 Oneviews" (and after change the levels of logger in the logging.conf file to DEBUG level):

redfish.log:

2018-10-10 15:41:47,070 - root - INFO    - Thread 139975464912640 - SCMB certs already exist and are valid...
2018-10-10 15:41:47,073 - root - WARNING - Thread 139975464912640 - Server is starting with a self-signed certificate.
2018-10-10 15:41:47,075 - root - WARNING - Thread 139975464912640 - Using existing self-signed certs
2018-10-10 15:42:43,288 - qtty - DEBUG   - Thread 139974930331392 - Drives retrieved: 0, ServerHardware retrieved: 3, ResourceBlocks listed on Zone: 4
2018-10-10 15:42:43,295 - wsgi - INFO    - Thread 139974930331392 - 192.168.99.1 - - [10/Oct/2018:15:42:40 +0000] "GET /redfish/v1/CompositionService/ResourceZones/ae2f36c5-4243-4bbc-84a6-6a25c546f1e4 HTTP/1.1" 200 1523 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"

redfish_performance.log:

2018-10-10 15:42:41,112 - perf - DEBUG   - Thread 139974930331392 - OneView request: server_profile_templates.get: 0.9539217948913574
2018-10-10 15:42:42,304 - perf - DEBUG   - Thread 139974930331392 - OneView request: server_hardware.get_all: 1.1909184455871582
2018-10-10 15:42:43,231 - perf - DEBUG   - Thread 139974930331392 - OneView request: server_hardware.get_all: 0.9251255989074707
2018-10-10 15:42:43,291 - perf - DEBUG   - Thread 139974930331392 - OneView process: 3.0699658393859863
2018-10-10 15:42:43,291 - perf - DEBUG   - Thread 139974930331392 - Redfish process: 0.06362247467041016
2018-10-10 15:42:43,294 - perf - DEBUG   - Thread 139974930331392 - Total process: 3.1335883140563965

redfish_ov_data.log:

2018-10-10 15:41:39,460 - hpOneView.connection         - INFO    - Thread 139975464912640 - Logged in successfully
2018-10-10 15:41:39,462 - hpOneView.resources.resource - DEBUG   - Thread 139975464912640 - Get resource (uri = /rest/appliance/nodeinfo/version, ID = /rest/appliance/nodeinfo/version)
2018-10-10 15:41:43,306 - hpOneView.connection         - INFO    - Thread 139975464912640 - Logged in successfully
2018-10-10 15:41:43,306 - hpOneView.resources.resource - DEBUG   - Thread 139975464912640 - Get resource (uri = /rest/appliance/nodeinfo/version, ID = /rest/appliance/nodeinfo/version)
2018-10-10 15:42:40,158 - hpOneView.resources.resource - DEBUG   - Thread 139974930331392 - Get resource (uri = /rest/server-profile-templates/ae2f36c5-4243-4bbc-84a6-6a25c546f1e4, ID = ae2f36c5-4243-4bbc-84a6-6a25c546f1e4)
2018-10-10 15:42:41,110 - ovData                       - DEBUG   - Thread 139974930331392 - Request to Oneview 'ai-cicvc3-056.vse.rdlabs.hpecorp.net', calling 'server_profile_templates.get' with args ('ae2f36c5-4243-4bbc-84a6-6a25c546f1e4',) and kwargs {}. Result: {'scopesUri': '/rest/scopes/resources/rest/server-profile-templates/ae2f36c5-4243-4bbc-84a6-6a25c546f1e4', 'osDeploymentSettings': None, 'serverProfileDescription': '', 'serialNumberType': 'Virtual', 'bootMode': {'secureBoot': 'Disabled', 'manageMode': True, 'mode': 'UEFI', 'pxeBootPolicy': 'Auto'}, 'wwnType': 'Virtual', 'localStorage': {'controllers': [], 'sasLogicalJBODs': [{'driveTechnology': 'SasSsd', 'driveMaxSizeGB': 3276, 'id': 1, 'eraseData': False, 'deviceSlot': 'Mezz 1', 'name': 'logical_jbod_test', 'driveMinSizeGB': 3276, 'numPhysicalDrives': 1}]}, 'name': 'SP_Test', 'firmware': {'forceInstallFirmware': False, 'manageFirmware': False}, 'type': 'ServerProfileTemplateV4', 'bios': {'overriddenSettings': [], 'manageBios': False}, 'sanStorage': {'volumeAttachments': [], 'manageSanStorage': False}, 'modified': '2018-08-27T12:39:16.490Z', 'enclosureGroupUri': '/rest/enclosure-groups/e8cdfc99-3e4b-4886-82d3-af1a6767e7d1', 'serverHardwareTypeUri': '/rest/server-hardware-types/91EB45DE-FF41-4C9C-B561-62B6D306B5A6', 'created': '2018-08-27T12:26:51.860Z', 'description': '', 'eTag': '1535373556490/2', 'status': 'OK', 'connectionSettings': {'manageConnections': True, 'connections': [{'functionType': 'Ethernet', 'id': 1, 'requestedVFs': '0', 'boot': {'priority': 'NotBootable', 'bootVlanId': None}, 'lagName': None, 'networkUri': '/rest/ethernet-networks/8149551f-9bc0-45b7-9f62-bd930e1ac735', 'portId': 'Mezz 3:1-a', 'requestedMbps': '2500', 'name': 'conn_test'}]}, 'state': None, 'macType': 'Virtual', 'hideUnusedFlexNics': True, 'iscsiInitiatorNameType': 'AutoGenerated', 'category': 'server-profile-templates', 'boot': {'order': ['HardDisk'], 'manageBoot': True}, 'affinity': 'Bay', 'uri': '/rest/server-profile-templates/ae2f36c5-4243-4bbc-84a6-6a25c546f1e4'}
2018-10-10 15:42:41,114 - hpOneView.resources.resource - DEBUG   - Thread 139974930331392 - Getting all resources with uri: /rest/server-hardware?start=0&count=-1&filter=serverGroupUri%3D%27/rest/enclosure-groups/e8cdfc99-3e4b-4886-82d3-af1a6767e7d1%27&filter=serverHardwareTypeUri%3D%27/rest/server-hardware-types/91EB45DE-FF41-4C9C-B561-62B6D306B5A6%27
2018-10-10 15:42:41,115 - hpOneView.resources.resource - DEBUG   - Thread 139974930331392 - Making HTTP request to get all resources. Uri: /rest/server-hardware?start=0&count=-1&filter=serverGroupUri%3D%27/rest/enclosure-groups/e8cdfc99-3e4b-4886-82d3-af1a6767e7d1%27&filter=serverHardwareTypeUri%3D%27/rest/server-hardware-types/91EB45DE-FF41-4C9C-B561-62B6D306B5A6%27
2018-10-10 15:42:42,300 - hpOneView.resources.resource - DEBUG   - Thread 139974930331392 - Response getAll: nextPageUri = /rest/server-hardware?start=0&count=-1&filter=serverGroupUri%3D%27/rest/enclosure-groups/e8cdfc99-3e4b-4886-82d3-af1a6767e7d1%27&filter=serverHardwareTypeUri%3D%27/rest/server-hardware-types/91EB45DE-FF41-4C9C-B561-62B6D306B5A6%27, members list length: 3
2018-10-10 15:42:42,301 - hpOneView.resources.resource - DEBUG   - Thread 139974930331392 - Total # of members found = 3
2018-10-10 15:42:42,301 - ovData                       - DEBUG   - Thread 139974930331392 - Request to Oneview 'ai-cicvc3-056.vse.rdlabs.hpecorp.net', calling 'server_hardware.get_all' with args () and kwargs {'filter': ["serverGroupUri='/rest/enclosure-groups/e8cdfc99-3e4b-4886-82d3-af1a6767e7d1'", "serverHardwareTypeUri='/rest/server-hardware-types/91EB45DE-FF41-4C9C-B561-62B6D306B5A6'"]}. Result: [{'remoteSupportUri': '/rest/support/server-hardware/30373737-3237-4D32-3230-313531354752', 'supportDataCollectionType': None, 'serverName': '', 'serverProfileUri': None, 'processorCoreCount': 4, 'powerState': 'Off', 'name': '0000A66103, bay 3', 'status': 'OK', 'type': 'server-hardware-8', 'modified': '2018-10-03T13:48:52.372Z', 'supportState': 'NotSupported', 'intelligentProvisioningVersion': '2.30', 'supportDataCollectionsUri': '/rest/support/data-collections?deviceID=30373737-3237-4D32-3230-313531354752&category=server-hardware', 'created': '2018-06-23T15:33:19.766Z', 'mpFirmwareVersion': '2.30 Jul 23 2015', 'migrationState': 'NotApplicable', 'locationUri': '/rest/enclosures/0000000000A66103', 'mpModel': 'iLO4', 'processorSpeedMhz': 2400, 'romVersion': 'I39 v1.30 08/26/2014', 'category': 'server-hardware', 'stateReason': 'NotApplicable', 'eTag': '1538574532372', 'powerLock': False, 'refreshState': 'NotRefreshing', 'portMap': {'deviceSlots': [{'deviceName': 'Smart Array P542D Controller', 'deviceNumber': 1, 'physicalPorts': [{'physicalInterconnectUri': '/rest/sas-interconnects/2M220104SL', 'type': 'SAS', 'interconnectPort': 3, 'portNumber': 1, 'interconnectUri': '/rest/sas-interconnects/2M220104SL', 'virtualPorts': [], 'wwn': '50:01:00:00:00:00:00:00', 'mac': None, 'physicalInterconnectPort': 3}, {'physicalInterconnectUri': '/rest/sas-interconnects/2M220105SL', 'type': 'SAS', 'interconnectPort': 3, 'portNumber': 2, 'interconnectUri': '/rest/sas-interconnects/2M220105SL', 'virtualPorts': [], 'wwn': '50:01:00:00:00:00:00:04', 'mac': None, 'physicalInterconnectPort': 3}], 'slotNumber': 1, 'location': 'Mezz'}, {'deviceName': 'HPE Synergy 3530C 16Gb Fibre Channel Host Bus Adapter', 'deviceNumber': 2, 'physicalPorts': [{'physicalInterconnectUri': '/rest/interconnects/39941958-be3d-454b-a7ee-26e0cb231ebd', 'type': 'FibreChannel', 'interconnectPort': 3, 'portNumber': 1, 'interconnectUri': '/rest/interconnects/39941958-be3d-454b-a7ee-26e0cb231ebd', 'virtualPorts': [], 'wwn': '29:00:7A:2B:21:E0:00:79', 'mac': None, 'physicalInterconnectPort': 3}, {'physicalInterconnectUri': '/rest/interconnects/6ff05cfb-1a5d-4df6-b2e6-0dd04c0790b2', 'type': 'FibreChannel', 'interconnectPort': 3, 'portNumber': 2, 'interconnectUri': '/rest/interconnects/6ff05cfb-1a5d-4df6-b2e6-0dd04c0790b2', 'virtualPorts': [], 'wwn': '29:00:7A:2B:21:E0:00:7B', 'mac': None, 'physicalInterconnectPort': 3}], 'slotNumber': 2, 'location': 'Mezz'}, {'deviceName': 'HPE Synergy 3820C 10/20Gb Converged Network Adapter', 'deviceNumber': 3, 'physicalPorts': [{'physicalInterconnectUri': '/rest/interconnects/f377a34d-b86e-4917-a976-d9fb450ec70b', 'type': 'Ethernet', 'interconnectPort': 27, 'portNumber': 1, 'interconnectUri': '/rest/interconnects/cc8a4283-0e47-4775-8cef-7a71cab8dde5', 'virtualPorts': [{'currentAllocatedVirtualFunctionCount': 16, 'portNumber': 1, 'wwnn': None, 'portFunction': 'a', 'mac': '02:23:13:25:25:83', 'wwpn': None}, {'currentAllocatedVirtualFunctionCount': 16, 'portNumber': 2, 'wwnn': '10:00:02:23:13:25:25:84', 'portFunction': 'b', 'mac': '02:23:13:25:25:84', 'wwpn': '20:00:02:23:13:25:25:84'}, {'currentAllocatedVirtualFunctionCount': 16, 'portNumber': 3, 'wwnn': None, 'portFunction': 'c', 'mac': '02:23:13:25:25:85', 'wwpn': None}, {'currentAllocatedVirtualFunctionCount': 16, 'portNumber': 4, 'wwnn': None, 'portFunction': 'd', 'mac': '02:23:13:25:25:86', 'wwpn': None}, {'currentAllocatedVirtualFunctionCount': 16, 'portNumber': 5, 'wwnn': None, 'portFunction': 'e', 'mac': '02:23:13:25:25:87', 'wwpn': None}, {'currentAllocatedVirtualFunctionCount': 16, 'portNumber': 6, 'wwnn': None, 'portFunction': 'f', 'mac': '02:23:13:25:25:88', 'wwpn': None}, {'currentAllocatedVirtualFunctionCount': 16, 'portNumber': 7, 'wwnn': None, 'portFunction': 'g', 'mac': '02:23:13:25:25:89', 'wwpn': None}, {'currentAllocatedVirtualFunctionCount': 16, 'portNumber': 8, 'wwnn': None, 'portFunction': 'h', 'mac': '02:23:13:25:25:8A', 'wwpn': None}], 'wwn': None, 'mac': '02:23:13:25:25:82', 'physicalInterconnectPort': 3}, {'physicalInterconnectUri': '/rest/interconnects/e52a0f74-1a31-42c2-be78-189db4ce7153', 'type': 'Ethernet', 'interconnectPort': 27, 'portNumber': 2, 'interconnectUri': '/rest/interconnects/dc131097-bc79-4cf5-8195-2a07ba3bafdb', 'virtualPorts': [{'currentAllocatedVirtualFunctionCount': 16, 'portNumber': 1, 'wwnn': None, 'portFunction': 'a', 'mac': '02:23:13:25:25:8C', 'wwpn': None}, {'currentAllocatedVirtualFunctionCount': 16, 'portNumber': 2, 'wwnn': '10:00:02:23:13:25:25:8D', 'portFunction': 'b', 'mac': '02:23:13:25:25:8D', 'wwpn': '20:00:02:23:13:25:25:8D'}, {'currentAllocatedVirtualFunctionCount': 16, 'portNumber': 3, 'wwnn': None, 'portFunction': 'c', 'mac': '02:23:13:25:25:8E', 'wwpn': None}, {'currentAllocatedVirtualFunctionCount': 16, 'portNumber': 4, 'wwnn': None, 'portFunction': 'd', 'mac': '02:23:13:25:25:8F', 'wwpn': None}, {'currentAllocatedVirtualFunctionCount': 16, 'portNumber': 5, 'wwnn': None, 'portFunction': 'e', 'mac': '02:23:13:25:25:90', 'wwpn': None}, {'currentAllocatedVirtualFunctionCount': 16, 'portNumber': 6, 'wwnn': None, 'portFunction': 'f', 'mac': '02:23:13:25:25:91', 'wwpn': None}, {'currentAllocatedVirtualFunctionCount': 16, 'portNumber': 7, 'wwnn': None, 'portFunction': 'g', 'mac': '02:23:13:25:25:92', 'wwpn': None}, {'currentAllocatedVirtualFunctionCount': 16, 'portNumber': 8, 'wwnn': None, 'portFunction': 'h', 'mac': '02:23:13:25:25:93', 'wwpn': None}], 'wwn': None, 'mac': '02:23:13:25:25:8B', 'physicalInterconnectPort': 3}], 'slotNumber': 3, 'location': 'Mezz'}, {'deviceName': '', 'deviceNumber': 4, 'physicalPorts': [], 'slotNumber': 4, 'location': 'Mezz'}, {'deviceName': '', 'deviceNumber': 5, 'physicalPorts': [], 'slotNumber': 5, 'location': 'Mezz'}, {'deviceName': '', 'deviceNumber': 6, 'physicalPorts': [], 'slotNumber': 6, 'location': 'Mezz'}]}, 'position': 3, 'licensingIntent': 'NotApplicable', 'scopesUri': '/rest/scopes/resources/rest/server-hardware/30373737-3237-4D32-3230-313531354752', 'processorType': 'Intel(R) Xeon(R) CPU E5620 @ 2.40GHz', 'serverFirmwareInventoryUri': '/rest/server-hardware/30373737-3237-4D32-3230-313531354752/firmware', 'shortModel': 'SY 660 Gen9', 'serverGroupUri': '/rest/enclosure-groups/e8cdfc99-3e4b-4886-82d3-af1a6767e7d1', 'physicalServerHardwareUri': None, 'uuid': '30373737-3237-4D32-3230-313531354752', 'uidState': 'Off', 'virtualSerialNumber': None, 'assetTag': '', 'serverHardwareTypeUri': '/rest/server-hardware-types/91EB45DE-FF41-4C9C-B561-62B6D306B5A6', 'hostOsType': None, 'description': None, 'remoteSupportSettings': {'remoteSupportCurrentState': 'Unregistered', 'destination': None}, 'state': 'NoProfileApplied', 'supportDataCollectionState': None, 'signature': {'serverHwChecksum': 1805351517, 'personalityChecksum': 0}, 'model': 'HPE Synergy 660 Gen9 Compute Module', 'uri': '/rest/server-hardware/30373737-3237-4D32-3230-313531354752', 'virtualUuid': None, 'memoryMb': 1048576, 'mpHostInfo': {'mpIpAddresses': [{'type': 'LinkLocal', 'address': 'fe80:0:0:0:2:ff:fe03:11'}, {'type': 'DHCP', 'address': '172.18.6.17'}], 'mpHostName': '172.18.6.17'}, 'processorCount': 4, 'serialNumber': '2M201515GR', 'mpState': 'OK', 'formFactor': 'FullHeight', 'partNumber': '777072-001', 'serverSettings': None}, {'remoteSupportUri': '/rest/support/server-hardware/30373737-3237-4D32-3230-313530384752', 'supportDataCollectionType': None, 'serverName': '', 'serverProfileUri': '/rest/server-profiles/17327107-6060-41a3-bf3d-596ab62489fc', 'processorCoreCount': 4, 'powerState': 'Off', 'name': '0000A66102, bay 3', 'status': 'OK', 'type': 'server-hardware-8', 'modified': '2018-09-21T19:01:42.428Z', 'supportState': 'NotSupported', 'intelligentProvisioningVersion': '2.30', 'supportDataCollectionsUri': '/rest/support/data-collections?deviceID=30373737-3237-4D32-3230-313530384752&category=server-hardware', 'created': '2018-06-23T15:33:20.839Z', 'mpFirmwareVersion': '2.30 Jul 23 2015', 'migrationState': 'NotApplicable', 'locationUri': '/rest/enclosures/0000000000A66102', 'mpModel': 'iLO4', 'processorSpeedMhz': 2400, 'romVersion': 'I39 v1.30 08/26/2014', 'category': 'server-hardware', 'stateReason': 'NotApplicable', 'eTag': '1537556502428', 'powerLock': False, 'refreshState': 'NotRefreshing', 'portMap': {'deviceSlots': [{'deviceName': 'Smart Array P542D Controller', 'deviceNumber': 1, 'physicalPorts': [{'physicalInterconnectUri': '/rest/sas-interconnects/2M220102SL', 'type': 'SAS', 'interconnectPort': 3, 'portNumber': 1, 'interconnectUri': '/rest/sas-interconnects/2M220102SL', 'virtualPorts': [], 'wwn': '50:01:00:00:00:00:00:00', 'mac': None, 'physicalInterconnectPort': 3}, {'physicalInterconnectUri': '/rest/sas-interconnects/2M220103SL', 'type': 'SAS', 'interconnectPort': 3, 'portNumber': 2, 'interconnectUri': '/rest/sas-interconnects/2M220103SL', 'virtualPorts': [], 'wwn': '50:01:00:00:00:00:00:04', 'mac': None, 'physicalInterconnectPort': 3}], 'slotNumber': 1, 'location': 'Mezz'}, {'deviceName': 'HPE Synergy 3530C 16Gb Fibre Channel Host Bus Adapter', 'deviceNumber': 2, 'physicalPorts': [{'physicalInterconnectUri': '/rest/interconnects/e3c4403b-d783-4321-a1a8-e5c16d8be139', 'type': 'FibreChannel', 'interconnectPort': 3, 'portNumber': 1, 'interconnectUri': '/rest/interconnects/e3c4403b-d783-4321-a1a8-e5c16d8be139', 'virtualPorts': [], 'wwn': '29:00:7A:2B:21:E0:00:71', 'mac': None, 'physicalInterconnectPort': 3}, {'physicalInterconnectUri': '/rest/interconnects/924a3929-81d1-4273-8fbe-f7ad03e178b8', 'type': 'FibreChannel', 'interconnectPort': 3, 'portNumber': 2, 'interconnectUri': '/rest/interconnects/924a3929-81d1-4273-8fbe-f7ad03e178b8', 'virtualPorts': [], 'wwn': '29:00:7A:2B:21:E0:00:73', 'mac': None, 'physicalInterconnectPort': 3}], 'slotNumber': 2, 'location': 'Mezz'}, {'deviceName': 'HPE Synergy 3820C 10/20Gb Converged Network Adapter', 'deviceNumber': 3, 'physicalPorts': [{'physicalInterconnectUri': '/rest/interconnects/2b8cb729-4cf4-403e-aef1-098d4945780a', 'type': 'Ethernet', 'interconnectPort': 15, 'portNumber': 1, 'interconnectUri': '/rest/interconnects/cc8a4283-0e47-4775-8cef-7a71cab8dde5', 'virtualPorts': [{'currentAllocatedVirtualFunctionCount': 16, 'portNumber': 1, 'wwnn': None, 'portFunction': 'a', 'mac': '02:23:13:25:25:5B', 'wwpn': None}, {'currentAllocatedVirtualFunctionCount': 16, 'portNumber': 2, 'wwnn': '10:00:02:23:13:25:25:5C', 'portFunction': 'b', 'mac': '02:23:13:25:25:5C', 'wwpn': '20:00:02:23:13:25:25:5C'}, {'currentAllocatedVirtualFunctionCount': 16, 'portNumber': 3, 'wwnn': None, 'portFunction': 'c', 'mac': '02:23:13:25:25:5D', 'wwpn': None}, {'currentAllocatedVirtualFunctionCount': 16, 'portNumber': 4, 'wwnn': None, 'portFunction': 'd', 'mac': '02:23:13:25:25:5E', 'wwpn': None}, {'currentAllocatedVirtualFunctionCount': 16, 'portNumber': 5, 'wwnn': None, 'portFunction': 'e', 'mac': '02:23:13:25:25:5F', 'wwpn': None}, {'currentAllocatedVirtualFunctionCount': 16, 'portNumber': 6, 'wwnn': None, 'portFunction': 'f', 'mac': '02:23:13:25:25:60', 'wwpn': None}, {'currentAllocatedVirtualFunctionCount': 16, 'portNumber': 7, 'wwnn': None, 'portFunction': 'g', 'mac': '02:23:13:25:25:61', 'wwpn': None}, {'currentAllocatedVirtualFunctionCount': 16, 'portNumber': 8, 'wwnn': None, 'portFunction': 'h', 'mac': '02:23:13:25:25:62', 'wwpn': None}], 'wwn': None, 'mac': '02:23:13:25:25:5A', 'physicalInterconnectPort': 3}, {'physicalInterconnectUri': '/rest/interconnects/dc131097-bc79-4cf5-8195-2a07ba3bafdb', 'type': 'Ethernet', 'interconnectPort': 3, 'portNumber': 2, 'interconnectUri': '/rest/interconnects/dc131097-bc79-4cf5-8195-2a07ba3bafdb', 'virtualPorts': [{'currentAllocatedVirtualFunctionCount': 16, 'portNumber': 1, 'wwnn': None, 'portFunction': 'a', 'mac': '02:23:13:25:25:64', 'wwpn': None}, {'currentAllocatedVirtualFunctionCount': 16, 'portNumber': 2, 'wwnn': '10:00:02:23:13:25:25:65', 'portFunction': 'b', 'mac': '02:23:13:25:25:65', 'wwpn': '20:00:02:23:13:25:25:65'}, {'currentAllocatedVirtualFunctionCount': 16, 'portNumber': 3, 'wwnn': None, 'portFunction': 'c', 'mac': '02:23:13:25:25:66', 'wwpn': None}, {'currentAllocatedVirtualFunctionCount': 16, 'portNumber': 4, 'wwnn': None, 'portFunction': 'd', 'mac': '02:23:13:25:25:67', 'wwpn': None}, {'currentAllocatedVirtualFunctionCount': 16, 'portNumber': 5, 'wwnn': None, 'portFunction': 'e', 'mac': '02:23:13:25:25:68', 'wwpn': None}, {'currentAllocatedVirtualFunctionCount': 16, 'portNumber': 6, 'wwnn': None, 'portFunction': 'f', 'mac': '02:23:13:25:25:69', 'wwpn': None}, {'currentAllocatedVirtualFunctionCount': 16, 'portNumber': 7, 'wwnn': None, 'portFunction': 'g', 'mac': '02:23:13:25:25:6A', 'wwpn': None}, {'currentAllocatedVirtualFunctionCount': 16, 'portNumber': 8, 'wwnn': None, 'portFunction': 'h', 'mac': '02:23:13:25:25:6B', 'wwpn': None}], 'wwn': None, 'mac': '02:23:13:25:25:63', 'physicalInterconnectPort': 3}], 'slotNumber': 3, 'location': 'Mezz'}, {'deviceName': '', 'deviceNumber': 4, 'physicalPorts': [], 'slotNumber': 4, 'location': 'Mezz'}, {'deviceName': '', 'deviceNumber': 5, 'physicalPorts': [], 'slotNumber': 5, 'location': 'Mezz'}, {'deviceName': '', 'deviceNumber': 6, 'physicalPorts': [], 'slotNumber': 6, 'location': 'Mezz'}]}, 'position': 3, 'licensingIntent': 'NotApplicable', 'scopesUri': '/rest/scopes/resources/rest/server-hardware/30373737-3237-4D32-3230-313530384752', 'processorType': 'Intel(R) Xeon(R) CPU E5620 @ 2.40GHz', 'serverFirmwareInventoryUri': '/rest/server-hardware/30373737-3237-4D32-3230-313530384752/firmware', 'shortModel': 'SY 660 Gen9', 'serverGroupUri': '/rest/enclosure-groups/e8cdfc99-3e4b-4886-82d3-af1a6767e7d1', 'physicalServerHardwareUri': None, 'uuid': '30373737-3237-4D32-3230-313530384752', 'uidState': 'Off', 'virtualSerialNumber': 'VCGP38O019', 'assetTag': '', 'serverHardwareTypeUri': '/rest/server-hardware-types/91EB45DE-FF41-4C9C-B561-62B6D306B5A6', 'hostOsType': None, 'description': None, 'remoteSupportSettings': {'remoteSupportCurrentState': 'Unregistered', 'destination': None}, 'state': 'ProfileApplied', 'supportDataCollectionState': None, 'signature': {'serverHwChecksum': 1805351517, 'personalityChecksum': 0}, 'model': 'HPE Synergy 660 Gen9 Compute Module', 'uri': '/rest/server-hardware/30373737-3237-4D32-3230-313530384752', 'virtualUuid': '17327107-6060-41a3-bf3d-596ab62489fc', 'memoryMb': 1048576, 'mpHostInfo': {'mpIpAddresses': [{'type': 'LinkLocal', 'address': 'fe80:0:0:0:2:ff:fe03:a'}, {'type': 'DHCP', 'address': '172.18.6.10'}], 'mpHostName': '172.18.6.10'}, 'processorCount': 4, 'serialNumber': '2M201508GR', 'mpState': 'OK', 'formFactor': 'FullHeight', 'partNumber': '777072-001', 'serverSettings': None}, {'remoteSupportUri': '/rest/support/server-hardware/30373737-3237-4D32-3230-313530314752', 'supportDataCollectionType': None, 'serverName': '', 'serverProfileUri': '/rest/server-profiles/b97b2444-1a7d-4a59-8fea-9fd8d3409fce', 'processorCoreCount': 4, 'powerState': 'Off', 'name': '0000A66101, bay 3', 'status': 'OK', 'type': 'server-hardware-8', 'modified': '2018-09-27T16:27:14.432Z', 'supportState': 'NotSupported', 'intelligentProvisioningVersion': '2.30', 'supportDataCollectionsUri': '/rest/support/data-collections?deviceID=30373737-3237-4D32-3230-313530314752&category=server-hardware', 'created': '2018-06-23T15:33:34.986Z', 'mpFirmwareVersion': '2.30 Jul 23 2015', 'migrationState': 'NotApplicable', 'locationUri': '/rest/enclosures/0000000000A66101', 'mpModel': 'iLO4', 'processorSpeedMhz': 2400, 'romVersion': 'I39 v1.30 08/26/2014', 'category': 'server-hardware', 'stateReason': 'NotApplicable', 'eTag': '1538065634432', 'powerLock': False, 'refreshState': 'NotRefreshing', 'portMap': {'deviceSlots': [{'deviceName': 'Smart Array P542D Controller', 'deviceNumber': 1, 'physicalPorts': [{'physicalInterconnectUri': '/rest/sas-interconnects/2M220100SL', 'type': 'SAS', 'interconnectPort': 3, 'portNumber': 1, 'interconnectUri': '/rest/sas-interconnects/2M220100SL', 'virtualPorts': [], 'wwn': '50:01:00:00:00:00:00:00', 'mac': None, 'physicalInterconnectPort': 3}, {'physicalInterconnectUri': '/rest/sas-interconnects/2M220101SL', 'type': 'SAS', 'interconnectPort': 3, 'portNumber': 2, 'interconnectUri': '/rest/sas-interconnects/2M220101SL', 'virtualPorts': [], 'wwn': '50:01:00:00:00:00:00:04', 'mac': None, 'physicalInterconnectPort': 3}], 'slotNumber': 1, 'location': 'Mezz'}, {'deviceName': 'HPE Synergy 3530C 16Gb Fibre Channel Host Bus Adapter', 'deviceNumber': 2, 'physicalPorts': [{'physicalInterconnectUri': '/rest/interconnects/08aa7033-f503-42b0-aa07-ce8f97e51185', 'type': 'FibreChannel', 'interconnectPort': 3, 'portNumber': 1, 'interconnectUri': '/rest/interconnects/08aa7033-f503-42b0-aa07-ce8f97e51185', 'virtualPorts': [], 'wwn': '29:00:7A:2B:21:E0:00:69', 'mac': None, 'physicalInterconnectPort': 3}, {'physicalInterconnectUri': '/rest/interconnects/e67c3dd8-df96-4ac3-b6fb-b122ae933ba6', 'type': 'FibreChannel', 'interconnectPort': 3, 'portNumber': 2, 'interconnectUri': '/rest/interconnects/e67c3dd8-df96-4ac3-b6fb-b122ae933ba6', 'virtualPorts': [], 'wwn': '29:00:7A:2B:21:E0:00:6B', 'mac': None, 'physicalInterconnectPort': 3}], 'slotNumber': 2, 'location': 'Mezz'}, {'deviceName': 'HPE Synergy 3820C 10/20Gb Converged Network Adapter', 'deviceNumber': 3, 'physicalPorts': [{'physicalInterconnectUri': '/rest/interconnects/cc8a4283-0e47-4775-8cef-7a71cab8dde5', 'type': 'Ethernet', 'interconnectPort': 3, 'portNumber': 1, 'interconnectUri': '/rest/interconnects/cc8a4283-0e47-4775-8cef-7a71cab8dde5', 'virtualPorts': [{'currentAllocatedVirtualFunctionCount': 0, 'portNumber': 1, 'wwnn': None, 'portFunction': 'a', 'mac': '52:08:E0:40:00:28', 'wwpn': None}, {'currentAllocatedVirtualFunctionCount': 0, 'portNumber': 2, 'wwnn': '10:00:02:23:13:25:25:34', 'portFunction': 'b', 'mac': '02:23:13:25:25:34', 'wwpn': '20:00:02:23:13:25:25:34'}, {'currentAllocatedVirtualFunctionCount': 0, 'portNumber': 3, 'wwnn': None, 'portFunction': 'c', 'mac': '02:23:13:25:25:35', 'wwpn': None}, {'currentAllocatedVirtualFunctionCount': 0, 'portNumber': 4, 'wwnn': None, 'portFunction': 'd', 'mac': '02:23:13:25:25:36', 'wwpn': None}, {'currentAllocatedVirtualFunctionCount': 0, 'portNumber': 5, 'wwnn': None, 'portFunction': 'e', 'mac': '02:23:13:25:25:37', 'wwpn': None}, {'currentAllocatedVirtualFunctionCount': 0, 'portNumber': 6, 'wwnn': None, 'portFunction': 'f', 'mac': '02:23:13:25:25:38', 'wwpn': None}, {'currentAllocatedVirtualFunctionCount': 0, 'portNumber': 7, 'wwnn': None, 'portFunction': 'g', 'mac': '02:23:13:25:25:39', 'wwpn': None}, {'currentAllocatedVirtualFunctionCount': 0, 'portNumber': 8, 'wwnn': None, 'portFunction': 'h', 'mac': '02:23:13:25:25:3A', 'wwpn': None}], 'wwn': None, 'mac': '02:23:13:25:25:32', 'physicalInterconnectPort': 3}, {'physicalInterconnectUri': '/rest/interconnects/74562f09-87ac-4f57-b049-a3aa48cde279', 'type': 'Ethernet', 'interconnectPort': 15, 'portNumber': 2, 'interconnectUri': '/rest/interconnects/dc131097-bc79-4cf5-8195-2a07ba3bafdb', 'virtualPorts': [{'currentAllocatedVirtualFunctionCount': 0, 'portNumber': 1, 'wwnn': None, 'portFunction': 'a', 'mac': '02:23:13:25:25:3C', 'wwpn': None}, {'currentAllocatedVirtualFunctionCount': 0, 'portNumber': 2, 'wwnn': '10:00:02:23:13:25:25:3D', 'portFunction': 'b', 'mac': '02:23:13:25:25:3D', 'wwpn': '20:00:02:23:13:25:25:3D'}, {'currentAllocatedVirtualFunctionCount': 0, 'portNumber': 3, 'wwnn': None, 'portFunction': 'c', 'mac': '02:23:13:25:25:3E', 'wwpn': None}, {'currentAllocatedVirtualFunctionCount': 0, 'portNumber': 4, 'wwnn': None, 'portFunction': 'd', 'mac': '02:23:13:25:25:3F', 'wwpn': None}, {'currentAllocatedVirtualFunctionCount': 0, 'portNumber': 5, 'wwnn': None, 'portFunction': 'e', 'mac': '02:23:13:25:25:40', 'wwpn': None}, {'currentAllocatedVirtualFunctionCount': 0, 'portNumber': 6, 'wwnn': None, 'portFunction': 'f', 'mac': '02:23:13:25:25:41', 'wwpn': None}, {'currentAllocatedVirtualFunctionCount': 0, 'portNumber': 7, 'wwnn': None, 'portFunction': 'g', 'mac': '02:23:13:25:25:42', 'wwpn': None}, {'currentAllocatedVirtualFunctionCount': 0, 'portNumber': 8, 'wwnn': None, 'portFunction': 'h', 'mac': '02:23:13:25:25:43', 'wwpn': None}], 'wwn': None, 'mac': '02:23:13:25:25:3B', 'physicalInterconnectPort': 3}], 'slotNumber': 3, 'location': 'Mezz'}, {'deviceName': '', 'deviceNumber': 4, 'physicalPorts': [], 'slotNumber': 4, 'location': 'Mezz'}, {'deviceName': '', 'deviceNumber': 5, 'physicalPorts': [], 'slotNumber': 5, 'location': 'Mezz'}, {'deviceName': '', 'deviceNumber': 6, 'physicalPorts': [], 'slotNumber': 6, 'location': 'Mezz'}]}, 'position': 3, 'licensingIntent': 'NotApplicable', 'scopesUri': '/rest/scopes/resources/rest/server-hardware/30373737-3237-4D32-3230-313530314752', 'processorType': 'Intel(R) Xeon(R) CPU E5620 @ 2.40GHz', 'serverFirmwareInventoryUri': '/rest/server-hardware/30373737-3237-4D32-3230-313530314752/firmware', 'shortModel': 'SY 660 Gen9', 'serverGroupUri': '/rest/enclosure-groups/e8cdfc99-3e4b-4886-82d3-af1a6767e7d1', 'physicalServerHardwareUri': None, 'uuid': '30373737-3237-4D32-3230-313530314752', 'uidState': 'Off', 'virtualSerialNumber': 'VCGP38O01J', 'assetTag': '', 'serverHardwareTypeUri': '/rest/server-hardware-types/91EB45DE-FF41-4C9C-B561-62B6D306B5A6', 'hostOsType': None, 'description': None, 'remoteSupportSettings': {'remoteSupportCurrentState': 'Unregistered', 'destination': None}, 'state': 'ProfileApplied', 'supportDataCollectionState': None, 'signature': {'serverHwChecksum': 1805351517, 'personalityChecksum': -1539063102}, 'model': 'HPE Synergy 660 Gen9 Compute Module', 'uri': '/rest/server-hardware/30373737-3237-4D32-3230-313530314752', 'virtualUuid': 'b97b2444-1a7d-4a59-8fea-9fd8d3409fce', 'memoryMb': 1048576, 'mpHostInfo': {'mpIpAddresses': [{'type': 'LinkLocal', 'address': 'fe80:0:0:0:2:ff:fe03:4'}, {'type': 'DHCP', 'address': '172.18.6.4'}], 'mpHostName': '172.18.6.4'}, 'processorCount': 4, 'serialNumber': '2M201501GR', 'mpState': 'OK', 'formFactor': 'FullHeight', 'partNumber': '777072-001', 'serverSettings': {'firmwareInstallSchedule': {'scheduleOptions': 'StageImmediatelyAndRetryAtDeployTime', 'dateTime': None}, 'hpSmartUpdateToolStatus': {'lastOperationTime': None, 'installState': 'Unknown', 'mode': None, 'version': None, 'serviceState': None}, 'firmwareAndDriversInstallState': {'installState': 'Unknown', 'installedStateTimestamp': None}}}]
2018-10-10 15:42:42,306 - hpOneView.resources.resource - DEBUG   - Thread 139974930331392 - Getting all resources with uri: /rest/server-hardware?start=0&count=-1&filter=serverGroupUri%3D%27/rest/enclosure-groups/e8cdfc99-3e4b-4886-82d3-af1a6767e7d1%27&filter=serverHardwareTypeUri%3D%27/rest/server-hardware-types/91EB45DE-FF41-4C9C-B561-62B6D306B5A6%27
2018-10-10 15:42:42,307 - hpOneView.resources.resource - DEBUG   - Thread 139974930331392 - Making HTTP request to get all resources. Uri: /rest/server-hardware?start=0&count=-1&filter=serverGroupUri%3D%27/rest/enclosure-groups/e8cdfc99-3e4b-4886-82d3-af1a6767e7d1%27&filter=serverHardwareTypeUri%3D%27/rest/server-hardware-types/91EB45DE-FF41-4C9C-B561-62B6D306B5A6%27
2018-10-10 15:42:43,229 - hpOneView.resources.resource - DEBUG   - Thread 139974930331392 - Response getAll: nextPageUri = /rest/server-hardware?start=0&count=-1&filter=serverGroupUri%3D%27/rest/enclosure-groups/e8cdfc99-3e4b-4886-82d3-af1a6767e7d1%27&filter=serverHardwareTypeUri%3D%27/rest/server-hardware-types/91EB45DE-FF41-4C9C-B561-62B6D306B5A6%27, members list length: 0
2018-10-10 15:42:43,230 - hpOneView.resources.resource - DEBUG   - Thread 139974930331392 - Total # of members found = 0
2018-10-10 15:42:43,230 - ovData                       - DEBUG   - Thread 139974930331392 - Request to Oneview 'ai-cicvc3-004.vse.rdlabs.hpecorp.net', calling 'server_hardware.get_all' with args () and kwargs {'filter': ["serverGroupUri='/rest/enclosure-groups/e8cdfc99-3e4b-4886-82d3-af1a6767e7d1'", "serverHardwareTypeUri='/rest/server-hardware-types/91EB45DE-FF41-4C9C-B561-62B6D306B5A6'"]}. Result: []
coveralls commented 6 years ago

Coverage Status

Coverage decreased (-0.007%) to 91.537% when pulling d32a7730fa1b02dc4711f67d8b2aa649da24f9ae on enhacement/improve_debug_log into ff6e93f5f656463cb33832259726263179a785ba on master.