salt icon indicating copy to clipboard operation
salt copied to clipboard

pkg.group_installed infinite loop GNOME Desktop

Open jmiller0 opened this issue 10 years ago • 11 comments

When trying to install GNOME Desktop using group_installed, the state never finishes instead loops through all subgroups.

[INFO    ] Loading fresh modules for state activity
[INFO    ] Fetching file from saltenv 'base', ** done ** u'packages/basepkgadd_desktop.sls'
[INFO    ] Running state [GNOME Desktop] at time 10:09:11.727347
[INFO    ] Executing state pkg.group_installed for GNOME Desktop
[INFO    ] Executing command ['rpm', '-qa', '--queryformat', '%{NAME}_|-%{VERSION}_|-%{RELEASE}_|-%{ARCH}_|-(none)\n'] in directory '/root'
[INFO    ] Executing command ['yum', '--quiet', 'groupinfo', 'GNOME Desktop'] in directory '/root'
[INFO    ] Executing command ['yum', '--quiet', 'groupinfo', 'base'] in directory '/root'
[INFO    ] Executing command ['yum', '--quiet', 'groupinfo', 'core'] in directory '/root'
[INFO    ] Executing command ['yum', '--quiet', 'groupinfo', 'desktop-debugging'] in directory '/root'
[INFO    ] Executing command ['yum', '--quiet', 'groupinfo', 'dial-up'] in directory '/root'
[INFO    ] Executing command ['yum', '--quiet', 'groupinfo', 'directory-client'] in directory '/root'
[INFO    ] Executing command ['yum', '--quiet', 'groupinfo', 'fonts'] in directory '/root'
[INFO    ] Executing command ['yum', '--quiet', 'groupinfo', 'gnome-desktop'] in directory '/root'
[INFO    ] Executing command ['yum', '--quiet', 'groupinfo', 'base'] in directory '/root'
[INFO    ] Executing command ['yum', '--quiet', 'groupinfo', 'core'] in directory '/root'
[INFO    ] Executing command ['yum', '--quiet', 'groupinfo', 'desktop-debugging'] in directory '/root'
[INFO    ] Executing command ['yum', '--quiet', 'groupinfo', 'dial-up'] in directory '/root'
[INFO    ] Executing command ['yum', '--quiet', 'groupinfo', 'directory-client'] in directory '/root'
[INFO    ] Executing command ['yum', '--quiet', 'groupinfo', 'fonts'] in directory '/root'
[INFO    ] Executing command ['yum', '--quiet', 'groupinfo', 'gnome-desktop'] in directory '/root'
[INFO    ] Executing command ['yum', '--quiet', 'groupinfo', 'base'] in directory '/root'
[INFO    ] Executing command ['yum', '--quiet', 'groupinfo', 'core'] in directory '/root'
[INFO    ] Executing command ['yum', '--quiet', 'groupinfo', 'desktop-debugging'] in directory '/root'
[INFO    ] Executing command ['yum', '--quiet', 'groupinfo', 'dial-up'] in directory '/root'
[INFO    ] Executing command ['yum', '--quiet', 'groupinfo', 'directory-client'] in directory '/root'
[INFO    ] Executing command ['yum', '--quiet', 'groupinfo', 'fonts'] in directory '/root'
[INFO    ] Executing command ['yum', '--quiet', 'groupinfo', 'gnome-desktop'] in directory '/root'
[INFO    ] Executing command ['yum', '--quiet', 'groupinfo', 'base'] in directory '/root'
[INFO    ] Executing command ['yum', '--quiet', 'groupinfo', 'core'] in directory '/root'
[INFO    ] Executing command ['yum', '--quiet', 'groupinfo', 'desktop-debugging'] in directory '/root'
[INFO    ] Executing command ['yum', '--quiet', 'groupinfo', 'dial-up'] in directory '/root'
[INFO    ] Executing command ['yum', '--quiet', 'groupinfo', 'directory-client'] in directory '/root'
[INFO    ] Executing command ['yum', '--quiet', 'groupinfo', 'fonts'] in directory '/root'
[INFO    ] Executing command ['yum', '--quiet', 'groupinfo', 'gnome-desktop'] in directory '/root'
[INFO    ] Executing command ['yum', '--quiet', 'groupinfo', 'base'] in directory '/root'
[INFO    ] Executing command ['yum', '--quiet', 'groupinfo', 'core'] in directory '/root'
[INFO    ] Executing command ['yum', '--quiet', 'groupinfo', 'desktop-debugging'] in directory '/root'
[INFO    ] Executing command ['yum', '--quiet', 'groupinfo', 'dial-up'] in directory '/root'
[INFO    ] Executing command ['yum', '--quiet', 'groupinfo', 'directory-client'] in directory '/root'
[INFO    ] Executing command ['yum', '--quiet', 'groupinfo', 'fonts'] in directory '/root'
[INFO    ] Executing command ['yum', '--quiet', 'groupinfo', 'gnome-desktop'] in directory '/root'
[INFO    ] Executing command ['yum', '--quiet', 'groupinfo', 'base'] in directory '/root'
[INFO    ] Executing command ['yum', '--quiet', 'groupinfo', 'core'] in directory '/root'
[INFO    ] Executing command ['yum', '--quiet', 'groupinfo', 'desktop-debugging'] in directory '/root'
[INFO    ] Executing command ['yum', '--quiet', 'groupinfo', 'dial-up'] in directory '/root'
[INFO    ] Executing command ['yum', '--quiet', 'groupinfo', 'directory-client'] in directory '/root'
GNOME Desktop:
  pkg.group_installed
salt-call --versions-report
Salt Version:
           Salt: 2015.8.5

Dependency Versions:
         Jinja2: 2.8
       M2Crypto: Not Installed
           Mako: Not Installed
         PyYAML: 3.10
          PyZMQ: 14.3.1
         Python: 2.7.5 (default, Jun 17 2014, 18:11:42)
           RAET: Not Installed
        Tornado: 4.2.1
            ZMQ: 3.2.5
           cffi: Not Installed
       cherrypy: Not Installed
       dateutil: 1.5
          gitdb: Not Installed
      gitpython: Not Installed
          ioflo: Not Installed
        libgit2: Not Installed
        libnacl: Not Installed
   msgpack-pure: Not Installed
 msgpack-python: 0.4.4
   mysql-python: 1.2.3
      pycparser: Not Installed
       pycrypto: 2.6.1
         pygit2: Not Installed
   python-gnupg: Not Installed
          smmap: Not Installed
        timelib: Not Installed

System Versions:
           dist: centos 7.1.1503 Core
        machine: x86_64
        release: 3.10.0-229.el7.x86_64
         system: CentOS Linux 7.1.1503 Core

jmiller0 avatar Feb 16 '16 16:02 jmiller0

@jmiller0, thanks for reporting.

jfindlay avatar Feb 16 '16 20:02 jfindlay

I'm getting the same problem on Fedora 25 (master and minion) trying to install "Basic Desktop" group.

sebw avatar Feb 28 '17 20:02 sebw

Hi all, We have the same problem on centos-7 with a minion v2016.11 Any work around to get Gnome desktop installed ?

Salt Version:
           Salt: 2016.11.3

Dependency Versions:
           cffi: 1.6.0
       cherrypy: Not Installed
       dateutil: 1.5
          gitdb: Not Installed
      gitpython: Not Installed
          ioflo: Not Installed
         Jinja2: 2.7.2
        libgit2: Not Installed
        libnacl: Not Installed
       M2Crypto: Not Installed
           Mako: 0.8.1
   msgpack-pure: Not Installed
 msgpack-python: 0.4.8
   mysql-python: Not Installed
      pycparser: 2.14
       pycrypto: 2.6.1
         pygit2: Not Installed
         Python: 2.7.5 (default, Nov  6 2016, 00:28:07)
   python-gnupg: Not Installed
         PyYAML: 3.11
          PyZMQ: 15.3.0
           RAET: Not Installed
          smmap: Not Installed
        timelib: Not Installed
        Tornado: 4.2.1
            ZMQ: 4.1.4
 
System Versions:
           dist: centos 7.3.1611 Core
        machine: x86_64
        release: 3.10.0-514.10.2.el7.x86_64
         system: Linux
        version: CentOS Linux 7.3.1611 Core

samson-jerome avatar May 05 '17 15:05 samson-jerome

@samson-jerome use "cmd.run"

sebw avatar May 05 '17 16:05 sebw

Getting the same issue while trying to install "Server with GUI" on the following setup:

Salt Version:
           Salt: 2016.11.4
 
Dependency Versions:
           cffi: 1.6.0
       cherrypy: Not Installed
       dateutil: 1.5
      docker-py: Not Installed
          gitdb: Not Installed
      gitpython: Not Installed
          ioflo: Not Installed
         Jinja2: 2.7.2
        libgit2: Not Installed
        libnacl: Not Installed
       M2Crypto: Not Installed
           Mako: 0.8.1
   msgpack-pure: Not Installed
 msgpack-python: 0.4.8
   mysql-python: Not Installed
      pycparser: 2.14
       pycrypto: Not Installed
   pycryptodome: 3.4.3
         pygit2: Not Installed
         Python: 2.7.5 (default, Nov  6 2016, 00:28:07)
   python-gnupg: Not Installed
         PyYAML: 3.11
          PyZMQ: 15.3.0
           RAET: Not Installed
          smmap: Not Installed
        timelib: Not Installed
        Tornado: 4.2.1
            ZMQ: 4.1.4
 
System Versions:
           dist: centos 7.3.1611 Core
        machine: x86_64
        release: 3.10.0-514.el7.x86_64
         system: Linux
        version: CentOS Linux 7.3.1611 Core

The "cmd.run" workaround worked like a charm.

jpellman avatar May 11 '17 02:05 jpellman

Interestingly, this just worked for me on RHEL7 (2016.11.3 master, 2016.11.4 minion):

sap-pkggroup-ecc:
  pkg.group_installed:
    - names:
      - Large Systems Performance
      - Network File System Client
      - Performance Tools
      - Compatibility Libraries

sebw avatar May 12 '17 14:05 sebw

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.

stale[bot] avatar Oct 19 '18 12:10 stale[bot]

this issue is still valid, current workaround:

yum -y groups install 'GNOME Desktop':
  cmd.run:
    - unless: yum -q groups list installed 'GNOME Desktop' | grep 'GNOME'

georgegiovanni avatar Oct 24 '18 13:10 georgegiovanni

Thank you for updating this issue. It is no longer marked as stale.

stale[bot] avatar Oct 24 '18 13:10 stale[bot]

I am having the same problem too on 2019.2.2 on centos 7

VietTPham avatar Dec 14 '19 08:12 VietTPham

Closing this due to age, the old version of Salt. Can you retest this with the latest release of Salt 3006.2 and if still an issue, please open a new issue, which will have metrics in tracking issues.

Ch3LL avatar Aug 28 '23 18:08 Ch3LL