I believe the function get_possible_orgs in backend/server/handlers/xmlrpc/registration.py is never called from clients. It used to be called by getPossibleOrgs function which has been removed by commit 867c6219d5ac1e722797f4846f5cbe32900f83a7. I can not find any other invocation of the function in the whole SW repo. If I am right, I believe the function should be removed as it is not used by the supported clients.
Created attachment 1181012 [details] Patch removing the function
spacewalk.git b7907dfe1d75d90d466b39a1e1b163b0a4ba5f35
Verified with SW nightly from 2016-11-11. There is no getPossibleOrgs function in file /usr/share/rhn/server/handlers/xmlrpc/registration.py . I also can not see any problem caused by its removal in automation.
For you information the commit was reverted as it caused a regression in RHEL 5 clients registration. spacewalk.git(master): c37dde2e39e576cb6fe07fd0133acad2caab098a
This looks like it was fixed in previous release, but I'm closing it in this one. Spacewalk 2.7 has been released. https://github.com/spacewalkproject/spacewalk/wiki/ReleaseNotes27