Error with state.highstate

442 views
Skip to first unread message

Don Babb

unread,
Jul 27, 2012, 5:13:44 PM7/27/12
to salt-...@googlegroups.com
I'm running the following command and receive an error on one of the minions. All the other minions can run the same state.highstate without any errors. I can run other salt commands to the server with the issue and it will work. Thanks for helping.
 
Failed using state.highstate
# salt testsrv.* state.highstate
testsrv.richmond.edu:
----------
    State: - no
    Name:      states
    Function:  None
        Result:    False
        Comment:   No states found for this minion
        Changes:  
 
Worked:
# salt testsrv.* test.version
testsrv.richmond.edu: 0.10.1

 

Thomas S Hatch

unread,
Jul 27, 2012, 5:16:34 PM7/27/12
to salt-...@googlegroups.com
Is this always the same minion? What does your top file look like?

Don Babb

unread,
Jul 31, 2012, 5:02:56 PM7/31/12
to salt-...@googlegroups.com
I have about 25 minions and this is the only minion that I get this error. The minion is running 0.10.1
 
top.sls
base:
  'group1':
    - match: nodegroup
    - ljohnso3
master config
nodegroups:
   group1: 'L@testsrv.*,yoda.*'

 

On Friday, July 27, 2012 5:16:34 PM UTC-4, Thomas Hatch wrote:
Is this always the same minion? What does your top file look like?

Thomas S Hatch

unread,
Aug 1, 2012, 12:50:23 PM8/1/12
to salt-...@googlegroups.com
I think it might have something to do with how you are matching the nodegroups. your master config should look more like this:

nodegroups:
   group1: 'testsrv.*,yoda.*'

So that it uses the glob matcher instead of the list matcher

Don Babb

unread,
Aug 1, 2012, 4:51:29 PM8/1/12
to salt-...@googlegroups.com
I removed the L@ from the  group1 list and I still ran into the same issue but now it's with all the minions.
I also tried a second time by removing the match: nodegroup from the top.sls file, this didn't help.
I tried putting the L@ back to the group1 list and put the top.sls file back the orginial settings (using match: nodegroup) and it now fails on all the minions.
I removed the group settings in top.sls to bypass using groups all together and it worked for all minions, even the one server having the error before.
 
Salt Master version: 0.10.1
 
Command:
salt testsrv.* state.highstate
 
Failed Configurations
/etc/salt/master
nodegroups:
     group1: 'testsrv.*,yoda.*'
 
nodegroups:
    group1: 'L@testsrv.*,yoda.*'
 
top.sls config
base:
   'group1':
       - match: nodegroup
       - ljohnso3
 
base:
   'group1':
      - ljohnso3
Successful Config:
top.sls
base:
   '*':
     - ljohnso3

Don Babb

unread,
Aug 2, 2012, 11:39:25 AM8/2/12
to salt-...@googlegroups.com
After trying serveral configuration combinations, I did find that I can't use the string wildcard (asterisk) to name the minions for group1, the documentation for node groups does show that I should be able to use the asterisk as an option and I also had to use the L@ for node groups as part of the format. Once I used the full qualified domain name and re-entered L@, it worked for all the minions,  even for the one server that was having the issue orginally.
 
nodegroups:
 
Thank you for you help!
Don
Reply all
Reply to author
Forward
0 new messages