Closed jejenone closed 9 years ago
@jejenone, thanks for the report.
@cro
@jejenone What Salt version is this?
2015.8.0
On Fri, Sep 25, 2015 at 9:31 AM, C. R. Oldham notifications@github.com wrote:
@jejenone https://github.com/jejenone What Salt version is this?
— Reply to this email directly or view it on GitHub https://github.com/saltstack/salt/issues/27384#issuecomment-143269956.
Ref #27731
That's a lot of interesting commits here! Thanks!
@jejenone Have you gotten a change to test the fix from @cro? Do you consider this issue resolved?
@rallytime I am running on latest 2015.8 and issue is not resolved. Grains collections are still started before the init() phase of the proxy minion.
@jejenone Just to clarify, are you running from the current HEAD of the branch, or from a release like 2015.8.0 or 2015.8.1?
The fix from @cro is only available from the HEAD of the 2015.8 branch. The reason I am asking is because in #27731, on line 2541 of minion.py we're calling the init before setting the grains like so:
proxy_init_fn = self.proxy[fq_proxyname+'.init']
proxy_init_fn(self.opts)
self.opts['grains'] = salt.loader.grains(self.opts)
So I want to see if this is fixed or to see if this is broken in another way.
Closing for now, we believe this is fixed. Feel free to reopen if that's not the case.
Sorry for late reply, we have a new problem where the proxy object is not available in the grains module.
@jejenone Did you open a ticket for that? I'll make sure we look at it asap.
Actually there are two issues that might have the same root cause: in the grains the object proxy is not available:
NameError: global name '__proxy__' is not defined
And the grains are loaded before calling the init method from the proxy.
on 2015.8, it seems that grains functions are run before the proxy init() function. That renders impossible to retrieve grains from proxied device