update-linux 3.5.1__tar.gz → 3.5.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {update_linux-3.5.1 → update_linux-3.5.3}/PKG-INFO +1 -1
- {update_linux-3.5.1 → update_linux-3.5.3}/src/update_linux/__init__.py +23 -21
- {update_linux-3.5.1 → update_linux-3.5.3}/src/update_linux.egg-info/PKG-INFO +1 -1
- {update_linux-3.5.1 → update_linux-3.5.3}/LICENSE +0 -0
- {update_linux-3.5.1 → update_linux-3.5.3}/README.md +0 -0
- {update_linux-3.5.1 → update_linux-3.5.3}/pyproject.toml +0 -0
- {update_linux-3.5.1 → update_linux-3.5.3}/requirements.txt +0 -0
- {update_linux-3.5.1 → update_linux-3.5.3}/setup.cfg +0 -0
- {update_linux-3.5.1 → update_linux-3.5.3}/src/update_linux/__main__.py +0 -0
- {update_linux-3.5.1 → update_linux-3.5.3}/src/update_linux.egg-info/SOURCES.txt +0 -0
- {update_linux-3.5.1 → update_linux-3.5.3}/src/update_linux.egg-info/dependency_links.txt +0 -0
- {update_linux-3.5.1 → update_linux-3.5.3}/src/update_linux.egg-info/entry_points.txt +0 -0
- {update_linux-3.5.1 → update_linux-3.5.3}/src/update_linux.egg-info/requires.txt +0 -0
- {update_linux-3.5.1 → update_linux-3.5.3}/src/update_linux.egg-info/top_level.txt +0 -0
|
@@ -9,7 +9,7 @@ import tempfile
|
|
|
9
9
|
import json
|
|
10
10
|
from config_path import ConfigPath # type: ignore
|
|
11
11
|
|
|
12
|
-
VERSION = '3.5.
|
|
12
|
+
VERSION = '3.5.3'
|
|
13
13
|
|
|
14
14
|
default_json_config_template = u'''{
|
|
15
15
|
"group":
|
|
@@ -257,6 +257,8 @@ For help:
|
|
|
257
257
|
if host in all_to_exclude:
|
|
258
258
|
continue
|
|
259
259
|
|
|
260
|
+
self.flushDns()
|
|
261
|
+
|
|
260
262
|
os_plugin_type, os_id, os_version = self.detectOperatingSystem( host )
|
|
261
263
|
if os_plugin_type is None:
|
|
262
264
|
if os_id is not None:
|
|
@@ -267,7 +269,6 @@ For help:
|
|
|
267
269
|
|
|
268
270
|
plugin = os_id_to_plugin[ os_plugin_type ]( self )
|
|
269
271
|
|
|
270
|
-
self.flushDns()
|
|
271
272
|
if self.opt_check:
|
|
272
273
|
plugin.check( host,
|
|
273
274
|
check_log_name=self.logdir / ('check-update-%s-%s.log' % (host or 'localhost', self.ts)) )
|
|
@@ -383,7 +384,6 @@ For help:
|
|
|
383
384
|
cmd = ['killall', '-HUP', 'mDNSResponder']
|
|
384
385
|
self.runAndLog( None, cmd, log=False )
|
|
385
386
|
|
|
386
|
-
|
|
387
387
|
def detectOperatingSystem( self, host ):
|
|
388
388
|
if host is not None:
|
|
389
389
|
rc = ssh_wait( host, wait=False, log_fn=None )
|
|
@@ -671,30 +671,32 @@ class UpdatePluginFedora:
|
|
|
671
671
|
self.app.checkServices( host, status_log_name )
|
|
672
672
|
|
|
673
673
|
def systemUpgrade( self, host, target_release, upgrade_log_name ):
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
674
|
+
while True:
|
|
675
|
+
current_release = self.releaseInfo( host )
|
|
676
|
+
if current_release >= target_release:
|
|
677
|
+
self.app.info( host, 'Already running release %d' % (current_release,) )
|
|
678
|
+
return
|
|
678
679
|
|
|
679
|
-
|
|
680
|
+
self.app.info( host, 'Currently release %d' % (current_release,) )
|
|
680
681
|
|
|
681
|
-
|
|
682
|
-
|
|
682
|
+
# only update by one release at a time
|
|
683
|
+
next_release = current_release + 1
|
|
683
684
|
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
685
|
+
cmd = ['dnf', 'system-upgrade', 'download', '--releasever=%d' % (next_release,), '--assumeyes']
|
|
686
|
+
rc, stdout = self.app.runAndLog( host, cmd )
|
|
687
|
+
self.app.writeLines( upgrade_log_name, stdout )
|
|
687
688
|
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
689
|
+
if rc != 0:
|
|
690
|
+
self.app.error( host, 'Failure to download release %d' % (next_release,) )
|
|
691
|
+
return
|
|
691
692
|
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
693
|
+
self.app.info( host, 'Rebooting to install system-upgrade' )
|
|
694
|
+
# upgrades of lots of packages can be slow - wait for 45 minutes
|
|
695
|
+
if self.app.reboot( host, ['dnf', 'system-upgrade', 'reboot', '--assumeyes'], wait_limit=45*60 ):
|
|
696
|
+
if not self.app.checkServices( host, upgrade_log_name ):
|
|
697
|
+
return
|
|
696
698
|
|
|
697
|
-
|
|
699
|
+
self.app.info( host, 'Now running release %d' % (self.releaseInfo( host ),) )
|
|
698
700
|
|
|
699
701
|
def releaseInfo( self, host ):
|
|
700
702
|
cmd = ['cat', '/etc/system-release-cpe']
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|