commit nvmetcli for openSUSE:Factory

2020-03-31 Thread root
Hello community,

here is the log from the commit of package nvmetcli for openSUSE:Factory 
checked in at 2020-03-31 17:15:54

Comparing /work/SRC/openSUSE:Factory/nvmetcli (Old)
 and  /work/SRC/openSUSE:Factory/.nvmetcli.new.3160 (New)


Package is "nvmetcli"

Tue Mar 31 17:15:54 2020 rev:10 rq:790010 version:0.7

Changes:

--- /work/SRC/openSUSE:Factory/nvmetcli/nvmetcli.changes2018-04-19 
15:32:46.574952117 +0200
+++ /work/SRC/openSUSE:Factory/.nvmetcli.new.3160/nvmetcli.changes  
2020-03-31 17:16:04.759659379 +0200
@@ -1,0 +2,18 @@
+Fri Mar 27 07:48:31 UTC 2020 - h...@suse.de
+
+- Update to version v0.7:
+  * bump version to v0.7
+  * nvmetcli: ANA configuration support
+  * nvmetcli: simplify the enabled logic
+  * nvmetcli: pep8 fixes
+  * nvmetcli: support inline_data_size port parameter
+  * Revert "nvmetcli: expose nvmet port status and state"
+  * Support python3 dictionary access.
+  * nvmetcli: expose nvmet port status and state
+- Remove patch merged with upstream
+  * nvmetcli-make-dict-access-python-version-independant.patch
+- 'clear' command doesn't handle ANA groups correctly (bsc#1167644)
+  adding patch
+  - 0001-nvmetcli-don-t-remove-ANA-Group-1-on-clear.patch
+
+---

Old:

  nvmetcli-make-dict-access-python-version-independant.patch
  nvmetcli-v0.6.tar.gz

New:

  0001-nvmetcli-don-t-remove-ANA-Group-1-on-clear.patch
  nvmetcli-v0.7.tar.gz



Other differences:
--
++ nvmetcli.spec ++
--- /var/tmp/diff_new_pack.sw0Klo/_old  2020-03-31 17:16:05.591659908 +0200
+++ /var/tmp/diff_new_pack.sw0Klo/_new  2020-03-31 17:16:05.595659910 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package nvmetcli
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 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
@@ -17,7 +17,7 @@
 
 
 Name:   nvmetcli
-Version:0.6
+Version:0.7
 Release:1%{?dist}
 Summary:Command line interface for the kernel NVMe nvmet
 License:Apache-2.0
@@ -25,7 +25,7 @@
 Url:http://git.infradead.org/users/hch/nvmetcli.git
 Source: nvmetcli-v%{version}.tar.gz
 Patch1: %{name}-update-python-to-python3.patch
-Patch2: %{name}-make-dict-access-python-version-independant.patch
+Patch2: 0001-nvmetcli-don-t-remove-ANA-Group-1-on-clear.patch
 BuildRequires:  python3-devel
 BuildRequires:  python3-setuptools
 Requires:   python3-configshell-fb

++ 0001-nvmetcli-don-t-remove-ANA-Group-1-on-clear.patch ++
>From 5e5e45f5e2800ff1f791e67f683891963f1583a4 Mon Sep 17 00:00:00 2001
From: Hannes Reinecke 
Date: Fri, 27 Mar 2020 07:55:34 +0100
Subject: [PATCH] nvmetcli: don't remove ANA Group 1 on clear

The first ANA group is maintained by the kernel so it cannot
be deleted.

Signed-off-by: Hannes Reinecke 
---
 nvmet/nvme.py | 5 +
 1 file changed, 5 insertions(+)

diff --git a/nvmet/nvme.py b/nvmet/nvme.py
index 0647ddc..fdec4ff 100644
--- a/nvmet/nvme.py
+++ b/nvmet/nvme.py
@@ -845,6 +845,11 @@ class ANAGroup(CFSNode):
 
 a._setup_attrs(n, err_func)
 
+def delete(self):
+# ANA Group 1 is automatically created/deleted
+if self.grpid != 1:
+super(ANAGroup, self).delete()
+
 def dump(self):
 d = super(ANAGroup, self).dump()
 d['grpid'] = self.grpid
-- 
2.16.4

++ _service ++
--- /var/tmp/diff_new_pack.sw0Klo/_old  2020-03-31 17:16:05.623659928 +0200
+++ /var/tmp/diff_new_pack.sw0Klo/_new  2020-03-31 17:16:05.623659928 +0200
@@ -4,8 +4,8 @@
 git
 git://git.infradead.org/users/hch/nvmetcli.git
 nvmetcli
-v0.6
-v0.6
+v0.7
+v0.7
 .git
 enable
   

++ _servicedata ++
--- /var/tmp/diff_new_pack.sw0Klo/_old  2020-03-31 17:16:05.635659935 +0200
+++ /var/tmp/diff_new_pack.sw0Klo/_new  2020-03-31 17:16:05.635659935 +0200
@@ -1,4 +1,4 @@
 
 
 git://git.infradead.org/users/hch/nvmetcli.git
-  9d51ae651a1c39a83b0192fbbe1e400abf3a0409
\ No newline at end of file
+  0a6b088db2dc2e5de11e6f23f1e890e4b54fee64
\ No newline at end of file

++ nvmetcli-v0.6.tar.gz -> nvmetcli-v0.7.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nvmetcli-v0.6/README new/nvmetcli-v0.7/README
--- old/nvmetcli-v0.6/README2018-01-22 19:45:05.0 +0100
+++ new/nvmetcli-v0.7/README2019-04-28 14:47:14.0 +0200
@@ -14,9 +14,11 @@
 
 Common Package Dependencies and Problems
 -
-nvmetcli uses 

commit nvmetcli for openSUSE:Factory

2018-04-19 Thread root
Hello community,

here is the log from the commit of package nvmetcli for openSUSE:Factory 
checked in at 2018-04-19 15:32:44

Comparing /work/SRC/openSUSE:Factory/nvmetcli (Old)
 and  /work/SRC/openSUSE:Factory/.nvmetcli.new (New)


Package is "nvmetcli"

Thu Apr 19 15:32:44 2018 rev:9 rq:598058 version:0.6

Changes:

--- /work/SRC/openSUSE:Factory/nvmetcli/nvmetcli.changes2018-04-11 
14:00:37.893752294 +0200
+++ /work/SRC/openSUSE:Factory/.nvmetcli.new/nvmetcli.changes   2018-04-19 
15:32:46.574952117 +0200
@@ -1,0 +2,18 @@
+Mon Apr 16 19:08:25 UTC 2018 - ldun...@suse.com
+
+- Stop using singlespec, since we only need a
+  python3 version of this package, and we do not
+  want it named "python3-nvmetcli" (bsc#1082208).
+  Also, use the "python-six" module to make
+  dictionary iteration work for Python 2 and 3,
+  adding patch:
+  * nvmetcli-make-dict-access-python-version-independant.patch
+
+---
+Fri Apr 13 17:47:21 UTC 2018 - ldun...@suse.com
+
+- Support python3 by using the python-six module,
+  and convert dictionary access to use 'six' routines,
+  so we can work on python 2 or python 3 (bsc#1082208)
+
+---

New:

  nvmetcli-make-dict-access-python-version-independant.patch



Other differences:
--
++ nvmetcli.spec ++
--- /var/tmp/diff_new_pack.yrsjOy/_old  2018-04-19 15:32:47.242924590 +0200
+++ /var/tmp/diff_new_pack.yrsjOy/_new  2018-04-19 15:32:47.246924426 +0200
@@ -16,10 +16,6 @@
 #
 
 
-# python2 version of this no longer needed
-%define skip_python2 1
-
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   nvmetcli
 Version:0.6
 Release:1%{?dist}
@@ -29,19 +25,17 @@
 Url:http://git.infradead.org/users/hch/nvmetcli.git
 Source: nvmetcli-v%{version}.tar.gz
 Patch1: %{name}-update-python-to-python3.patch
-BuildRequires:  %{python_module devel}
-BuildRequires:  %{python_module setuptools}
-BuildRequires:  python-rpm-macros
-Requires:   python-configshell-fb
-Requires:   python-kmod
+Patch2: %{name}-make-dict-access-python-version-independant.patch
+BuildRequires:  python3-devel
+BuildRequires:  python3-setuptools
+Requires:   python3-configshell-fb
+Requires:   python3-kmod
 Requires(post): systemd
 Requires(postun): systemd
 Requires(preun): systemd
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 BuildArch:  noarch
 
-%python_subpackages
-
 %description
 This package contains the command line interface to the NVMe over
 Fabrics target in the Linux kernel. It allows configuring the NVMe
@@ -51,12 +45,13 @@
 %prep
 %setup -q -n nvmetcli-v%{version}
 %patch1 -p1
+%patch2 -p1
 
 %build
-%python_build
+python3 setup.py build
 
 %install
-%python_install
+python3 setup.py install --skip-build --root=%{buildroot} --prefix=usr
 mkdir -p %{buildroot}%{_sysconfdir}/nvmet
 mkdir -p %{buildroot}%{_prefix}/sbin
 install -m 755 nvmetcli %{buildroot}%{_sbindir}/nvmetcli
@@ -79,7 +74,7 @@
 
 %files
 %defattr(-,root,root,-)
-%{python_sitelib}
+%{python3_sitelib}
 %dir %{_sysconfdir}/nvmet
 %{_sbindir}/nvmetcli
 /usr/sbin/rcnvmet

++ nvmetcli-make-dict-access-python-version-independant.patch ++
From: Lee Duncan 
Date: Sun Apr  8 13:35:35 PDT 2018
Subject: [PATCH] support Python3 dictionary access
Patch-mainline: submitted to linux-nvme 4/13/2018

As part of supporting python3, use the 'python-six'
package to support iterating on items in a
python dictionary.

--- 
diff -aurp nvmetcli-v0.6.orig/nvmet/nvme.py nvmetcli-v0.6/nvmet/nvme.py
--- nvmetcli-v0.6.orig/nvmet/nvme.py2018-01-22 10:45:05.0 -0800
+++ nvmetcli-v0.6/nvmet/nvme.py 2018-04-13 10:23:14.390667798 -0700
@@ -23,6 +23,7 @@ import stat
 import uuid
 import json
 from glob import iglob as glob
+from six import iteritems
 
 DEFAULT_SAVE_FILE = '/etc/nvmet/config.json'
 
@@ -219,7 +220,7 @@ class CFSNode(object):
 
 def _setup_attrs(self, attr_dict, err_func):
 for group in self.attr_groups:
-for name, value in attr_dict.get(group, {}).iteritems():
+for name, value in iteritems(attr_dict.get(group, {})):
 try:
 self.set_attr(group, name, value)
 except CFSError as e:



commit nvmetcli for openSUSE:Factory

2018-04-11 Thread root
Hello community,

here is the log from the commit of package nvmetcli for openSUSE:Factory 
checked in at 2018-04-11 13:58:40

Comparing /work/SRC/openSUSE:Factory/nvmetcli (Old)
 and  /work/SRC/openSUSE:Factory/.nvmetcli.new (New)


Package is "nvmetcli"

Wed Apr 11 13:58:40 2018 rev:8 rq:594772 version:0.6

Changes:

--- /work/SRC/openSUSE:Factory/nvmetcli/nvmetcli.changes2018-01-24 
15:31:03.368813854 +0100
+++ /work/SRC/openSUSE:Factory/.nvmetcli.new/nvmetcli.changes   2018-04-11 
14:00:37.893752294 +0200
@@ -1,0 +2,10 @@
+Sun Apr  8 20:36:58 UTC 2018 - ldun...@suse.com
+
+- Convert to Python3-only siglespec (bsc#1082208)
+  * Update the SPEC file, using singlespec format, but
+telling the macros to ignore Python2
+  * Tell the scripts to use Python3 instead of python,
+adding patch:
+- nvmetcli-update-python-to-python3.patch
+
+---

New:

  nvmetcli-update-python-to-python3.patch



Other differences:
--
++ nvmetcli.spec ++
--- /var/tmp/diff_new_pack.eZ03v3/_old  2018-04-11 14:00:39.621689832 +0200
+++ /var/tmp/diff_new_pack.eZ03v3/_new  2018-04-11 14:00:39.625689687 +0200
@@ -16,6 +16,10 @@
 #
 
 
+# python2 version of this no longer needed
+%define skip_python2 1
+
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   nvmetcli
 Version:0.6
 Release:1%{?dist}
@@ -24,8 +28,10 @@
 Group:  System/Management
 Url:http://git.infradead.org/users/hch/nvmetcli.git
 Source: nvmetcli-v%{version}.tar.gz
-BuildRequires:  python-devel
-BuildRequires:  python-setuptools
+Patch1: %{name}-update-python-to-python3.patch
+BuildRequires:  %{python_module devel}
+BuildRequires:  %{python_module setuptools}
+BuildRequires:  python-rpm-macros
 Requires:   python-configshell-fb
 Requires:   python-kmod
 Requires(post): systemd
@@ -34,6 +40,8 @@
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 BuildArch:  noarch
 
+%python_subpackages
+
 %description
 This package contains the command line interface to the NVMe over
 Fabrics target in the Linux kernel. It allows configuring the NVMe
@@ -42,12 +50,13 @@
 
 %prep
 %setup -q -n nvmetcli-v%{version}
+%patch1 -p1
 
 %build
-python setup.py build
+%python_build
 
 %install
-python setup.py install --skip-build --root=%{buildroot} --prefix=usr
+%python_install
 mkdir -p %{buildroot}%{_sysconfdir}/nvmet
 mkdir -p %{buildroot}%{_prefix}/sbin
 install -m 755 nvmetcli %{buildroot}%{_sbindir}/nvmetcli

++ nvmetcli-update-python-to-python3.patch ++
From: Lee Duncan 
Date: Sun Apr  8 13:35:35 PDT 2018
Subject: [PATCH] use python3 instead of python

For ensuring this package uses python3 instead of
"python", it is better to patch the two places
where this is needed, rather than try to get
the SPEC file RPM macros to do the work, without
munging the package name.

--- 
diff -aurp nvmetcli-v0.6.orig/nvmetcli nvmetcli-v0.6/nvmetcli
--- nvmetcli-v0.6.orig/nvmetcli 2018-01-22 10:45:05.0 -0800
+++ nvmetcli-v0.6/nvmetcli  2018-03-30 12:20:36.875255323 -0700
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 
 '''
 Frontend to access to the NVMe target configfs hierarchy
diff -aurp nvmetcli-v0.6.orig/setup.py nvmetcli-v0.6/setup.py
--- nvmetcli-v0.6.orig/setup.py 2018-01-22 10:45:05.0 -0800
+++ nvmetcli-v0.6/setup.py  2018-03-30 12:20:30.215047092 -0700
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#! /usr/bin/env python3
 '''
 This file is part of ConfigShell.
 Copyright (c) 2011-2013 by Datera, Inc



commit nvmetcli for openSUSE:Factory

2018-01-24 Thread root
Hello community,

here is the log from the commit of package nvmetcli for openSUSE:Factory 
checked in at 2018-01-24 15:30:56

Comparing /work/SRC/openSUSE:Factory/nvmetcli (Old)
 and  /work/SRC/openSUSE:Factory/.nvmetcli.new (New)


Package is "nvmetcli"

Wed Jan 24 15:30:56 2018 rev:7 rq:568526 version:0.6

Changes:

--- /work/SRC/openSUSE:Factory/nvmetcli/nvmetcli.changes2017-12-01 
15:54:38.197881211 +0100
+++ /work/SRC/openSUSE:Factory/.nvmetcli.new/nvmetcli.changes   2018-01-24 
15:31:03.368813854 +0100
@@ -1,0 +2,11 @@
+Tue Jan 23 10:04:23 UTC 2018 - jthumsh...@suse.com
+
+- Update to version v0.6: (FATE#322737)
+   - 0001-nvmetcli-remove-status-method-for-the-uiportnode.patch
+  * nvmetcli: remove status method for the UIPortNode
+  * nvmetcli: expose ls to dump UI configuration
+  * nvmetcli: decorate namespace, subsystem and port UI
+  * nvmetcli: port decoration coloring only if its enabled
+  * bump version to v0.6
+
+---

Old:

  0001-nvmetcli-remove-status-method-for-the-uiportnode.patch
  nvmetcli-v0.5.tar.gz

New:

  nvmetcli-v0.6.tar.gz



Other differences:
--
++ nvmetcli.spec ++
--- /var/tmp/diff_new_pack.DOKBCx/_old  2018-01-24 15:31:04.408765216 +0100
+++ /var/tmp/diff_new_pack.DOKBCx/_new  2018-01-24 15:31:04.412765029 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package nvmetcli
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 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
@@ -17,14 +17,13 @@
 
 
 Name:   nvmetcli
-Version:0.5
+Version:0.6
 Release:1%{?dist}
 Summary:Command line interface for the kernel NVMe nvmet
 License:Apache-2.0
 Group:  System/Management
 Url:http://git.infradead.org/users/hch/nvmetcli.git
 Source: nvmetcli-v%{version}.tar.gz
-Patch1: 0001-nvmetcli-remove-status-method-for-the-uiportnode.patch
 BuildRequires:  python-devel
 BuildRequires:  python-setuptools
 Requires:   python-configshell-fb
@@ -43,7 +42,6 @@
 
 %prep
 %setup -q -n nvmetcli-v%{version}
-%patch1 -p1
 
 %build
 python setup.py build

++ _service ++
--- /var/tmp/diff_new_pack.DOKBCx/_old  2018-01-24 15:31:04.448763346 +0100
+++ /var/tmp/diff_new_pack.DOKBCx/_new  2018-01-24 15:31:04.452763158 +0100
@@ -4,8 +4,8 @@
 git
 git://git.infradead.org/users/hch/nvmetcli.git
 nvmetcli
-v0.5
-v0.5
+v0.6
+v0.6
 .git
 enable
   

++ _servicedata ++
--- /var/tmp/diff_new_pack.DOKBCx/_old  2018-01-24 15:31:04.480761849 +0100
+++ /var/tmp/diff_new_pack.DOKBCx/_new  2018-01-24 15:31:04.484761662 +0100
@@ -1,4 +1,4 @@
 
 
 git://git.infradead.org/users/hch/nvmetcli.git
-  389993977d5a0bfc366c8683a05553043740dfa9
\ No newline at end of file
+  9d51ae651a1c39a83b0192fbbe1e400abf3a0409
\ No newline at end of file

++ nvmetcli-v0.5.tar.gz -> nvmetcli-v0.6.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nvmetcli-v0.5/Documentation/nvmetcli.txt 
new/nvmetcli-v0.6/Documentation/nvmetcli.txt
--- old/nvmetcli-v0.5/Documentation/nvmetcli.txt2017-08-10 
14:46:02.0 +0200
+++ new/nvmetcli-v0.6/Documentation/nvmetcli.txt2018-01-22 
19:45:05.0 +0100
@@ -105,6 +105,7 @@
 Without specifying the filename this will use
 */etc/nvmet/config.json*.
 | clear   | Clears a current NVMe Target configuration.
+| ls  | Dumps the current NVMe Target configuration.
 |==
 
 EXAMPLES
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nvmetcli-v0.5/nvmetcli new/nvmetcli-v0.6/nvmetcli
--- old/nvmetcli-v0.5/nvmetcli  2017-08-10 14:46:02.0 +0200
+++ new/nvmetcli-v0.6/nvmetcli  2018-01-22 19:45:05.0 +0100
@@ -24,7 +24,11 @@
 import sys
 import configshell_fb as configshell
 import nvmet as nvme
+from string import hexdigits
+import uuid
 
+def ngiud_set(nguid):
+return any(c in hexdigits and c != '0' for c in nguid)
 
 class UINode(configshell.node.ConfigNode):
 def __init__(self, name, parent=None, cfnode=None, shell=None):
@@ -160,6 +164,13 @@
 UINamespacesNode(self)
 UIAllowedHostsNode(self)
 
+def summary(self):
+info = []
+info.append("version=" + self.cfnode.get_attr("attr","version"))
+info.append("allow_any=" + 
self.cfnode.get_attr("attr","allow_any_host"))
+

commit nvmetcli for openSUSE:Factory

2017-12-01 Thread root
Hello community,

here is the log from the commit of package nvmetcli for openSUSE:Factory 
checked in at 2017-12-01 15:54:20

Comparing /work/SRC/openSUSE:Factory/nvmetcli (Old)
 and  /work/SRC/openSUSE:Factory/.nvmetcli.new (New)


Package is "nvmetcli"

Fri Dec  1 15:54:20 2017 rev:6 rq:546971 version:0.5

Changes:

--- /work/SRC/openSUSE:Factory/nvmetcli/nvmetcli.changes2017-08-12 
20:28:01.397127014 +0200
+++ /work/SRC/openSUSE:Factory/.nvmetcli.new/nvmetcli.changes   2017-12-01 
15:54:38.197881211 +0100
@@ -1,0 +2,6 @@
+Fri Dec  1 09:34:11 UTC 2017 - jthumsh...@suse.com
+
+- Don't display bogus 'disabled' status for ports (bsc#1070533)
+  + 0001-nvmetcli-remove-status-method-for-the-uiportnode.patch
+
+---

New:

  0001-nvmetcli-remove-status-method-for-the-uiportnode.patch



Other differences:
--
++ nvmetcli.spec ++
--- /var/tmp/diff_new_pack.D2e3aA/_old  2017-12-01 15:54:38.869857030 +0100
+++ /var/tmp/diff_new_pack.D2e3aA/_new  2017-12-01 15:54:38.877856742 +0100
@@ -24,6 +24,7 @@
 Group:  System/Management
 Url:http://git.infradead.org/users/hch/nvmetcli.git
 Source: nvmetcli-v%{version}.tar.gz
+Patch1: 0001-nvmetcli-remove-status-method-for-the-uiportnode.patch
 BuildRequires:  python-devel
 BuildRequires:  python-setuptools
 Requires:   python-configshell-fb
@@ -42,6 +43,7 @@
 
 %prep
 %setup -q -n nvmetcli-v%{version}
+%patch1 -p1
 
 %build
 python setup.py build

++ 0001-nvmetcli-remove-status-method-for-the-uiportnode.patch ++
From: Johannes Thumshirn 
Date: Thu, 30 Nov 2017 11:27:23 +0100
Subject: nvmetcli: remove status method for the UIPortNode
Git-commit: 69182535c1df21c8cc2d0be4e5b4229f32a057e8
Patch-mainline: v0.6
References: bsc#1070533


nvmetcli defines a status method for the UIPortNode class but there is
no corresponding 'enable' file in configfs so typing in status will
always result in nvmetcli printing disbaled if one types 'status' in
the port node:

/> cd ports/1/
/ports/1> status
Status for /ports/1: disabled
/ports/1>

There are two possible ways for fixing this issue, provide a configfs
file to enable/disable the port node in the kernel or delete the
method in nvmetcli. Having a configfs file in the kernel is pointless,
as ports get enabled when symlinked to a namespace so zap the pointless status
method in user-space.

Signed-off-by: Johannes Thumshirn 
Reported-by: Hannes Reinecke 
Signed-off-by: Christoph Hellwig 
---
 nvmetcli | 5 -
 1 file changed, 5 deletions(-)

diff --git a/nvmetcli b/nvmetcli
index 5378365eb91f..4fbc12ec430f 100755
--- a/nvmetcli
+++ b/nvmetcli
@@ -356,11 +356,6 @@ class UIPortNode(UINode):
 UIPortSubsystemsNode(self)
 UIReferralsNode(self)
 
-def status(self):
-if self.cfnode.get_enable():
-return "enabled"
-return "disabled"
-
 
 class UIPortSubsystemsNode(UINode):
 def __init__(self, parent):
-- 
2.13.6




commit nvmetcli for openSUSE:Factory

2017-08-12 Thread root
Hello community,

here is the log from the commit of package nvmetcli for openSUSE:Factory 
checked in at 2017-08-12 20:27:51

Comparing /work/SRC/openSUSE:Factory/nvmetcli (Old)
 and  /work/SRC/openSUSE:Factory/.nvmetcli.new (New)


Package is "nvmetcli"

Sat Aug 12 20:27:51 2017 rev:5 rq:516104 version:0.5

Changes:

--- /work/SRC/openSUSE:Factory/nvmetcli/nvmetcli.changes2017-06-20 
09:39:36.466730625 +0200
+++ /work/SRC/openSUSE:Factory/.nvmetcli.new/nvmetcli.changes   2017-08-12 
20:28:01.397127014 +0200
@@ -1,0 +2,11 @@
+Fri Aug 11 11:27:37 UTC 2017 - jthumsh...@suse.com
+
+- Update to version v0.5: (FATE#322737)
+  -  0001-nvmetcli-add-support-for-NS-UUIDs.patch
+  * nvmetcli: add support for NS UUIDs
+  * nvmetcli: allow setting of serial number number
+  * nvmetcli: allow setting of the subsystem version
+  * add a make clean pass to bump-ver.sh
+  * bump version to v0.5
+
+---

Old:

  0001-nvmetcli-add-support-for-NS-UUIDs.patch
  nvmetcli-v0.4.tar.gz

New:

  nvmetcli-v0.5.tar.gz



Other differences:
--
++ nvmetcli.spec ++
--- /var/tmp/diff_new_pack.ZjEsiM/_old  2017-08-12 20:28:03.408845089 +0200
+++ /var/tmp/diff_new_pack.ZjEsiM/_new  2017-08-12 20:28:03.432841726 +0200
@@ -17,14 +17,13 @@
 
 
 Name:   nvmetcli
-Version:0.4
+Version:0.5
 Release:1%{?dist}
 Summary:Command line interface for the kernel NVMe nvmet
 License:Apache-2.0
 Group:  System/Management
 Url:http://git.infradead.org/users/hch/nvmetcli.git
 Source: nvmetcli-v%{version}.tar.gz
-Patch1: 0001-nvmetcli-add-support-for-NS-UUIDs.patch
 BuildRequires:  python-devel
 BuildRequires:  python-setuptools
 Requires:   python-configshell-fb
@@ -43,7 +42,6 @@
 
 %prep
 %setup -q -n nvmetcli-v%{version}
-%patch1 -p1
 
 %build
 python setup.py build

++ _service ++
--- /var/tmp/diff_new_pack.ZjEsiM/_old  2017-08-12 20:28:03.528828274 +0200
+++ /var/tmp/diff_new_pack.ZjEsiM/_new  2017-08-12 20:28:03.528828274 +0200
@@ -4,8 +4,8 @@
 git
 git://git.infradead.org/users/hch/nvmetcli.git
 nvmetcli
-v0.4
-v0.4
+v0.5
+v0.5
 .git
 enable
   

++ _servicedata ++
--- /var/tmp/diff_new_pack.ZjEsiM/_old  2017-08-12 20:28:03.644812020 +0200
+++ /var/tmp/diff_new_pack.ZjEsiM/_new  2017-08-12 20:28:03.668808657 +0200
@@ -1,4 +1,4 @@
 
 
 git://git.infradead.org/users/hch/nvmetcli.git
-  5078207f0294ebeec5fc6e963eefa2de7d2ce3da
\ No newline at end of file
+  389993977d5a0bfc366c8683a05553043740dfa9
\ No newline at end of file

++ nvmetcli-v0.4.tar.gz -> nvmetcli-v0.5.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nvmetcli-v0.4/bump-ver.sh 
new/nvmetcli-v0.5/bump-ver.sh
--- old/nvmetcli-v0.4/bump-ver.sh   2017-04-21 08:31:31.0 +0200
+++ new/nvmetcli-v0.5/bump-ver.sh   2017-08-10 14:46:02.0 +0200
@@ -14,6 +14,7 @@
exit 1
 fi
 
+make clean
 sed -i "s/version =.*,/version = $VER,/" setup.py
 git add setup.py
 git commit -m "bump version to v$VER"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nvmetcli-v0.4/nvmetcli new/nvmetcli-v0.5/nvmetcli
--- old/nvmetcli-v0.4/nvmetcli  2017-04-21 08:31:31.0 +0200
+++ new/nvmetcli-v0.5/nvmetcli  2017-08-10 14:46:02.0 +0200
@@ -148,6 +148,8 @@
 class UISubsystemNode(UINode):
 ui_desc_attr = {
 'allow_any_host': ('string', 'Allow access by any host if set to 1'),
+'serial': ('string', 'Export serial number to hosts'),
+'version': ('string', 'Export version number to hosts'),
 }
 
 def __init__(self, parent, cfnode):
@@ -198,6 +200,7 @@
 ui_desc_device = {
 'path': ('string', 'Backing device path.'),
 'nguid': ('string', 'Namspace Global Unique Identifier.'),
+'uuid': ('string', 'Namespace Universally Unique Identifier.'),
 }
 
 def __init__(self, parent, cfnode):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nvmetcli-v0.4/setup.py new/nvmetcli-v0.5/setup.py
--- old/nvmetcli-v0.4/setup.py  2017-04-21 08:31:31.0 +0200
+++ new/nvmetcli-v0.5/setup.py  2017-08-10 14:46:02.0 +0200
@@ -20,7 +20,7 @@
 
 setup(
 name = 'nvmetcli',
-version = 0.4,
+version = 0.5,
 description = 'NVMe target configuration tool',
 license = 'Apache 2.0',
 maintainer = 'Christoph Hellwig',




commit nvmetcli for openSUSE:Factory

2017-06-20 Thread root
Hello community,

here is the log from the commit of package nvmetcli for openSUSE:Factory 
checked in at 2017-06-20 09:39:34

Comparing /work/SRC/openSUSE:Factory/nvmetcli (Old)
 and  /work/SRC/openSUSE:Factory/.nvmetcli.new (New)


Package is "nvmetcli"

Tue Jun 20 09:39:34 2017 rev:4 rq:504047 version:0.4

Changes:

--- /work/SRC/openSUSE:Factory/nvmetcli/nvmetcli.changes2017-05-24 
16:51:26.909422436 +0200
+++ /work/SRC/openSUSE:Factory/.nvmetcli.new/nvmetcli.changes   2017-06-20 
09:39:36.466730625 +0200
@@ -1,0 +2,6 @@
+Fri Jun 16 09:55:32 UTC 2017 - jthumsh...@suse.com
+
+- Add possibiliy to configure Namespace UUIDs (bsc#1038235)
+  + 0001-nvmetcli-add-support-for-NS-UUIDs.patch
+
+---

New:

  0001-nvmetcli-add-support-for-NS-UUIDs.patch



Other differences:
--
++ nvmetcli.spec ++
--- /var/tmp/diff_new_pack.ydRyyH/_old  2017-06-20 09:39:36.970659575 +0200
+++ /var/tmp/diff_new_pack.ydRyyH/_new  2017-06-20 09:39:36.974659011 +0200
@@ -24,6 +24,7 @@
 Group:  System/Management
 Url:http://git.infradead.org/users/hch/nvmetcli.git
 Source: nvmetcli-v%{version}.tar.gz
+Patch1: 0001-nvmetcli-add-support-for-NS-UUIDs.patch
 BuildRequires:  python-devel
 BuildRequires:  python-setuptools
 Requires:   python-configshell-fb
@@ -42,6 +43,7 @@
 
 %prep
 %setup -q -n nvmetcli-v%{version}
+%patch1 -p1
 
 %build
 python setup.py build

++ 0001-nvmetcli-add-support-for-NS-UUIDs.patch ++
From: Johannes Thumshirn 
Date: Fri, 16 Jun 2017 09:42:27 +0200
Subject: nvmetcli: add support for NS UUIDs
Patch-mainline: v0.5
Git-commit: cfdbfc2ada8b8c7f3da9f766ae6a9301893da7c3

Add support for setting the Namespace Universally Unique Identifier in
a NVMe over Fabrics namespace.

Signed-off-by: Johannes Thumshirn 
Signed-off-by: Christoph Hellwig 
---
 nvmetcli | 1 +
 1 file changed, 1 insertion(+)

diff --git a/nvmetcli b/nvmetcli
index 0ada243a6a7f..56dda66c39a7 100755
--- a/nvmetcli
+++ b/nvmetcli
@@ -198,6 +198,7 @@ class UINamespaceNode(UINode):
 ui_desc_device = {
 'path': ('string', 'Backing device path.'),
 'nguid': ('string', 'Namspace Global Unique Identifier.'),
+'uuid': ('string', 'Namespace Universally Unique Identifier.'),
 }
 
 def __init__(self, parent, cfnode):
-- 
2.12.3




commit nvmetcli for openSUSE:Factory

2017-05-24 Thread root
Hello community,

here is the log from the commit of package nvmetcli for openSUSE:Factory 
checked in at 2017-05-24 16:50:41

Comparing /work/SRC/openSUSE:Factory/nvmetcli (Old)
 and  /work/SRC/openSUSE:Factory/.nvmetcli.new (New)


Package is "nvmetcli"

Wed May 24 16:50:41 2017 rev:3 rq:497773 version:0.4

Changes:

--- /work/SRC/openSUSE:Factory/nvmetcli/nvmetcli.changes2017-05-09 
18:10:22.439642189 +0200
+++ /work/SRC/openSUSE:Factory/.nvmetcli.new/nvmetcli.changes   2017-05-24 
16:51:26.909422436 +0200
@@ -1,0 +2,5 @@
+Tue May 23 12:57:57 UTC 2017 - jthumsh...@suse.com
+
+- Change dependency from python-configshell to python-configshell-fb 
(bsc#1040212)
+
+---



Other differences:
--
++ nvmetcli.spec ++
--- /var/tmp/diff_new_pack.AcW3Sf/_old  2017-05-24 16:51:29.401071683 +0200
+++ /var/tmp/diff_new_pack.AcW3Sf/_new  2017-05-24 16:51:29.401071683 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package nvmetcli
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 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
@@ -26,7 +26,7 @@
 Source: nvmetcli-v%{version}.tar.gz
 BuildRequires:  python-devel
 BuildRequires:  python-setuptools
-Requires:   python-configshell
+Requires:   python-configshell-fb
 Requires:   python-kmod
 Requires(post): systemd
 Requires(postun): systemd




commit nvmetcli for openSUSE:Factory

2017-05-09 Thread root
Hello community,

here is the log from the commit of package nvmetcli for openSUSE:Factory 
checked in at 2017-05-09 18:10:20

Comparing /work/SRC/openSUSE:Factory/nvmetcli (Old)
 and  /work/SRC/openSUSE:Factory/.nvmetcli.new (New)


Package is "nvmetcli"

Tue May  9 18:10:20 2017 rev:2 rq:493700 version:0.4

Changes:

--- /work/SRC/openSUSE:Factory/nvmetcli/nvmetcli.changes2017-02-16 
17:01:38.452796101 +0100
+++ /work/SRC/openSUSE:Factory/.nvmetcli.new/nvmetcli.changes   2017-05-09 
18:10:22.439642189 +0200
@@ -1,0 +2,15 @@
+Mon May 08 11:35:37 UTC 2017 - jthumsh...@suse.com
+
+- Update to version v0.4: (bsc#1034105)
+  * add example configuration files
+  * update .gitignore for the auto-generated manpage formats
+  * add a bump-ver.sh script to automate cutting releases
+  * bump version to v0.3
+  * nvmetcli: fix Port and Host operations in shell
+  * nvmetcli: fix Referral operation in shell
+  * nvmetcli: Install nvmetcli in /usr/sbin with setup.py
+  * nvmetcli: create json file's dir first if it doesn't exist
+  * Add fc transport support to nvmetcli
+  * bump version to v0.4
+
+---
@@ -5 +19,0 @@
-

Old:

  nvmetcli-0.2.tar.gz

New:

  _service
  _servicedata
  nvmetcli-v0.4.tar.gz



Other differences:
--
++ nvmetcli.spec ++
--- /var/tmp/diff_new_pack.TAZcqn/_old  2017-05-09 18:10:23.027559109 +0200
+++ /var/tmp/diff_new_pack.TAZcqn/_new  2017-05-09 18:10:23.031558544 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package nvmetcli
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2016 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
@@ -17,13 +17,13 @@
 
 
 Name:   nvmetcli
-Version:0.2
-Release:0
-Summary:Command line interface for the kernel NVMe target
+Version:0.4
+Release:1%{?dist}
+Summary:Command line interface for the kernel NVMe nvmet
 License:Apache-2.0
 Group:  System/Management
 Url:http://git.infradead.org/users/hch/nvmetcli.git
-Source: nvmetcli-%{version}.tar.gz
+Source: nvmetcli-v%{version}.tar.gz
 BuildRequires:  python-devel
 BuildRequires:  python-setuptools
 Requires:   python-configshell
@@ -41,7 +41,7 @@
 to / from a json file.
 
 %prep
-%setup -q -n nvmetcli-%{version}
+%setup -q -n nvmetcli-v%{version}
 
 %build
 python setup.py build

++ _service ++


  
git
git://git.infradead.org/users/hch/nvmetcli.git
nvmetcli
v0.4
v0.4
.git
enable
  
  
*.tar
gz
  
  
nvmetcli
  

++ _servicedata ++


git://git.infradead.org/users/hch/nvmetcli.git
  5078207f0294ebeec5fc6e963eefa2de7d2ce3da