Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package ceph-iscsi for openSUSE:Factory 
checked in at 2022-03-23 20:15:51
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ceph-iscsi (Old)
 and      /work/SRC/openSUSE:Factory/.ceph-iscsi.new.25692 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ceph-iscsi"

Wed Mar 23 20:15:51 2022 rev:23 rq:963743 version:3.5+1647618797.gb7bc626

Changes:
--------
--- /work/SRC/openSUSE:Factory/ceph-iscsi/ceph-iscsi.changes    2021-12-06 
23:59:05.552625867 +0100
+++ /work/SRC/openSUSE:Factory/.ceph-iscsi.new.25692/ceph-iscsi.changes 
2022-03-23 20:16:14.818390410 +0100
@@ -1,0 +2,6 @@
+Fri Mar 18 15:53:42 UTC 2022 - Stefen Allen <[email protected]>
+
+- Update to 3.5+1647618797.gb7bc626.
+  + ceph_iscsi_config: disable emulate_legacy_capacity (bsc#1179557)
+
+-------------------------------------------------------------------

Old:
----
  ceph-iscsi-3.5+1638408991.g5341b5d.tar.gz

New:
----
  ceph-iscsi-3.5+1647618797.gb7bc626.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ ceph-iscsi.spec ++++++
--- /var/tmp/diff_new_pack.s1n83S/_old  2022-03-23 20:16:15.374390725 +0100
+++ /var/tmp/diff_new_pack.s1n83S/_new  2022-03-23 20:16:15.382390729 +0100
@@ -19,7 +19,7 @@
 %endif
 
 Name:           ceph-iscsi
-Version:        3.5+1638408991.g5341b5d
+Version:        3.5+1647618797.gb7bc626
 Release:        1%{?dist}
 Group:          System/Filesystems
 Summary:        Python modules for Ceph iSCSI gateway configuration management

++++++ ceph-iscsi-3.5+1638408991.g5341b5d.tar.gz -> 
ceph-iscsi-3.5+1647618797.gb7bc626.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ceph-iscsi-3.5+1638408991.g5341b5d/ceph-iscsi.spec 
new/ceph-iscsi-3.5+1647618797.gb7bc626/ceph-iscsi.spec
--- old/ceph-iscsi-3.5+1638408991.g5341b5d/ceph-iscsi.spec      2021-12-02 
02:36:31.155269945 +0100
+++ new/ceph-iscsi-3.5+1647618797.gb7bc626/ceph-iscsi.spec      2022-03-18 
16:53:17.033268010 +0100
@@ -19,7 +19,7 @@
 %endif
 
 Name:           ceph-iscsi
-Version:        3.5+1638408991.g5341b5d
+Version:        3.5+1647618797.gb7bc626
 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.5+1638408991.g5341b5d/ceph_iscsi_config/gateway_setting.py 
new/ceph-iscsi-3.5+1647618797.gb7bc626/ceph_iscsi_config/gateway_setting.py
--- old/ceph-iscsi-3.5+1638408991.g5341b5d/ceph_iscsi_config/gateway_setting.py 
2021-12-02 02:36:30.967270160 +0100
+++ new/ceph-iscsi-3.5+1647618797.gb7bc626/ceph_iscsi_config/gateway_setting.py 
2022-03-18 16:53:16.623268003 +0100
@@ -225,6 +225,7 @@
     "emulate_dpo": EnumSetting("emulate_dpo", [0, 1], 1),
     "emulate_fua_read": EnumSetting("emulate_fua_read", [0, 1], 1),
     "emulate_fua_write": EnumSetting("emulate_fua_write", [0, 1], 1),
+    "emulate_legacy_capacity": EnumSetting("emulate_legacy_capacity", [0, 1], 
1),
     "emulate_model_alias": EnumSetting("emulate_model_alias", [0, 1], 0),
     "emulate_pr": EnumSetting("emulate_pr", [0, 1], 1),
     "emulate_rest_reord": EnumSetting("emulate_rest_reord", [0, 1], 1),
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/ceph-iscsi-3.5+1638408991.g5341b5d/ceph_iscsi_config/lun.py 
new/ceph-iscsi-3.5+1647618797.gb7bc626/ceph_iscsi_config/lun.py
--- old/ceph-iscsi-3.5+1638408991.g5341b5d/ceph_iscsi_config/lun.py     
2021-12-02 02:36:30.967270160 +0100
+++ new/ceph-iscsi-3.5+1647618797.gb7bc626/ceph_iscsi_config/lun.py     
2022-03-18 16:53:16.623268003 +0100
@@ -6,6 +6,7 @@
 import subprocess
 
 from time import sleep
+from inspect import getargspec
 
 from rtslib_fb import UserBackedStorageObject, RBDStorageObject, root
 from rtslib_fb.utils import RTSLibError
@@ -954,9 +955,21 @@
             self._load_modules()
             self._rbd_device_map()
             dev = '/dev/rbd/{}/{}'.format(self.pool, self.image)
-            new_lun = RBDStorageObject(name=self.backstore_object_name,
-                                       dev=dev,
-                                       wwn=in_wwn)
+
+            if self.controls.get('emulate_legacy_capacity', True):
+                new_lun = RBDStorageObject(name=self.backstore_object_name,
+                                           dev=dev,
+                                           wwn=in_wwn)
+            else:
+                if 'disable_emulate_legacy_capacity' not in \
+                   getargspec(RBDStorageObject.__init__).args:
+                    raise RTSLibError(
+                        "rtslib needs disable_emulate_legacy_capacity support")
+                new_lun = RBDStorageObject(name=self.backstore_object_name,
+                                           dev=dev,
+                                           wwn=in_wwn,
+                                           
disable_emulate_legacy_capacity=True)
+
             path = 
glob.glob('/sys/kernel/config/target/core/rbd_*/{}/wwn/vendor_id'.format(
                 self.backstore_object_name))
             if path:

Reply via email to