The Gluster Blog

Gluster blog stories provide high-level spotlights on our users all over the world

Automating closing bugs on end-of-life versions of glusterfs

Gluster
2015-10-07

closing a lot of bugs in bugzilla through the (Red Hat) bugzilla web site is a royal pain in the a**.

So—

1) get the bugzilla CLI utility:
  `dnf install -y python-bugzilla`
(or `yum install python-bugzilla`)

2) sign in to bugzilla using your bugzilla account and password:
  `bugzilla login`

3) get a list of bugs to close:
  `bugzilla query --from-url='https://bugzilla.redhat.com/buglist.cgi?bug_status=NEW&bug_status=ASSIGNED&bug_status=POST&bug_status=MODIFIED&classification=Community&list_id=3937132&product=GlusterFS&query_format=advanced&version=3.4.2'`
or:
  bugzilla query --from-url='https://bugzilla.redhat.com/buglist.cgi?bug_status=NEW&bug_status=ASSIGNED&bug_status=POST&bug_status=MODIFIED&classification=Community&list_id=3937132&product=GlusterFS&query_format=advanced&version=3.4.2' | cut -f 1 -d ' ' | sed -e s/#//`
`
4) and close them:
  `bugzilla modify <bug> [<bug> ...] --close=EOL --comment="GlusterFS 3.4.x has reached end-of-life.\
\
If this bug still exists in a later release please reopen this and change the version or open a new bug."`

Additional scripting is left as an exercise to the reader.

BLOG

  • 15 Oct 2019
    Gluster and CentOS Stream

    Progress cannot be made without change. As technologists, we recognize this every day. Most of the time, these changes are iterative: progresssive additions of features to projects like Gluster. Sometimes those changes are small, and sometimes not. And that’s, of course, just talking about our project. But one of the...

    Read more
  • 26 Apr 2019
    Gluster Monthly Newsletter, April 2...

    Upcoming Community Happy Hour at Red Hat Summit! Tue, May 7, 2019, 6:30 PM – 7:30 PM EDT https://cephandglusterhappyhour_rhsummit.eventbrite.com has all the details. Gluster 7 Roadmap Discussion kicked off for our 7 roadmap on the mailing lists, see [Gluster-users] GlusterFS v7.0 (and v8.0) roadmap discussion https://lists.gluster.org/pipermail/gluster-users/2019-March/036139.html for more details. Community...

    Read more
  • 24 Apr 2019
    Community Survey Feedback, 2019

    In this year’s survey, we asked quite a few questions about how people are using Gluster, how much storage they’re managing, their primary use for Gluster, and what they’d like to see added. Here’s some of the highlights from this year!

    Read more