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

CARBON: error when using pkg.installed with url source #36804

Closed
Ch3LL opened this issue Oct 5, 2016 · 2 comments
Closed

CARBON: error when using pkg.installed with url source #36804

Ch3LL opened this issue Oct 5, 2016 · 2 comments
Labels
Bug broken, incorrect, or confusing behavior Core relates to code central or existential to Salt P4 Priority 4 severity-critical top severity, seen by most users, serious issues severity-medium 3rd level, incorrect or bad functionality, confusing and lacks a work around State-Module ZRELEASED - Carbon
Milestone

Comments

@Ch3LL
Copy link
Contributor

Ch3LL commented Oct 5, 2016

Description of Issue/Question

When attempting to use the epel saltstack formula I am seeing a failure on this state here on cent7

epel_release:
  pkg.installed:
    - sources:
      - epel-release: {{ salt['pillar.get']('epel:rpm', pkg.rpm) }}
    - require:
      - file: install_pubkey_epel

Here is the state.show_sls to show what the state looks like with the pillars rendered:

    epel_release:
        ----------
        __env__:
            base
        __sls__:
            epel
        pkg:
            |_
              ----------
              sources:
                  |_
                    ----------
                    epel-release:
                        http://download.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-8.noarch.rpm
            |_
              ----------
              require:
                  |_
                    ----------
                    file:
                        install_pubkey_epel
            - installed
            |_
              ----------
              order:
                  10001

Here is the failure:

----------
          ID: epel_release
    Function: pkg.installed
      Result: False
     Comment: Error occurred installing package(s). Additional info follows:

              errors:
                  - Running as unit run-15569.scope.
                    Loaded plugins: fastestmirror, langpacks
                    Loading mirror speeds from cached hostfile
                     * base: pubmirrors.dal.corespace.com
                     * extras: denver.gaminghost.co
                     * updates: centos-distro.cavecreek.net
                    No package /var/tmp/.root_015851_salt/running_data/var/cache/salt/minion/extrn_files/base/download.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-
8.noarch.rpm- available.
                    Error: Nothing to do
     Started: 11:59:49.519990
    Duration: 4689.123 ms
     Changes:   

Setup

  1. cent7 minion/master
  2. put the following in master config
fileserver_backend:
  - git
  - roots

gitfs_remotes:
  - https://github.com/saltstack-formulas/epel-formula.git

This was previously working in v2016.9 and this is hte first bad commit: 70e7f6d

Steps to Reproduce Issue

  1. salt '*' state.sls epel

Versions Report

[root@cent-test-M1 ~]# salt --versions-report
Salt Version:
           Salt: 2016.9.0alpha1

Dependency Versions:
           cffi: 0.8.6
       cherrypy: Not Installed
       dateutil: Not Installed
          gitdb: Not Installed
      gitpython: Not Installed
          ioflo: Not Installed
         Jinja2: 2.7.2
        libgit2: 0.21.0
        libnacl: Not Installed
       M2Crypto: 0.21.1
           Mako: Not Installed
   msgpack-pure: Not Installed
 msgpack-python: 0.4.8
   mysql-python: Not Installed
      pycparser: 2.14
       pycrypto: 2.6.1
         pygit2: 0.21.4
         Python: 2.7.5 (default, Nov 20 2015, 02:00:19)
   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.2.1511 Core
        machine: x86_64
        release: 3.10.0-327.4.5.el7.x86_64
         system: Linux
        version: CentOS Linux 7.2.1511 Core
@Ch3LL
Copy link
Contributor Author

Ch3LL commented Oct 5, 2016

Here is a docker container to easily reproduce the issue:

  1. docker run -v /home/ch3ll/git/salt/:/testing/ ch3ll/issues:36804 salt-call --local state.sls epel -ldebug

@Ch3LL Ch3LL added Bug broken, incorrect, or confusing behavior severity-medium 3rd level, incorrect or bad functionality, confusing and lacks a work around Core relates to code central or existential to Salt P4 Priority 4 State-Module labels Oct 5, 2016
@Ch3LL Ch3LL added this to the Approved milestone Oct 5, 2016
@meggiebot meggiebot added the severity-critical top severity, seen by most users, serious issues label Oct 6, 2016
@meggiebot meggiebot modified the milestones: C 2, Approved Oct 6, 2016
@Ch3LL
Copy link
Contributor Author

Ch3LL commented Oct 6, 2016

Closing. I have confirmed the fix resolves the issue.

@Ch3LL Ch3LL closed this as completed Oct 6, 2016
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 P4 Priority 4 severity-critical top severity, seen by most users, serious issues severity-medium 3rd level, incorrect or bad functionality, confusing and lacks a work around State-Module ZRELEASED - Carbon
Projects
None yet
Development

No branches or pull requests

2 participants