[Debian]: error adding repos from saltstack

187 views
Skip to first unread message

Veniamin Gvozdikov

unread,
May 20, 2013, 12:41:09 PM5/20/13
to salt-...@googlegroups.com
Hello,

I'm having error in salt-minion when I'm using a my custom debian repo:

[ERROR ] Unable to import "sourceslist" from "aptsources" module: No module named softwareproperties.ppa
[ERROR ] Unable to import "sourceslist" from "aptsources" module: No module named softwareproperties.ppa

I have installed packages from deb http://debian.saltstack.com/debian squeeze-saltstack main :

ii salt-common 0.15.1-1~bpo60+1 shared libraries that salt requires for all pack
ii salt-minion 0.15.1-1~bpo60+1 client package for salt, the distributed remote

Colton Myers

unread,
May 20, 2013, 6:39:44 PM5/20/13
to salt-...@googlegroups.com
Can you provide the states that you're using to configure your custom debian repo?  We will need more details in order to help you debug your problem.

Thanks!

--
Colton Myers



--
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.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Joe Healy

unread,
May 20, 2013, 7:45:59 PM5/20/13
to salt-...@googlegroups.com
Hi,

A guess might be that the squeeze version of python-apt doesn't
include support for softwareproperties.ppa.

There are possibly ways around this if this is the case.

Cheers,

Joe

Veniamin Gvozdikov

unread,
May 21, 2013, 1:39:25 AM5/21/13
to salt-...@googlegroups.com
Hi,

Yes. See it http://pastebin.com/ybd39f9K it will remove next week. 

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/Y3s1BoH1XP0/unsubscribe?hl=en-US.
To unsubscribe from this group and all its topics, send an email to salt-users+...@googlegroups.com.

Mrten

unread,
May 21, 2013, 4:20:54 AM5/21/13
to salt-...@googlegroups.com
On 21/5/2013 01:45 , Joe Healy wrote:
> Hi,
>
> A guess might be that the squeeze version of python-apt doesn't
> include support for softwareproperties.ppa.
>
> There are possibly ways around this if this is the case.

What *is* this softwareproperties.ppa? I get lots of warnings too, on
Ubuntu, and I saw a bug

https://github.com/saltstack/salt/issues/4629

mentioning it, but a quick google didn't turn up anything.

M.

Colton Myers

unread,
May 21, 2013, 12:41:14 PM5/21/13
to salt-...@googlegroups.com
OK, I see the source of the problem.  We try to import softwareproperties.ppa from the sourceslist module here:  https://github.com/saltstack/salt/blob/develop/salt/modules/apt.py#L26-L30

If it fails and the OS is Ubuntu, then we log a warning:  https://github.com/saltstack/salt/blob/develop/salt/modules/apt.py#L50-L52

Is the state actually failing in addition?  Looking back I don't think you ever stated whether your state is actually failing.

Finally, are you running Debian or Ubuntu?  I assumed Debian because you installed from the Debian repos, but at the same time that conditional shouldn't hit unless you're on Ubuntu, so I'm a little confused.

--
Colton Myers


Reply all
Reply to author
Forward
0 new messages