Issue #21250 has been updated by Adrien Thebo.

Branch set to https://github.com/puppetlabs/facter/pull/457

----------------------------------------
Bug #21250: zfs_version fails on some older releases of Solaris 10
https://projects.puppetlabs.com/issues/21250#change-94130

* Author: Andrew Beresford
* Status: Merged - Pending Release
* Priority: Normal
* Assignee: 
* Category: 
* Target version: 2.0.0
* Keywords: 
* Branch: https://github.com/puppetlabs/facter/pull/457
* Affected Facter version: 
----------------------------------------
Some older versions of the "zfs" command included with Solaris 10 do not have 
the "zfs upgrade" feature. 

This causes facter to fail in the zfs_version fact and throw an error:

    [root@rldap1 facter]# /opt/csw/bin/facter zfs_version
    unrecognized command 'upgrade'
    usage: zfs command args ...
    where 'command' is one of the following:
  
        create [[-o property=value] ... ] <filesystem>
        create [-s] [-b blocksize] [[-o property=value] ...]
            -V <size> <volume>
        destroy [-rRf] <filesystem|volume|snapshot>

        snapshot [-r] <filesystem@name|volume@name>
        rollback [-rRf] <snapshot>
        clone <snapshot> <filesystem|volume>
        promote <clone filesystem>
        rename <filesystem|volume|snapshot> <filesystem|volume|snapshot>

        list [-rH] [-o property[,property]...] [-t type[,type]...]
            [-s property [-s property]...] [-S property [-S property]...]
            [filesystem|volume|snapshot] ...

        set <property=value> <filesystem|volume> ...
        get [-rHp] [-o field[,field]...] [-s source[,source]...]
            <all | property[,property]...> [filesystem|volume|snapshot] ...
        inherit [-r] <property> <filesystem|volume> ...

        mount
        mount [-o opts] [-O] -a
        mount [-o opts] [-O] <filesystem>

        unmount [-f] -a
        unmount [-f] <filesystem|mountpoint>

        share -a
        share <filesystem>

        unshare [-f] -a
        unshare [-f] <filesystem|mountpoint>

        send [-i <snapshot>] <snapshot>
        receive [-vnF] <filesystem|volume|snapshot>
        receive [-vnF] -d <filesystem>
  
    Each dataset is of the form: pool/[dataset/]*dataset[@name]
  
    For the property list, run: zfs set|get

I have submitted a pull request to fix it at 
https://github.com/puppetlabs/facter/pull/457

Cheers,

Andrew


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to