Bug 1767895

Summary: [NoMethodError]: undefined method `path' for nil:NilClass Method:[block (2 levels) in <class:LogProxy>] during scheduled NFS backup
Product: Red Hat CloudForms Management Engine Reporter: Satoe Imaishi <simaishi>
Component: ApplianceAssignee: Nick LaMuro <nlamuro>
Status: CLOSED ERRATA QA Contact: Jaroslav Henner <jhenner>
Severity: low Docs Contact: Red Hat CloudForms Documentation <cloudforms-docs>
Priority: medium    
Version: 5.10.7CC: abellott, dmetzger, jhenner, obarenbo, smallamp, yrudman
Target Milestone: GAKeywords: ZStream
Target Release: 5.11.1Flags: simaishi: cfme-5.11.z+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.11.1.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1763890 Environment:
Last Closed: 2019-12-13 00:35:54 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core Target Upstream Version:
Embargoed:
Bug Depends On: 1763890    
Bug Blocks:    

Comment 2 CFME Bot 2019-11-01 19:39:48 UTC
New commit detected on ManageIQ/manageiq-gems-pending/ivanchuk:

https://github.com/ManageIQ/manageiq-gems-pending/commit/d09786dc6191764fb0a38caf5ea2210d6cfddca6
commit d09786dc6191764fb0a38caf5ea2210d6cfddca6
Author:     Joe Rafaniello <jrafanie.github.com>
AuthorDate: Wed Oct 23 11:51:28 2019 -0400
Commit:     Joe Rafaniello <jrafanie.github.com>
CommitDate: Wed Oct 23 11:51:28 2019 -0400

    Merge pull request #447 from NickLaMuro/fix_source_for_log_errors

    [MiqGenericMountSession] Fix .source_for_log

    (cherry picked from commit bb0b1d483ea9a27a919b829c11ef0421ac6630ba)

    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1767895

 lib/gems/pending/util/mount/miq_generic_mount_session.rb | 8 +-
 1 file changed, 7 insertions(+), 1 deletion(-)

Comment 3 Jaroslav Henner 2019-11-12 17:54:38 UTC
I am not getting the nil class dereference error any more:

[----] I, [2019-11-12T12:50:16.548680 #7227:2ad6a868d464]  INFO -- : MIQ(MiqQueue.put) Message id: [1805],  id: [], Zone: [default], Role: [], Server: [], MiqTask id: [], Ident: [generic], Target id: [], Instance id: [], Task id: [], Command: [MiqEvent.raise_evm_event], Timeout: [600], Priority: [100], State: [ready], Deliver On: [], Data: [], Args: [["MiqServer", 1], "evm_server_db_backup_low_space", {:event_details=>"Destination location: [/tmp/miq_20191112-7227-14nakrh/db_backup/region_0/test/region_0_20191112_175016.backup], does not have enough free disk space: [2097152 bytes] for database of size: [35263975 bytes]"}]
#<Thread:0x000055ad50d1a8c8@/opt/rh/cfme-gemset/bundler/gems/cfme-gems-pending-a01fd2afa325/lib/gems/pending/util/miq_file_storage.rb:275 run> terminated with exception (report_on_exception is true):
/var/www/miq/vmdb/lib/evm_database_ops.rb:41:in `validate_free_space': Destination location: [/tmp/miq_20191112-7227-14nakrh/db_backup/region_0/test/region_0_20191112_175016.backup], does not have enough free disk space: [2097152 bytes] for database of size: [35263975 bytes] (MiqException::MiqDatabaseBackupInsufficientSpace)
        from /var/www/miq/vmdb/lib/evm_database_ops.rb:173:in `block (2 levels) in with_file_storage'
        from /opt/rh/cfme-gemset/bundler/gems/cfme-gems-pending-a01fd2afa325/lib/gems/pending/util/miq_file_storage.rb:277:in `block in handle_io_block'
[----] I, [2019-11-12T12:50:16.549513 #7227:2ad6a36725c4]  INFO -- : MIQ(MiqNfsSession-upload_single) Copying file [<STREAMED_FROM_CMD>] to [nfs://CENSORED_IP/srv/export/littlespacedir/db_backup/region_0/test/region_0_20191112_175016.backup] complete
[----] E, [2019-11-12T12:50:16.549784 #7227:2ad6a36725c4] ERROR -- : MIQ(MiqNfsSession-add) Adding [<NOT_READY>] to [], failed due to error: 'Destination location: [/tmp/miq_20191112-7227-14nakrh/db_backup/region_0/test/region_0_20191112_175016.backup], does not have enough free disk space: [2097152 bytes] for database of size: [35263975 bytes]'
[----] I, [2019-11-12T12:50:16.549890 #7227:2ad6a36725c4]  INFO -- : MIQ(Class-disconnect) Disconnecting mount point: /tmp/miq_20191112-7227-14nakrh
[----] I, [2019-11-12T12:50:16.600315 #7227:2ad6a36725c4]  INFO -- : MIQ(Class-disconnect) Disconnecting mount point: /tmp/miq_20191112-7227-14nakrh...Complete
[----] E, [2019-11-12T12:50:16.600766 #7227:2ad6a36725c4] ERROR -- : MIQ(MiqQueue#deliver) Message id: [1804], Error: [Destination location: [/tmp/miq_20191112-7227-14nakrh/db_backup/region_0/test/region_0_20191112_175016.backup], does not have enough free disk space: [2097152 bytes] for database of size: [35263975 bytes]]

Version 5.11.1.0.20191105221526_f1764d4

Comment 5 errata-xmlrpc 2019-12-13 00:35:54 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, 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-2019:4201