salt icon indicating copy to clipboard operation
salt copied to clipboard

2015.5 debian salt-master package forces sysvinit

Open EvaSDK opened this issue 10 years ago • 24 comments

Hello,

since I switched to repo.saltstack.com for my debian packages, I am having trouble upgrading to 2015.5.9. It seems control file is having an a hard dependency on sysvinit-core or python-systemd for salt-master package, however there is no python-systemd package available. Maybe it is intended to be distributed by saltstack repository as well but this is not the case currently so I am currently stuck with debian backports as I do not want to switch existing systems init.

I checked control file from: http://repo.saltstack.com/apt/debian/8/amd64/2015.5/salt_debian.tar.xz

Also salt-master is the only package causing problem, minion and cloud are fine.

EvaSDK avatar Jan 28 '16 11:01 EvaSDK

@EvaSDK, thanks for the report. What version of debian are you using?

jfindlay avatar Jan 29 '16 20:01 jfindlay

I assume this is Debian 8 since that's what's in the link provided in the report. :]

cachedout avatar Jan 29 '16 20:01 cachedout

Yes, this is debian 8.

EvaSDK avatar Jan 29 '16 22:01 EvaSDK

Hey,

as of today this is also the case if i upgrade 2015.8.3->2015.8.4 on Debian Jessie from repo.saltstack.com. Minion upgrade is fine, but master-upgrade wants to remove systemd-sysv and instead install systemd-shim and sysvinit-core.

Should i open a new issue or is this intended?

dudleyperkins avatar Feb 02 '16 09:02 dudleyperkins

I assume this is because of the dependency on python-systemd | sysvcore-init, but there is no python-systemd package, only python3-systemd.

anlutro avatar Feb 02 '16 13:02 anlutro

It should be noted that python-systemd is not in jessie:

python-systemd on amd64 -- wheezy-backports: 204-14~bpo70+1; stretch: 231-2; sid: 231-2

Systems are thereby forcibly switched over to SysVinit again.

wwentland avatar Feb 02 '16 13:02 wwentland

Aah i should've seen this myself, so i guess it's just a typo and will be corrected!?

dudleyperkins avatar Feb 02 '16 14:02 dudleyperkins

@dudleyperkins No, not really a typo. The problem is that python-systemd has not been backported to jessie and that the dependency can therefore not be satisfied. The packaging is appropriate for unstable, but not for backport repositories without that package.

wwentland avatar Feb 02 '16 14:02 wwentland

Eww that's unfortunate, so moving from the community to the "official" (jessie) repository a week ago wasn't really a good idea. Why isn't there a testing repo for that, do people really change the default init-system just for salt? I wonder what the next minor version-release depends on. Oh guess i'm starting to get conservative just like my os. Anyway thank you for this information, i have to see for myself what to do now.

dudleyperkins avatar Feb 02 '16 18:02 dudleyperkins

@dudleyperkins The solution is easy for Saltstack in this case: Ensure that python-systemd is also present in their repository. I'll also try to find some time to work on the community packaging for jessie and wheezy, so that might be an option soon again.

wwentland avatar Feb 02 '16 19:02 wwentland

@dudleyperkins I've experienced multiple problems with v2015.8.4 including this one. I'd stick with v2015.8.3 for now. It's in the repo archives.

blbradley avatar Feb 03 '16 05:02 blbradley

Apparently, it was just removed from the repo archives?

http://repo.saltstack.com/apt/debian/8/amd64/2015.8/

anlutro avatar Feb 03 '16 07:02 anlutro

@anlutro Not removed but moved.

http://repo.saltstack.com/apt/debian/8/amd64/archive/2015.8.3

blbradley avatar Feb 03 '16 17:02 blbradley

Ah, I didn't notice the archive directory.

anlutro avatar Feb 03 '16 17:02 anlutro

@anlutro I didn't either until yesterday. Usually just upgrade immediately. :weary:

blbradley avatar Feb 03 '16 17:02 blbradley

It's worth noting that this ticket breaks Vagrant provisioning for Debian Stable again. bootstrap-salt.sh will change the box from systemd to sysvinit which breaks the VirtualBox guest tools as they aren't loaded at boot time anymore. This results in Vagrant being unable to restart boxes which used the Salt provisioner or mount shared folders on them, due to the missing vboxsf module.

Basically, this is now the second time in 2 months that the official Salt repository has broken the bootstrap/Debian package installation process to a point where it is impossible to develop locally with the official repos, let alone provision production servers! Can we get better testing or perhaps some kind of "stable" vs "development" respositories so we can at least help catch these problems before development grinds to a halt while everybody scrambles to find work-arounds?

For additional Google sauce, here is the error message most people will google for if they use Vagrant:

mount -t vboxsf -o uid=`id -u vagrant`,gid=`getent group vagrant | cut -d: -f3` vagrant /vagrant
mount -t vboxsf -o uid=`id -u vagrant`,gid=`id -g vagrant` vagrant /vagrant

The error output from the last command was:
/sbin/mount.vboxsf: mounting failed with the error: No such device

jdelic avatar Feb 04 '16 17:02 jdelic

FYI: This has been caused by https://github.com/saltstack/salt-pack/issues/25 in salt-pack.

wwentland avatar Feb 04 '16 17:02 wwentland

Anyone have a procedure on how to unbork this?

cmarzullo avatar Feb 19 '16 19:02 cmarzullo

@cmarzullo I don't think this is a problem with 2015.8.3 or 2015.8.5.

blbradley avatar Feb 19 '16 19:02 blbradley

I don't know about the 2015.5 packages but can confirm this was only an issue with 2015.8.4.

anlutro avatar Feb 19 '16 19:02 anlutro