chef / automate

Chef Automate provides a full suite of enterprise capabilities for maintaining continuous visibility into application, infrastructure, and security automation.
https://automate.chef.io/
Apache License 2.0
227 stars 113 forks source link

escalation: data discrepancies between Automate GUI vs. exported data (client runs) #2284

Closed vjeffrey closed 4 years ago

vjeffrey commented 5 years ago

Describe the bug

When exporting nodes from the Infrastructure tab, the results differ from what is seen in the WebUI (specifically, the total count of nodes is about 10% less when exporting)

To Reproduce

Steps to reproduce the behavior: please note that support has been unable to reproduce this issue

Expected behavior

export and gui reflect same information

Versions (please complete the following information):

Additional context

https://github.com/chef/customer-bugs/issues/12 https://getchef.zendesk.com/agent/tickets/23731 https://getchef.zendesk.com/agent/tickets/23783

vjeffrey commented 5 years ago

from @teknofire :

curl -k https://localhost/api/v0/cfgmgmt/nodes/export -H 'api-token: token' -d '{"output_type":"csv","filter":[],"sorting":{"field":"name","order":0}}'

curl -k https://localhost/api/v0/cfgmgmt/nodes/export -H 'api-token: token' -d '{"output_type":"csv","filter":[],"sorting":{"field":"checkin","order":0}}'

The first curl only returns 240ish nodes and the second one returns all 744 nodes.
phiggins commented 4 years ago

tshirt size medium