FAQ
I want to upgrade from the ancient version of salt that comes with CentOS
to the current release, but there is an inconsistency with the installed
python.

The output from yum says it all:

$ yum repolist
Loaded plugins: auto-update-debuginfo, langpacks, presto, refresh-packagekit
repo id repo name
       status
epel/i386 Extra Packages for Enterprise Linux 6 - i386
       9,046
epel-debuginfo/i386 Extra Packages for Enterprise Linux 6 - i386 -
Debug 2,154
fedora/17/i386 Fedora 17 - i386
      21,738
fedora-debuginfo/17/i386 Fedora 17 - i386 - Debug
       5,935
updates/17/i386 Fedora 17 - i386 - Updates
      10,676
updates-debuginfo/17/i386 Fedora 17 - i386 - Updates - Debug
       2,450
repolist: 51,999

$ yum upgrade salt-master
Loaded plugins: auto-update-debuginfo, langpacks, presto, refresh-packagekit
Resolving Dependencies
--> Running transaction check
---> Package salt-master.noarch 0:0.15.1-1.fc17 will be updated
---> Package salt-master.noarch 0:2014.1.5-1.el6 will be an update
--> Processing Dependency: salt = 2014.1.5-1.el6 for package:
salt-master-2014.1.5-1.el6.noarch
--> Running transaction check
---> Package salt.noarch 0:0.15.1-1.fc17 will be updated
---> Package salt.noarch 0:2014.1.5-1.el6 will be an update
--> Processing Dependency: python(abi) = 2.6 for package:
salt-2014.1.5-1.el6.noarch
--> Processing Dependency: sshpass for package: salt-2014.1.5-1.el6.noarch
--> Running transaction check
---> Package salt.noarch 0:2014.1.5-1.el6 will be an update
--> Processing Dependency: python(abi) = 2.6 for package:
salt-2014.1.5-1.el6.noarch
---> Package sshpass.i686 0:1.05-2.fc17 will be installed
--> Finished Dependency Resolution
Error: Package: salt-2014.1.5-1.el6.noarch (epel)
            Requires: python(abi) = 2.6
            Installed: python-2.7.3-7.2.fc17.i686 (@updates)
                python(abi) = 2.7
                python(abi) = 2.7
            Available: python-2.7.3-6.fc17.i686 (fedora)
                python(abi) = 2.7
                python(abi) = 2.7
            Available: python3-3.2.3-5.fc17.i686 (fedora)
                python(abi) = 3.2
            Available: python3-3.2.3-7.fc17.i686 (updates)
                python(abi) = 3.2

I don't seem to be able to downgrade to Python 2.6 using either the
standard Centos repos or epel.

Any idea why the rpm insists on 2.6, rather than 2.6+? I installed
salt-2014.1.5 on Ubuntu Trusty and it seems to work fine, and that machine
only has python 2.7 and python 3.

If there is an rpm that is more accepting, that would be the preferred
solution. Perhaps there is a better repo than epel for salt? Any idea why
the Ubuntu install accepts 2.7 and the epel does not?

Thanks.

Gary Levin

--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

  • Corey Quinn at Jul 7, 2014 at 10:48 pm
    You're running CentOS, but you've added Fedora repositories to the node-- this will indeed cause the system to attempt to eat itself.

    Furthermore, you've got a number of Fedora packages already installed, and they appear to contain a new version of Python. EL assumes 2.6, not 2.7.

    This is usually the part of the story where we verify that you've got good backups. :-)

    --
    Corey Quinn

    On Jul 7, 2014, at 3:10 PM, Gary Levin wrote:

    I want to upgrade from the ancient version of salt that comes with CentOS to the current release, but there is an inconsistency with the installed python.

    The output from yum says it all:

    $ yum repolist
    Loaded plugins: auto-update-debuginfo, langpacks, presto, refresh-packagekit
    repo id repo name status
    epel/i386 Extra Packages for Enterprise Linux 6 - i386 9,046
    epel-debuginfo/i386 Extra Packages for Enterprise Linux 6 - i386 - Debug 2,154
    fedora/17/i386 Fedora 17 - i386 21,738
    fedora-debuginfo/17/i386 Fedora 17 - i386 - Debug 5,935
    updates/17/i386 Fedora 17 - i386 - Updates 10,676
    updates-debuginfo/17/i386 Fedora 17 - i386 - Updates - Debug 2,450
    repolist: 51,999

    $ yum upgrade salt-master
    Loaded plugins: auto-update-debuginfo, langpacks, presto, refresh-packagekit
    Resolving Dependencies
    --> Running transaction check
    ---> Package salt-master.noarch 0:0.15.1-1.fc17 will be updated
    ---> Package salt-master.noarch 0:2014.1.5-1.el6 will be an update
    --> Processing Dependency: salt = 2014.1.5-1.el6 for package: salt-master-2014.1.5-1.el6.noarch
    --> Running transaction check
    ---> Package salt.noarch 0:0.15.1-1.fc17 will be updated
    ---> Package salt.noarch 0:2014.1.5-1.el6 will be an update
    --> Processing Dependency: python(abi) = 2.6 for package: salt-2014.1.5-1.el6.noarch
    --> Processing Dependency: sshpass for package: salt-2014.1.5-1.el6.noarch
    --> Running transaction check
    ---> Package salt.noarch 0:2014.1.5-1.el6 will be an update
    --> Processing Dependency: python(abi) = 2.6 for package: salt-2014.1.5-1.el6.noarch
    ---> Package sshpass.i686 0:1.05-2.fc17 will be installed
    --> Finished Dependency Resolution
    Error: Package: salt-2014.1.5-1.el6.noarch (epel)
    Requires: python(abi) = 2.6
    Installed: python-2.7.3-7.2.fc17.i686 (@updates)
    python(abi) = 2.7
    python(abi) = 2.7
    Available: python-2.7.3-6.fc17.i686 (fedora)
    python(abi) = 2.7
    python(abi) = 2.7
    Available: python3-3.2.3-5.fc17.i686 (fedora)
    python(abi) = 3.2
    Available: python3-3.2.3-7.fc17.i686 (updates)
    python(abi) = 3.2

    I don't seem to be able to downgrade to Python 2.6 using either the standard Centos repos or epel.

    Any idea why the rpm insists on 2.6, rather than 2.6+? I installed salt-2014.1.5 on Ubuntu Trusty and it seems to work fine, and that machine only has python 2.7 and python 3.

    If there is an rpm that is more accepting, that would be the preferred solution. Perhaps there is a better repo than epel for salt? Any idea why the Ubuntu install accepts 2.7 and the epel does not?

    Thanks.

    Gary Levin


    --
    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+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
  • Jacob Albretsen at Jul 7, 2014 at 10:53 pm

    On Monday, July 07, 2014 03:10:40 PM Gary Levin wrote:
    I want to upgrade from the ancient version of salt that comes with CentOS
    to the current release, but there is an inconsistency with the installed
    python.
    Looking at your output, you are mixing fc17 RPMs and el6 RPMs. I would
    recommend using RPMs specifically for Fedora 17. CentOS (RHEL) 6 is based on
    Fedora 12 / 13, which is what EPEL 6 is designed for.

    According to the docs, Salt is on standard Fedora repos, however Fedora 17 is
    no longer maintained (EOL 2013-07-30), so you may have to roll your own RPMs
    for the latest version of Salt. Or update Fedora.

    --
    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+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
  • Gary Levin at Jul 8, 2014 at 2:05 pm
    Too many VMs. This is in fact an old Fedora install, so my adding epel was
    a mistake (I just added it to my CentOS boxes and mistakenly added it
    here). I'll switch to the right VM and try again. Sorry for the false alarm
    and thanks for the help.

    Gary Levin
    On Monday, July 7, 2014 6:53:27 PM UTC-4, Jacob Albretsen wrote:
    On Monday, July 07, 2014 03:10:40 PM Gary Levin wrote:
    I want to upgrade from the ancient version of salt that comes with CentOS
    to the current release, but there is an inconsistency with the installed
    python.
    Looking at your output, you are mixing fc17 RPMs and el6 RPMs. I would
    recommend using RPMs specifically for Fedora 17. CentOS (RHEL) 6 is based
    on
    Fedora 12 / 13, which is what EPEL 6 is designed for.

    According to the docs, Salt is on standard Fedora repos, however Fedora 17
    is
    no longer maintained (EOL 2013-07-30), so you may have to roll your own
    RPMs
    for the latest version of Salt. Or update Fedora.
    --
    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+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
  • Gary Levin at Jul 8, 2014 at 8:06 pm
    User error. I switched to a Centos 6.5 box and the Salt install worked
    fine. Configuring a Windows box is a different issue and I'll start another
    thread for that.

    Thanks again.

    On Tue, Jul 8, 2014 at 10:05 AM, Gary Levin wrote:

    Too many VMs. This is in fact an old Fedora install, so my adding epel was
    a mistake (I just added it to my CentOS boxes and mistakenly added it
    here). I'll switch to the right VM and try again. Sorry for the false alarm
    and thanks for the help.

    Gary Levin

    On Monday, July 7, 2014 6:53:27 PM UTC-4, Jacob Albretsen wrote:
    On Monday, July 07, 2014 03:10:40 PM Gary Levin wrote:
    I want to upgrade from the ancient version of salt that comes with CentOS
    to the current release, but there is an inconsistency with the installed
    python.
    Looking at your output, you are mixing fc17 RPMs and el6 RPMs. I would
    recommend using RPMs specifically for Fedora 17. CentOS (RHEL) 6 is
    based on
    Fedora 12 / 13, which is what EPEL 6 is designed for.

    According to the docs, Salt is on standard Fedora repos, however Fedora
    17 is
    no longer maintained (EOL 2013-07-30), so you may have to roll your own
    RPMs
    for the latest version of Salt. Or update Fedora.
    --
    You received this message because you are subscribed to a topic in the
    Google Groups "Salt-users" group.
    To unsubscribe from this topic, visit
    https://groups.google.com/d/topic/salt-users/7ecd36gjScc/unsubscribe.
    To unsubscribe from this group and all its topics, send an email to
    salt-users+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
    --
    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+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupsalt-users @
postedJul 7, '14 at 10:10p
activeJul 8, '14 at 8:06p
posts5
users3

People

Translate

site design / logo © 2022 Grokbase