RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1830716 - nova-evacuate is needlessly verbose
Summary: nova-evacuate is needlessly verbose
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: resource-agents
Version: 8.2
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: rc
: 8.3
Assignee: Oyvind Albrigtsen
QA Contact: cluster-qe@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-05-03 11:47 UTC by Michele Baldessari
Modified: 2020-11-04 02:19 UTC (History)
5 users (show)

Fixed In Version: resource-agents-4.1.1-51.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-11-04 02:19:19 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Michele Baldessari 2020-05-03 11:47:47 UTC
Description of problem:
nove evacuate littlers the log at every monitor() operation:
May 01 19:36:48 database-0.redhat.local pacemaker-execd[12359]:  notice: nova-evacuate_monitor_10000:167827:stderr [ Could not query value of evacuate: attribute does not exist ] 
May 01 19:36:58 database-0.redhat.local pacemaker-execd[12359]:  notice: nova-evacuate_monitor_10000:168060:stderr [ Could not query value of evacuate: attribute does not exist ] 
May 01 19:37:08 database-0.redhat.local pacemaker-execd[12359]:  notice: nova-evacuate_monitor_10000:168289:stderr [ Could not query value of evacuate: attribute does not exist ] 
May 01 19:37:18 database-0.redhat.local pacemaker-execd[12359]:  notice: nova-evacuate_monitor_10000:168518:stderr [ Could not query value of evacuate: attribute does not exist ] 

That is because we do not redirect stderr to dev null when we call attrd_updater"
evacuate_monitor() {   
    if [ ! -f "$statefile" ]; then
        return $OCF_NOT_RUNNING
    fi  
 
    handle_evacuations $(      
        attrd_updater -n evacuate -A |
            sed 's/ value=""/ value="no"/' |
            tr '="' '  ' |     
            awk '{print $4" "$6}'
    )                  
    return $OCF_SUCCESS
}


So the fix here would be using:
attrd_updater -n evacuate -A 2>/dev/null |

Remind on Monday where the git of this resides and I'll post proper PR and test it ;)

Comment 1 Oyvind Albrigtsen 2020-05-04 14:07:00 UTC
git repo for the nova agents is either:
https://github.com/beekhof/openstack-resource-agents
or
https://opendev.org/x/openstack-resource-agents

Comment 2 Michele Baldessari 2020-05-07 11:39:32 UTC
I guess we can just use this one https://review.opendev.org/#/c/277161/ which is merged already anyways

Comment 13 errata-xmlrpc 2020-11-04 02:19:19 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Low: resource-agents security and bug fix update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2020:4605


Note You need to log in before you can comment on or make changes to this bug.