[Bug 263823] sysutils/py-iocage: most functionality broken on 14.0-CURRENT

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 06 May 2022 18:03:06 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=263823

            Bug ID: 263823
           Summary: sysutils/py-iocage: most functionality broken on
                    14.0-CURRENT
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: asomers@FreeBSD.org

Most iocage functionality is broken on 14.0-CURRENT.  For example:

somers@methionine /u/h/s/s/r/bfffs (aio2) [1]> iocage list
Run as root to automatically activate the first zpool!
somers@methionine /u/h/s/s/r/bfffs (aio2) [1]> sudo iocage list
Setting up zpool [zroot] for iocage usage
If you wish to change please use "iocage activate"
********************************************************************************
fdescfs(5) is not mounted, performance may suffer. Please run:
mount -t fdescfs null /dev/fd
You can also permanently mount it in /etc/fstab with the following entry:
fdescfs /dev/fd  fdescfs  rw  0  0
********************************************************************************

Setting up zpool [zroot] for iocage usage
If you wish to change please use "iocage activate"
Setting up zpool [zroot] for iocage usage
If you wish to change please use "iocage activate"
Setting up zpool [zroot] for iocage usage
If you wish to change please use "iocage activate"
Setting up zpool [zroot] for iocage usage
If you wish to change please use "iocage activate"
Setting up zpool [zroot] for iocage usage
If you wish to change please use "iocage activate"
Setting up zpool [zroot] for iocage usage
If you wish to change please use "iocage activate"
+-----+-------+-------+--------------+--------------+
| JID | NAME  | STATE |   RELEASE    |     IP4      |
+=====+=======+=======+==============+==============+
| 391 | j13_0 | up    | 13.0-RELEASE | 192.168.0.44 |
+-----+-------+-------+--------------+--------------+


Note the excessive "Setting up zpool ..." messages.

The problem is a bug in ioc_json.py.  It runs a zfs command with illegal syntax
that is still accepted by ZFS as of FreeBSD 13.1, but not by 14.0-CURRENT:

zfs get  -pHo 'property, value' all zroot

Not the space in between "property" and "value".

The offending code has been removed from iocage's main repository, so simply
updating the port will probably suffice to fix the problem.

-- 
You are receiving this mail because:
You are the assignee for the bug.