Salt-minion for SUSE SLES 12 SP3

531 views
Skip to first unread message

Simon Gao

unread,
Sep 25, 2017, 8:11:28 PM9/25/17
to Salt-users
I'm trying to install salt-minion on SUSE SLES 12 SP3 following the instructions at https://docs.saltstack.com/en/latest/topics/installation/suse.html.

The link provided in the url no longer works.

zypper addrepo http://download.opensuse.org/repositories/systemsmanagement:/saltstack/SLE_12/systemsmanagement:saltstack.repo

File '/repositories/systemsmanagement:/saltstack/SLE_12_SP3/systemsmanagement:saltstack.repo' not found on medium 'http://download.opensuse.org/'

Anyone has the correct/updated link?

Darin Perusich

unread,
Sep 26, 2017, 9:10:21 AM9/26/17
to salt-...@googlegroups.com
There is no SLE12_SP3 repo yet, see the build project link below for
what distro's are currently available as well as associated download
link. Additionally, *most* of the opeSUSE/SLE distro's fail to build
or have unresolvable dependency issues due to "upsteam" changes to the
python development repository in OBS, google "suse python singlespec"
for those details. I've asked for some changes to take place to
resolve this but they've fallen on deaf ears at the moment.

Since you're using SLE, and assuming your properly licensed, I'd
recommend adding the "Advanced Systems Management Module" extension
which is "free", supported, and includes salt-2016.11.4 and is
basically the feeder for repo for SUSE Manager. To add the repo just
run "SUSEConnect -d -p sle-module-adv-systems-management/12/x86_64"
and then install salt with zypper. I switched to this repo a while
ago, after the OBS repo broke, and it's been smooth sailing ever
since.

https://build.opensuse.org/project/show/systemsmanagement:saltstack
http://download.opensuse.org/repositories/systemsmanagement:/saltstack/
--
Later,
Darin
> --
> You received this message because you are subscribed to the Google Groups
> "Salt-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to salt-users+...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/salt-users/d58f1029-7cb5-45e6-8360-60872aa7a520%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Klaus Kaempf

unread,
Sep 26, 2017, 10:31:07 AM9/26/17
to salt-...@googlegroups.com
* Darin Perusich <da...@darins.net> [Sep 26. 2017 15:10]:
> There is no SLE12_SP3 repo yet, see the build project link below for
> what distro's are currently available as well as associated download
> link.

I just enabled SLE_12_SP3 for systemsmanagement:saltstack (latest
upstream Salt) and systemsmanagement:saltstack:products (older, more
stable version)

> I've asked for some changes to take place to resolve
> this but they've fallen on deaf ears at the moment.

Please contact me directly to work on that.

Thanks,

Klaus
--
SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg)

David Boucha

unread,
Oct 10, 2017, 6:06:52 PM10/10/17
to salt users list
Can I help with the SLE_12_SP3 repo somehow?
> --
> You received this message because you are subscribed to the Google Groups "Salt-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to salt-users+...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/salt-users/20170926143100.yrempxm4klgrsisp%40heron.suse.de.

Simon Gao

unread,
Oct 17, 2017, 7:13:40 PM10/17/17
to Salt-users
systemsmanagement:saltstack:products works for SLES 12 SP3. However for SLED 12 SP3, I still receive errors:

# zypper addrepo http://download.opensuse.org/repositories/systemsmanagement:/saltstack:/products/SLE_12_SP3/systemsmanagement:saltstack:products.repo
# zypper refresh
# # zypper install salt-minion
Refreshing service 'SUSE_Linux_Enterprise_Desktop_12_SP3_x86_64'.
Loading repository data...
Reading installed packages...
Resolving package dependencies...

Problem: nothing provides python-yaml needed by salt-2016.11.4-13.4.x86_64
 Solution 1: do not install salt-minion-2016.11.4-13.4.x86_64
 Solution 2: break salt-2016.11.4-13.4.x86_64 by ignoring some of its dependencies

Choose from above solutions by number or cancel [1/2/c] (c):

Repos on SLED 12 SP3 machine:

# | Alias                                                                           | Name                                                   | Enabled | GPG Check | Refresh
--+---------------------------------------------------------------------------------+--------------------------------------------------------+---------+-----------+--------
1 | SLED12-SP3-12.3-0                                                               | SLED12-SP3-12.3-0                                      | Yes     | (r ) Yes  | No    
2 | SUSE_Linux_Enterprise_Desktop_12_SP3_x86_64:SLE-12-SP3-GA-Desktop-nVidia-Driver | SLE-12-SP3-GA-Desktop-nVidia-Driver                    | Yes     | (r ) Yes  | Yes   
3 | SUSE_Linux_Enterprise_Desktop_12_SP3_x86_64:SLED12-SP3-Debuginfo-Pool           | SLED12-SP3-Debuginfo-Pool                              | No      | ----      | ----  
4 | SUSE_Linux_Enterprise_Desktop_12_SP3_x86_64:SLED12-SP3-Debuginfo-Updates        | SLED12-SP3-Debuginfo-Updates                           | No      | ----      | ----  
5 | SUSE_Linux_Enterprise_Desktop_12_SP3_x86_64:SLED12-SP3-Pool                     | SLED12-SP3-Pool                                        | Yes     | (r ) Yes  | No    
6 | SUSE_Linux_Enterprise_Desktop_12_SP3_x86_64:SLED12-SP3-Source-Pool              | SLED12-SP3-Source-Pool                                 | No      | ----      | ----  
7 | SUSE_Linux_Enterprise_Desktop_12_SP3_x86_64:SLED12-SP3-Updates                  | SLED12-SP3-Updates                                     | Yes     | (r ) Yes  | Yes   
8 | systemsmanagement_saltstack_products                                            | Salt releases for SLE-based SUSE products (SLE_12_SP3) | Yes     | (r ) Yes  | No    

Simon Gao

unread,
Oct 17, 2017, 7:19:59 PM10/17/17
to Salt-users
If ignoring python-yaml, salt-minion would fail to start.

● salt-minion.service - The Salt Minion
   Loaded: loaded (/usr/lib/systemd/system/salt-minion.service; disabled; vendor preset: disabled)
   Active: activating (auto-restart) (Result: exit-code) since Tue 2017-10-17 16:15:47 PDT; 6s ago
  Process: 4781 ExecStart=/usr/bin/salt-minion (code=exited, status=1/FAILURE)
 Main PID: 4781 (code=exited, status=1/FAILURE)

Oct 17 16:15:47 sled12sp3.example.com salt-minion[4781]: Traceback (most recent call last):
Oct 17 16:15:47 sled12sp3.example.com salt-minion[4781]:   File "/usr/bin/salt-minion", line 26, in <module>
Oct 17 16:15:47 sled12sp3.example.com salt-minion[4781]:     salt_minion()   
Oct 17 16:15:47 sled12sp3.example.com salt-minion[4781]:   File "/usr/lib/python2.7/site-packages/salt/scripts.py", line 152, in salt_minion
Oct 17 16:15:47 sled12sp3.example.com salt-minion[4781]:     import salt.cli.daemons
Oct 17 16:15:47 sled12sp3.example.com salt-minion[4781]:   File "/usr/lib/python2.7/site-packages/salt/cli/daemons.py", line 47, in <module>
Oct 17 16:15:47 sled12sp3.example.com salt-minion[4781]:     from salt.utils import parsers, ip_bracket
Oct 17 16:15:47 sled12sp3.example.com salt-minion[4781]:   File "/usr/lib/python2.7/site-packages/salt/utils/parsers.py", line 24, in <module>
Oct 17 16:15:47 sled12sp3.example.com salt-minion[4781]:     import yaml
Oct 17 16:15:47 sled12sp3.example.com salt-minion[4781]: ImportError: No module named yaml

Why installing salt-minion on SLES 12 SP3 does not depend on python-yaml?

Klaus Kaempf

unread,
Oct 18, 2017, 4:21:45 AM10/18/17
to Simon Gao, Salt-users
Simon,


* Simon Gao <simo...@schrodinger.com> [Oct 18. 2017 01:13]:
> systemsmanagement:saltstack:products works for SLES 12 SP3. However for
> SLED 12 SP3, I still receive errors:

you can get a fully supported Salt via the 'advanced systems
management' module of SLE 12. Use YaST to add this module to your
system and "zypper install salt-minion".


python-PyYAML, providing python-yaml, is part of SLE_S_ 12. Apparently
it is not available for SLE_D_ 12. Please open a support request.

Klaus Kaempf

unread,
Oct 18, 2017, 7:14:55 AM10/18/17
to Simon Gao, Salt-users
* Klaus Kaempf <kka...@suse.de> [Oct 18. 2017 10:21]:
>
> you can get a fully supported Salt via the 'advanced systems
> management' module of SLE 12. Use YaST to add this module to your
> system and "zypper install salt-minion".

OMG, this module is not available for SLE Desktop.

So back to square one - you need to use the
systemsmanagement:saltstack:products repository from opensuse.org.

I now enabled additional package builds and verified that salt-minion
is actually installable on SLE Destop 12 SP3.

Darin Perusich

unread,
Oct 18, 2017, 7:52:11 AM10/18/17
to salt-...@googlegroups.com, Simon Gao
On Wed, Oct 18, 2017 at 7:14 AM, Klaus Kaempf <kka...@suse.de> wrote:
> * Klaus Kaempf <kka...@suse.de> [Oct 18. 2017 10:21]:
>>
>> you can get a fully supported Salt via the 'advanced systems
>> management' module of SLE 12. Use YaST to add this module to your
>> system and "zypper install salt-minion".
>
> OMG, this module is not available for SLE Desktop.

Shouldn't a bug be raised to get the package included in SLED in
advances systems management?

> So back to square one - you need to use the
> systemsmanagement:saltstack:products repository from opensuse.org.
>
> I now enabled additional package builds and verified that salt-minion
> is actually installable on SLE Destop 12 SP3.
>
> Klaus
> --
> SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg)
>
> --
> You received this message because you are subscribed to the Google Groups "Salt-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to salt-users+...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/salt-users/20171018111449.6ozsu2pyukavje4j%40heron.suse.de.

Klaus Kaempf

unread,
Oct 18, 2017, 8:43:00 AM10/18/17
to salt-...@googlegroups.com
* Darin Perusich <da...@darins.net> [Oct 18. 2017 13:52]:
> On Wed, Oct 18, 2017 at 7:14 AM, Klaus Kaempf <kka...@suse.de> wrote:
> >
> > OMG, this module is not available for SLE Desktop.
>
> Shouldn't a bug be raised to get the package included in SLED in
> advances systems management?

Well, yes, in theory. In practice, it's complicated :-/

The opensuse.org packages are fine code-wise. You just can't raise a
support request.
Reply all
Reply to author
Forward
0 new messages