opencomputeproject / HWMgmt-DeviceMgr-DeviceManager

Device Manager collects device data and notifications from each device, and make the data available on a predetermined output bus for consumers.
Apache License 2.0
23 stars 12 forks source link

Task 'getdevicedata' does not return anything #20

Closed ehaligow closed 1 year ago

ehaligow commented 2 years ago

After executing 'getdevicedata' task, nothing happens.

intel@ubuntu:functional_test$ ./dm getdevicedata 192.168.40.247:8888:admin:GET:/redfish/v1/AccountService/Accounts/3

intel@ubuntu:functional_test$ ./dm getdevicedata 192.168.40.247:8888:admin:GET:/redfish/v1/AccountService/Accounts

intel@ubuntu:functional_test$ ./dm getdevicedata 192.168.40.247:8888:admin:GET:/redfish/v1/Chassis

Here is the log:

time="25-04-2022 09:22:14.888423" level=info msg="Received GetDeviceData"
time="25-04-2022 09:22:25.125305" level=info msg="Received GetDeviceData"
time="25-04-2022 09:23:11.730752" level=info msg="Received GetDeviceData"
time="25-04-2022 09:23:27.981166" level=info msg="Received GetDeviceData"
time="25-04-2022 09:23:41.986420" level=info msg="Received GetDeviceData"
time="25-04-2022 09:26:30.399268" level=info msg="Received GetDeviceData"
time="25-04-2022 09:26:34.960931" level=info msg="Received GetDeviceData"
time="25-04-2022 09:26:47.006144" level=info msg="Received GetDeviceData"
JasonscHuang commented 2 years ago

Do you enable the retrieving data from the device periodically? If you enabled it, the device data will place in the DM. You are able to get the device data using that command without sending query requests to the device in real-time.

ehaligow commented 2 years ago

I enabled the retrieving data from the device periodically, but the result was the same. However, I discovered what was the issue - I tried to run task getdevicedata, providing wrong argument. The last argument should be only URI, while I also provided http method (in this case GET method). So, the issue is not an issue anymore ;).

However, I didn't get any error, neither in logs nor in terminal. Shouldn't DM log something in cases like this?

jcleung5549 commented 2 years ago

@JasonscHuang, can you contact me directly. Address is in my Github profile.

JasonscHuang commented 2 years ago

@jcleung5549 I am not a contact window. You could post your question to this repository. I could reply to you ASAP.