Skip to content

latest windows salt-minion 2014.1.11 reporting jinja error where previous versions did not. #16727

Closed

Description

@emmellee

upgraded to 2014.1.11 from 2014.1.0 and received the following error:

[CRITICAL] Rendering SLS "base:slave" failed: Jinja variable 'dict object' has
o attribute 'TSF'; line 89

---
[...]
    - reload: True
    - require:
      - cmd: Create-{{slaveServiceDisplay}}
      - cmd: Change-{{slaveServiceDisplay}}-Startname
    - watch:
      - file: {{slaveBaseDir}}\jenkins-slave.xml    <======================

---
local:
    Data failed to compile:
----------
    Rendering SLS "base:slave" failed: Jinja variable 'dict object' has no attr
bute 'TSF'; line 89

reverted to 2014.1.1, no error, same (unchanged) content in state file:

{{slaveBaseDir}}\jenkins-slave.xml:
  file:
    - managed
    - template: jinja
    - source: salt://templates/jenkins-slave/jenkins-slave.xml
    - context:
      EXECUTABLE: 'C:\Program Files (x86)\Java\jre7\bin\java.exe'
      BASE: {{slaveBaseDir}}
      SERVICE_NAME: {{slaveServiceName}}
      DISPLAYNAME:  {{slaveServiceDisplay}}
      DESCRIPTION: 'This service runs a slave for Jenkins continuous integration system.'
      TS: {{ pillar['TSF'] }}
      TSPW: {{ pillar['TSP'] }}
      HOSTNAME: {{ pillar['hostname'] }}
      JENKINSURL: {{ pillar['jenkinsurl'] }}
      SLAVESECRET: {{ pillar['slavesecret'] }}
    - require: 
      - file: {{slaveBaseDir}}

Activity

  1. changed the title [-]latest salt-minion 2014.1.11 reporting jinja error where previous versions did not.[/-] [+]latest windows salt-minion 2014.1.11 reporting jinja error where previous versions did not.[/+] on Oct 17, 2014
  2. cachedout commented on Oct 17, 2014

    @cachedout
    Contributor

    This may be related to #16656. Can you test against 2014.1.12 please?

  3. added
    bug
    fixed-pls-verify
    on Oct 17, 2014
  4. emmellee commented on Oct 20, 2014

    @emmellee
    Author

    Unfortunately I won't be able to do that on my masterless windows minions without a 2012.1.12 windows install executable. I don't have the resources to extract directly from github repo. Will the windows installation page have the 2012.1.12 version available soon?

  5. emmellee commented on Oct 20, 2014

    @emmellee
    Author

    *2014.1.12

  6. added
    severity-low
    on Oct 21, 2014
  7. rallytime commented on Oct 21, 2014

    @rallytime
    Contributor

    Thanks for the update @emmellee! We had a regression in 2014.1.11 that affected masterless pillars which was fixed it in 2014.1.12. Unfortunately, there was a problem with salt-cloud in 2014.1.12, so we had to start the testing/packaging process over. 2014.1.13 is forth-coming with the fix for this regression and for salt-cloud as soon as we have the packages ready to go.

  8. added this to the Approved milestone on Oct 21, 2014
  9. rallytime commented on Nov 5, 2014

    @rallytime
    Contributor

    @emmellee Have you had a chance to test this on 2014.1.13?

  10. emmellee commented on Nov 5, 2014

    @emmellee
    Author

    Unfortunately, I see only 2014.1.11 windows installer available...

    -----Original Message-----
    From: Nicole Thomas [mailto:[email protected]]
    Sent: Wednesday, November 05, 2014 11:46 AM
    To: saltstack/salt
    Cc: Eller, Michelle L CIV DISA ESD (US)
    Subject: Re: [salt] latest windows salt-minion 2014.1.11 reporting jinja error where previous versions did not. (#16727)

    @emmellee https://github.com/emmellee Have you had a chance to test this on 2014.1.13?

    —
    Reply to this email directly or view it on GitHub #16727 (comment) . https://github.com/notifications/beacon/AExMH9PHDY0LAQ9LmPTHsQXO8uX1UbiPks5nKlnQgaJpZM4CwGP7.gif

  11. rallytime commented on Nov 5, 2014

    @rallytime
    Contributor
  12. rallytime commented on Nov 5, 2014

    @rallytime
    Contributor

    @emmellee I've updated the docs with #17216. Those links will show up within the next day or so. Sorry for the confusion there!

  13. emmellee commented on Nov 6, 2014

    @emmellee
    Author

    Thank you for that link, Nicole. I wasn't aware of it - I've always used http://docs.saltstack.com/en/latest/topics/installation/windows.html

    I'll try 2014.1.13 as you suggest...

    -----Original Message-----
    From: Nicole Thomas [mailto:[email protected]]
    Sent: Wednesday, November 05, 2014 4:27 PM
    To: saltstack/salt
    Cc: Eller, Michelle L CIV DISA ESD (US)
    Subject: Re: [salt] latest windows salt-minion 2014.1.11 reporting jinja error where previous versions did not. (#16727)

    Oh! Are you checking on the docs? We'll fix that link! In the mean time, you can grab those packages from: http://docs.saltstack.com/downloads/

    —
    Reply to this email directly or view it on GitHub #16727 (comment) . https://github.com/notifications/beacon/AExMH6ZBJykX9z20ubb4EQkNxFrRY7_Kks5nKpu6gaJpZM4CwGP7.gif

  14. rallytime commented on Nov 6, 2014

    @rallytime
    Contributor

    No problem! Let us know what you find out!

  15. rallytime commented on Nov 6, 2014

    @rallytime
    Contributor

    Oh, there are also 2014.7.0 windows packages available at that link as well, if you wanted to try that one instead.

  16. rallytime commented on Nov 18, 2014

    @rallytime
    Contributor

    @emmellee just a bump here. Were you able to try a newer version?

  17. emmellee commented on Jan 12, 2015

    @emmellee
    Author

    I tried installing 2014.7.0 and ran into issue number 19666

  18. emmellee commented on Jan 12, 2015

    @emmellee
    Author

    i also tried 2014.1.13 which also unpacked files to the root of my D: drive. I've uninstalled both, deleted the files, and reverted to 2014.1.1 which does not unpack files to the root of my D: drive.

  19. rallytime commented on Feb 24, 2015

    @rallytime
    Contributor

    @emmellee Ah, sorry I did not see your latest comments here. We're currently on release 2014.7.2 now - any chance you've given that a try yet? The releases on the 2014.7 branch have been MUCH more stable than the 2014.1 releases.

  20. rallytime commented on Mar 10, 2015

    @rallytime
    Contributor

    I am going to close this since we haven't heard back. If this remains a problem on newer releases, please leave a comment and we will be glad to give this another go.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugfixed-pls-verifyseverity-low

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions