Browse code

Upgrading ceph-deploy to version 1.5.37

Change-Id: I6c6be50fdb3d5b8c36c82709e21586248ada34c1
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/2222
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Priyesh Padmavilasom <ppadmavilasom@vmware.com>

DheerajSShetty authored on 2017/03/31 09:05:41
Showing 9 changed files
... ...
@@ -1,5 +1,5 @@
1
-+++ a/ceph_deploy/hosts/__init__.py	2017-01-05 02:34:50.662524086 +0000
1
+--- a/ceph_deploy/hosts/__init__.py	2017-01-03 21:38:42.000000000 +0000
2 2
 @@ -7,7 +7,7 @@ on the type of distribution/version we a
3 3
  import logging
4 4
  from ceph_deploy import exc
... ...
@@ -11,14 +11,14 @@
11 11
  logger = logging.getLogger()
12 12
 @@ -68,7 +68,7 @@ def get(hostname,
13 13
      module.distro = module.normalized_name
14
-     module.is_el = module.normalized_name in ['redhat', 'centos', 'fedora', 'scientific']
14
+     module.is_el = module.normalized_name in ['redhat', 'centos', 'fedora', 'scientific', 'oracle']
15 15
      module.is_rpm = module.normalized_name in ['redhat', 'centos',
16
--                                               'fedora', 'scientific', 'suse']
17
-+                                               'fedora', 'scientific', 'suse', 'photon']
16
+-                                               'fedora', 'scientific', 'suse', 'oracle']
17
++                                               'fedora', 'scientific', 'suse', 'oracle', 'photon']
18 18
      module.is_deb = not module.is_rpm
19 19
      module.release = release
20 20
      module.codename = codename
21
-@@ -96,6 +96,7 @@ def _get_distro(distro, fallback=None, u
21
+@@ -97,6 +97,7 @@ def _get_distro(distro, fallback=None, u
22 22
          'redhat': centos,
23 23
          'fedora': fedora,
24 24
          'suse': suse,
... ...
@@ -26,8 +26,8 @@
26 26
          }
27 27
  
28 28
      if distro == 'redhat' and use_rhceph:
29
-@@ -112,6 +113,8 @@ def _normalized_distro_name(distro):
30
-         return 'scientific'
29
+@@ -115,6 +116,8 @@ def _normalized_distro_name(distro):
30
+         return 'oracle'
31 31
      elif distro.startswith(('suse', 'opensuse')):
32 32
          return 'suse'
33 33
 +    elif distro.startswith('photon'):
... ...
@@ -1,5 +1,5 @@
1
-+++ a/ceph_deploy/util/pkg_managers.py	2017-01-09 22:27:22.761855601 +0000
1
+--- a/ceph_deploy/util/pkg_managers.py	2017-01-03 21:38:42.000000000 +0000
2 2
 @@ -181,6 +181,13 @@ class Yum(RPMManagerBase):
3 3
      executable = 'yum'
4 4
      name = 'yum'
... ...
@@ -1,5 +1,5 @@
1
-+++ a/ceph_deploy/hosts/photon/__init__.py	2017-01-19 23:59:05.899266483 +0000
1
+--- a/ceph_deploy/hosts/photon/__init__.py	2017-03-30 23:17:33.833686463 +0000
2 2
 @@ -0,0 +1,23 @@
3 3
 +from . import mon  # noqa
4 4
 +from ceph_deploy.hosts.centos.install import repo_install  # noqa
... ...
@@ -1,5 +1,5 @@
1
-+++ a/ceph_deploy/hosts/photon/install.py	2017-01-10 23:45:59.844911936 +0000
1
+--- a/ceph_deploy/hosts/photon/install.py	2017-03-30 23:17:51.357073655 +0000
2 2
 @@ -0,0 +1,88 @@
3 3
 +from ceph_deploy.lib import remoto
4 4
 +from ceph_deploy.hosts.centos.install import repo_install, mirror_install  # noqa
5 5
deleted file mode 100644
... ...
@@ -1,59 +0,0 @@
1
-+++ a/ceph_deploy/hosts/photon/mon/create.py	2017-01-05 02:34:23.589511890 +0000
2
-@@ -0,0 +1,56 @@
3
-+from ceph_deploy.hosts import common
4
-+from ceph_deploy.util import system
5
-+from ceph_deploy.lib import remoto
6
-+
7
-+
8
-+def create(distro, args, monitor_keyring):
9
-+    hostname = distro.conn.remote_module.shortname()
10
-+    common.mon_create(distro, args, monitor_keyring, hostname)
11
-+
12
-+    if distro.init == 'sysvinit':
13
-+        service = distro.conn.remote_module.which_service()
14
-+        remoto.process.run(
15
-+            distro.conn,
16
-+            [
17
-+                service,
18
-+                'ceph',
19
-+                '-c',
20
-+                '/etc/ceph/{cluster}.conf'.format(cluster=args.cluster),
21
-+                'start',
22
-+                'mon.{hostname}'.format(hostname=hostname)
23
-+            ],
24
-+            timeout=7,
25
-+        )
26
-+
27
-+        system.enable_service(distro.conn)
28
-+    elif distro.init == 'systemd':
29
-+       # enable ceph target for this host (in case it isn't already enabled)
30
-+        remoto.process.run(
31
-+            distro.conn,
32
-+            [
33
-+                'systemctl',
34
-+                'enable',
35
-+                'ceph.target'
36
-+            ],
37
-+            timeout=7,
38
-+        )
39
-+
40
-+        # enable and start this mon instance
41
-+        remoto.process.run(
42
-+            distro.conn,
43
-+            [
44
-+                'systemctl',
45
-+                'enable',
46
-+                'ceph-mon@{hostname}'.format(hostname=hostname),
47
-+            ],
48
-+            timeout=7,
49
-+        )
50
-+        remoto.process.run(
51
-+            distro.conn,
52
-+            [
53
-+                'systemctl',
54
-+                'start',
55
-+                'ceph-mon@{hostname}'.format(hostname=hostname),
56
-+            ],
57
-+            timeout=7,
58
-+        )
... ...
@@ -1,5 +1,5 @@
1
-+++ a/ceph_deploy/hosts/photon/mon/__init__.py	2017-01-05 02:34:23.589511890 +0000
1
+--- a/ceph_deploy/hosts/photon/mon/__init__.py	2017-03-30 23:18:07.888497582 +0000
2 2
 @@ -0,0 +1,2 @@
3 3
 +from ceph_deploy.hosts.common import mon_add as add  # noqa
4
-+from .create import create  # noqa
4
++from ceph_deploy.hosts.common import mon_create as create  # noqa
... ...
@@ -1,5 +1,5 @@
1
-+++ a/ceph_deploy/hosts/photon/uninstall.py	2017-01-05 02:34:23.589511890 +0000
1
+--- a/ceph_deploy/hosts/photon/uninstall.py	2017-03-30 23:17:51.357073655 +0000
2 2
 @@ -0,0 +1,8 @@
3 3
 +def uninstall(distro, purge=False):
4 4
 +    packages = [
... ...
@@ -1,15 +1,15 @@
1
-+++ a/ceph_deploy/hosts/remotes.py	2017-01-23 23:43:38.822797323 +0000
1
+--- a/ceph_deploy/hosts/remotes.py	2017-01-03 21:38:42.000000000 +0000
2 2
 @@ -14,6 +14,12 @@ def platform_information(_linux_distribu
3 3
      """ detect platform information from remote host """
4 4
      linux_distribution = _linux_distribution or platform.linux_distribution
5 5
      distro, release, codename = linux_distribution()
6
-+
7 6
 +    if 'photon' in distro.lower():
8 7
 +        distro = 'photon'
9 8
 +        release = '1.0'
10 9
 +        codename = 'photon'
11 10
 +
11
++
12 12
      if not codename and 'debian' in distro.lower():  # this could be an empty string in Debian
13 13
          debian_codenames = {
14 14
              '8': 'jessie',
... ...
@@ -1,6 +1,6 @@
1 1
 Name:           ceph-deploy
2
-Version:        1.5.36
3
-Release:        2%{?dist}
2
+Version:        1.5.37
3
+Release:        1%{?dist}
4 4
 Url:            http://ceph.com/
5 5
 Summary:        Admin and deploy tool for Ceph
6 6
 License:        MIT
... ...
@@ -8,7 +8,7 @@ Group:          System/Filesystems
8 8
 Vendor:         VMware, Inc.
9 9
 Distribution:   Photon
10 10
 Source0:        https://pypi.python.org/packages/23/f0/f144b1b55534a3e10d269dbfbe092e0aaa1c4b826c24f5df9320ae9bdfce/%{name}-%{version}.tar.gz
11
-%define sha1 ceph-deploy=32ae7da1f89c40d26e342b558723bac60dd59432
11
+%define sha1 ceph-deploy=5c19b318320f2729c5b15da7159aa9824b885c1a
12 12
 Patch0:		ceph-deploy-init.patch
13 13
 Patch1:		ceph-deploy-package-manager.patch
14 14
 Patch2:		ceph-deploy-remote.patch
... ...
@@ -16,7 +16,6 @@ Patch3:		ceph-deploy-photon-distro-init.patch
16 16
 Patch4:		ceph-deploy-photon-distro-install.patch
17 17
 Patch5:		ceph-deploy-photon-distro-uninstall.patch
18 18
 Patch6:		ceph-deploy-photon-distro-mon-init.patch
19
-Patch7:		ceph-deploy-photon-distro-mon-create.patch
20 19
 
21 20
 BuildRequires:  python2
22 21
 BuildRequires:  python2-devel
... ...
@@ -38,7 +37,6 @@ An easy to use admin tool for deploy ceph storage clusters.
38 38
 %patch4 -p1
39 39
 %patch5 -p1
40 40
 %patch6 -p1
41
-%patch7 -p1
42 41
 
43 42
 %build
44 43
 python setup.py build
... ...
@@ -57,6 +55,8 @@ install -m 0755 -D scripts/ceph-deploy $RPM_BUILD_ROOT/usr/bin
57 57
 %{_bindir}/ceph-deploy
58 58
 
59 59
 %changelog
60
+*   Thu Mar 30 2017 Dheeraj Shetty <dheerajs@vmware.com> 1.5.37-1
61
+-   Upgrading to version 1.5.37
60 62
 *   Thu Mar 9 2017 Dheeraj Shetty <dheerajs@vmware.com> 1.5.36-2
61 63
 -   Adding python-setuptools to Requires section
62 64
 *   Mon Jan 23 2017 Dheeraj Shetty <dheerajs@vmware.com> 1.5.36-1