Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

master_type set to 'failover' but 'master' is not of type list but of type <type 'str'> #23611

Closed
hubez opened this issue May 12, 2015 · 3 comments
Labels
Bug broken, incorrect, or confusing behavior Core relates to code central or existential to Salt fixed-pls-verify fix is linked, bug author to confirm fix P2 Priority 2 severity-medium 3rd level, incorrect or bad functionality, confusing and lacks a work around
Milestone

Comments

@hubez
Copy link

hubez commented May 12, 2015

master_type: failover should be more tolerant to "master: " config enter. It's far too easy to take down all your minions and be stuck without salt to manage minions when trying to convert to a failover model.

Doing this results in an error:

master_type set to 'failover' but 'master' is not of type list but of type <type 'str'>

In /etc/salt/minion:

master_type: failover
master: mymaster

While I know my config is technical wrong, I think the coding should be defensive and tolerant, because if I use a list of 1 entry it works.

In /etc/salt/minion:

master_type: failover
master: 
  - mymaster

To further reinforce why I think this should become more tolerant, salt-bootstrap sets the stage for failure.
salt-bootstrap -A results in a config as:

master: mymaster

Which also makes it much more challenging to roll out salt-minion config to migrate to failover via salt without this issue fixed. I've already lost control of all my minions twice because of the lack of tolerance from salt-minion and having it just exit.

@Snergster
Copy link

agree...i had to workaround this issue as well just using
master: [ foo ]
when I detected my master list was <2

@cachedout
Copy link
Contributor

I completely agree with your analysis here. Let's detect this condition and just convert it on the fly to a single item list.

@cachedout
Copy link
Contributor

Give #23637 a shot. Thanks!

@cachedout cachedout added Bug broken, incorrect, or confusing behavior fixed-pls-verify fix is linked, bug author to confirm fix Core relates to code central or existential to Salt labels May 13, 2015
@cachedout cachedout added this to the Approved milestone May 13, 2015
@rallytime rallytime added severity-medium 3rd level, incorrect or bad functionality, confusing and lacks a work around P2 Priority 2 labels May 13, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug broken, incorrect, or confusing behavior Core relates to code central or existential to Salt fixed-pls-verify fix is linked, bug author to confirm fix P2 Priority 2 severity-medium 3rd level, incorrect or bad functionality, confusing and lacks a work around
Projects
None yet
Development

No branches or pull requests

4 participants