-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Debian: upgrading from 2015.8.3 with pkg.install fails #30937
Comments
We have seen various reports of this in |
And of course, if I run the pkg.install on the salt minion with |
I take it that we see the same behaviour if you run |
@BABILEN correct. |
I also tried upgrading with cmd.run out of curiosity, but that also failed.
|
I've solved this issue by scheduling the upgrade with at. Suboptimal, but it does work. It won't fix your broken installs though.
|
Thinking this may be related to the incorrect reliance on python-systemd in 2015.8.4 which has since been removed in 2015.8.5. |
If that was the case, I don't think running the |
@anlutro trying your commands now |
Looks like this is due to salt.loaded.int.module.nova.virtual() is wrongly returning Seeing the loader ERROR out due to exception virtual function for nova |
I've seen that error in my logs for a long time and it hasn't caused any real problems. Why does it cause the package upgrade to fail? And why only this particular upgrade path? Like I said, upgrading from 2015.8.4 to .5 worked fine. |
The error referenced by @dmurphy18 would not cause this problem. @anlutro What version was your master running when you performed this upgrade? |
2015.8.3 On Fri, 12 Feb 2016 18:22 Erik Johnson notifications@github.com wrote:
|
OK. It is discouraged to update the minion before the master, because sometimes changes in Salt require the minion's responses to the master to change, and an older master doesn't know how to deal with those changes in the minion's communication payloads. I'm trying to reproduce this right now, but if you have any 2015.8.3 minions remaining, could you try upgrading the master first and then upgrade the minion? |
Right... I will try in our test environment on Monday. Though a pillar On Fri, 12 Feb 2016 18:25 Erik Johnson notifications@github.com wrote:
|
@terminalmage: I tried upgrading the salt-master first, and the exact same problem occurs.
|
Maybe closing this was a bit premature? |
I was able to replicate this upgrading from 2015.8.3 to 2015.8.7: SALTMASTER:
DEBIAN8 VM:
Also to note I did not see this behavior when upgrading from 2015.8.4 to 2015.8.7 Ping @terminalmage ^ my test case |
After doing a number of tests (including replicating the results that @Ch3LL saw), all signs point to the problem being with the creation of the 2015.8.3 packages for Debian 8. I could not reproduce this with the Ubuntu 14.04 packages for 2015.8.3, and while testing with Debian, upgrading from any 2015.8.x release to any other 2015.8.x release worked fine, with the exception of upgrading from 2015.8.3 to anything else. |
As long as it's not an issue with new releases, I guess there's not much to do about this. Though it would be reassuring to find the root cause so that whatever mistake was made doesn't happen again. |
Yeah, we're still doing investigation internally to see if we can narrow this down. If possible, we will update the 2015.8.3 archived packages to correct this. |
Just tried upgrading from 2015.8.3 to 2015.8.7 from the command line with apt-get and had no issues, apart from a screen pop-up informing me of new updates holding a lock, once that was 'remind me later' the upgrade was fine. Had installed 2015.8.3 and upgraded by the following steps: edited sources.lst for 2015.8.7 everything worked fine. Investigating further, getting with Ch3ll |
Yes, that worked fine for me as well. As did It seems like the pkg.upgrade only fails when it's done remotely through a master/minion connection - so possibly, the error only happens when the pkg.upgrade function call happens as a subthread/subprocess of the salt-minion process. |
The salt-minion.service should contain KillMode=process but doews not. |
The missing KillMode=process affects 2015.5.5 through 2015.5.8, and 20915.8.0 through 2015.8.3 |
@anlutro A Warning notice for this issue will be made in the release notes for the next point release (which is extremely immanent). With that I would like to close this issue, since it is a 'will not fix' |
Sounds good to me. |
Oddly enough, if I SSH into the box and manually run the exact same
apt-get install
command that salt does (based on the minion logs), the package installs just fine.This happens when upgrading from 2015.8.3 to .4 or .5. Upgrading from .4 to .5 went fine.
dpkg.log:
apt/history.log:
apt/term.log:
The text was updated successfully, but these errors were encountered: