Bug 1767895 - [NoMethodError]: undefined method `path' for nil:NilClass Method:[block (2 levels) in <class:LogProxy>] during scheduled NFS backup
Summary: [NoMethodError]: undefined method `path' for nil:NilClass Method:[block (2 l...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Appliance
Version: 5.10.7
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: GA
: 5.11.1
Assignee: Nick LaMuro
QA Contact: Jaroslav Henner
Red Hat CloudForms Documentation
URL:
Whiteboard:
Depends On: 1763890
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-11-01 15:49 UTC by Satoe Imaishi
Modified: 2022-07-09 10:56 UTC (History)
6 users (show)

Fixed In Version: 5.11.1.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1763890
Environment:
Last Closed: 2019-12-13 00:35:54 UTC
Category: ---
Cloudforms Team: CFME Core
Target Upstream Version:
Embargoed:
simaishi: cfme-5.11.z+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1703278 0 high CLOSED Scheduled NFS backup is not directly stored on NFS location rather stored on /tmp and then moved to NFS storage. 2021-02-22 00:41:40 UTC
Red Hat Bugzilla 1717025 0 high CLOSED Scheduled NFS backup is not directly stored on NFS location rather stored on /tmp and then moved to NFS storage. 2021-02-22 00:41:40 UTC
Red Hat Bugzilla 1749933 0 medium CLOSED [RFE] Scheduled backup overestimates the needed space quite a lot. Backup may not happen because of that. 2021-02-22 00:41:40 UTC
Red Hat Product Errata RHSA-2019:4201 0 None None None 2019-12-13 00:37:00 UTC

Internal Links: 1771606

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


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