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

fromrepo missing for pkg.installed #19

Open
arthurzenika opened this issue Dec 8, 2016 · 16 comments
Open

fromrepo missing for pkg.installed #19

arthurzenika opened this issue Dec 8, 2016 · 16 comments

Comments

@arthurzenika
Copy link
Contributor

On a debian jessie I end up with elasticsearch 1.0.3 installed (https://packages.debian.org/jessie/elasticsearch)

Maybe some sort of pinning has to be deployed or fromrepo used ?

@blbradley
Copy link
Contributor

Can you share your pillar data? And the relevant part of the state run?

@arthurzenika
Copy link
Contributor Author

pillar :

elasticsearch:
  config:
    network.host: IP

top.sls :

base: 
  'role:elasticsearch':
    - match: pillar
    - elasticsearch

@blbradley
Copy link
Contributor

I think you are looking for match: grain instead of match: pillar.

@blbradley
Copy link
Contributor

Sorry, I was wrong. There is pillar matching. Is that top.sls in your pillar or states?

@arthurzenika
Copy link
Contributor Author

that top.sls is in the states.

@blbradley
Copy link
Contributor

Do you have any Elasticsearch Debian repos in your sources.list or sources.list.d?

@arthurzenika
Copy link
Contributor Author

before running the formula no, after, yes.

@blbradley
Copy link
Contributor

What is the contents of those files?

@arthurzenika
Copy link
Contributor Author

# cat /etc/apt//sources.list.d/elasticsearch.list 
deb http://packages.elastic.co/elasticsearch/2.x/debian stable main

if you look at policy you see the default source has priority 990 :

# apt-cache policy elasticsearch
elasticsearch:
  Installed: 1.0.3+dfsg-5+deb8u1 
  Candidate: 1.0.3+dfsg-5+deb8u1 
  Version table:
     2.4.2 0
        500 http://packages.elastic.co/elasticsearch/2.x/debian/ stable/main amd64 Packages
     2.4.1 0
        500 http://packages.elastic.co/elasticsearch/2.x/debian/ stable/main amd64 Packages
     2.4.0 0
        500 http://packages.elastic.co/elasticsearch/2.x/debian/ stable/main amd64 Packages
     2.3.5 0
        500 http://packages.elastic.co/elasticsearch/2.x/debian/ stable/main amd64 Packages
     2.3.4 0
        500 http://packages.elastic.co/elasticsearch/2.x/debian/ stable/main amd64 Packages
     2.3.3 0
        500 http://packages.elastic.co/elasticsearch/2.x/debian/ stable/main amd64 Packages
     2.3.2 0
        500 http://packages.elastic.co/elasticsearch/2.x/debian/ stable/main amd64 Packages
     2.3.1 0
        500 http://packages.elastic.co/elasticsearch/2.x/debian/ stable/main amd64 Packages
     2.3.0 0
        500 http://packages.elastic.co/elasticsearch/2.x/debian/ stable/main amd64 Packages
     2.2.2 0
        500 http://packages.elastic.co/elasticsearch/2.x/debian/ stable/main amd64 Packages
     2.2.1 0
        500 http://packages.elastic.co/elasticsearch/2.x/debian/ stable/main amd64 Packages
     2.2.0 0
        500 http://packages.elastic.co/elasticsearch/2.x/debian/ stable/main amd64 Packages
     2.1.2 0
        500 http://packages.elastic.co/elasticsearch/2.x/debian/ stable/main amd64 Packages
     2.1.1 0
        500 http://packages.elastic.co/elasticsearch/2.x/debian/ stable/main amd64 Packages
     2.1.0 0
        500 http://packages.elastic.co/elasticsearch/2.x/debian/ stable/main amd64 Packages
     2.0.2 0
        500 http://packages.elastic.co/elasticsearch/2.x/debian/ stable/main amd64 Packages
     2.0.1 0
        500 http://packages.elastic.co/elasticsearch/2.x/debian/ stable/main amd64 Packages
     2.0.0 0
        500 http://packages.elastic.co/elasticsearch/2.x/debian/ stable/main amd64 Packages
     2.0.0~rc1 0
        500 http://packages.elastic.co/elasticsearch/2.x/debian/ stable/main amd64 Packages
     2.0.0~beta2 0
        500 http://packages.elastic.co/elasticsearch/2.x/debian/ stable/main amd64 Packages
     2.0.0~beta1 0
        500 http://packages.elastic.co/elasticsearch/2.x/debian/ stable/main amd64 Packages
     1.6.2+dfsg-1~bpo8+1 0
        100 http://ftp.debian.org/debian/ jessie-backports/main amd64 Packages
        100 http://ftp.fr.debian.org/debian/ jessie-backports/main amd64 Packages
     **** 1.0.3+dfsg-5+deb8u1 0
        990 http://security.debian.org/debian-security/ jessie/updates/main amd64 Packages
        100 /var/lib/dpkg/status

@blbradley
Copy link
Contributor

Did you add the asterisks beside 1.0.3+dfsg-5+deb8u1 0?

@arthurzenika
Copy link
Contributor Author

no it's the installed version

@blbradley
Copy link
Contributor

What does your sources.list entry for http://security.debian.org look like?

@arthurzenika
Copy link
Contributor Author

# cat /etc/apt/sources.list
deb http://httpredir.debian.org/debian/ jessie main contrib non-free
deb-src http://httpredir.debian.org/debian/ jessie main contrib non-free

deb http://httpredir.debian.org/debian/ jessie-updates main contrib non-free
deb-src http://httpredir.debian.org/debian/ jessie-updates main contrib non-free

deb http://security.debian.org/debian-security jessie/updates main contrib non-free
deb-src http://security.debian.org/debian-security jessie/updates main contrib non-free

@blbradley
Copy link
Contributor

How do you setup Debian? Cloud? debootstrap? My Jessie VMs and the documentation use:

deb http://security.debian.org/ jessie/updates main contrib non-free
deb-src http://security.debian.org/ jessie/updates main contrib non-free

@arthurzenika
Copy link
Contributor Author

I give up, I don't know where you're going.

@blbradley
Copy link
Contributor

I'm saying the problem is with your sources.list. I'm asking how you setup Debian to determine how the sources.list file was built. Some cloud providers have their own customization that can break things.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants