commit python-shaptools for openSUSE:Factory
Hello community, here is the log from the commit of package python-shaptools for openSUSE:Factory checked in at 2020-10-05 19:41:06 Comparing /work/SRC/openSUSE:Factory/python-shaptools (Old) and /work/SRC/openSUSE:Factory/.python-shaptools.new.4249 (New) Package is "python-shaptools" Mon Oct 5 19:41:06 2020 rev:15 rq:839491 version:0.3.10+git.1601275579.c59c61d Changes: --- /work/SRC/openSUSE:Factory/python-shaptools/python-shaptools.changes 2020-09-22 21:09:40.579850365 +0200 +++ /work/SRC/openSUSE:Factory/.python-shaptools.new.4249/python-shaptools.changes 2020-10-05 19:42:59.405778441 +0200 @@ -1,0 +2,6 @@ +Thu Sep 24 12:16:46 UTC 2020 - Xabier Arbulu + +- Add new functionalities to know the currently installed ENSA + version for Netweaver (only for ASCS and ERS instances) + +--- Old: python-shaptools-0.3.10+git.1600699158.46fca28.tar.gz New: python-shaptools-0.3.10+git.1601275579.c59c61d.tar.gz Other differences: -- ++ python-shaptools.spec ++ --- /var/tmp/diff_new_pack.MDUI8U/_old 2020-10-05 19:42:59.909778933 +0200 +++ /var/tmp/diff_new_pack.MDUI8U/_new 2020-10-05 19:42:59.909778933 +0200 @@ -22,7 +22,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-shaptools -Version:0.3.10+git.1600699158.46fca28 +Version:0.3.10+git.1601275579.c59c61d Release:0 Summary:Python tools to interact with SAP HANA utilities License:Apache-2.0 ++ _service ++ --- /var/tmp/diff_new_pack.MDUI8U/_old 2020-10-05 19:42:59.945778969 +0200 +++ /var/tmp/diff_new_pack.MDUI8U/_new 2020-10-05 19:42:59.945778969 +0200 @@ -5,7 +5,7 @@ .git python-shaptools @PARENT_TAG@+git.%ct.%h -46fca286447ff1ec41837553dd7a4e3b14be69ec +c59c61d70ef540be0b9fd54631e4a21e8b69db66 ++ python-shaptools-0.3.10+git.1600699158.46fca28.tar.gz -> python-shaptools-0.3.10+git.1601275579.c59c61d.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-shaptools-0.3.10+git.1600699158.46fca28/python-shaptools.changes new/python-shaptools-0.3.10+git.1601275579.c59c61d/python-shaptools.changes --- old/python-shaptools-0.3.10+git.1600699158.46fca28/python-shaptools.changes 2020-09-21 16:39:18.0 +0200 +++ new/python-shaptools-0.3.10+git.1601275579.c59c61d/python-shaptools.changes 2020-09-28 08:46:19.0 +0200 @@ -1,4 +1,10 @@ --- +Thu Sep 24 12:16:46 UTC 2020 - Xabier Arbulu + +- Add new functionalities to know the currently installed ENSA + version for Netweaver (only for ASCS and ERS instances) + +--- Thu Sep 3 06:44:31 UTC 2020 - Xabier Arbulu - Create version 0.3.10 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-shaptools-0.3.10+git.1600699158.46fca28/shaptools/netweaver.py new/python-shaptools-0.3.10+git.1601275579.c59c61d/shaptools/netweaver.py --- old/python-shaptools-0.3.10+git.1600699158.46fca28/shaptools/netweaver.py 2020-09-21 16:39:18.0 +0200 +++ new/python-shaptools-0.3.10+git.1601275579.c59c61d/shaptools/netweaver.py 2020-09-28 08:46:19.0 +0200 @@ -116,16 +116,20 @@ Check if ASCS instance is installed """ msg_server = shell.find_pattern(r'msg_server, MessageServer,.*', processes.output) -enserver = shell.find_pattern(r'enserver, EnqueueServer,.*', processes.output) -return bool(msg_server and enserver) +enserver_ensa1 = shell.find_pattern(r'enserver, EnqueueServer,.*', processes.output) +enq_server_ensa2 = shell.find_pattern(r'enq_server, Enqueue Server 2,.*', processes.output) +return bool(msg_server and (enserver_ensa1 or enq_server_ensa2)) @staticmethod def _is_ers_installed(processes): """ Check if ERS instance is installed """ -enrepserver = shell.find_pattern(r'enrepserver, EnqueueReplicator,.*', processes.output) -return bool(enrepserver) +enrepserver_ensa1 = shell.find_pattern( +r'enrepserver, EnqueueReplicator,.*', processes.output) +enq_replicator_ensa2 = shell.find_pattern( +r'enq_replicator, Enqueue Replicator 2,.*', processes.output) +return bool(enrepserver_ensa1 or enq_replicator_ensa2) @staticmethod def _is_app_server_installed(processes): @@ -166,6 +170,49 @@ return state @staticmethod +def _get_ascs_ensa_version(processes): +""" +
commit python-shaptools for openSUSE:Factory
Hello community, here is the log from the commit of package python-shaptools for openSUSE:Factory checked in at 2020-09-22 21:08:24 Comparing /work/SRC/openSUSE:Factory/python-shaptools (Old) and /work/SRC/openSUSE:Factory/.python-shaptools.new.4249 (New) Package is "python-shaptools" Tue Sep 22 21:08:24 2020 rev:14 rq:835846 version:0.3.10+git.1600699158.46fca28 Changes: --- /work/SRC/openSUSE:Factory/python-shaptools/python-shaptools.changes 2020-08-28 21:22:29.888357314 +0200 +++ /work/SRC/openSUSE:Factory/.python-shaptools.new.4249/python-shaptools.changes 2020-09-22 21:09:40.579850365 +0200 @@ -1,0 +2,10 @@ +Thu Sep 3 06:44:31 UTC 2020 - Xabier Arbulu + +- Create version 0.3.10 +- Fix how HANA database is started and stopped to work in multi + host environment. sapcontrol commands are used instead of HDB + now + + (jsc#SLE-4047) + +--- Old: python-shaptools-0.3.9+git.1598342516.94e944d.tar.gz New: python-shaptools-0.3.10+git.1600699158.46fca28.tar.gz Other differences: -- ++ python-shaptools.spec ++ --- /var/tmp/diff_new_pack.7A8uac/_old 2020-09-22 21:09:44.167853505 +0200 +++ /var/tmp/diff_new_pack.7A8uac/_new 2020-09-22 21:09:44.171853508 +0200 @@ -22,7 +22,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-shaptools -Version:0.3.9+git.1598342516.94e944d +Version:0.3.10+git.1600699158.46fca28 Release:0 Summary:Python tools to interact with SAP HANA utilities License:Apache-2.0 ++ _service ++ --- /var/tmp/diff_new_pack.7A8uac/_old 2020-09-22 21:09:44.227853557 +0200 +++ /var/tmp/diff_new_pack.7A8uac/_new 2020-09-22 21:09:44.227853557 +0200 @@ -5,7 +5,7 @@ .git python-shaptools @PARENT_TAG@+git.%ct.%h -94e944d708f725b958c386394a97ac3b047c5158 +46fca286447ff1ec41837553dd7a4e3b14be69ec ++ python-shaptools-0.3.9+git.1598342516.94e944d.tar.gz -> python-shaptools-0.3.10+git.1600699158.46fca28.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-shaptools-0.3.9+git.1598342516.94e944d/python-shaptools.changes new/python-shaptools-0.3.10+git.1600699158.46fca28/python-shaptools.changes --- old/python-shaptools-0.3.9+git.1598342516.94e944d/python-shaptools.changes 2020-08-25 10:01:56.0 +0200 +++ new/python-shaptools-0.3.10+git.1600699158.46fca28/python-shaptools.changes 2020-09-21 16:39:18.0 +0200 @@ -1,4 +1,14 @@ --- +Thu Sep 3 06:44:31 UTC 2020 - Xabier Arbulu + +- Create version 0.3.10 +- Fix how HANA database is started and stopped to work in multi + host environment. sapcontrol commands are used instead of HDB + now + + (jsc#SLE-4047) + +--- Tue Aug 25 06:53:29 UTC 2020 - Xabier Arbulu - Create version 0.3.9 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-shaptools-0.3.9+git.1598342516.94e944d/shaptools/__init__.py new/python-shaptools-0.3.10+git.1600699158.46fca28/shaptools/__init__.py --- old/python-shaptools-0.3.9+git.1598342516.94e944d/shaptools/__init__.py 2020-08-25 10:01:56.0 +0200 +++ new/python-shaptools-0.3.10+git.1600699158.46fca28/shaptools/__init__.py 2020-09-21 16:39:18.0 +0200 @@ -6,4 +6,4 @@ :since: 2018-11-15 """ -__version__ = "0.3.9" +__version__ = "0.3.10" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-shaptools-0.3.9+git.1598342516.94e944d/shaptools/hana.py new/python-shaptools-0.3.10+git.1600699158.46fca28/shaptools/hana.py --- old/python-shaptools-0.3.9+git.1598342516.94e944d/shaptools/hana.py 2020-08-25 10:01:56.0 +0200 +++ new/python-shaptools-0.3.10+git.1600699158.46fca28/shaptools/hana.py 2020-09-21 16:39:18.0 +0200 @@ -342,16 +342,32 @@ def start(self): """ -Start hana instance +Start hana instance. + +Info: 'HDB start' is not used, as this command only operates in the local machine and +it does not start machines in other host. The used timeout and delay values are the same +used by 'HDB start' """ -cmd = 'HDB start' +timeout = 2700 +delay = 2 +cmd = 'sapcontrol -nr {} -function StartSystem HDB'.format(self.inst) +self._run_hana_command(cmd) +cmd = 'sapcontrol -nr {} -function WaitforStarted {} {}'.format(self.inst, timeout, delay) self._run_hana_command(cmd) def
commit python-shaptools for openSUSE:Factory
Hello community, here is the log from the commit of package python-shaptools for openSUSE:Factory checked in at 2020-08-28 21:21:40 Comparing /work/SRC/openSUSE:Factory/python-shaptools (Old) and /work/SRC/openSUSE:Factory/.python-shaptools.new.3399 (New) Package is "python-shaptools" Fri Aug 28 21:21:40 2020 rev:13 rq:829109 version:0.3.9+git.1598342516.94e944d Changes: --- /work/SRC/openSUSE:Factory/python-shaptools/python-shaptools.changes 2020-06-02 14:42:08.136184553 +0200 +++ /work/SRC/openSUSE:Factory/.python-shaptools.new.3399/python-shaptools.changes 2020-08-28 21:22:29.888357314 +0200 @@ -1,0 +2,8 @@ +Tue Aug 25 06:53:29 UTC 2020 - Xabier Arbulu + +- Create version 0.3.9 +- Fix issue when secondary registration fails after a successful + SSFS files copy process. Now the registration return code will + be checked in the new call (bsc#1175709) + +--- Old: python-shaptools-0.3.8+git.1591005605.6537616.tar.gz New: python-shaptools-0.3.9+git.1598342516.94e944d.tar.gz Other differences: -- ++ python-shaptools.spec ++ --- /var/tmp/diff_new_pack.8oemvY/_old 2020-08-28 21:22:30.308357517 +0200 +++ /var/tmp/diff_new_pack.8oemvY/_new 2020-08-28 21:22:30.308357517 +0200 @@ -22,7 +22,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-shaptools -Version:0.3.8+git.1591005605.6537616 +Version:0.3.9+git.1598342516.94e944d Release:0 Summary:Python tools to interact with SAP HANA utilities License:Apache-2.0 ++ _service ++ --- /var/tmp/diff_new_pack.8oemvY/_old 2020-08-28 21:22:30.348357537 +0200 +++ /var/tmp/diff_new_pack.8oemvY/_new 2020-08-28 21:22:30.348357537 +0200 @@ -5,7 +5,7 @@ .git python-shaptools @PARENT_TAG@+git.%ct.%h -6537616c8664ca5e2bb466256d372ebf8664e373 +94e944d708f725b958c386394a97ac3b047c5158 ++ python-shaptools-0.3.8+git.1591005605.6537616.tar.gz -> python-shaptools-0.3.9+git.1598342516.94e944d.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-shaptools-0.3.8+git.1591005605.6537616/python-shaptools.changes new/python-shaptools-0.3.9+git.1598342516.94e944d/python-shaptools.changes --- old/python-shaptools-0.3.8+git.1591005605.6537616/python-shaptools.changes 2020-06-01 12:00:05.0 +0200 +++ new/python-shaptools-0.3.9+git.1598342516.94e944d/python-shaptools.changes 2020-08-25 10:01:56.0 +0200 @@ -1,4 +1,12 @@ --- +Tue Aug 25 06:53:29 UTC 2020 - Xabier Arbulu + +- Create version 0.3.9 +- Fix issue when secondary registration fails after a successful + SSFS files copy process. Now the registration return code will + be checked in the new call (bsc#1175709) + +--- Fri Mar 27 18:15:37 UTC 2020 - Simranpal Singh - Create version 0.3.8 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-shaptools-0.3.8+git.1591005605.6537616/shaptools/__init__.py new/python-shaptools-0.3.9+git.1598342516.94e944d/shaptools/__init__.py --- old/python-shaptools-0.3.8+git.1591005605.6537616/shaptools/__init__.py 2020-06-01 12:00:05.0 +0200 +++ new/python-shaptools-0.3.9+git.1598342516.94e944d/shaptools/__init__.py 2020-08-25 10:01:56.0 +0200 @@ -6,4 +6,4 @@ :since: 2018-11-15 """ -__version__ = "0.3.8" +__version__ = "0.3.9" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-shaptools-0.3.8+git.1591005605.6537616/shaptools/hana.py new/python-shaptools-0.3.9+git.1598342516.94e944d/shaptools/hana.py --- old/python-shaptools-0.3.8+git.1591005605.6537616/shaptools/hana.py 2020-06-01 12:00:05.0 +0200 +++ new/python-shaptools-0.3.9+git.1598342516.94e944d/shaptools/hana.py 2020-08-25 10:01:56.0 +0200 @@ -481,8 +481,7 @@ break elif return_code == self.SSFS_DIFFERENT_ERROR: self.copy_ssfs_files(remote_host, primary_pass) -self._run_hana_command(cmd) -break +continue time.sleep(interval) current_time = time.time() continue diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-shaptools-0.3.8+git.1591005605.6537616/tests/hana_test.py new/python-shaptools-0.3.9+git.1598342516.94e944d/tests/hana_test.py --- old/python-shaptools-0.3.8+git.1591005605.6537616/tests/hana_test.py
commit python-shaptools for openSUSE:Factory
Hello community, here is the log from the commit of package python-shaptools for openSUSE:Factory checked in at 2020-06-02 14:41:18 Comparing /work/SRC/openSUSE:Factory/python-shaptools (Old) and /work/SRC/openSUSE:Factory/.python-shaptools.new.3606 (New) Package is "python-shaptools" Tue Jun 2 14:41:18 2020 rev:12 rq:810592 version:0.3.8+git.1591005605.6537616 Changes: --- /work/SRC/openSUSE:Factory/python-shaptools/python-shaptools.changes 2020-05-15 23:52:40.909586368 +0200 +++ /work/SRC/openSUSE:Factory/.python-shaptools.new.3606/python-shaptools.changes 2020-06-02 14:42:08.136184553 +0200 @@ -6,0 +7,2 @@ + (jsc#SLE-10902, jsc#SLE-10903, jsc#ECO-817, jsc#ECO-818) + Old: shaptools-0.3.8.tar.gz New: _service python-shaptools-0.3.8+git.1591005605.6537616.tar.gz Other differences: -- ++ python-shaptools.spec ++ --- /var/tmp/diff_new_pack.WnrZlj/_old 2020-06-02 14:42:09.168187814 +0200 +++ /var/tmp/diff_new_pack.WnrZlj/_new 2020-06-02 14:42:09.168187814 +0200 @@ -22,13 +22,13 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-shaptools -Version:0.3.8 +Version:0.3.8+git.1591005605.6537616 Release:0 Summary:Python tools to interact with SAP HANA utilities License:Apache-2.0 Group: Development/Languages/Python Url:https://github.com/SUSE/shaptools -Source: shaptools-%{version}.tar.gz +Source: %{name}-%{version}.tar.gz %if %{with test} BuildRequires: %{python_module mock} BuildRequires: %{python_module pytest} @@ -43,7 +43,7 @@ API to expose SAP HANA functionalities %prep -%setup -q -n shaptools-%{version} +%setup -q -n %{name}-%{version} %build %python_build ++ _service ++ https://github.com/SUSE/shaptools.git git .git python-shaptools @PARENT_TAG@+git.%ct.%h 6537616c8664ca5e2bb466256d372ebf8664e373 *.tar gz python-shaptools
commit python-shaptools for openSUSE:Factory
Hello community, here is the log from the commit of package python-shaptools for openSUSE:Factory checked in at 2020-05-15 23:52:34 Comparing /work/SRC/openSUSE:Factory/python-shaptools (Old) and /work/SRC/openSUSE:Factory/.python-shaptools.new.2738 (New) Package is "python-shaptools" Fri May 15 23:52:34 2020 rev:11 rq:805830 version:0.3.8 Changes: --- /work/SRC/openSUSE:Factory/python-shaptools/python-shaptools.changes 2020-01-10 17:51:53.122137435 +0100 +++ /work/SRC/openSUSE:Factory/.python-shaptools.new.2738/python-shaptools.changes 2020-05-15 23:52:40.909586368 +0200 @@ -1,0 +2,19 @@ +Fri Mar 27 18:15:37 UTC 2020 - Simranpal Singh + +- Create version 0.3.8 +- Add functionality to extract SAP sar files using SAPCAR tool + +--- +Tue Mar 24 11:29:14 UTC 2020 - Xabier Arbulu + +- Create version 0.3.7 +- Improve hana installation software detection to allow more use + cases + +--- +Thu Mar 19 15:31:22 UTC 2020 - Xabier Arbulu + +- Create version 0.3.6 +- Change the get_platform method to include the system OS type + +--- Old: shaptools-0.3.5.tar.gz New: shaptools-0.3.8.tar.gz Other differences: -- ++ python-shaptools.spec ++ --- /var/tmp/diff_new_pack.S8KUm7/_old 2020-05-15 23:52:41.817588119 +0200 +++ /var/tmp/diff_new_pack.S8KUm7/_new 2020-05-15 23:52:41.821588126 +0200 @@ -22,7 +22,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-shaptools -Version:0.3.5 +Version:0.3.8 Release:0 Summary:Python tools to interact with SAP HANA utilities License:Apache-2.0 ++ shaptools-0.3.5.tar.gz -> shaptools-0.3.8.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/shaptools-0.3.5/python-shaptools.changes new/shaptools-0.3.8/python-shaptools.changes --- old/shaptools-0.3.5/python-shaptools.changes2020-01-08 18:00:27.219596228 +0100 +++ new/shaptools-0.3.8/python-shaptools.changes2020-03-30 16:38:50.408194346 +0200 @@ -1,4 +1,23 @@ --- +Fri Mar 27 18:15:37 UTC 2020 - Simranpal Singh + +- Create version 0.3.8 +- Add functionality to extract SAP sar files using SAPCAR tool + +--- +Tue Mar 24 11:29:14 UTC 2020 - Xabier Arbulu + +- Create version 0.3.7 +- Improve hana installation software detection to allow more use + cases + +--- +Thu Mar 19 15:31:22 UTC 2020 - Xabier Arbulu + +- Create version 0.3.6 +- Change the get_platform method to include the system OS type + +--- Thu Jan 2 21:59:30 UTC 2020 - Simranpal Singh - Create package version 0.3.5 @@ -9,7 +28,7 @@ Thu Dec 5 10:48:53 UTC 2019 - Xabier Arbulu - Create package version 0.3.4 -- Fix ascs restart conditions in ers installation +- Fix ascs restart conditions in ers installation --- Thu Nov 7 00:36:08 UTC 2019 - Simranpal Singh @@ -21,7 +40,7 @@ Tue Oct 22 02:41:35 UTC 2019 - Xabier Arbulu - Create package version 0.3.2 -- Add isconnected and reconnect methods +- Add isconnected and reconnect methods --- Wed Aug 7 12:50:36 UTC 2019 - Xabier Arbulu Insausti @@ -29,7 +48,7 @@ - Add the required code to install SAP Netweaver instances * Wrap sapcontrol command usage * Install and uninstall SAP instances - * Check current installation status + * Check current installation status --- Tue Jul 23 11:04:25 UTC 2019 - Xabier Arbulu Insausti diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/shaptools-0.3.5/python-shaptools.spec new/shaptools-0.3.8/python-shaptools.spec --- old/shaptools-0.3.5/python-shaptools.spec 2020-01-08 18:00:27.219596228 +0100 +++ new/shaptools-0.3.8/python-shaptools.spec 2020-03-30 16:38:50.408194346 +0200 @@ -22,7 +22,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-shaptools -Version:0.3.5 +Version:0.3.8 Release:0 Summary:Python tools to interact with SAP HANA utilities License:Apache-2.0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
commit python-shaptools for openSUSE:Factory
Hello community, here is the log from the commit of package python-shaptools for openSUSE:Factory checked in at 2020-01-10 17:51:46 Comparing /work/SRC/openSUSE:Factory/python-shaptools (Old) and /work/SRC/openSUSE:Factory/.python-shaptools.new.6675 (New) Package is "python-shaptools" Fri Jan 10 17:51:46 2020 rev:10 rq:762854 version:0.3.5 Changes: --- /work/SRC/openSUSE:Factory/python-shaptools/python-shaptools.changes 2019-12-09 21:38:23.218023400 +0100 +++ /work/SRC/openSUSE:Factory/.python-shaptools.new.6675/python-shaptools.changes 2020-01-10 17:51:53.122137435 +0100 @@ -1,0 +2,7 @@ +Thu Jan 2 21:59:30 UTC 2020 - Simranpal Singh + +- Create package version 0.3.5 +- Add function to install HANA with XML passwords file +- Add functionality to update XML passwords file + +--- Old: shaptools-0.3.4.tar.gz New: shaptools-0.3.5.tar.gz Other differences: -- ++ python-shaptools.spec ++ --- /var/tmp/diff_new_pack.20BbBD/_old 2020-01-10 17:51:53.950137852 +0100 +++ /var/tmp/diff_new_pack.20BbBD/_new 2020-01-10 17:51:53.954137854 +0100 @@ -22,7 +22,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-shaptools -Version:0.3.4 +Version:0.3.5 Release:0 Summary:Python tools to interact with SAP HANA utilities License:Apache-2.0 ++ shaptools-0.3.4.tar.gz -> shaptools-0.3.5.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/shaptools-0.3.4/python-shaptools.changes new/shaptools-0.3.5/python-shaptools.changes --- old/shaptools-0.3.4/python-shaptools.changes2019-12-09 14:35:21.200307067 +0100 +++ new/shaptools-0.3.5/python-shaptools.changes2020-01-08 18:00:27.219596228 +0100 @@ -1,4 +1,11 @@ --- +Thu Jan 2 21:59:30 UTC 2020 - Simranpal Singh + +- Create package version 0.3.5 +- Add function to install HANA with XML passwords file +- Add functionality to update XML passwords file + +--- Thu Dec 5 10:48:53 UTC 2019 - Xabier Arbulu - Create package version 0.3.4 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/shaptools-0.3.4/python-shaptools.spec new/shaptools-0.3.5/python-shaptools.spec --- old/shaptools-0.3.4/python-shaptools.spec 2019-12-09 14:35:21.200307067 +0100 +++ new/shaptools-0.3.5/python-shaptools.spec 2020-01-08 18:00:27.219596228 +0100 @@ -22,7 +22,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-shaptools -Version:0.3.4 +Version:0.3.5 Release:0 Summary:Python tools to interact with SAP HANA utilities License:Apache-2.0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/shaptools-0.3.4/shaptools/hana.py new/shaptools-0.3.5/shaptools/hana.py --- old/shaptools-0.3.4/shaptools/hana.py 2019-12-09 14:35:21.200307067 +0100 +++ new/shaptools-0.3.5/shaptools/hana.py 2020-01-08 18:00:27.219596228 +0100 @@ -19,6 +19,7 @@ import re import time import platform +import os from shaptools import shell @@ -34,6 +35,10 @@ Error during HANA command execution """ +class FileDoesNotExistError(Exception): +""" +Error when the specified files does not exist +""" # System replication states # Random value used @@ -162,6 +167,28 @@ return conf_file @classmethod +def update_hdb_pwd_file(cls, hdb_pwd_file, **kwargs): +""" +Update SAP HANA XML passwords + +Args: +hdb_pwd_file (str): Path to the XML passwords file +kwargs (opt): Dictionary with the values to be updated. +Use the exact name of the XML file for the key + +kwargs can be used in the next two modes: +update_hdb_pwd_file(hdb_pwd_file, master_password='Test123', sapadm_password='pas11') +update_hdb_pwd_file(hdb_pwd_file, **{'master_password': 'Test123', 'sapadm_password': 'pas11'}) +""" +for key, value in kwargs.items(): +pattern = '<{key}>.*'.format(key=key) +new_entry = '<{key}>'.format(key=key, value=value) +for line in fileinput.input(hdb_pwd_file, inplace=1): +line = re.sub(pattern, new_entry, line) +print(line, end='') +return hdb_pwd_file + +@classmethod def create_conf_file( cls, software_path, conf_file, root_user, root_password,
commit python-shaptools for openSUSE:Factory
Hello community, here is the log from the commit of package python-shaptools for openSUSE:Factory checked in at 2019-12-09 21:38:16 Comparing /work/SRC/openSUSE:Factory/python-shaptools (Old) and /work/SRC/openSUSE:Factory/.python-shaptools.new.4691 (New) Package is "python-shaptools" Mon Dec 9 21:38:16 2019 rev:9 rq:755360 version:0.3.4 Changes: --- /work/SRC/openSUSE:Factory/python-shaptools/python-shaptools.changes 2019-11-13 13:29:11.771752174 +0100 +++ /work/SRC/openSUSE:Factory/.python-shaptools.new.4691/python-shaptools.changes 2019-12-09 21:38:23.218023400 +0100 @@ -1,0 +2,6 @@ +Thu Dec 5 10:48:53 UTC 2019 - Xabier Arbulu + +- Create package version 0.3.4 +- Fix ascs restart conditions in ers installation + +--- Old: shaptools-0.3.3.tar.gz New: shaptools-0.3.4.tar.gz Other differences: -- ++ python-shaptools.spec ++ --- /var/tmp/diff_new_pack.8HTC2A/_old 2019-12-09 21:38:23.618023243 +0100 +++ /var/tmp/diff_new_pack.8HTC2A/_new 2019-12-09 21:38:23.618023243 +0100 @@ -22,7 +22,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-shaptools -Version:0.3.3 +Version:0.3.4 Release:0 Summary:Python tools to interact with SAP HANA utilities License:Apache-2.0 ++ shaptools-0.3.3.tar.gz -> shaptools-0.3.4.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/shaptools-0.3.3/python-shaptools.changes new/shaptools-0.3.4/python-shaptools.changes --- old/shaptools-0.3.3/python-shaptools.changes2019-11-12 15:44:55.900127362 +0100 +++ new/shaptools-0.3.4/python-shaptools.changes2019-12-09 14:35:21.200307067 +0100 @@ -1,4 +1,10 @@ --- +Thu Dec 5 10:48:53 UTC 2019 - Xabier Arbulu + +- Create package version 0.3.4 +- Fix ascs restart conditions in ers installation + +--- Thu Nov 7 00:36:08 UTC 2019 - Simranpal Singh - Create package version 0.3.3 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/shaptools-0.3.3/python-shaptools.spec new/shaptools-0.3.4/python-shaptools.spec --- old/shaptools-0.3.3/python-shaptools.spec 2019-11-12 15:44:55.900127362 +0100 +++ new/shaptools-0.3.4/python-shaptools.spec 2019-12-09 14:35:21.200307067 +0100 @@ -22,7 +22,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-shaptools -Version:0.3.3 +Version:0.3.4 Release:0 Summary:Python tools to interact with SAP HANA utilities License:Apache-2.0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/shaptools-0.3.3/shaptools/netweaver.py new/shaptools-0.3.4/shaptools/netweaver.py --- old/shaptools-0.3.3/shaptools/netweaver.py 2019-11-12 15:44:55.904127362 +0100 +++ new/shaptools-0.3.4/shaptools/netweaver.py 2019-12-09 14:35:21.200307067 +0100 @@ -329,8 +329,9 @@ software_path, virtual_host, product_id, conf_file, root_user, password, exception=False, remote_host=remote_host, cwd=cwd) -if result.returncode == cls.SUCCESSFULLY_INSTALLED or \ -cls._ascs_restart_needed(result): +if result.returncode == cls.SUCCESSFULLY_INSTALLED: +break +elif cls._ascs_restart_needed(result): cls._restart_ascs(conf_file, ers_pass, ascs_pass, remote_host) break diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/shaptools-0.3.3/tests/netweaver_test.py new/shaptools-0.3.4/tests/netweaver_test.py --- old/shaptools-0.3.3/tests/netweaver_test.py 2019-11-12 15:44:55.904127362 +0100 +++ new/shaptools-0.3.4/tests/netweaver_test.py 2019-12-09 14:35:21.200307067 +0100 @@ -279,7 +279,7 @@ '/tmp/copy.inifile.params', sid='HA1', sidadmPassword='testpwd', masterPwd='Suse1234') self.assertTrue(filecmp.cmp(pwd+'/support/modified.inifile.params', conf_file)) - + #case when new entry is added to config file shutil.copyfile(pwd+'/support/original.inifile.params', '/tmp/copy.inifile.params') conf_file = netweaver.NetweaverInstance.update_conf_file( @@ -439,9 +439,31 @@ @mock.patch('time.time') @mock.patch('shaptools.netweaver.NetweaverInstance.get_attribute_from_file') @mock.patch('shaptools.netweaver.NetweaverInstance.install') +def test_install_ers(self,
commit python-shaptools for openSUSE:Factory
Hello community, here is the log from the commit of package python-shaptools for openSUSE:Factory checked in at 2019-11-13 13:29:09 Comparing /work/SRC/openSUSE:Factory/python-shaptools (Old) and /work/SRC/openSUSE:Factory/.python-shaptools.new.2990 (New) Package is "python-shaptools" Wed Nov 13 13:29:09 2019 rev:8 rq:748026 version:0.3.3 Changes: --- /work/SRC/openSUSE:Factory/python-shaptools/python-shaptools.changes 2019-10-30 14:46:51.262120775 +0100 +++ /work/SRC/openSUSE:Factory/.python-shaptools.new.2990/python-shaptools.changes 2019-11-13 13:29:11.771752174 +0100 @@ -1,0 +2,6 @@ +Thu Nov 7 00:36:08 UTC 2019 - Simranpal Singh + +- Create package version 0.3.3 +- Add update_conf_file for Netweaver + +--- Old: shaptools-0.3.2.tar.gz New: shaptools-0.3.3.tar.gz Other differences: -- ++ python-shaptools.spec ++ --- /var/tmp/diff_new_pack.o5ifSE/_old 2019-11-13 13:29:12.571753012 +0100 +++ /var/tmp/diff_new_pack.o5ifSE/_new 2019-11-13 13:29:12.575753016 +0100 @@ -22,7 +22,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-shaptools -Version:0.3.2 +Version:0.3.3 Release:0 Summary:Python tools to interact with SAP HANA utilities License:Apache-2.0 ++ shaptools-0.3.2.tar.gz -> shaptools-0.3.3.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/shaptools-0.3.2/python-shaptools.changes new/shaptools-0.3.3/python-shaptools.changes --- old/shaptools-0.3.2/python-shaptools.changes2019-10-29 14:39:45.562766404 +0100 +++ new/shaptools-0.3.3/python-shaptools.changes2019-11-12 15:44:55.900127362 +0100 @@ -1,4 +1,10 @@ --- +Thu Nov 7 00:36:08 UTC 2019 - Simranpal Singh + +- Create package version 0.3.3 +- Add update_conf_file for Netweaver + +--- Tue Oct 22 02:41:35 UTC 2019 - Xabier Arbulu - Create package version 0.3.2 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/shaptools-0.3.2/python-shaptools.spec new/shaptools-0.3.3/python-shaptools.spec --- old/shaptools-0.3.2/python-shaptools.spec 2019-10-29 14:39:45.562766404 +0100 +++ new/shaptools-0.3.3/python-shaptools.spec 2019-11-12 15:44:55.900127362 +0100 @@ -22,7 +22,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-shaptools -Version:0.3.2 +Version:0.3.3 Release:0 Summary:Python tools to interact with SAP HANA utilities License:Apache-2.0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/shaptools-0.3.2/shaptools/netweaver.py new/shaptools-0.3.3/shaptools/netweaver.py --- old/shaptools-0.3.2/shaptools/netweaver.py 2019-10-29 14:39:45.562766404 +0100 +++ new/shaptools-0.3.3/shaptools/netweaver.py 2019-11-12 15:44:55.904127362 +0100 @@ -8,8 +8,12 @@ :since: 2010-07-30 """ +from __future__ import print_function + import logging import time +import fileinput +import re from shaptools import shell @@ -175,6 +179,32 @@ shell.execute_cmd(cmd, root_user, password, remote_host) @classmethod +def update_conf_file(cls, conf_file, **kwargs): +""" +Update NW installation config file parameters. Add the parameters if they don't exist + +Args: +conf_file (str): Path to the netweaver installation configuration file +kwargs (opt): Dictionary with the values to be updated. +Use the exact name of the netweaver configuration file + +kwargs can be used in the next two modes: +update_conf_file(conf_file, sid='HA1', hostname='hacert01') +update_conf_file(conf_file, **{'sid': 'HA1', 'hostname': 'hacert01'}) +""" +for key, value in kwargs.items(): +pattern = '{key}\s+=.*'.format(key=key) +new_value = '{key} = {value}'.format(key=key, value=value) +with open(conf_file, 'r+') as file_cache: +if key in file_cache.read(): +for line in fileinput.input(conf_file, inplace=1): +line = re.sub(pattern, new_value, line) +print(line, end='') +else: +file_cache.write('\n'+new_value) +return conf_file + +@classmethod def install( cls, software_path, virtual_host, product_id, conf_file, root_user, password, **kwargs):
commit python-shaptools for openSUSE:Factory
Hello community, here is the log from the commit of package python-shaptools for openSUSE:Factory checked in at 2019-10-30 14:46:46 Comparing /work/SRC/openSUSE:Factory/python-shaptools (Old) and /work/SRC/openSUSE:Factory/.python-shaptools.new.2990 (New) Package is "python-shaptools" Wed Oct 30 14:46:46 2019 rev:7 rq:743852 version:0.3.2 Changes: --- /work/SRC/openSUSE:Factory/python-shaptools/python-shaptools.changes 2019-08-07 14:01:28.328852835 +0200 +++ /work/SRC/openSUSE:Factory/.python-shaptools.new.2990/python-shaptools.changes 2019-10-30 14:46:51.262120775 +0100 @@ -1,0 +2,14 @@ +Tue Oct 22 02:41:35 UTC 2019 - Xabier Arbulu + +- Create package version 0.3.2 +- Add isconnected and reconnect methods + +--- +Wed Aug 7 12:50:36 UTC 2019 - Xabier Arbulu Insausti + +- Add the required code to install SAP Netweaver instances + * Wrap sapcontrol command usage + * Install and uninstall SAP instances + * Check current installation status + +--- Old: shaptools-0.3.1.tar.gz New: shaptools-0.3.2.tar.gz Other differences: -- ++ python-shaptools.spec ++ --- /var/tmp/diff_new_pack.ReirtV/_old 2019-10-30 14:46:51.982121540 +0100 +++ /var/tmp/diff_new_pack.ReirtV/_new 2019-10-30 14:46:51.986121544 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-shaptools # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,9 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via https://bugs.opensuse.org/ -# - +# Please submit bugfixes or comments via http://bugs.opensuse.org/ %if 0%{?suse_version} < 1500 %bcond_with test @@ -24,7 +22,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-shaptools -Version:0.3.1 +Version:0.3.2 Release:0 Summary:Python tools to interact with SAP HANA utilities License:Apache-2.0 ++ shaptools-0.3.1.tar.gz -> shaptools-0.3.2.tar.gz ++ 1792 lines of diff (skipped)
commit python-shaptools for openSUSE:Factory
Hello community, here is the log from the commit of package python-shaptools for openSUSE:Factory checked in at 2019-08-07 14:01:24 Comparing /work/SRC/openSUSE:Factory/python-shaptools (Old) and /work/SRC/openSUSE:Factory/.python-shaptools.new.9556 (New) Package is "python-shaptools" Wed Aug 7 14:01:24 2019 rev:6 rq:721481 version:0.3.1 Changes: --- /work/SRC/openSUSE:Factory/python-shaptools/python-shaptools.changes 2019-07-23 22:40:26.514933434 +0200 +++ /work/SRC/openSUSE:Factory/.python-shaptools.new.9556/python-shaptools.changes 2019-08-07 14:01:28.328852835 +0200 @@ -6 +6 @@ - + (jsc#SLE-4031, jsc#SLE-4143, boo#1137989) Other differences: -- ++ python-shaptools.spec ++ --- /var/tmp/diff_new_pack.out9VT/_old 2019-08-07 14:01:28.932852829 +0200 +++ /var/tmp/diff_new_pack.out9VT/_new 2019-08-07 14:01:28.932852829 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-shaptools # -# Copyright (c) 2019 SUSE LLC +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,7 +12,9 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + %if 0%{?suse_version} < 1500 %bcond_with test
commit python-shaptools for openSUSE:Factory
Hello community, here is the log from the commit of package python-shaptools for openSUSE:Factory checked in at 2019-07-23 22:40:21 Comparing /work/SRC/openSUSE:Factory/python-shaptools (Old) and /work/SRC/openSUSE:Factory/.python-shaptools.new.4126 (New) Package is "python-shaptools" Tue Jul 23 22:40:21 2019 rev:5 rq:717873 version:0.3.1 Changes: --- /work/SRC/openSUSE:Factory/python-shaptools/python-shaptools.changes 2019-07-21 11:33:40.348784109 +0200 +++ /work/SRC/openSUSE:Factory/.python-shaptools.new.4126/python-shaptools.changes 2019-07-23 22:40:26.514933434 +0200 @@ -1,0 +2,11 @@ +Tue Jul 23 11:04:25 UTC 2019 - Xabier Arbulu Insausti + +- Create package version 0.3.1 +- Add support for Power machines + +--- +Thu Jul 18 08:46:15 UTC 2019 - Xabier Arbulu Insausti + +- Add an option to run the commands in remote nodes to shapcli + +--- Old: shaptools-0.3.0.tar.gz New: shaptools-0.3.1.tar.gz Other differences: -- ++ python-shaptools.spec ++ --- /var/tmp/diff_new_pack.5aSiMD/_old 2019-07-23 22:40:26.926933349 +0200 +++ /var/tmp/diff_new_pack.5aSiMD/_new 2019-07-23 22:40:26.930933348 +0200 @@ -22,7 +22,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-shaptools -Version:0.3.0 +Version:0.3.1 Release:0 Summary:Python tools to interact with SAP HANA utilities License:Apache-2.0 ++ shaptools-0.3.0.tar.gz -> shaptools-0.3.1.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/shaptools-0.3.0/docs/SHAPCLI.md new/shaptools-0.3.1/docs/SHAPCLI.md --- old/shaptools-0.3.0/docs/SHAPCLI.md 2019-07-18 11:03:12.820176367 +0200 +++ new/shaptools-0.3.1/docs/SHAPCLI.md 2019-07-23 13:12:24.071282674 +0200 @@ -49,3 +49,17 @@ ``` shapcli hana -h ``` + +### Running commands in remote nodes + +The commands can be executed in remote nodes too. For that the `-r` or `--remote` flag have to be +used (or adding the `remote` entry in the configuration file [the `-r` flag has priority over the configuration file entry]). + +``` +shapcli -c config.json -r remotehost hana version +``` + +If the ssh keys of the current node is not installed in the remote host, the password must be +provided after the command. To avoid this, the ssh key of the current node can be authorized in the +remote node. By default, the ssh public key must be added in: `/usr/sap/PRD/home/.ssh/authorized_keys` +(where `PRD` is the SAP HANA instanse sid in uppercase) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/shaptools-0.3.0/python-shaptools.changes new/shaptools-0.3.1/python-shaptools.changes --- old/shaptools-0.3.0/python-shaptools.changes2019-07-18 11:03:12.820176367 +0200 +++ new/shaptools-0.3.1/python-shaptools.changes2019-07-23 13:12:24.071282674 +0200 @@ -1,8 +1,19 @@ --- +Tue Jul 23 11:04:25 UTC 2019 - Xabier Arbulu Insausti + +- Create package version 0.3.1 +- Add support for Power machines + +--- +Thu Jul 18 08:46:15 UTC 2019 - Xabier Arbulu Insausti + +- Add an option to run the commands in remote nodes to shapcli + +--- Wed Jul 17 09:34:22 UTC 2019 - Xabier Arbulu Insausti - Create package version 0.3.0 -- shapcli is provided to expose shaptools api methods as command line tool +- shapcli is provided to expose shaptools api methods as command line tool --- Tue Jun 11 11:29:44 UTC 2019 - Xabier Arbulu Insausti diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/shaptools-0.3.0/python-shaptools.spec new/shaptools-0.3.1/python-shaptools.spec --- old/shaptools-0.3.0/python-shaptools.spec 2019-07-18 11:03:12.820176367 +0200 +++ new/shaptools-0.3.1/python-shaptools.spec 2019-07-23 13:12:24.071282674 +0200 @@ -22,7 +22,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-shaptools -Version:0.3.0 +Version:0.3.1 Release:0 Summary:Python tools to interact with SAP HANA utilities License:Apache-2.0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/shaptools-0.3.0/shaptools/__init__.py new/shaptools-0.3.1/shaptools/__init__.py ---
commit python-shaptools for openSUSE:Factory
Hello community, here is the log from the commit of package python-shaptools for openSUSE:Factory checked in at 2019-07-21 11:33:39 Comparing /work/SRC/openSUSE:Factory/python-shaptools (Old) and /work/SRC/openSUSE:Factory/.python-shaptools.new.4126 (New) Package is "python-shaptools" Sun Jul 21 11:33:39 2019 rev:4 rq:716587 version:0.3.0 Changes: --- /work/SRC/openSUSE:Factory/python-shaptools/python-shaptools.changes 2019-06-17 21:34:04.671014358 +0200 +++ /work/SRC/openSUSE:Factory/.python-shaptools.new.4126/python-shaptools.changes 2019-07-21 11:33:40.348784109 +0200 @@ -1,0 +2,6 @@ +Wed Jul 17 09:34:22 UTC 2019 - Xabier Arbulu Insausti + +- Create package version 0.3.0 +- shapcli is provided to expose shaptools api methods as command line tool + +--- Old: shaptools-0.2.1.tar.gz New: shaptools-0.3.0.tar.gz Other differences: -- ++ python-shaptools.spec ++ --- /var/tmp/diff_new_pack.xpgQtE/_old 2019-07-21 11:33:41.008783997 +0200 +++ /var/tmp/diff_new_pack.xpgQtE/_new 2019-07-21 11:33:41.008783997 +0200 @@ -22,7 +22,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-shaptools -Version:0.2.1 +Version:0.3.0 Release:0 Summary:Python tools to interact with SAP HANA utilities License:Apache-2.0 @@ -67,5 +67,6 @@ %license LICENSE %endif %{python_sitelib}/* +%python3_only %{_bindir}/shapcli %changelog ++ shaptools-0.2.1.tar.gz -> shaptools-0.3.0.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/shaptools-0.2.1/bin/shapcli new/shaptools-0.3.0/bin/shapcli --- old/shaptools-0.2.1/bin/shapcli 1970-01-01 01:00:00.0 +0100 +++ new/shaptools-0.3.0/bin/shapcli 2019-07-18 11:03:12.820176367 +0200 @@ -0,0 +1,9 @@ +#!/usr/bin/env python3 +""" +Shaptools command line tool +""" + +from shaptools import shapcli + +if __name__ == "__main__": +shapcli.run() diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/shaptools-0.2.1/docs/SHAPCLI.md new/shaptools-0.3.0/docs/SHAPCLI.md --- old/shaptools-0.2.1/docs/SHAPCLI.md 1970-01-01 01:00:00.0 +0100 +++ new/shaptools-0.3.0/docs/SHAPCLI.md 2019-07-18 11:03:12.820176367 +0200 @@ -0,0 +1,51 @@ +# SHAPCLI + +shapcli is an executable tool to use the api provided by shaptools. It wraps most of the commands and +exposes them as a command line tool. + +In order to use the utility the `shaptools` library must be installed (either using `pip` or `rpm` package). + +## Disclaimer + +This tool will only work if `shaptools` is installed for `python 3` version. + +## Motivation + +The major motivation behind this tools is to provide an easy way to run all of the tools provided by +SAP regarding HANA. It wraps the next commands: `HDB`, `hdbnsutil`, `hdbuserstore`, +`HDBSettings.sh`, `hdbsql`. + +Using this tool be avoid the need to change to SAP users every time we need to run any of these +commands. This is really helpful when we are running other commands in the same time (as `crmsh` +commands for example). Besides, having all of them gathered in the same place makes the usage +easier. + +## How to use + +`shapcli` can be used providing the SAP HANA database information through command line or using a +json configuration file (the options are mutually exclusive). +Here an example of how to create the configuration file: [config.json](shapcli.config.example) + +Here some examples: + +``` +shapcli -s sid -i 00 -p HANAPASSWORD hana version +shapcli -c config.json hana version +``` + +Check how it works and help output running: + +``` +shapcli -h +``` + +The main options are: `hana` and `sr`; + +* `hana`: Commands to manage SAP HANA database general functionalities. +* `sr`: Commands to manage SAP HANA system replication. + +Using the `-h` flag in each option will output a new help output. For example: + +``` +shapcli hana -h +``` diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/shaptools-0.2.1/docs/shapcli.config.example new/shaptools-0.3.0/docs/shapcli.config.example --- old/shaptools-0.2.1/docs/shapcli.config.example 1970-01-01 01:00:00.0 +0100 +++ new/shaptools-0.3.0/docs/shapcli.config.example 2019-07-18 11:03:12.820176367 +0200 @@ -0,0 +1,5 @@ +{ + "sid": "prd", + "instance": "00", + "password": "HANAPASSWORD" +} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/shaptools-0.2.1/python-shaptools.changes new/shaptools-0.3.0/python-shaptools.changes ---
commit python-shaptools for openSUSE:Factory
Hello community, here is the log from the commit of package python-shaptools for openSUSE:Factory checked in at 2019-06-17 21:34:03 Comparing /work/SRC/openSUSE:Factory/python-shaptools (Old) and /work/SRC/openSUSE:Factory/.python-shaptools.new.4811 (New) Package is "python-shaptools" Mon Jun 17 21:34:03 2019 rev:3 rq:709433 version:0.2.1 Changes: --- /work/SRC/openSUSE:Factory/python-shaptools/python-shaptools.changes 2019-06-12 13:17:43.844600778 +0200 +++ /work/SRC/openSUSE:Factory/.python-shaptools.new.4811/python-shaptools.changes 2019-06-17 21:34:04.671014358 +0200 @@ -5,0 +6 @@ + (jsc#SLE-4031, jsc#SLE-4143, boo#1137989) Other differences: -- ++ shaptools-0.2.1.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/shaptools-0.2.1/python-shaptools.changes new/shaptools-0.2.1/python-shaptools.changes --- old/shaptools-0.2.1/python-shaptools.changes2019-06-11 14:03:10.316276735 +0200 +++ new/shaptools-0.2.1/python-shaptools.changes2019-06-12 15:57:43.139230730 +0200 @@ -3,6 +3,7 @@ - Create package version 0.2.1 with fixed spec files. Now the package is available from SLE12-SP2 to SLE15 versions + (jsc#SLE-4031, jsc#SLE-4143, boo#1137989) --- Tue Jun 4 07:23:40 UTC 2019 - Xabier Arbulu Insausti
commit python-shaptools for openSUSE:Factory
Hello community, here is the log from the commit of package python-shaptools for openSUSE:Factory checked in at 2019-06-12 13:17:43 Comparing /work/SRC/openSUSE:Factory/python-shaptools (Old) and /work/SRC/openSUSE:Factory/.python-shaptools.new.4811 (New) Package is "python-shaptools" Wed Jun 12 13:17:43 2019 rev:2 rq:709132 version:0.2.1 Changes: --- /work/SRC/openSUSE:Factory/python-shaptools/python-shaptools.changes 2019-05-08 15:16:34.413002909 +0200 +++ /work/SRC/openSUSE:Factory/.python-shaptools.new.4811/python-shaptools.changes 2019-06-12 13:17:43.844600778 +0200 @@ -1,0 +2,24 @@ +Tue Jun 11 11:29:44 UTC 2019 - Xabier Arbulu Insausti + +- Create package version 0.2.1 with fixed spec files. Now the package + is available from SLE12-SP2 to SLE15 versions + +--- +Tue Jun 4 07:23:40 UTC 2019 - Xabier Arbulu Insausti + +- Create package version 0.2.0 with the latest changes + +--- +Wed May 29 12:26:08 UTC 2019 - Ayoub Belarbi (abela...@suse.com) + +- Update hdb connector to return metadata besides the query + records. + +--- +Thu May 16 09:35:41 UTC 2019 - Xabier Arbulu Insausti + +- Update SR registration process. Now the methods retries the + registration command until a successful return and copies the + SSFS files from the primary node as well + +--- Old: shaptools-0.1.0.tar.gz New: shaptools-0.2.1.tar.gz Other differences: -- ++ python-shaptools.spec ++ --- /var/tmp/diff_new_pack.xPgRun/_old 2019-06-12 13:17:44.736599843 +0200 +++ /var/tmp/diff_new_pack.xPgRun/_new 2019-06-12 13:17:44.740599839 +0200 @@ -14,23 +14,29 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ +%if 0%{?suse_version} < 1500 +%bcond_with test +%else +%bcond_without test +%endif %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-shaptools -Version:0.1.0 +Version:0.2.1 Release:0 -License:Apache-2.0 Summary:Python tools to interact with SAP HANA utilities -Url:https://github.com/SUSE/shaptools +License:Apache-2.0 Group: Development/Languages/Python +Url:https://github.com/SUSE/shaptools Source: shaptools-%{version}.tar.gz -BuildRequires: python-rpm-macros -BuildRequires: %{python_module devel} +%if %{with test} +BuildRequires: %{python_module mock} +BuildRequires: %{python_module pytest} +%endif BuildRequires: %{python_module setuptools} -BuildRequires: unzip BuildRequires: fdupes +BuildRequires: python-rpm-macros BuildArch: noarch - %python_subpackages %description @@ -45,13 +51,19 @@ %install %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} +# do not install tests +%python_expand rm -r %{buildroot}%{$python_sitelib}/tests + +%if %{with test} +%check +%pytest tests +%endif %files %{python_files} -%doc CHANGELOG.md README.md -# %license macro is not availabe on older releases -%if 0%{?sle_version} <= 120300 -%doc LICENSE +%if 0%{?sle_version:1} && 0%{?sle_version} < 120300 +%doc README.md LICENSE %else +%doc README.md %license LICENSE %endif %{python_sitelib}/* ++ shaptools-0.1.0.tar.gz -> shaptools-0.2.1.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/shaptools-0.1.0/CHANGELOG.md new/shaptools-0.2.1/CHANGELOG.md --- old/shaptools-0.1.0/CHANGELOG.md2019-04-26 12:20:21.376891183 +0200 +++ new/shaptools-0.2.1/CHANGELOG.md1970-01-01 01:00:00.0 +0100 @@ -1,2 +0,0 @@ -# Version 0.1.0 -- First version of the project. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/shaptools-0.1.0/README.md new/shaptools-0.2.1/README.md --- old/shaptools-0.1.0/README.md 2019-04-26 12:20:21.376891183 +0200 +++ new/shaptools-0.2.1/README.md 2019-06-11 14:03:10.316276735 +0200 @@ -16,11 +16,11 @@ h = hana.HanaInstance('prd', '00', 'Qwerty1234') if not h.is_installed(): - conf_file = hana.HanaInstance(.create_conf_file( + conf_file = hana.HanaInstance.create_conf_file( '/sap_inst/51052481', '/home/myuser/hana.conf', 'root', 'root') - hana.HanaInstance(.update_conf_file( + hana.HanaInstance.update_conf_file( conf_file, sid='PRD', password='Qwerty1234', system_user_password='Qwerty1234') - hana.HanaInstance(.install('/sap_inst/51052481', conf_file, 'root', 'root') + hana.HanaInstance.install('/sap_inst/51052481', conf_file, 'root',