[Bug 1209347] Re: "ipset -quiet list [set_name]" should not output.

James Page james.page at ubuntu.com
Tue Oct 24 08:35:27 UTC 2017


I see what you are saying, and this behaviour persists to the current
release (artful).

However by using the 'list' operator, your kinda always going to get
some output as that's the action requested.

I'm going to mark this as a Won't Fix for Ubuntu as I'd not want to
change behaviour of ipset for Ubuntu alone; if you feel this should be
changed, or maybe a new operator be introduced to check for the
existence of a set then please report a bug to the upstream project
(https://bugzilla.netfilter.org/).

** Changed in: ipset (Ubuntu)
       Status: New => Won't Fix

-- 
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to ipset in Ubuntu.
https://bugs.launchpad.net/bugs/1209347

Title:
  "ipset -quiet list [set_name]" should not output.

Status in ipset package in Ubuntu:
  Won't Fix

Bug description:
  (ubuntu) ~ lsb_release -rd
  Description:    Ubuntu 12.04.2 LTS
  Release:        12.04
  (ubuntu) ~ apt-cache policy ipset
  ipset:
    Installed: 6.11-2
    Candidate: 6.11-2
    Version table:
   *** 6.11-2 0
          500 http://us.archive.ubuntu.com/ubuntu/ precise/universe i386 Packages
          100 /var/lib/dpkg/status


  The ipset man page indicates the '-quiet' option should "suppress any
  output to stdout and stderr".

  But,

  root at ubuntu:~# ipset -quiet list
  Name: my-list
  Type: hash:ip
  Header: family inet hashsize 1024 maxelem 65536
  Size in memory: 8276
  References: 0
  Members:

  This makes scripts inconsistent/ugly because 'list' must redirect
  stdout/err, while '-quiet' works with other commands.

  Example,

  if ipset list my_list > /dev/null 2>&1 ; then    # Because "ipset -quiet list mylist" is not quiet.
    ipset -quiet flush my_list
  fi

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ipset/+bug/1209347/+subscriptions



More information about the Ubuntu-openstack-bugs mailing list