Bug 1503491

Summary: latest python-bugzilla doesn't support return sub_components value in bug.get
Product: [Fedora] Fedora Reporter: JianHong Yin <jiyin>
Component: python-bugzillaAssignee: Cole Robinson <crobinso>
Status: CLOSED ERRATA QA Contact: JianHong Yin <jiyin>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 28CC: crobinso, dzickus, fs-qe, jskarvad, sujith_pandel, xzhou
Target Milestone: ---Keywords: Regression
Target Release: ---Flags: jiyin: rhel-rawhide+
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: python-bugzilla-2.2.0-1.fc28 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-08-24 08:03:45 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description JianHong Yin 2017-10-18 09:16:22 UTC
Description of problem:

as subject.

bugzilla query --sub-component 'NFS' always return nothing.

and

[yjh@dhcp-12-238 nfs]$ bugzilla query --id 1491123 --raw|grep sub_component
[yjh@dhcp-12-238 nfs]$ 

Version-Release number of selected component (if applicable):
python-bugzilla-2.1.0-1.fc26.noarch


How reproducible:
always

Steps to Reproduce:
bugzilla query -b 1491123 --raw | (grep -q sub_component) && echo OK

Actual results:
[yjh@dhcp-12-238 nfs]$ bugzilla query -b 1491123 --raw|grep sub_component
[yjh@dhcp-12-238 nfs]$ 

Expected results:
[yjh@fs-qe jiyin]$ bugzilla query -b 1491123 --raw|grep sub_component
ATTRIBUTE[_bug_fields]: ['whiteboard', 'internal_whiteboard', 'cf_story_points', 'cf_pm_score', 'estimated_time', 'depends_on', 'cf_regression_status', 'cf_conditional_nak', 'creation_time', 'actual_time', 'docs_contact', 'severity', 'is_open', 'cf_mount_type', 'keywords', 'versions', 'target_release', 'external_bugs', 'cf_ovirt_team', 'description', 'cf_show_homepage', 'cf_cloudforms_team', 'classification', 'is_confirmed', 'is_creator_accessible', 'qa_whiteboard', 'creator', 'target_milestone', 'comments', 'id', 'priority', 'platform', 'cf_compliance_control_group', 'version', 'fixed_in', 'devel_whiteboard', 'cf_verified', 'cf_cust_facing', 'cf_release_notes', 'sub_component', 'cf_environment', 'status', 'product', 'cf_verified_branch', 'blocks', 'qa_contact', 'tags', 'see_also', 'component', 'remaining_time', 'sub_components', 'cf_pgm_internal', 'cf_compliance_level', 'cf_doc_type', 'cf_layered_products', 'groups', 'cf_documentation_action', 'cf_clone_of', 'is_cc_accessible', 'cf_type', 'cf_category', 'url', 'cf_build_id', 'cf_qe_conditional_nak', 'cf_crm', 'summary', 'alias', 'op_sys', 'flags', 'last_change_time', 'components', 'assigned_to', 'update_token', 'cf_partner', 'resolution', 'cf_docs_score', 'cc']
ATTRIBUTE[sub_component]: File Systems NFS
ATTRIBUTE[sub_components]: {'kernel': ['File Systems', 'NFS']}
[yjh@fs-qe jiyin]$ 


Additional info:

Comment 1 Cole Robinson 2017-10-20 23:09:07 UTC
I don't think anything changed on python-bugzilla end here, so maybe an rhbz regression? When did this stop working?

Comment 2 JianHong Yin 2017-10-23 01:22:26 UTC
(In reply to Cole Robinson from comment #1)
> I don't think anything changed on python-bugzilla end here, so maybe an rhbz
> regression? When did this stop working?

Hi Cole

 Both python-bugzilla-1.2.2-1.el7.noarch and python-bugzilla-1.2.2-4.fc25.noarch all works fine. so it might not be regression of rhbz.

Comment 3 Jeff Fearn 🐞 2017-10-23 02:38:43 UTC
This is working for me using my Perl tools, so highly likely a python-bugzilla issue.

Comment 4 Cole Robinson 2017-11-20 12:34:56 UTC
Apologies this is indeed a python-bugzilla issue. In a roundabout way we started passing 'sub_component' to extra_fields instead of 'sub_components'. Fixed upstream now:

commit 2ebbdfd2c96b23ec8a7fbaa3a9fbe86eeff082d9 (HEAD -> master, origin/master, origin/HEAD)
Author: Cole Robinson <crobinso>
Date:   Mon Nov 20 07:21:01 2017 -0500

    rhbugzilla: Fix Bug.get with sub_components (bz 1503491)

Comment 5 JianHong Yin 2017-12-19 05:27:16 UTC
any update ?

Comment 6 Fedora End Of Life 2018-05-03 08:19:12 UTC
This message is a reminder that Fedora 26 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 26. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '26'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 26 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 7 JianHong Yin 2018-05-03 09:53:17 UTC
still get this issue on latest Fedora 28

Comment 8 Fedora Update System 2018-08-11 14:30:37 UTC
python-bugzilla-2.2.0-1.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-8368410b1a

Comment 9 Fedora Update System 2018-08-14 22:41:02 UTC
python-bugzilla-2.2.0-1.fc28 has been pushed to the Fedora 28 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-8368410b1a

Comment 10 JianHong Yin 2018-08-15 02:12:00 UTC
Verified:

[yjh@f28 ~]$ sudo yum install https://kojipkgs.fedoraproject.org//packages/python-bugzilla/2.2.0/1.fc28/noarch/python2-bugzilla-2.2.0-1.fc28.noarch.rpm https://kojipkgs.fedoraproject.org//packages/python-bugzilla/2.2.0/1.fc28/noarch/python3-bugzilla-2.2.0-1.fc28.noarch.rpm https://kojipkgs.fedoraproject.org//packages/python-bugzilla/2.2.0/1.fc28/noarch/python-bugzilla-cli-2.2.0-1.fc28.noarch.rpm

[yjh@f28 ~]$ rpm -q python-bugzilla-cli python2-bugzilla
python-bugzilla-cli-2.2.0-1.fc28.noarch
python2-bugzilla-2.2.0-1.fc28.noarch
[yjh@f28 ~]$ bugzilla query -b 1491123 --raw|(grep -q sub_component) && echo OK
OK
[yjh@f28 ~]$ bugzilla query -b 1491123 --raw|grep sub_component
ATTRIBUTE[_bug_fields]: ['cf_category', 'cf_last_closed', 'blocks', 'is_cc_accessible', 'keywords', 'cf_cust_facing', 'url', 'qa_contact', 'cf_conditional_nak', 'cf_compliance_control_group', 'estimated_time', 'docs_contact', 'description', 'cf_pm_score', 'update_token', 'cf_verified', 'cf_doc_type', 'cf_crm', 'cf_pgm_internal', 'cf_qe_conditional_nak', 'cf_clone_of', 'external_bugs', 'summary', 'platform', 'cf_environment', 'version', 'tags', 'is_creator_accessible', 'cf_compliance_level', 'is_confirmed', 'cf_release_notes', 'cf_docs_score', 'priority', 'creator', 'last_change_time', 'comments', 'cf_ovirt_team', 'cf_subsystem_team', 'cc', 'assigned_to', 'groups', 'see_also', 'cf_cloudforms_team', 'id', 'creation_time', 'whiteboard', 'depends_on', 'cf_partner', 'cf_regression_status', 'remaining_time', 'cf_story_points', 'cf_approved_release', 'resolution', 'classification', 'alias', 'op_sys', 'target_release', 'status', 'cf_show_homepage', 'cf_internal_target_release', 'cf_layered_products', 'cf_type', 'cf_documentation_action', 'cf_mount_type', 'is_open', 'severity', 'flags', 'component', 'actual_time', 'sub_components', 'target_milestone', 'product', 'cf_verified_branch', 'cf_build_id', 'components', 'versions', 'sub_component', 'fixed_in', 'qa_whiteboard', 'devel_whiteboard', 'internal_whiteboard']
ATTRIBUTE[sub_component]: File Systems NFS
ATTRIBUTE[sub_components]: {'kernel': ['File Systems', 'NFS']}

Comment 11 Fedora Update System 2018-08-24 08:03:45 UTC
python-bugzilla-2.2.0-1.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report.