{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/28356","labels_url":"https://api.github.com/repos/saltstack/salt/issues/28356/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/28356/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/28356/events","html_url":"https://github.com/saltstack/salt/issues/28356","id":113856980,"number":28356,"title":"pkg.installed - repoquery huge memory allocation","user":{"login":"msciciel","id":7060082,"avatar_url":"https://avatars.githubusercontent.com/u/7060082?v=3","gravatar_id":"","url":"https://api.github.com/users/msciciel","html_url":"https://github.com/msciciel","followers_url":"https://api.github.com/users/msciciel/followers","following_url":"https://api.github.com/users/msciciel/following{/other_user}","gists_url":"https://api.github.com/users/msciciel/gists{/gist_id}","starred_url":"https://api.github.com/users/msciciel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msciciel/subscriptions","organizations_url":"https://api.github.com/users/msciciel/orgs","repos_url":"https://api.github.com/users/msciciel/repos","events_url":"https://api.github.com/users/msciciel/events{/privacy}","received_events_url":"https://api.github.com/users/msciciel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-28T16:07:21Z","updated_at":"2015-10-29T12:23:46Z","closed_at":null,"body":"It looks that in 2015.8 release something has changed.\r\n\r\n\r\n2015.5:\r\n```\r\nINFO    ] Executing command \"repoquery --plugins --queryformat '%{NAME}_|-%{VERSION}_|-%{RELEASE}_|-%{ARCH}_|-%{REPOID}' --all --pkgnarrow=installed\" in directory '/root'\r\n[INFO    ] Executing command \"repoquery --plugins --queryformat '%{NAME}_|-%{ARCH}'  --pkgnarrow=all --all\" in directory '/root'\r\n[INFO    ] Executing command \"repoquery --plugins --queryformat '%{NAME}_|-%{VERSION}_|-%{RELEASE}_|-%{ARCH}_|-%{REPOID}'   --all --quiet --whatprovides ntp\"\r\n```\r\n\r\n2015.8:\r\n```\r\n[INFO    ] Executing command ['rpm', '-qa', '--queryformat', '%{NAME}_|-%{VERSION}_|-%{RELEASE}_|-%{ARCH}_|-(none)\\n'] in directory '/root'\r\n[INFO    ] Executing command \"repoquery --plugins --queryformat '%{NAME}_|-%{ARCH}'  --pkgnarrow=all --all\" in directory '/root'\r\n[INFO    ] Executing command \"repoquery --plugins --queryformat '%{NAME}_|-%{VERSION}_|-%{RELEASE}_|-%{ARCH}_|-%{REPOID}'   --all --quiet --whatprovides \" in\r\n```\r\n\r\nNow repoquery --whatprovides is missing pkg name. And it's cause quite big memory allocation when repoquery is executed and also execution time is increased dramatically. It's impossible to process on machine with only 1GB RAM now. I've tested on centos 5,6,7."},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/152162736","html_url":"https://github.com/saltstack/salt/issues/28356#issuecomment-152162736","issue_url":"https://api.github.com/repos/saltstack/salt/issues/28356","id":152162736,"user":{"login":"msciciel","id":7060082,"avatar_url":"https://avatars.githubusercontent.com/u/7060082?v=3","gravatar_id":"","url":"https://api.github.com/users/msciciel","html_url":"https://github.com/msciciel","followers_url":"https://api.github.com/users/msciciel/followers","following_url":"https://api.github.com/users/msciciel/following{/other_user}","gists_url":"https://api.github.com/users/msciciel/gists{/gist_id}","starred_url":"https://api.github.com/users/msciciel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msciciel/subscriptions","organizations_url":"https://api.github.com/users/msciciel/orgs","repos_url":"https://api.github.com/users/msciciel/repos","events_url":"https://api.github.com/users/msciciel/events{/privacy}","received_events_url":"https://api.github.com/users/msciciel/received_events","type":"User","site_admin":false},"created_at":"2015-10-29T12:23:46Z","updated_at":"2015-10-29T12:23:46Z","body":"It's also broken on 2015.5.6. Somehow names parameter for check_db function is empty."}}