commit ceph-iscsi for openSUSE:Factory

2020-09-21 Thread root
Hello community,

here is the log from the commit of package ceph-iscsi for openSUSE:Factory 
checked in at 2020-09-21 17:07:48

Comparing /work/SRC/openSUSE:Factory/ceph-iscsi (Old)
 and  /work/SRC/openSUSE:Factory/.ceph-iscsi.new.4249 (New)


Package is "ceph-iscsi"

Mon Sep 21 17:07:48 2020 rev:21 rq:835251 version:3.4+1600349408.g516d37d

Changes:

--- /work/SRC/openSUSE:Factory/ceph-iscsi/ceph-iscsi.changes2019-10-08 
19:59:51.627850665 +0200
+++ /work/SRC/openSUSE:Factory/.ceph-iscsi.new.4249/ceph-iscsi.changes  
2020-09-21 17:09:53.063270577 +0200
@@ -1,0 +2,55 @@
+Thu Sep 17 13:32:02 UTC 2020 - Ricardo Marques 
+
+- Update to 3.4+1600349408.g516d37d
+  + Fix gateway creation crash in python3 (#196)
+  + Report tcmu-runner device status (#210)
+  + Fix list access violiation when load config (#200)
+  + Fix delete disk error when disk owner is not specified (#206)
+  + Support specified gateway config name (#207)
+  + Added dependency on ceph-common package (#201)
+
+---
+Tue Sep 15 12:14:23 UTC 2020 - Nathan Cutler 
+
+- Update to 3.4+1600172042.g4d04457 
+  + Rename blacklist to blocklist (#216)
+
+---
+Thu May 14 15:12:32 UTC 2020 - Ricardo Marques 
+
+- Update to 3.4+1589469085.ga007663
+  + Add a config option to log to stderr (#186)
+  + Don't store to config if create_target fails (#187)
+  + Fixed numerous string format issues on errors paths (#189)
+
+---
+Thu Apr 30 17:14:48 UTC 2020 - Ricardo Marques 
+
+- Update to 3.4+1588266755.g4a5a2cb
+  + Attempt to pull SSL crt and key's from mon config-key store (#173)
+
+---
+Tue Apr 14 13:08:30 UTC 2020 - Ricardo Marques 
+
+- Update to 3.4+1586869678.gf041d18
+  + Allow target reconfigure without clients (bsc#1164571) 
+  + Fix ceph blacklist ls test (#171)
+  + Always perform full deletion on local node (#170)
+  + Fix crash during unblacklisting with python3 (#170)
+  + Fix metrics crash if gw not setup yet (#170)
+  + Fix keys() crash with python 3 (#168)
+  + Add option to force deletion of unreachable gw (#156)
+  + Fix next() crash with python 3 (#164)
+  + Fix config upgrade from 2 to 3 (#162)
+  + Fix ZeroDivisionError (#155) 
+
+---
+Fri Nov 15 15:55:16 UTC 2019 - Ricardo Marques 
+
+- Update to 3.3+1573833100.g55d02da:
+  + Allow explicit set LUN number and WWN (bsc#1145756)
+  + Should be possible to use a single gateway (bsc#1155283)
+  + Fix group disk add on python3
+  + Fix crash when CephCluster fails to get Rados object
+
+---

Old:

  ceph-iscsi-3.3+1570532654.g93940a4.tar.gz

New:

  ceph-iscsi-3.4+1600349408.g516d37d.tar.gz



Other differences:
--
++ ceph-iscsi.spec ++
--- /var/tmp/diff_new_pack.bmjUZK/_old  2020-09-21 17:10:01.503278165 +0200
+++ /var/tmp/diff_new_pack.bmjUZK/_new  2020-09-21 17:10:01.507278169 +0200
@@ -19,7 +19,7 @@
 %endif
 
 Name:   ceph-iscsi
-Version:3.3+1570532654.g93940a4
+Version:3.4+1600349408.g516d37d
 Release:1%{?dist}
 Group:  System/Filesystems
 Summary:Python modules for Ceph iSCSI gateway configuration management
@@ -33,19 +33,14 @@
 %if 0%{?suse_version}
 Source98:   checkin.sh
 Source99:   README-checkin.txt
-%if 0%{?is_opensuse}
 ExclusiveArch:  x86_64 aarch64 ppc64le s390x
 %endif
-%endif
-
-%if ! 0%{?is_opensuse}
-BuildArch: noarch
-%endif
 
 Obsoletes:  ceph-iscsi-config
 Obsoletes:  ceph-iscsi-cli
 
 Requires:   tcmu-runner >= 1.4.0
+Requires:   ceph-common >= 10.2.2
 %if 0%{?with_python2}
 BuildRequires:  python2-devel
 BuildRequires:  python2-setuptools

++ ceph-iscsi-3.3+1570532654.g93940a4.tar.gz -> 
ceph-iscsi-3.4+1600349408.g516d37d.tar.gz ++
 1734 lines of diff (skipped)

++ checkin.sh ++
--- /var/tmp/diff_new_pack.bmjUZK/_old  2020-09-21 17:10:01.807278438 +0200
+++ /var/tmp/diff_new_pack.bmjUZK/_new  2020-09-21 17:10:01.811278442 +0200
@@ -98,8 +98,8 @@
 VERSION="${VERSION}+$(date +%s).${GIT_SHA1}"
 sed -i -e 's/^Version:.*/Version:'$VERSION'/' $PROJECT.spec
 sed -i -e 's#^Source0:.*#Source0:%{name}-%{version}.tar.gz#' 
$PROJECT.spec
+sed -i -e '/Source0/a %if 0%{?suse_version}\nSource98:   
checkin.sh\nSource99:   README-checkin.txt\nExclusiveArch:  x86_64 aarch64 
ppc64le s390x\n%endif' $PROJECT.spec
 sed -i -e '/BuildArch:\s\+noarch/d' $PROJECT.spec
-sed -i -e '/Source0/a %if 0%{?suse_version}\nSource98:   

commit ceph-iscsi for openSUSE:Factory

2019-10-08 Thread root
Hello community,

here is the log from the commit of package ceph-iscsi for openSUSE:Factory 
checked in at 2019-10-08 19:59:48

Comparing /work/SRC/openSUSE:Factory/ceph-iscsi (Old)
 and  /work/SRC/openSUSE:Factory/.ceph-iscsi.new.2352 (New)


Package is "ceph-iscsi"

Tue Oct  8 19:59:48 2019 rev:20 rq:736071 version:3.3+1570532654.g93940a4

Changes:

--- /work/SRC/openSUSE:Factory/ceph-iscsi/ceph-iscsi.changes2019-09-27 
14:55:18.803693692 +0200
+++ /work/SRC/openSUSE:Factory/.ceph-iscsi.new.2352/ceph-iscsi.changes  
2019-10-08 19:59:51.627850665 +0200
@@ -1,0 +2,9 @@
+Tue Oct  8 11:05:09 UTC 2019 - Nathan Cutler 
+
+- Update to 3.3+1570532654.g93940a4:
+  + spec/checkin.sh:
+* reinstate "BuildArch: noarch" for all distros except openSUSE (i.e.,
+  including SLE, which does not allow arch change in a maintenance update)
+* "ExclusiveArch" on openSUSE only
+
+---

Old:

  ceph-iscsi-3.3+1569575733.g93940a4.tar.gz

New:

  ceph-iscsi-3.3+1570532654.g93940a4.tar.gz



Other differences:
--
++ ceph-iscsi.spec ++
--- /var/tmp/diff_new_pack.HnN30E/_old  2019-10-08 19:59:52.431848257 +0200
+++ /var/tmp/diff_new_pack.HnN30E/_new  2019-10-08 19:59:52.447848210 +0200
@@ -19,7 +19,7 @@
 %endif
 
 Name:   ceph-iscsi
-Version:3.3+1569575733.g93940a4
+Version:3.3+1570532654.g93940a4
 Release:1%{?dist}
 Group:  System/Filesystems
 Summary:Python modules for Ceph iSCSI gateway configuration management
@@ -33,8 +33,14 @@
 %if 0%{?suse_version}
 Source98:   checkin.sh
 Source99:   README-checkin.txt
+%if 0%{?is_opensuse}
 ExclusiveArch:  x86_64 aarch64 ppc64le s390x
 %endif
+%endif
+
+%if ! 0%{?is_opensuse}
+BuildArch: noarch
+%endif
 
 Obsoletes:  ceph-iscsi-config
 Obsoletes:  ceph-iscsi-cli

++ ceph-iscsi-3.3+1569575733.g93940a4.tar.gz -> 
ceph-iscsi-3.3+1570532654.g93940a4.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ceph-iscsi-3.3+1569575733.g93940a4/ceph-iscsi.spec 
new/ceph-iscsi-3.3+1570532654.g93940a4/ceph-iscsi.spec
--- old/ceph-iscsi-3.3+1569575733.g93940a4/ceph-iscsi.spec  2019-09-27 
11:15:33.651069640 +0200
+++ new/ceph-iscsi-3.3+1570532654.g93940a4/ceph-iscsi.spec  2019-10-08 
13:04:14.775991361 +0200
@@ -19,7 +19,7 @@
 %endif
 
 Name:   ceph-iscsi
-Version:3.3+1569575733.g93940a4
+Version:3.3+1570532654.g93940a4
 Release:1%{?dist}
 Group:  System/Filesystems
 Summary:Python modules for Ceph iSCSI gateway configuration management
@@ -33,8 +33,14 @@
 %if 0%{?suse_version}
 Source98:   checkin.sh
 Source99:   README-checkin.txt
+%if 0%{?is_opensuse}
 ExclusiveArch:  x86_64 aarch64 ppc64le s390x
 %endif
+%endif
+
+%if ! 0%{?is_opensuse}
+BuildArch: noarch
+%endif
 
 Obsoletes:  ceph-iscsi-config
 Obsoletes:  ceph-iscsi-cli

++ checkin.sh ++
--- /var/tmp/diff_new_pack.HnN30E/_old  2019-10-08 19:59:52.783847204 +0200
+++ /var/tmp/diff_new_pack.HnN30E/_new  2019-10-08 19:59:52.787847191 +0200
@@ -98,8 +98,8 @@
 VERSION="${VERSION}+$(date +%s).${GIT_SHA1}"
 sed -i -e 's/^Version:.*/Version:'$VERSION'/' $PROJECT.spec
 sed -i -e 's#^Source0:.*#Source0:%{name}-%{version}.tar.gz#' 
$PROJECT.spec
-sed -i -e '/Source0/a %if 0%{?suse_version}\nSource98:   
checkin.sh\nSource99:   README-checkin.txt\nExclusiveArch:  x86_64 aarch64 
ppc64le s390x\n%endif' $PROJECT.spec
 sed -i -e '/BuildArch:\s\+noarch/d' $PROJECT.spec
+sed -i -e '/Source0/a %if 0%{?suse_version}\nSource98:   
checkin.sh\nSource99:   README-checkin.txt\n%if 
0%{?is_opensuse}\nExclusiveArch:  x86_64 aarch64 ppc64le 
s390x\n%endif\n%endif\n\n%if ! 0%{?is_opensuse}\nBuildArch: noarch\n%endif' 
$PROJECT.spec
 sed -i -e 'N;/^\n$/D;P;D;' $PROJECT.spec  # collapse multiple adjacent 
newlines down to a single newline
 cp $PROJECT.spec $THIS_DIR
 echo "Version number is ->$VERSION<-"




commit ceph-iscsi for openSUSE:Factory

2019-09-27 Thread root
Hello community,

here is the log from the commit of package ceph-iscsi for openSUSE:Factory 
checked in at 2019-09-27 14:54:24

Comparing /work/SRC/openSUSE:Factory/ceph-iscsi (Old)
 and  /work/SRC/openSUSE:Factory/.ceph-iscsi.new.2352 (New)


Package is "ceph-iscsi"

Fri Sep 27 14:54:24 2019 rev:19 rq:733644 version:3.3+1569575733.g93940a4

Changes:

--- /work/SRC/openSUSE:Factory/ceph-iscsi/ceph-iscsi.changes2019-09-26 
20:40:19.150689158 +0200
+++ /work/SRC/openSUSE:Factory/.ceph-iscsi.new.2352/ceph-iscsi.changes  
2019-09-27 14:55:18.803693692 +0200
@@ -1,0 +2,8 @@
+Fri Sep 27 09:17:57 UTC 2019 - Ricardo Marques 
+
+- Update to 3.3+1569575733.g93940a4:
+  + Validate kernel LIO controls type and value (bsc#1140491)
+  + TPG lun_id persistence (bsc#1145618)
+  + Target level CHAP authentication (bsc#1145617)
+
+---

Old:

  ceph-iscsi-3.2+1568099844.g09c5205.tar.gz

New:

  ceph-iscsi-3.3+1569575733.g93940a4.tar.gz



Other differences:
--
++ ceph-iscsi.spec ++
--- /var/tmp/diff_new_pack.J8fmyh/_old  2019-09-27 14:55:19.855690957 +0200
+++ /var/tmp/diff_new_pack.J8fmyh/_new  2019-09-27 14:55:19.859690946 +0200
@@ -19,7 +19,7 @@
 %endif
 
 Name:   ceph-iscsi
-Version:3.2+1568099844.g09c5205
+Version:3.3+1569575733.g93940a4
 Release:1%{?dist}
 Group:  System/Filesystems
 Summary:Python modules for Ceph iSCSI gateway configuration management
@@ -52,8 +52,10 @@
 Requires:   python-configshell
 %if 0%{?rhel} == 7
 Requires:   pyOpenSSL
+Requires:   python-requests
 %else
 Requires:   python-pyOpenSSL
+Requires:   python2-requests
 %endif
 %else
 BuildRequires:  python3-devel
@@ -64,6 +66,7 @@
 Requires:   python3-rtslib >= 2.1.fb68
 Requires:   python3-cryptography
 Requires:   python3-pyOpenSSL
+Requires:   python3-requests
 %if 0%{?suse_version}
 BuildRequires:  python-rpm-macros
 BuildRequires:  fdupes

++ ceph-iscsi-3.2+1568099844.g09c5205.tar.gz -> 
ceph-iscsi-3.3+1569575733.g93940a4.tar.gz ++
 1947 lines of diff (skipped)




commit ceph-iscsi for openSUSE:Factory

2019-09-26 Thread root
Hello community,

here is the log from the commit of package ceph-iscsi for openSUSE:Factory 
checked in at 2019-09-26 20:40:08

Comparing /work/SRC/openSUSE:Factory/ceph-iscsi (Old)
 and  /work/SRC/openSUSE:Factory/.ceph-iscsi.new.2352 (New)


Package is "ceph-iscsi"

Thu Sep 26 20:40:08 2019 rev:18 rq:732904 version:3.2+1568099844.g09c5205

Changes:

--- /work/SRC/openSUSE:Factory/ceph-iscsi/ceph-iscsi.changes2019-09-11 
10:33:50.643323217 +0200
+++ /work/SRC/openSUSE:Factory/.ceph-iscsi.new.2352/ceph-iscsi.changes  
2019-09-26 20:40:19.150689158 +0200
@@ -7,2 +7,2 @@
-* Validate target controls min/max value
-* Validate rbd:user/tcmu-runner image controls min/max value
+* Validate min/max value for target controls and rbd:user/tcmu-runner image
+  controls (bsc#1140491)



Other differences:
--



commit ceph-iscsi for openSUSE:Factory

2019-09-11 Thread root
Hello community,

here is the log from the commit of package ceph-iscsi for openSUSE:Factory 
checked in at 2019-09-11 10:33:40

Comparing /work/SRC/openSUSE:Factory/ceph-iscsi (Old)
 and  /work/SRC/openSUSE:Factory/.ceph-iscsi.new.7948 (New)


Package is "ceph-iscsi"

Wed Sep 11 10:33:40 2019 rev:17 rq:729677 version:3.2+1568099844.g09c5205

Changes:

--- /work/SRC/openSUSE:Factory/ceph-iscsi/ceph-iscsi.changes2019-08-15 
12:30:19.590440858 +0200
+++ /work/SRC/openSUSE:Factory/.ceph-iscsi.new.7948/ceph-iscsi.changes  
2019-09-11 10:33:50.643323217 +0200
@@ -1,0 +2,14 @@
+Tue Sep 10 06:54:56 UTC 2019 - Nathan Cutler 
+
+- Update to 3.2+1568098374.g09c5205:
+  + upstream 3.2 release
+* Always use host FQDN instead of shortname
+* Validate target controls min/max value
+* Validate rbd:user/tcmu-runner image controls min/max value
+  + checkin.sh:
+* add "sed" statements to reproduce Dominique Leuenberger's
+  downstream-only mod from July 29, 2019 (see previous entry), so it
+  doesn't get clobbered every time we run the script
+* add "sed" statement to collapse multiple newlines down to one
+
+---

Old:

  ceph-iscsi-3.0+1560249372.g70ec7a9.tar.gz

New:

  ceph-iscsi-3.2+1568099844.g09c5205.tar.gz



Other differences:
--
++ ceph-iscsi.spec ++
--- /var/tmp/diff_new_pack.mUUA5H/_old  2019-09-11 10:33:51.807322879 +0200
+++ /var/tmp/diff_new_pack.mUUA5H/_new  2019-09-11 10:33:51.811322879 +0200
@@ -18,9 +18,8 @@
 %global with_python2 1
 %endif
 
-
 Name:   ceph-iscsi
-Version:3.0+1560249372.g70ec7a9
+Version:3.2+1568099844.g09c5205
 Release:1%{?dist}
 Group:  System/Filesystems
 Summary:Python modules for Ceph iSCSI gateway configuration management
@@ -34,32 +33,37 @@
 %if 0%{?suse_version}
 Source98:   checkin.sh
 Source99:   README-checkin.txt
-%endif
 ExclusiveArch:  x86_64 aarch64 ppc64le s390x
+%endif
 
 Obsoletes:  ceph-iscsi-config
 Obsoletes:  ceph-iscsi-cli
 
+Requires:   tcmu-runner >= 1.4.0
 %if 0%{?with_python2}
 BuildRequires:  python2-devel
 BuildRequires:  python2-setuptools
 Requires:   python-rados >= 10.2.2
 Requires:   python-rbd >= 10.2.2
 Requires:   python-netifaces >= 0.10.4
-Requires:   python-rtslib >= 2.1.fb67
-Requires:   rpm-python >= 4.11
+Requires:   python-rtslib >= 2.1.fb68
 Requires:   python-cryptography
 Requires:   python-flask >= 0.10.1
 Requires:   python-configshell
+%if 0%{?rhel} == 7
+Requires:   pyOpenSSL
+%else
+Requires:   python-pyOpenSSL
+%endif
 %else
 BuildRequires:  python3-devel
 BuildRequires:  python3-setuptools
 Requires:   python3-rados >= 10.2.2
 Requires:   python3-rbd >= 10.2.2
 Requires:   python3-netifaces >= 0.10.4
-Requires:   python3-rtslib >= 2.1.fb67
+Requires:   python3-rtslib >= 2.1.fb68
 Requires:   python3-cryptography
-Requires:   python3-rpm >= 4.11
+Requires:   python3-pyOpenSSL
 %if 0%{?suse_version}
 BuildRequires:  python-rpm-macros
 BuildRequires:  fdupes
@@ -71,7 +75,7 @@
 %endif
 %endif
 
-%if 0%{?rhel} == 7
+%if 0%{?rhel}
 BuildRequires: systemd
 %else
 BuildRequires: systemd-rpm-macros
@@ -130,7 +134,6 @@
 install -m 0644 gwcli.8 %{buildroot}%{_mandir}/man8/
 gzip %{buildroot}%{_mandir}/man8/gwcli.8
 mkdir -p %{buildroot}%{_unitdir}/rbd-target-gw.service.d
-install -m 0644 
.%{_sysconfdir}/systemd/system/rbd-target-gw.service.d/dependencies.conf 
%{buildroot}%{_unitdir}/rbd-target-gw.service.d/
 %if 0%{?suse_version}
 mkdir -p %{buildroot}%{_sbindir}
 ln -s service %{buildroot}%{_sbindir}/rcrbd-target-gw
@@ -177,7 +180,6 @@
 %service_del_postun rbd-target-gw.service rbd-target-api.service
 %endif
 
-
 %files
 %license LICENSE
 %license COPYING
@@ -197,7 +199,6 @@
 %attr(0770,root,root) %dir %{_localstatedir}/log/rbd-target-gw
 %attr(0770,root,root) %dir %{_localstatedir}/log/rbd-target-api
 %dir %{_unitdir}/rbd-target-gw.service.d
-%{_unitdir}/rbd-target-gw.service.d/dependencies.conf
 %if 0%{?suse_version}
 %{_sbindir}/rcrbd-target-gw
 %{_sbindir}/rcrbd-target-api

++ ceph-iscsi-3.0+1560249372.g70ec7a9.tar.gz -> 
ceph-iscsi-3.2+1568099844.g09c5205.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ceph-iscsi-3.0+1560249372.g70ec7a9/README.md 
new/ceph-iscsi-3.2+1568099844.g09c5205/README.md
--- old/ceph-iscsi-3.0+1560249372.g70ec7a9/README.md2019-06-11 
12:36:12.615206521 +0200
+++ new/ceph-iscsi-3.2+1568099844.g09c5205/README.md2019-09-10 
09:17:24.087333799 +0200
@@ -38,18 +38,16 @@
 python-cryptography
 python-flask
 
-To install the python package that provides the 

commit ceph-iscsi for openSUSE:Factory

2019-08-15 Thread root
Hello community,

here is the log from the commit of package ceph-iscsi for openSUSE:Factory 
checked in at 2019-08-15 12:30:12

Comparing /work/SRC/openSUSE:Factory/ceph-iscsi (Old)
 and  /work/SRC/openSUSE:Factory/.ceph-iscsi.new.9556 (New)


Package is "ceph-iscsi"

Thu Aug 15 12:30:12 2019 rev:16 rq:723500 version:3.0+1560249372.g70ec7a9

Changes:

--- /work/SRC/openSUSE:Factory/ceph-iscsi/ceph-iscsi.changes2019-06-12 
13:17:29.488615832 +0200
+++ /work/SRC/openSUSE:Factory/.ceph-iscsi.new.9556/ceph-iscsi.changes  
2019-08-15 12:30:19.590440858 +0200
@@ -1,0 +2,7 @@
+Mon Jul 29 15:08:16 UTC 2019 - Dominique Leuenberger 
+
+- Make package not noarch: it is not installable on archs where
+  ceph is not being built. Copy the ExclusiveArch statement from
+  ceph.spec.
+
+---



Other differences:
--
++ ceph-iscsi.spec ++
--- /var/tmp/diff_new_pack.uZDG02/_old  2019-08-15 12:30:20.766439767 +0200
+++ /var/tmp/diff_new_pack.uZDG02/_new  2019-08-15 12:30:20.802439734 +0200
@@ -35,8 +35,7 @@
 Source98:   checkin.sh
 Source99:   README-checkin.txt
 %endif
-
-BuildArch:  noarch
+ExclusiveArch:  x86_64 aarch64 ppc64le s390x
 
 Obsoletes:  ceph-iscsi-config
 Obsoletes:  ceph-iscsi-cli




commit ceph-iscsi for openSUSE:Factory

2019-06-12 Thread root
Hello community,

here is the log from the commit of package ceph-iscsi for openSUSE:Factory 
checked in at 2019-06-12 13:17:28

Comparing /work/SRC/openSUSE:Factory/ceph-iscsi (Old)
 and  /work/SRC/openSUSE:Factory/.ceph-iscsi.new.4811 (New)


Package is "ceph-iscsi"

Wed Jun 12 13:17:28 2019 rev:15 rq:709111 version:3.0+1560249372.g70ec7a9

Changes:

--- /work/SRC/openSUSE:Factory/ceph-iscsi/ceph-iscsi.changes2019-06-07 
12:19:11.752774635 +0200
+++ /work/SRC/openSUSE:Factory/.ceph-iscsi.new.4811/ceph-iscsi.changes  
2019-06-12 13:17:29.488615832 +0200
@@ -1,0 +2,13 @@
+Tue Jun 11 10:36:22 UTC 2019 - Nathan Cutler 
+
+- Update to 3.0+1560249372.g70ec7a9:
+  + spec: drop python3-configshell-fb version guard
+
+---
+Mon Jun 10 15:39:27 UTC 2019 - Nathan Cutler 
+
+- Update to 3.0+1560181178.g3010fd7:
+  + Fix config hash check validation
+  + spec: fix rhel conditional blocks
+
+---

Old:

  ceph-iscsi-3.0+1559837868.g8be74cf.tar.gz

New:

  ceph-iscsi-3.0+1560249372.g70ec7a9.tar.gz



Other differences:
--
++ ceph-iscsi.spec ++
--- /var/tmp/diff_new_pack.ac44Ew/_old  2019-06-12 13:17:30.424614850 +0200
+++ /var/tmp/diff_new_pack.ac44Ew/_new  2019-06-12 13:17:30.428614847 +0200
@@ -20,7 +20,7 @@
 
 
 Name:   ceph-iscsi
-Version:3.0+1559837868.g8be74cf
+Version:3.0+1560249372.g70ec7a9
 Release:1%{?dist}
 Group:  System/Filesystems
 Summary:Python modules for Ceph iSCSI gateway configuration management
@@ -51,7 +51,7 @@
 Requires:   rpm-python >= 4.11
 Requires:   python-cryptography
 Requires:   python-flask >= 0.10.1
-Requires:   python-configshell >= 1.1.fb23
+Requires:   python-configshell
 %else
 BuildRequires:  python3-devel
 BuildRequires:  python3-setuptools
@@ -65,14 +65,14 @@
 BuildRequires:  python-rpm-macros
 BuildRequires:  fdupes
 Requires:   python3-Flask >= 0.10.1
-Requires:   python3-configshell-fb >= 1.1.23
+Requires:   python3-configshell-fb
 %else
 Requires:   python3-flask >= 0.10.1
-Requires:   python3-configshell >= 1.1.fb23
+Requires:   python3-configshell
 %endif
 %endif
 
-%if 0%{?rhel} < 8
+%if 0%{?rhel} == 7
 BuildRequires: systemd
 %else
 BuildRequires: systemd-rpm-macros
@@ -144,7 +144,7 @@
 %endif
 
 %post
-%if 0%{?rhel} < 8
+%if 0%{?rhel} == 7
 /bin/systemctl --system daemon-reload &> /dev/null || :
 /bin/systemctl --system enable rbd-target-gw &> /dev/null || :
 /bin/systemctl --system enable rbd-target-api &> /dev/null || :
@@ -167,7 +167,7 @@
 %endif
 
 %postun
-%if 0%{?rhel} < 8
+%if 0%{?rhel} == 7
 /bin/systemctl --system daemon-reload &> /dev/null || :
 %endif
 %if 0%{?fedora} || 0%{?rhel} >= 8

++ ceph-iscsi-3.0+1559837868.g8be74cf.tar.gz -> 
ceph-iscsi-3.0+1560249372.g70ec7a9.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ceph-iscsi-3.0+1559837868.g8be74cf/ceph-iscsi.spec 
new/ceph-iscsi-3.0+1560249372.g70ec7a9/ceph-iscsi.spec
--- old/ceph-iscsi-3.0+1559837868.g8be74cf/ceph-iscsi.spec  2019-06-06 
18:17:48.750324892 +0200
+++ new/ceph-iscsi-3.0+1560249372.g70ec7a9/ceph-iscsi.spec  2019-06-11 
12:36:12.911206015 +0200
@@ -20,7 +20,7 @@
 
 
 Name:   ceph-iscsi
-Version:3.0+1559837868.g8be74cf
+Version:3.0+1560249372.g70ec7a9
 Release:1%{?dist}
 Group:  System/Filesystems
 Summary:Python modules for Ceph iSCSI gateway configuration management
@@ -51,7 +51,7 @@
 Requires:   rpm-python >= 4.11
 Requires:   python-cryptography
 Requires:   python-flask >= 0.10.1
-Requires:   python-configshell >= 1.1.fb23
+Requires:   python-configshell
 %else
 BuildRequires:  python3-devel
 BuildRequires:  python3-setuptools
@@ -65,14 +65,14 @@
 BuildRequires:  python-rpm-macros
 BuildRequires:  fdupes
 Requires:   python3-Flask >= 0.10.1
-Requires:   python3-configshell-fb >= 1.1.23
+Requires:   python3-configshell-fb
 %else
 Requires:   python3-flask >= 0.10.1
-Requires:   python3-configshell >= 1.1.fb23
+Requires:   python3-configshell
 %endif
 %endif
 
-%if 0%{?rhel} < 8
+%if 0%{?rhel} == 7
 BuildRequires: systemd
 %else
 BuildRequires: systemd-rpm-macros
@@ -144,7 +144,7 @@
 %endif
 
 %post
-%if 0%{?rhel} < 8
+%if 0%{?rhel} == 7
 /bin/systemctl --system daemon-reload &> /dev/null || :
 /bin/systemctl --system enable rbd-target-gw &> /dev/null || :
 /bin/systemctl --system enable rbd-target-api &> /dev/null || :
@@ -167,7 +167,7 @@
 %endif
 
 %postun
-%if 0%{?rhel} < 8
+%if 0%{?rhel} == 7
 /bin/systemctl --system daemon-reload &> /dev/null || :
 

commit ceph-iscsi for openSUSE:Factory

2019-06-07 Thread root
Hello community,

here is the log from the commit of package ceph-iscsi for openSUSE:Factory 
checked in at 2019-06-07 12:19:11

Comparing /work/SRC/openSUSE:Factory/ceph-iscsi (Old)
 and  /work/SRC/openSUSE:Factory/.ceph-iscsi.new.4811 (New)


Package is "ceph-iscsi"

Fri Jun  7 12:19:11 2019 rev:14 rq:708176 version:3.0+1559837868.g8be74cf

Changes:

--- /work/SRC/openSUSE:Factory/ceph-iscsi/ceph-iscsi.changes2019-06-06 
18:19:24.168649475 +0200
+++ /work/SRC/openSUSE:Factory/.ceph-iscsi.new.4811/ceph-iscsi.changes  
2019-06-07 12:19:11.752774635 +0200
@@ -1,0 +2,7 @@
+Thu Jun  6 16:25:29 UTC 2019 - Nathan Cutler 
+
+- Update to 3.0+1559837868.g8be74cf:
+  + spec: conflict only with lrbd <= 3.0 to ensure lrbd is not installed
+simultaneously with ceph-iscsi
+
+---

Old:

  ceph-iscsi-3.0+1559815396.g7aa8f7f.tar.gz

New:

  ceph-iscsi-3.0+1559837868.g8be74cf.tar.gz



Other differences:
--
++ ceph-iscsi.spec ++
--- /var/tmp/diff_new_pack.PqlQkM/_old  2019-06-07 12:19:12.260774474 +0200
+++ /var/tmp/diff_new_pack.PqlQkM/_new  2019-06-07 12:19:12.268774471 +0200
@@ -20,7 +20,7 @@
 
 
 Name:   ceph-iscsi
-Version:3.0+1559815396.g7aa8f7f
+Version:3.0+1559837868.g8be74cf
 Release:1%{?dist}
 Group:  System/Filesystems
 Summary:Python modules for Ceph iSCSI gateway configuration management
@@ -72,12 +72,16 @@
 %endif
 %endif
 
-%if 0%{?suse_version}
-Conflicts: lrbd
-%endif
-
+%if 0%{?rhel} < 8
+BuildRequires: systemd
+%else
 BuildRequires: systemd-rpm-macros
 %{?systemd_requires}
+%endif
+
+%if 0%{?suse_version}
+Conflicts: lrbd < 3.0
+%endif
 
 %description
 Python package providing the modules used to handle the configuration of an
@@ -140,7 +144,12 @@
 %endif
 
 %post
-%if 0%{?fedora} || 0%{?rhel}
+%if 0%{?rhel} < 8
+/bin/systemctl --system daemon-reload &> /dev/null || :
+/bin/systemctl --system enable rbd-target-gw &> /dev/null || :
+/bin/systemctl --system enable rbd-target-api &> /dev/null || :
+%endif
+%if 0%{?fedora} || 0%{?rhel} >= 8
 %systemd_post rbd-target-gw.service
 %systemd_post rbd-target-api.service
 %endif
@@ -149,7 +158,7 @@
 %endif
 
 %preun
-%if 0%{?fedora} || 0%{?rhel}
+%if 0%{?fedora} || 0%{?rhel} >= 8
 %systemd_preun rbd-target-gw.service
 %systemd_preun rbd-target-api.service
 %endif
@@ -158,7 +167,10 @@
 %endif
 
 %postun
-%if 0%{?fedora} || 0%{?rhel}
+%if 0%{?rhel} < 8
+/bin/systemctl --system daemon-reload &> /dev/null || :
+%endif
+%if 0%{?fedora} || 0%{?rhel} >= 8
 %systemd_postun rbd-target-gw.service
 %systemd_postun rbd-target-api.service
 %endif

++ ceph-iscsi-3.0+1559815396.g7aa8f7f.tar.gz -> 
ceph-iscsi-3.0+1559837868.g8be74cf.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ceph-iscsi-3.0+1559815396.g7aa8f7f/README 
new/ceph-iscsi-3.0+1559837868.g8be74cf/README
--- old/ceph-iscsi-3.0+1559815396.g7aa8f7f/README   2019-06-06 
12:03:16.056678443 +0200
+++ new/ceph-iscsi-3.0+1559837868.g8be74cf/README   2019-06-06 
18:17:48.162326785 +0200
@@ -22,13 +22,16 @@
   |   | o- rbd ... [(x3), Commit: 8G/20G 
(40%), Used: 5K]
   |   o- topology . 
[OSDs: 3,MONs: 3]
   o- disks ... 
[8G, Disks: 5]
-  | o- rbd.disk_1 
. [disk_1 (1G)]
-  | o- rbd.disk_2 
. [disk_2 (2G)]
-  | o- rbd.disk_3 
. [disk_3 (2G)]
-  | o- rbd.disk_4 
. [disk_4 (1G)]
-  | o- rbd.disk_5 
. [disk_5 (2G)]
-  o- iscsi-target 
.. [Targets: 1]
+  | o- rbd 
... [rbd 
(8G)]
+  |   o- disk_1 
... [disk_1 (1G)]
+  |   o- disk_2 
... [disk_2 (2G)]
+  |   o- disk_3 
... [disk_3 (2G)]
+  |   o- disk_4 
... [disk_4 (1G)]
+  |   o- disk_5 
... [disk_5 (2G)]
+  o- iscsi-targets 
. [Targets: 1]
 o- iqn.2003-01.com.redhat.iscsi-gw:ceph-gw 

commit ceph-iscsi for openSUSE:Factory

2019-06-06 Thread root
Hello community,

here is the log from the commit of package ceph-iscsi for openSUSE:Factory 
checked in at 2019-06-06 18:19:07

Comparing /work/SRC/openSUSE:Factory/ceph-iscsi (Old)
 and  /work/SRC/openSUSE:Factory/.ceph-iscsi.new.4811 (New)


Package is "ceph-iscsi"

Thu Jun  6 18:19:07 2019 rev:13 rq:708099 version:3.0+1559815396.g7aa8f7f

Changes:

--- /work/SRC/openSUSE:Factory/ceph-iscsi/ceph-iscsi.changes2019-05-22 
11:17:46.154461201 +0200
+++ /work/SRC/openSUSE:Factory/.ceph-iscsi.new.4811/ceph-iscsi.changes  
2019-06-06 18:19:24.168649475 +0200
@@ -1,0 +2,11 @@
+Thu Jun  6 10:04:00 UTC 2019 - Nathan Cutler 
+
+- Update to 3.0+1559815396.g7aa8f7f:
+  + Set 'SUSE' SCSI vendor (bsc#1136769)
+  + Adds support for multiple IPs per gateway (bsc#1136757)
+  + Do not allow lrbd to be installed simultaneously with ceph-iscsi
+  + Temporary workaround to support ',' in configshell params (must be 
removed/reverted in the future, after configshell >= 1.1.f25 is available)
+  + Fix problem deleting target with clients/disks
+  + Removes the disk 'delete' command 
+
+---

Old:

  ceph-iscsi-3.0+1558465738.g6a0a021.tar.gz

New:

  ceph-iscsi-3.0+1559815396.g7aa8f7f.tar.gz



Other differences:
--
++ ceph-iscsi.spec ++
--- /var/tmp/diff_new_pack.qSi1Cv/_old  2019-06-06 18:19:24.844649276 +0200
+++ /var/tmp/diff_new_pack.qSi1Cv/_new  2019-06-06 18:19:24.844649276 +0200
@@ -20,7 +20,7 @@
 
 
 Name:   ceph-iscsi
-Version:3.0+1558465738.g6a0a021
+Version:3.0+1559815396.g7aa8f7f
 Release:1%{?dist}
 Group:  System/Filesystems
 Summary:Python modules for Ceph iSCSI gateway configuration management
@@ -51,7 +51,7 @@
 Requires:   rpm-python >= 4.11
 Requires:   python-cryptography
 Requires:   python-flask >= 0.10.1
-Requires:   python-configshell
+Requires:   python-configshell >= 1.1.fb23
 %else
 BuildRequires:  python3-devel
 BuildRequires:  python3-setuptools
@@ -65,13 +65,17 @@
 BuildRequires:  python-rpm-macros
 BuildRequires:  fdupes
 Requires:   python3-Flask >= 0.10.1
-Requires:   python3-configshell-fb
+Requires:   python3-configshell-fb >= 1.1.23
 %else
 Requires:   python3-flask >= 0.10.1
-Requires:   python3-configshell
+Requires:   python3-configshell >= 1.1.fb23
 %endif
 %endif
 
+%if 0%{?suse_version}
+Conflicts: lrbd
+%endif
+
 BuildRequires: systemd-rpm-macros
 %{?systemd_requires}
 

++ ceph-iscsi-3.0+1558465738.g6a0a021.tar.gz -> 
ceph-iscsi-3.0+1559815396.g7aa8f7f.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ceph-iscsi-3.0+1558465738.g6a0a021/ceph-iscsi.spec 
new/ceph-iscsi-3.0+1559815396.g7aa8f7f/ceph-iscsi.spec
--- old/ceph-iscsi-3.0+1558465738.g6a0a021/ceph-iscsi.spec  2019-05-21 
21:08:58.372570734 +0200
+++ new/ceph-iscsi-3.0+1559815396.g7aa8f7f/ceph-iscsi.spec  2019-06-06 
12:03:16.636671848 +0200
@@ -20,7 +20,7 @@
 
 
 Name:   ceph-iscsi
-Version:3.0+1558465738.g6a0a021
+Version:3.0+1559815396.g7aa8f7f
 Release:1%{?dist}
 Group:  System/Filesystems
 Summary:Python modules for Ceph iSCSI gateway configuration management
@@ -51,7 +51,7 @@
 Requires:   rpm-python >= 4.11
 Requires:   python-cryptography
 Requires:   python-flask >= 0.10.1
-Requires:   python-configshell
+Requires:   python-configshell >= 1.1.fb23
 %else
 BuildRequires:  python3-devel
 BuildRequires:  python3-setuptools
@@ -65,13 +65,17 @@
 BuildRequires:  python-rpm-macros
 BuildRequires:  fdupes
 Requires:   python3-Flask >= 0.10.1
-Requires:   python3-configshell-fb
+Requires:   python3-configshell-fb >= 1.1.23
 %else
 Requires:   python3-flask >= 0.10.1
-Requires:   python3-configshell
+Requires:   python3-configshell >= 1.1.fb23
 %endif
 %endif
 
+%if 0%{?suse_version}
+Conflicts: lrbd
+%endif
+
 BuildRequires: systemd-rpm-macros
 %{?systemd_requires}
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/ceph-iscsi-3.0+1558465738.g6a0a021/ceph_iscsi_config/gateway.py 
new/ceph-iscsi-3.0+1559815396.g7aa8f7f/ceph_iscsi_config/gateway.py
--- old/ceph-iscsi-3.0+1558465738.g6a0a021/ceph_iscsi_config/gateway.py 
2019-05-21 21:08:58.136569104 +0200
+++ new/ceph-iscsi-3.0+1559815396.g7aa8f7f/ceph_iscsi_config/gateway.py 
2019-06-06 12:03:16.060678398 +0200
@@ -160,7 +160,7 @@
 # 0, this is a boot time request
 self.logger.info("Setting up {}".format(target_iqn))
 
-target = GWTarget(self.logger, target_iqn, gw_ip_list,
+target = GWTarget(self.logger, self.config, target_iqn, 

commit ceph-iscsi for openSUSE:Factory

2019-05-22 Thread root
Hello community,

here is the log from the commit of package ceph-iscsi for openSUSE:Factory 
checked in at 2019-05-22 11:17:44

Comparing /work/SRC/openSUSE:Factory/ceph-iscsi (Old)
 and  /work/SRC/openSUSE:Factory/.ceph-iscsi.new.5148 (New)


Package is "ceph-iscsi"

Wed May 22 11:17:44 2019 rev:12 rq:704540 version:3.0+1558465738.g6a0a021

Changes:

--- /work/SRC/openSUSE:Factory/ceph-iscsi/ceph-iscsi.changes2019-05-10 
09:20:01.400495426 +0200
+++ /work/SRC/openSUSE:Factory/.ceph-iscsi.new.5148/ceph-iscsi.changes  
2019-05-22 11:17:46.154461201 +0200
@@ -1,0 +2,13 @@
+Tue May 21 19:09:22 UTC 2019 - Nathan Cutler 
+
+- Update to 3.0+1558465738.g6a0a021:
+  + If fqdn is enabled, "getfqdn" should be used instead of "gethostname"
+
+---
+Tue May 21 12:57:59 UTC 2019 - Nathan Cutler 
+
+- Update to 3.0+1558443949.g9784103:
+  + rbd-target-gw/api systemd dep fix
+  + Add support for enabling FQDN
+
+---

Old:

  ceph-iscsi-3.0+1557415271.g940ac86.tar.gz

New:

  ceph-iscsi-3.0+1558465738.g6a0a021.tar.gz



Other differences:
--
++ ceph-iscsi.spec ++
--- /var/tmp/diff_new_pack.7ry1CX/_old  2019-05-22 11:17:47.746460709 +0200
+++ /var/tmp/diff_new_pack.7ry1CX/_new  2019-05-22 11:17:47.754460706 +0200
@@ -20,7 +20,7 @@
 
 
 Name:   ceph-iscsi
-Version:3.0+1557415271.g940ac86
+Version:3.0+1558465738.g6a0a021
 Release:1%{?dist}
 Group:  System/Filesystems
 Summary:Python modules for Ceph iSCSI gateway configuration management

++ ceph-iscsi-3.0+1557415271.g940ac86.tar.gz -> 
ceph-iscsi-3.0+1558465738.g6a0a021.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ceph-iscsi-3.0+1557415271.g940ac86/ceph-iscsi.spec 
new/ceph-iscsi-3.0+1558465738.g6a0a021/ceph-iscsi.spec
--- old/ceph-iscsi-3.0+1557415271.g940ac86/ceph-iscsi.spec  2019-05-09 
17:21:11.431632500 +0200
+++ new/ceph-iscsi-3.0+1558465738.g6a0a021/ceph-iscsi.spec  2019-05-21 
21:08:58.372570734 +0200
@@ -20,7 +20,7 @@
 
 
 Name:   ceph-iscsi
-Version:3.0+1557415271.g940ac86
+Version:3.0+1558465738.g6a0a021
 Release:1%{?dist}
 Group:  System/Filesystems
 Summary:Python modules for Ceph iSCSI gateway configuration management
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/ceph-iscsi-3.0+1557415271.g940ac86/ceph_iscsi_config/client.py 
new/ceph-iscsi-3.0+1558465738.g6a0a021/ceph_iscsi_config/client.py
--- old/ceph-iscsi-3.0+1557415271.g940ac86/ceph_iscsi_config/client.py  
2019-05-09 17:21:11.195630881 +0200
+++ new/ceph-iscsi-3.0+1558465738.g6a0a021/ceph_iscsi_config/client.py  
2019-05-21 21:08:58.136569104 +0200
@@ -6,7 +6,6 @@
 
 import rtslib_fb.root as lio_root
 
-from socket import gethostname
 from rtslib_fb.target import NodeACL, Target, TPG
 from rtslib_fb.fabric import ISCSIFabricModule
 from rtslib_fb.utils import RTSLibError, RTSLibNotInCFS, normalize_wwn
@@ -14,7 +13,7 @@
 import ceph_iscsi_config.settings as settings
 
 from ceph_iscsi_config.common import Config
-from ceph_iscsi_config.utils import encryption_available, CephiSCSIError
+from ceph_iscsi_config.utils import encryption_available, CephiSCSIError, 
this_host
 from ceph_iscsi_config.gateway_object import GWObject
 
 
@@ -639,7 +638,7 @@
 
 if self.commit_enabled:
 
-if update_host == gethostname().split('.')[0]:
+if update_host == this_host():
 # update the config object with this clients settings
 self.logger.debug("Updating config object metadata "
   "for '{}'".format(self.iqn))
@@ -666,7 +665,7 @@
 else:
 # remove this client from the config
 
-if update_host == gethostname().split('.')[0]:
+if update_host == this_host():
 self.logger.debug("Removing {} from the config "
   "object".format(self.iqn))
 target_config['clients'].pop(self.iqn)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/ceph-iscsi-3.0+1557415271.g940ac86/ceph_iscsi_config/lun.py 
new/ceph-iscsi-3.0+1558465738.g6a0a021/ceph_iscsi_config/lun.py
--- old/ceph-iscsi-3.0+1557415271.g940ac86/ceph_iscsi_config/lun.py 
2019-05-09 17:21:11.195630881 +0200
+++ new/ceph-iscsi-3.0+1558465738.g6a0a021/ceph_iscsi_config/lun.py 
2019-05-21 21:08:58.136569104 +0200
@@ -6,7 +6,6 @@
 

commit ceph-iscsi for openSUSE:Factory

2019-05-10 Thread root
Hello community,

here is the log from the commit of package ceph-iscsi for openSUSE:Factory 
checked in at 2019-05-10 09:19:57

Comparing /work/SRC/openSUSE:Factory/ceph-iscsi (Old)
 and  /work/SRC/openSUSE:Factory/.ceph-iscsi.new.5148 (New)


Package is "ceph-iscsi"

Fri May 10 09:19:57 2019 rev:11 rq:701825 version:3.0+1557415271.g940ac86

Changes:

--- /work/SRC/openSUSE:Factory/ceph-iscsi/ceph-iscsi.changes2019-04-30 
13:06:38.421556649 +0200
+++ /work/SRC/openSUSE:Factory/.ceph-iscsi.new.5148/ceph-iscsi.changes  
2019-05-10 09:20:01.400495426 +0200
@@ -1,0 +2,14 @@
+Thu May  9 15:21:26 UTC 2019 - Nathan Cutler 
+
+- Update to 3.0+1557415271.g940ac86: 
+  + Fix race condition on target disk add (bsc#1134479)
+
+---
+Thu May  9 10:28:06 UTC 2019 - Nathan Cutler 
+
+- Update to 3.0+1557397680.g929bd14:
+  + logger level is now configurable
+  + tcmu-runner supports all RBD features
+  + allow deletion of a target that doesn't exist in LIO
+
+---

Old:

  ceph-iscsi-3.0+1556546618.g28a0e8a.tar.gz

New:

  ceph-iscsi-3.0+1557415271.g940ac86.tar.gz



Other differences:
--
++ ceph-iscsi.spec ++
--- /var/tmp/diff_new_pack.XFfL6B/_old  2019-05-10 09:20:02.456498374 +0200
+++ /var/tmp/diff_new_pack.XFfL6B/_new  2019-05-10 09:20:02.460498385 +0200
@@ -20,7 +20,7 @@
 
 
 Name:   ceph-iscsi
-Version:3.0+1556546618.g28a0e8a
+Version:3.0+1557415271.g940ac86
 Release:1%{?dist}
 Group:  System/Filesystems
 Summary:Python modules for Ceph iSCSI gateway configuration management
@@ -72,7 +72,8 @@
 %endif
 %endif
 
-BuildRequires:  systemd
+BuildRequires: systemd-rpm-macros
+%{?systemd_requires}
 
 %description
 Python package providing the modules used to handle the configuration of an
@@ -136,22 +137,26 @@
 
 %post
 %if 0%{?fedora} || 0%{?rhel}
-/bin/systemctl --system daemon-reload &> /dev/null || :
-/bin/systemctl --system enable rbd-target-gw &> /dev/null || :
-/bin/systemctl --system enable rbd-target-api &> /dev/null || :
+%systemd_post rbd-target-gw.service
+%systemd_post rbd-target-api.service
 %endif
 %if 0%{?suse_version}
 %service_add_post rbd-target-gw.service rbd-target-api.service
 %endif
 
 %preun
+%if 0%{?fedora} || 0%{?rhel}
+%systemd_preun rbd-target-gw.service
+%systemd_preun rbd-target-api.service
+%endif
 %if 0%{?suse_version}
 %service_del_preun rbd-target-gw.service rbd-target-api.service
 %endif
 
 %postun
 %if 0%{?fedora} || 0%{?rhel}
-/bin/systemctl --system daemon-reload &> /dev/null || :
+%systemd_postun rbd-target-gw.service
+%systemd_postun rbd-target-api.service
 %endif
 %if 0%{?suse_version}
 %service_del_postun rbd-target-gw.service rbd-target-api.service

++ ceph-iscsi-3.0+1556546618.g28a0e8a.tar.gz -> 
ceph-iscsi-3.0+1557415271.g940ac86.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ceph-iscsi-3.0+1556546618.g28a0e8a/README 
new/ceph-iscsi-3.0+1557415271.g940ac86/README
--- old/ceph-iscsi-3.0+1556546618.g28a0e8a/README   2019-04-29 
16:03:38.107642273 +0200
+++ new/ceph-iscsi-3.0+1557415271.g940ac86/README   2019-05-09 
17:21:11.195630881 +0200
@@ -1,7 +1,7 @@
 This project provides the common logic and CLI tools for creating and managing
 LIO gateways for Ceph.
 
-It includes the ```rbd-target-gw``` daemon which is responsible for restoring
+It includes the ```rbd-target-api``` daemon which is responsible for restoring
 the state of LIO following a gateway reboot/outage and replaces the existing
 'target' service.
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ceph-iscsi-3.0+1556546618.g28a0e8a/README.md 
new/ceph-iscsi-3.0+1557415271.g940ac86/README.md
--- old/ceph-iscsi-3.0+1556546618.g28a0e8a/README.md2019-04-29 
16:03:38.107642273 +0200
+++ new/ceph-iscsi-3.0+1557415271.g940ac86/README.md2019-05-09 
17:21:11.195630881 +0200
@@ -2,10 +2,14 @@
 This project provides the common logic and CLI tools for creating and managing
 LIO gateways for Ceph.
 
-It includes the ```rbd-target-gw``` daemon which is responsible for restoring
-the state of LIO following a gateway reboot/outage and replaces the existing
+It includes the ```rbd-target-api``` daemon which is responsible for restoring
+the state of LIO following a gateway reboot/outage and exporting a REST API
+to configure the system using tools like gwcli. It replaces the existing
 'target' service.
 
+There is also a second daemon ```rbd-target-gw``` which exports a REST API
+to gather statistics.
+
 It also includes the CLI tool ```gwcli``` which can be used to configure 

commit ceph-iscsi for openSUSE:Factory

2019-04-30 Thread root
Hello community,

here is the log from the commit of package ceph-iscsi for openSUSE:Factory 
checked in at 2019-04-30 13:06:35

Comparing /work/SRC/openSUSE:Factory/ceph-iscsi (Old)
 and  /work/SRC/openSUSE:Factory/.ceph-iscsi.new.5536 (New)


Package is "ceph-iscsi"

Tue Apr 30 13:06:35 2019 rev:10 rq:699447 version:3.0+1556546618.g28a0e8a

Changes:

--- /work/SRC/openSUSE:Factory/ceph-iscsi/ceph-iscsi.changes2019-04-09 
20:18:42.421844161 +0200
+++ /work/SRC/openSUSE:Factory/.ceph-iscsi.new.5536/ceph-iscsi.changes  
2019-04-30 13:06:38.421556649 +0200
@@ -1,0 +2,9 @@
+Mon Apr 29 14:04:00 UTC 2019 - Nathan Cutler 
+
+- Update to 3.0+1556546618.g28a0e8a:
+  + Should be possible to export config without targets
+  + Prevent error getting the number of active sessions
+  + Fix race condition in '_targetauth' config update
+  + Fix error when trying to get client info from 'gwcli'
+
+---

Old:

  ceph-iscsi-3.0+1554735444.g63aceaf.tar.gz

New:

  ceph-iscsi-3.0+1556546618.g28a0e8a.tar.gz



Other differences:
--
++ ceph-iscsi.spec ++
--- /var/tmp/diff_new_pack.XyZkXH/_old  2019-04-30 13:06:38.937556304 +0200
+++ /var/tmp/diff_new_pack.XyZkXH/_new  2019-04-30 13:06:38.937556304 +0200
@@ -20,7 +20,7 @@
 
 
 Name:   ceph-iscsi
-Version:3.0+1554735444.g63aceaf
+Version:3.0+1556546618.g28a0e8a
 Release:1%{?dist}
 Group:  System/Filesystems
 Summary:Python modules for Ceph iSCSI gateway configuration management

++ ceph-iscsi-3.0+1554735444.g63aceaf.tar.gz -> 
ceph-iscsi-3.0+1556546618.g28a0e8a.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ceph-iscsi-3.0+1554735444.g63aceaf/ceph-iscsi.spec 
new/ceph-iscsi-3.0+1556546618.g28a0e8a/ceph-iscsi.spec
--- old/ceph-iscsi-3.0+1554735444.g63aceaf/ceph-iscsi.spec  2019-04-08 
16:57:24.610585206 +0200
+++ new/ceph-iscsi-3.0+1556546618.g28a0e8a/ceph-iscsi.spec  2019-04-29 
16:03:38.399644158 +0200
@@ -20,7 +20,7 @@
 
 
 Name:   ceph-iscsi
-Version:3.0+1554735444.g63aceaf
+Version:3.0+1556546618.g28a0e8a
 Release:1%{?dist}
 Group:  System/Filesystems
 Summary:Python modules for Ceph iSCSI gateway configuration management
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/ceph-iscsi-3.0+1554735444.g63aceaf/ceph_iscsi_config/target.py 
new/ceph-iscsi-3.0+1556546618.g28a0e8a/ceph_iscsi_config/target.py
--- old/ceph-iscsi-3.0+1554735444.g63aceaf/ceph_iscsi_config/target.py  
2019-04-08 16:57:24.310583510 +0200
+++ new/ceph-iscsi-3.0+1556546618.g28a0e8a/ceph_iscsi_config/target.py  
2019-04-29 16:03:38.111642298 +0200
@@ -122,8 +122,12 @@
 :return: boolean
 """
 
+return GWTarget._exists(self.iqn)
+
+@staticmethod
+def _exists(target_iqn):
 return os.path.exists('/sys/kernel/config/target/iscsi/'
-  '{}'.format(self.iqn))
+  '{}'.format(target_iqn))
 
 def _get_portals(self, tpg):
 """
@@ -253,10 +257,9 @@
 self.error = True
 self.error_msg = "Unable to delete target - {}".format(err)
 
-def update_acl(self, config):
-target_config = config.config["targets"][self.iqn]
+def update_acl(self, acl_enabled):
 for tpg in self.tpg_list:
-if target_config['acl_enabled']:
+if acl_enabled:
 tpg.set_attribute('generate_node_acls', 0)
 tpg.set_attribute('demo_mode_write_protect', 1)
 else:
@@ -563,7 +566,8 @@
 # return to caller, with error state set
 return
 
-self.update_acl(config)
+target_config = config.config["targets"][self.iqn]
+self.update_acl(target_config['acl_enabled'])
 
 discovery_auth_config = config.config['discovery_auth']
 Discovery.set_discovery_auth_lio(discovery_auth_config['username'],
@@ -574,7 +578,6 @@
  discovery_auth_config[
  
'mutual_password_encryption_enabled'])
 
-target_config = config.config["targets"][self.iqn]
 gateway_group = config.config["gateways"].keys()
 if "ip_list" not in target_config:
 target_config['ip_list'] = self.gateway_ip_list
@@ -630,7 +633,8 @@
 
 self.map_luns(config)
 
-self.update_acl(config)
+target_config = config.config["targets"][self.iqn]
+self.update_acl(target_config['acl_enabled'])
 
 

commit ceph-iscsi for openSUSE:Factory

2019-04-09 Thread root
Hello community,

here is the log from the commit of package ceph-iscsi for openSUSE:Factory 
checked in at 2019-04-09 20:18:42

Comparing /work/SRC/openSUSE:Factory/ceph-iscsi (Old)
 and  /work/SRC/openSUSE:Factory/.ceph-iscsi.new.3908 (New)


Package is "ceph-iscsi"

Tue Apr  9 20:18:42 2019 rev:9 rq:692489 version:3.0+1554735444.g63aceaf

Changes:

--- /work/SRC/openSUSE:Factory/ceph-iscsi/ceph-iscsi.changes2019-03-26 
15:45:13.968092820 +0100
+++ /work/SRC/openSUSE:Factory/.ceph-iscsi.new.3908/ceph-iscsi.changes  
2019-04-09 20:18:42.421844161 +0200
@@ -1,0 +2,10 @@
+Mon Apr  8 14:35:04 UTC 2019 - ncut...@suse.com
+
+- Update to 3.0+1554735444.g63aceaf:
+  + Adds endpoints:
+* /api/targetinfo/
+* /api/gatewayinfo
+* /api/clientinfo//
+  + Fix upgrade from config v3 when 'controls' field is missing
+
+---

Old:

  ceph-iscsi-3.0+1553528639.g1149ac6.tar.gz

New:

  ceph-iscsi-3.0+1554735444.g63aceaf.tar.gz



Other differences:
--
++ ceph-iscsi.spec ++
--- /var/tmp/diff_new_pack.Ygo303/_old  2019-04-09 20:18:43.901846179 +0200
+++ /var/tmp/diff_new_pack.Ygo303/_new  2019-04-09 20:18:43.901846179 +0200
@@ -20,7 +20,7 @@
 
 
 Name:   ceph-iscsi
-Version:3.0+1553528639.g1149ac6
+Version:3.0+1554735444.g63aceaf
 Release:1%{?dist}
 Group:  System/Filesystems
 Summary:Python modules for Ceph iSCSI gateway configuration management

++ ceph-iscsi-3.0+1553528639.g1149ac6.tar.gz -> 
ceph-iscsi-3.0+1554735444.g63aceaf.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ceph-iscsi-3.0+1553528639.g1149ac6/ceph-iscsi.spec 
new/ceph-iscsi-3.0+1554735444.g63aceaf/ceph-iscsi.spec
--- old/ceph-iscsi-3.0+1553528639.g1149ac6/ceph-iscsi.spec  2019-03-25 
16:43:59.851691154 +0100
+++ new/ceph-iscsi-3.0+1554735444.g63aceaf/ceph-iscsi.spec  2019-04-08 
16:57:24.610585206 +0200
@@ -20,7 +20,7 @@
 
 
 Name:   ceph-iscsi
-Version:3.0+1553528639.g1149ac6
+Version:3.0+1554735444.g63aceaf
 Release:1%{?dist}
 Group:  System/Filesystems
 Summary:Python modules for Ceph iSCSI gateway configuration management
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/ceph-iscsi-3.0+1553528639.g1149ac6/ceph_iscsi_config/client.py 
new/ceph-iscsi-3.0+1554735444.g63aceaf/ceph_iscsi_config/client.py
--- old/ceph-iscsi-3.0+1553528639.g1149ac6/ceph_iscsi_config/client.py  
2019-03-25 16:43:59.583689649 +0100
+++ new/ceph-iscsi-3.0+1554735444.g63aceaf/ceph_iscsi_config/client.py  
2019-04-08 16:57:24.310583510 +0200
@@ -235,6 +235,34 @@
 self.change_count += 1
 
 @staticmethod
+def get_client_info(target_iqn, client_iqn):
+result = {
+"alias": '',
+"state": '',
+"ip_address": []
+}
+iscsi_fabric = ISCSIFabricModule()
+target = Target(iscsi_fabric, target_iqn, 'lookup')
+for tpg in target.tpgs:
+if tpg.enable:
+for client in tpg.node_acls:
+if client.node_wwn != client_iqn:
+continue
+session = client.session
+if session is None:
+break
+result['alias'] = session.get('alias')
+state = session.get('state').upper()
+result['state'] = state
+ips = set()
+if state == 'LOGGED_IN':
+for conn in session.get('connections'):
+ips.add(conn.get('address'))
+result['ip_address'] = list(ips)
+break
+return result
+
+@staticmethod
 def define_clients(logger, config, target_iqn):
 """
 define the clients (nodeACLs) to the gateway definition
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/ceph-iscsi-3.0+1553528639.g1149ac6/ceph_iscsi_config/common.py 
new/ceph-iscsi-3.0+1554735444.g63aceaf/ceph_iscsi_config/common.py
--- old/ceph-iscsi-3.0+1553528639.g1149ac6/ceph_iscsi_config/common.py  
2019-03-25 16:43:59.583689649 +0100
+++ new/ceph-iscsi-3.0+1554735444.g63aceaf/ceph_iscsi_config/common.py  
2019-04-08 16:57:24.310583510 +0200
@@ -199,7 +199,7 @@
 'clients': self.config['clients'],
 'portals': portals,
 'groups': self.config['groups'],
-'controls': self.config['controls'],
+'controls': self.config.get('controls', {}),
 'ip_list': 

commit ceph-iscsi for openSUSE:Factory

2019-03-26 Thread root
Hello community,

here is the log from the commit of package ceph-iscsi for openSUSE:Factory 
checked in at 2019-03-26 15:45:08

Comparing /work/SRC/openSUSE:Factory/ceph-iscsi (Old)
 and  /work/SRC/openSUSE:Factory/.ceph-iscsi.new.25356 (New)


Package is "ceph-iscsi"

Tue Mar 26 15:45:08 2019 rev:8 rq:688345 version:3.0+1553528639.g1149ac6

Changes:

--- /work/SRC/openSUSE:Factory/ceph-iscsi/ceph-iscsi.changes2019-03-20 
13:22:55.181290549 +0100
+++ /work/SRC/openSUSE:Factory/.ceph-iscsi.new.25356/ceph-iscsi.changes 
2019-03-26 15:45:13.968092820 +0100
@@ -1,0 +2,7 @@
+Mon Mar 25 15:44:13 UTC 2019 - ncut...@suse.com
+
+- Update to 3.0+1553528639.g1149ac6:
+  + '/settings' endpoint return required and support RBD features by backstore
+  + Enable/disable 'demo_mode_write_protect' when enabling/disabling ACL 
authentication
+
+---

Old:

  ceph-iscsi-3.0+1553076762.g61c150a.tar.gz

New:

  ceph-iscsi-3.0+1553528639.g1149ac6.tar.gz



Other differences:
--
++ ceph-iscsi.spec ++
--- /var/tmp/diff_new_pack.YMyoxh/_old  2019-03-26 15:45:14.672091994 +0100
+++ /var/tmp/diff_new_pack.YMyoxh/_new  2019-03-26 15:45:14.676091990 +0100
@@ -20,7 +20,7 @@
 
 
 Name:   ceph-iscsi
-Version:3.0+1553076762.g61c150a
+Version:3.0+1553528639.g1149ac6
 Release:1%{?dist}
 Group:  System/Filesystems
 Summary:Python modules for Ceph iSCSI gateway configuration management

++ ceph-iscsi-3.0+1553076762.g61c150a.tar.gz -> 
ceph-iscsi-3.0+1553528639.g1149ac6.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ceph-iscsi-3.0+1553076762.g61c150a/ceph-iscsi.spec 
new/ceph-iscsi-3.0+1553528639.g1149ac6/ceph-iscsi.spec
--- old/ceph-iscsi-3.0+1553076762.g61c150a/ceph-iscsi.spec  2019-03-20 
11:12:42.804616000 +0100
+++ new/ceph-iscsi-3.0+1553528639.g1149ac6/ceph-iscsi.spec  2019-03-25 
16:43:59.851691154 +0100
@@ -20,7 +20,7 @@
 
 
 Name:   ceph-iscsi
-Version:3.0+1553076762.g61c150a
+Version:3.0+1553528639.g1149ac6
 Release:1%{?dist}
 Group:  System/Filesystems
 Summary:Python modules for Ceph iSCSI gateway configuration management
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/ceph-iscsi-3.0+1553076762.g61c150a/ceph_iscsi_config/client.py 
new/ceph-iscsi-3.0+1553528639.g1149ac6/ceph_iscsi_config/client.py
--- old/ceph-iscsi-3.0+1553076762.g61c150a/ceph_iscsi_config/client.py  
2019-03-20 11:12:42.532616484 +0100
+++ new/ceph-iscsi-3.0+1553528639.g1149ac6/ceph_iscsi_config/client.py  
2019-03-25 16:43:59.583689649 +0100
@@ -372,6 +372,7 @@
 def _update_acl(self, target_config):
 if self.tpg.node_acls:
 self.tpg.set_attribute('generate_node_acls', 0)
+self.tpg.set_attribute('demo_mode_write_protect', 1)
 if not target_config['acl_enabled']:
 target_config['acl_enabled'] = True
 self.change_count += 1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/ceph-iscsi-3.0+1553076762.g61c150a/ceph_iscsi_config/target.py 
new/ceph-iscsi-3.0+1553528639.g1149ac6/ceph_iscsi_config/target.py
--- old/ceph-iscsi-3.0+1553076762.g61c150a/ceph_iscsi_config/target.py  
2019-03-20 11:12:42.532616484 +0100
+++ new/ceph-iscsi-3.0+1553528639.g1149ac6/ceph_iscsi_config/target.py  
2019-03-25 16:43:59.583689649 +0100
@@ -258,8 +258,10 @@
 for tpg in self.tpg_list:
 if target_config['acl_enabled']:
 tpg.set_attribute('generate_node_acls', 0)
+tpg.set_attribute('demo_mode_write_protect', 1)
 else:
 tpg.set_attribute('generate_node_acls', 1)
+tpg.set_attribute('demo_mode_write_protect', 0)
 
 def create_tpg(self, ip):
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ceph-iscsi-3.0+1553076762.g61c150a/rbd-target-api.py 
new/ceph-iscsi-3.0+1553528639.g1149ac6/rbd-target-api.py
--- old/ceph-iscsi-3.0+1553076762.g61c150a/rbd-target-api.py2019-03-20 
11:12:42.536616477 +0100
+++ new/ceph-iscsi-3.0+1553528639.g1149ac6/rbd-target-api.py2019-03-25 
16:43:59.587689671 +0100
@@ -2224,15 +2224,21 @@
 target_default_controls[k] = default_val
 
 disk_default_controls = {}
+required_rbd_features = {}
+supported_rbd_features = {}
 for backstore, ks in LUN.SETTINGS.items():
 disk_default_controls[backstore] = {}
 for k in ks:
 default_val = getattr(settings.config, k, None)
 disk_default_controls[backstore][k] = 

commit ceph-iscsi for openSUSE:Factory

2019-03-20 Thread root
Hello community,

here is the log from the commit of package ceph-iscsi for openSUSE:Factory 
checked in at 2019-03-20 13:22:25

Comparing /work/SRC/openSUSE:Factory/ceph-iscsi (Old)
 and  /work/SRC/openSUSE:Factory/.ceph-iscsi.new.28833 (New)


Package is "ceph-iscsi"

Wed Mar 20 13:22:25 2019 rev:7 rq:686898 version:3.0+1553076762.g61c150a

Changes:

--- /work/SRC/openSUSE:Factory/ceph-iscsi/ceph-iscsi.changes2019-03-18 
10:38:32.815488839 +0100
+++ /work/SRC/openSUSE:Factory/.ceph-iscsi.new.28833/ceph-iscsi.changes 
2019-03-20 13:22:55.181290549 +0100
@@ -1,0 +2,7 @@
+Wed Mar 20 10:13:03 UTC 2019 - ncut...@suse.com
+
+- Update to 3.0+1553076762.g61c150a:
+  + Gateway management fixes and features
+  + regression: fix lun reconfigure failure
+
+---

Old:

  ceph-iscsi-3.0+1552644320.g118bce3.tar.gz

New:

  ceph-iscsi-3.0+1553076762.g61c150a.tar.gz



Other differences:
--
++ ceph-iscsi.spec ++
--- /var/tmp/diff_new_pack.RlvenL/_old  2019-03-20 13:22:56.625290193 +0100
+++ /var/tmp/diff_new_pack.RlvenL/_new  2019-03-20 13:22:56.629290192 +0100
@@ -20,7 +20,7 @@
 
 
 Name:   ceph-iscsi
-Version:3.0+1552644320.g118bce3
+Version:3.0+1553076762.g61c150a
 Release:1%{?dist}
 Group:  System/Filesystems
 Summary:Python modules for Ceph iSCSI gateway configuration management

++ ceph-iscsi-3.0+1552644320.g118bce3.tar.gz -> 
ceph-iscsi-3.0+1553076762.g61c150a.tar.gz ++
 2779 lines of diff (skipped)




commit ceph-iscsi for openSUSE:Factory

2019-03-18 Thread root
Hello community,

here is the log from the commit of package ceph-iscsi for openSUSE:Factory 
checked in at 2019-03-18 10:38:27

Comparing /work/SRC/openSUSE:Factory/ceph-iscsi (Old)
 and  /work/SRC/openSUSE:Factory/.ceph-iscsi.new.28833 (New)


Package is "ceph-iscsi"

Mon Mar 18 10:38:27 2019 rev:6 rq:685307 version:3.0+1552644320.g118bce3

Changes:

--- /work/SRC/openSUSE:Factory/ceph-iscsi/ceph-iscsi.changes2019-03-12 
09:54:30.479524984 +0100
+++ /work/SRC/openSUSE:Factory/.ceph-iscsi.new.28833/ceph-iscsi.changes 
2019-03-18 10:38:32.815488839 +0100
@@ -1,0 +2,11 @@
+Fri Mar 15 10:07:28 UTC 2019 - ncut...@suse.com
+
+- Update to 3.0+1552644320.g118bce3:
+  + Fix chap config update
+  + Always use rados client name when connecting to Ceph cluster
+  + spec: add python-configshell runtime dependency
+  + gw: use client id when calling ceph shell command
+  + Fix race condition after gateway creation
+  + Misc target/acl reconfigure fixes
+
+---

Old:

  ceph-iscsi-3.0+1552304123.g67b0d30.tar.gz

New:

  ceph-iscsi-3.0+1552644320.g118bce3.tar.gz



Other differences:
--
++ ceph-iscsi.spec ++
--- /var/tmp/diff_new_pack.VNldKA/_old  2019-03-18 10:38:33.275488445 +0100
+++ /var/tmp/diff_new_pack.VNldKA/_new  2019-03-18 10:38:33.279488442 +0100
@@ -20,7 +20,7 @@
 
 
 Name:   ceph-iscsi
-Version:3.0+1552304123.g67b0d30
+Version:3.0+1552644320.g118bce3
 Release:1%{?dist}
 Group:  System/Filesystems
 Summary:Python modules for Ceph iSCSI gateway configuration management
@@ -51,6 +51,7 @@
 Requires:   rpm-python >= 4.11
 Requires:   python-cryptography
 Requires:   python-flask >= 0.10.1
+Requires:   python-configshell
 %else
 BuildRequires:  python3-devel
 BuildRequires:  python3-setuptools
@@ -64,8 +65,10 @@
 BuildRequires:  python-rpm-macros
 BuildRequires:  fdupes
 Requires:   python3-Flask >= 0.10.1
+Requires:   python3-configshell-fb
 %else
 Requires:   python3-flask >= 0.10.1
+Requires:   python3-configshell
 %endif
 %endif
 

++ ceph-iscsi-3.0+1552304123.g67b0d30.tar.gz -> 
ceph-iscsi-3.0+1552644320.g118bce3.tar.gz ++
 2917 lines of diff (skipped)




commit ceph-iscsi for openSUSE:Factory

2019-03-12 Thread root
Hello community,

here is the log from the commit of package ceph-iscsi for openSUSE:Factory 
checked in at 2019-03-12 09:54:27

Comparing /work/SRC/openSUSE:Factory/ceph-iscsi (Old)
 and  /work/SRC/openSUSE:Factory/.ceph-iscsi.new.28833 (New)


Package is "ceph-iscsi"

Tue Mar 12 09:54:27 2019 rev:5 rq:683769 version:3.0+1552304123.g67b0d30

Changes:

--- /work/SRC/openSUSE:Factory/ceph-iscsi/ceph-iscsi.changes2019-02-28 
21:44:59.653484338 +0100
+++ /work/SRC/openSUSE:Factory/.ceph-iscsi.new.28833/ceph-iscsi.changes 
2019-03-12 09:54:30.479524984 +0100
@@ -1,0 +2,6 @@
+Mon Mar 11 11:35:48 UTC 2019 - ncut...@suse.com
+
+- Update to 3.0+1552304123.g67b0d30:
+  + add support for 'rbd' backstore (Ricardo Marques) 
+
+---

Old:

  ceph-iscsi-3.0+1551361389.g157b5fd.tar.gz

New:

  ceph-iscsi-3.0+1552304123.g67b0d30.tar.gz



Other differences:
--
++ ceph-iscsi.spec ++
--- /var/tmp/diff_new_pack.8jAQz8/_old  2019-03-12 09:54:31.803524721 +0100
+++ /var/tmp/diff_new_pack.8jAQz8/_new  2019-03-12 09:54:31.835524715 +0100
@@ -20,7 +20,7 @@
 
 
 Name:   ceph-iscsi
-Version:3.0+1551361389.g157b5fd
+Version:3.0+1552304123.g67b0d30
 Release:1%{?dist}
 Group:  System/Filesystems
 Summary:Python modules for Ceph iSCSI gateway configuration management

++ ceph-iscsi-3.0+1551361389.g157b5fd.tar.gz -> 
ceph-iscsi-3.0+1552304123.g67b0d30.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ceph-iscsi-3.0+1551361389.g157b5fd/ceph-iscsi.spec 
new/ceph-iscsi-3.0+1552304123.g67b0d30/ceph-iscsi.spec
--- old/ceph-iscsi-3.0+1551361389.g157b5fd/ceph-iscsi.spec  2019-02-28 
14:43:09.980709800 +0100
+++ new/ceph-iscsi-3.0+1552304123.g67b0d30/ceph-iscsi.spec  2019-03-11 
12:35:23.551649077 +0100
@@ -20,7 +20,7 @@
 
 
 Name:   ceph-iscsi
-Version:3.0+1551361389.g157b5fd
+Version:3.0+1552304123.g67b0d30
 Release:1%{?dist}
 Group:  System/Filesystems
 Summary:Python modules for Ceph iSCSI gateway configuration management
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/ceph-iscsi-3.0+1551361389.g157b5fd/ceph_iscsi_config/backstore.py 
new/ceph-iscsi-3.0+1552304123.g67b0d30/ceph_iscsi_config/backstore.py
--- old/ceph-iscsi-3.0+1551361389.g157b5fd/ceph_iscsi_config/backstore.py   
2019-02-28 14:43:09.700708236 +0100
+++ new/ceph-iscsi-3.0+1552304123.g67b0d30/ceph_iscsi_config/backstore.py   
2019-03-11 12:35:23.211647200 +0100
@@ -1,2 +1,16 @@
+from rtslib_fb import UserBackedStorageObject, RBDStorageObject
+
+from ceph_iscsi_config.utils import CephiSCSIError
+
 USER_RBD = 'user:rbd'
 RBD = 'rbd'
+
+
+def lookup_storage_object(name, backstore):
+if backstore == USER_RBD:
+return UserBackedStorageObject(name=name)
+elif backstore == RBD:
+return RBDStorageObject(name=name)
+else:
+raise CephiSCSIError("Could not lookup storage object - "
+ "Unsupported backstore {}".format(backstore))
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/ceph-iscsi-3.0+1551361389.g157b5fd/ceph_iscsi_config/client.py 
new/ceph-iscsi-3.0+1552304123.g67b0d30/ceph_iscsi_config/client.py
--- old/ceph-iscsi-3.0+1551361389.g157b5fd/ceph_iscsi_config/client.py  
2019-02-28 14:43:09.700708236 +0100
+++ new/ceph-iscsi-3.0+1552304123.g67b0d30/ceph_iscsi_config/client.py  
2019-03-11 12:35:23.215647222 +0100
@@ -276,7 +276,7 @@
 
 tpg.set_attribute('authentication', '0')
 
-def configure_auth(self, chap_credentials, chap_mutual_credentials):
+def configure_auth(self, chap_credentials, chap_mutual_credentials, 
target_config):
 """
 Attempt to configure authentication for the client
 :return:
@@ -362,6 +362,15 @@
 else:
 self.change_count += 1
 
+self._update_acl(target_config)
+
+def _update_acl(self, target_config):
+if self.tpg.node_acls:
+self.tpg.set_attribute('generate_node_acls', 0)
+if not target_config['acl_enabled']:
+target_config['acl_enabled'] = True
+self.change_count += 1
+
 def _add_lun(self, image, lun):
 """
 Add a given image to the client ACL
@@ -576,7 +585,7 @@
 self.logger.warning("(main) client '{}' configured without"
 " security".format(self.iqn))
 
-self.configure_auth(self.chap, self.chap_mutual)
+self.configure_auth(self.chap, self.chap_mutual, target_config)
 if 

commit ceph-iscsi for openSUSE:Factory

2019-02-28 Thread root
Hello community,

here is the log from the commit of package ceph-iscsi for openSUSE:Factory 
checked in at 2019-02-28 21:44:56

Comparing /work/SRC/openSUSE:Factory/ceph-iscsi (Old)
 and  /work/SRC/openSUSE:Factory/.ceph-iscsi.new.28833 (New)


Package is "ceph-iscsi"

Thu Feb 28 21:44:56 2019 rev:4 rq:680124 version:3.0+1551361389.g157b5fd

Changes:

--- /work/SRC/openSUSE:Factory/ceph-iscsi/ceph-iscsi.changes2019-02-04 
14:26:19.149027965 +0100
+++ /work/SRC/openSUSE:Factory/.ceph-iscsi.new.28833/ceph-iscsi.changes 
2019-02-28 21:44:59.653484338 +0100
@@ -1,0 +2,21 @@
+Thu Feb 28 10:45:20 UTC 2019 - ncut...@suse.com
+
+- Update to 3.0+1551350485.g157b5fd: 
+  + refactor spec file for better Fedora/RHEL and Python 3 support (Ricardo 
Dias)
+  + rados pool for storing configuration is now configurable (Ricardo Marques)
+  + support for specifying the cluster client name (Ricardo Dias)
+
+---
+Tue Feb 19 16:04:43 UTC 2019 - ncut...@suse.com
+
+- Update to 3.0+1550592273.gda1fd9b:
+  + Support for kernel LIO backstore (which is the default backstore on SES6)
+(Ricardo Marques)
+  + Disable OS, and package version checks (Ricardo Marques)
+
+---
+Thu Feb  7 17:00:40 UTC 2019 - ncut...@suse.com
+
+- checkin.sh: append git SHA1 to version number 
+
+---

Old:

  ceph-iscsi-3.0+1549277704.tar.gz

New:

  ceph-iscsi-3.0+1551361389.g157b5fd.tar.gz



Other differences:
--
++ ceph-iscsi.spec ++
--- /var/tmp/diff_new_pack.w5PWOi/_old  2019-02-28 21:45:00.109484144 +0100
+++ /var/tmp/diff_new_pack.w5PWOi/_new  2019-02-28 21:45:00.113484142 +0100
@@ -14,31 +14,36 @@
 #
 # Please submit bugfixes or comments via http://tracker.ceph.com/
 #
-%if 0%{?fedora} || 0%{?rhel}
-%global _remote_tarball_prefix 
https://github.com/ceph/ceph-iscsi/archive/%{version}/
+%if 0%{?rhel} == 7
+%global with_python2 1
 %endif
 
+
 Name:   ceph-iscsi
-Version:3.0+1549277704
+Version:3.0+1551361389.g157b5fd
 Release:1%{?dist}
 Group:  System/Filesystems
 Summary:Python modules for Ceph iSCSI gateway configuration management
-
+%if 0%{?suse_version}
 License:GPL-3.0-or-later
+%else
+License:GPLv3+
+%endif
 URL:https://github.com/ceph/ceph-iscsi
-Source0:%{?_remote_tarball_prefix}%{name}-%{version}.tar.gz
+Source0:%{name}-%{version}.tar.gz
 %if 0%{?suse_version}
 Source98:   checkin.sh
 Source99:   README-checkin.txt
 %endif
 
-
 BuildArch: noarch
 
 Obsoletes: ceph-iscsi-config
 Obsoletes: ceph-iscsi-cli
 
-%if 0%{?fedora} || 0%{?rhel}
+%if 0%{?with_python2}
+BuildRequires:  python2-devel
+BuildRequires:  python2-setuptools
 Requires:  python-rados >= 10.2.2
 Requires:  python-rbd >= 10.2.2
 Requires:  python-netifaces >= 0.10.4
@@ -46,21 +51,22 @@
 Requires:  rpm-python >= 4.11
 Requires:  python-cryptography
 Requires:  python-flask >= 0.10.1
-BuildRequires:  python-devel
-BuildRequires:  python-setuptools
-%endif
-%if 0%{?suse_version}
+%else
+BuildRequires:  python3-devel
+BuildRequires:  python3-setuptools
 Requires:   python3-rados >= 10.2.2
 Requires:   python3-rbd >= 10.2.2
 Requires:   python3-netifaces >= 0.10.4
 Requires:   python3-rtslib >= 2.1.fb67
-Requires:   python3-rpm >= 4.11
 Requires:   python3-cryptography
-Requires:   python3-Flask >= 0.10.1
+Requires:   python3-rpm >= 4.11
+%if 0%{?suse_version}
 BuildRequires:  python-rpm-macros
 BuildRequires:  fdupes
-BuildRequires:  python3-devel
-BuildRequires:  python3-setuptools
+Requires:   python3-Flask >= 0.10.1
+%else
+Requires:   python3-flask >= 0.10.1
+%endif
 %endif
 
 BuildRequires:  systemd
@@ -82,32 +88,48 @@
 Grafana.
 
 %prep
-%setup -q
+%autosetup -p1
 
 %build
-%if 0%{?fedora} || 0%{?rhel}
+%if 0%{?with_python2}
 %{__python2} setup.py build
-%endif
+%else
 %if 0%{?suse_version}
 %python3_build
+%else
+%{py3_build}
+%endif
 %endif
 
 %install
-%if 0%{?fedora} || 0%{?rhel}
+%if 0%{?with_python2}
 %{__python2} setup.py install -O1 --skip-build --root %{buildroot}  
--install-scripts %{_bindir}
-%endif
+%else
 %if 0%{?suse_version}
 %python3_install
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
+%else
+%{py3_install}
+%endif
 %endif
 mkdir -p %{buildroot}%{_unitdir}
 install -m 0644 .%{_unitdir}/rbd-target-gw.service %{buildroot}%{_unitdir}
 install -m 0644 .%{_unitdir}/rbd-target-api.service %{buildroot}%{_unitdir}
-mkdir -p %{buildroot}%{_sysconfdir}/systemd/system/rbd-target-gw.service.d
-install -m 0644 

commit ceph-iscsi for openSUSE:Factory

2019-02-04 Thread root
Hello community,

here is the log from the commit of package ceph-iscsi for openSUSE:Factory 
checked in at 2019-02-04 14:26:16

Comparing /work/SRC/openSUSE:Factory/ceph-iscsi (Old)
 and  /work/SRC/openSUSE:Factory/.ceph-iscsi.new.28833 (New)


Package is "ceph-iscsi"

Mon Feb  4 14:26:16 2019 rev:3 rq:671021 version:3.0+1549277704

Changes:

--- /work/SRC/openSUSE:Factory/ceph-iscsi/ceph-iscsi.changes2019-01-21 
11:00:09.195290775 +0100
+++ /work/SRC/openSUSE:Factory/.ceph-iscsi.new.28833/ceph-iscsi.changes 
2019-02-04 14:26:19.149027965 +0100
@@ -1,0 +2,8 @@
+Mon Feb  4 10:55:10 UTC 2019 - ncut...@suse.com
+
+- Update to 3.0+1549277704:
+  + based on upstream master SHA1 17023339c03f8a8ad289db7689f6d6424c2b860f 
+* packaging: Move python unbuffered option to systemd unit file
+  (bsc#1123070)
+
+---

Old:

  ceph-iscsi-3.0+1547720996.tar.gz

New:

  ceph-iscsi-3.0+1549277704.tar.gz



Other differences:
--
++ ceph-iscsi.spec ++
--- /var/tmp/diff_new_pack.CQNSxL/_old  2019-02-04 14:26:19.897027611 +0100
+++ /var/tmp/diff_new_pack.CQNSxL/_new  2019-02-04 14:26:19.897027611 +0100
@@ -19,7 +19,7 @@
 %endif
 
 Name:   ceph-iscsi
-Version:3.0+1547720996
+Version:3.0+1549277704
 Release:1%{?dist}
 Group:  System/Filesystems
 Summary:Python modules for Ceph iSCSI gateway configuration management

++ ceph-iscsi-3.0+1547720996.tar.gz -> ceph-iscsi-3.0+1549277704.tar.gz 
++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ceph-iscsi-3.0+1547720996/ceph-iscsi.spec 
new/ceph-iscsi-3.0+1549277704/ceph-iscsi.spec
--- old/ceph-iscsi-3.0+1547720996/ceph-iscsi.spec   2019-01-17 
11:29:56.925544738 +0100
+++ new/ceph-iscsi-3.0+1549277704/ceph-iscsi.spec   2019-02-04 
11:55:04.493986729 +0100
@@ -19,7 +19,7 @@
 %endif
 
 Name:   ceph-iscsi
-Version:3.0+1547720996
+Version:3.0+1549277704
 Release:1%{?dist}
 Group:  System/Filesystems
 Summary:Python modules for Ceph iSCSI gateway configuration management
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/ceph-iscsi-3.0+1547720996/ceph_iscsi_config/client.py 
new/ceph-iscsi-3.0+1549277704/ceph_iscsi_config/client.py
--- old/ceph-iscsi-3.0+1547720996/ceph_iscsi_config/client.py   2019-01-17 
11:29:56.685543415 +0100
+++ new/ceph-iscsi-3.0+1549277704/ceph_iscsi_config/client.py   2019-02-04 
11:55:04.253985399 +0100
@@ -46,7 +46,6 @@
 :return:
 """
 
-self.iqn = client_iqn
 self.target_iqn = target_iqn
 self.lun_lookup = {}# only used for hostgroup based definitions
 self.requested_images = []
@@ -87,10 +86,12 @@
 self.error_msg = ''
 
 try:
-normalize_wwn(['iqn'], client_iqn)
+client_iqn, iqn_type = normalize_wwn(['iqn'], client_iqn)
 except RTSLibError as err:
 self.error = True
-self.error_msg = "Invalid client name for iSCSI - {}".format(err)
+self.error_msg = "Invalid iSCSI client name - {}".format(err)
+
+self.iqn = client_iqn
 
 # Validate the images list doesn't contain duplicate entries
 dup_images = set([rbd for rbd in image_list
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/ceph-iscsi-3.0+1547720996/ceph_iscsi_config/gateway.py 
new/ceph-iscsi-3.0+1549277704/ceph_iscsi_config/gateway.py
--- old/ceph-iscsi-3.0+1547720996/ceph_iscsi_config/gateway.py  2019-01-17 
11:29:56.685543415 +0100
+++ new/ceph-iscsi-3.0+1549277704/ceph_iscsi_config/gateway.py  2019-02-04 
11:55:04.257985421 +0100
@@ -5,7 +5,7 @@
 from rtslib_fb.target import Target, TPG, NetworkPortal, LUN
 from rtslib_fb.fabric import ISCSIFabricModule
 from rtslib_fb import root
-from rtslib_fb.utils import RTSLibError
+from rtslib_fb.utils import RTSLibError, normalize_wwn
 from rtslib_fb.alua import ALUATargetPortGroup
 
 import ceph_iscsi_config.settings as settings
@@ -56,6 +56,11 @@
 self.enable_portal = enable_portal  # boolean to trigger portal IP 
creation
 self.logger = logger# logger object
 
+try:
+iqn, iqn_type = normalize_wwn(['iqn'], iqn)
+except RTSLibError as err:
+self.error = True
+self.error_msg = "Invalid iSCSI target name - {}".format(err)
 self.iqn = iqn
 
 # Ensure IPv6 addresses are in the normalized address (not literal) 
format
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 

commit ceph-iscsi for openSUSE:Factory

2019-01-21 Thread root
Hello community,

here is the log from the commit of package ceph-iscsi for openSUSE:Factory 
checked in at 2019-01-21 10:58:55

Comparing /work/SRC/openSUSE:Factory/ceph-iscsi (Old)
 and  /work/SRC/openSUSE:Factory/.ceph-iscsi.new.28833 (New)


Package is "ceph-iscsi"

Mon Jan 21 10:58:55 2019 rev:2 rq:55 version:3.0+1547720996

Changes:

--- /work/SRC/openSUSE:Factory/ceph-iscsi/ceph-iscsi.changes2018-12-10 
12:29:07.410479890 +0100
+++ /work/SRC/openSUSE:Factory/.ceph-iscsi.new.28833/ceph-iscsi.changes 
2019-01-21 11:00:09.195290775 +0100
@@ -1,0 +2,10 @@
+Thu Jan 17 10:30:29 UTC 2019 - ncut...@suse.com
+
+- checkin.sh: ensure tarballs are uniquely named
+
+---
+Wed Jan 16 11:44:12 UTC 2019 - ncut...@suse.com
+
+- multiple iSCSI target support (Ricardo Marques) 
+
+---

Old:

  ceph-iscsi-3.0.tar.gz

New:

  ceph-iscsi-3.0+1547720996.tar.gz



Other differences:
--
++ ceph-iscsi.spec ++
--- /var/tmp/diff_new_pack.MahZE7/_old  2019-01-21 11:00:11.755287455 +0100
+++ /var/tmp/diff_new_pack.MahZE7/_new  2019-01-21 11:00:11.759287450 +0100
@@ -19,7 +19,7 @@
 %endif
 
 Name:   ceph-iscsi
-Version:3.0
+Version:3.0+1547720996
 Release:1%{?dist}
 Group:  System/Filesystems
 Summary:Python modules for Ceph iSCSI gateway configuration management

++ checkin.sh ++
--- /var/tmp/diff_new_pack.MahZE7/_old  2019-01-21 11:00:11.787287413 +0100
+++ /var/tmp/diff_new_pack.MahZE7/_new  2019-01-21 11:00:11.787287413 +0100
@@ -93,8 +93,10 @@
 exit 1
 fi
 echo "Extracting spec file"
-cp $PROJECT.spec $THIS_DIR
 VERSION=$(grep ^Version *spec | sed -r "s/^Version:\s+//")
+VERSION="${VERSION}+$(date +%s)"
+sed -i -e 's/^Version:.*/Version:'$VERSION'/' $PROJECT.spec
+cp $PROJECT.spec $THIS_DIR
 echo "Version number is ->$VERSION<-"
 cd ..
 mv clone "$PROJECT-$VERSION"