]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commitdiff
[RM-14099] osd: partx/partprobe calls are no longer needed when zapping. ceph-disk... RM-14099 400/head
authorAlfredo Deza <adeza@redhat.com>
Mon, 6 Jun 2016 20:42:27 +0000 (16:42 -0400)
committerAlfredo Deza <adeza@redhat.com>
Mon, 6 Jun 2016 20:42:27 +0000 (16:42 -0400)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
ceph_deploy/osd.py

index 3ce24d32083a15e9ffd5dae3f06525744fb42001..1b4caa0828ab8ce7c004724343adc33e903148a9 100644 (file)
@@ -428,34 +428,6 @@ def disk_zap(args):
             ],
         )
 
-        # once all is done, call partprobe (or partx)
-        # On RHEL and CentOS distros, calling partprobe forces a reboot of the
-        # server. Since we are not resizing partitons we rely on calling
-        # partx
-        if distro.normalized_name.startswith(('centos', 'red')):
-            LOG.info('calling partx on zapped device %s', disk)
-            LOG.info('re-reading known partitions will display errors')
-            partx_executable = system.executable_path(distro.conn, 'partx')
-            remoto.process.run(
-                distro.conn,
-                [
-                    partx_executable,
-                    '-a',
-                    disk,
-                ],
-            )
-
-        else:
-            LOG.debug('Calling partprobe on zapped device %s', disk)
-            partprobe_executable = system.executable_path(distro.conn, 'partprobe')
-            remoto.process.run(
-                distro.conn,
-                [
-                    partprobe_executable,
-                    disk,
-                ],
-            )
-
         distro.conn.exit()