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

Wrong oscodename if lsb_release is not installed #38006

Closed
darkpixel opened this issue Nov 30, 2016 · 4 comments
Closed

Wrong oscodename if lsb_release is not installed #38006

darkpixel opened this issue Nov 30, 2016 · 4 comments
Labels
Duplicate Duplicate of another issue or PR - will be closed info-needed waiting for more info
Milestone

Comments

@darkpixel
Copy link
Contributor

I think this is related to #30123
Here is fresh install of Debian 8:

root@salt:/srv/salt# salt-ssh -i 'uslogdcnas04.smiles.local' grains.get oscodename
uslogdcnas04.smiles.local:
    Debian GNU/Linux 8 (jessie)

Because of this, the Salt formula generates a bad /etc/apt/sources.list/saltstack.list file:

deb http://repo.saltstack.com/apt/debian/8/amd64/latest Debian 8 GNU/Linux main (jessie)

instead of:

deb http://repo.saltstack.com/apt/debian/8/amd64/latest jessie main

See: saltstack-formulas/salt-formula#270

After running 'apt-get install lsb-release', I get the following correct response:

root@salt:/srv/salt# salt-ssh -i 'uslogdcnas04.smiles.local' grains.get oscodename
uslogdcnas04.smiles.local:
    jessie
root@salt:/srv/salt# 

I think the fallback when lsb_release isn't installed is broken.

@Ch3LL
Copy link
Contributor

Ch3LL commented Dec 1, 2016

@darkpixel how did you install salt? the lsb_release python module is installed alongside with salt-common from repo.saltstack.com

also what version of salt are you seeing this on?

@Ch3LL Ch3LL added the info-needed waiting for more info label Dec 1, 2016
@Ch3LL Ch3LL added this to the Blocked milestone Dec 1, 2016
@darkpixel
Copy link
Contributor Author

I installed the salt master, salt-ssh, and installed the salt-formula for automatically installing/configuring salt on remote nodes. Then I populated /etc/salt/roster with all the nodes I wanted to bring under management and ran salt-ssh -i '*' state.highstate. ~100 nodes joined, 1 node didn't.

Looking at the ~100 nodes that joined, they all have lsb_release installed (after the fact, not sure about before), but the one node that failed to join definitely didn't have lsb_release installed. I had to manually install it, then re-run salt-ssh against it.

@bdrung
Copy link
Contributor

bdrung commented Dec 8, 2016

This is a duplicate of #34423

@Ch3LL
Copy link
Contributor

Ch3LL commented Dec 9, 2016

Thanks for bringing this to my attention @bdrung.

@darkpixel i/m going to close this issue and we can track this at that other issue

@Ch3LL Ch3LL closed this as completed Dec 9, 2016
@Ch3LL Ch3LL added the Duplicate Duplicate of another issue or PR - will be closed label Dec 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Duplicate Duplicate of another issue or PR - will be closed info-needed waiting for more info
Projects
None yet
Development

No branches or pull requests

3 participants