Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log collection creds validation throws "undefined method `[]' for nil:NilClass [ops/log_depot_edit]" #1506

Closed
jkrocil opened this issue Jan 29, 2015 · 6 comments
Assignees
Labels

Comments

@jkrocil
Copy link

jkrocil commented Jan 29, 2015

Description of problem:
An error page is displayed on log creds validation.

Version-Release number of selected component (if applicable):
Upstream - master.20150127070628_e51ab51

How reproducible:
Always

Steps to Reproduce:

  1. Configure > Configuration > Diagnostics > Collect Logs > Edit
  2. Add SMB config & creds and click "Validate"

Actual results:
Error page with "undefined method `[]' for nil:NilClass [ops/log_depot_edit]".

Expected results:
Async creds validation is successful.

Additional info:
production.log extract here: https://gist.github.com/jkrocil/1af9740dd856b167d4a1

@Fryguy Fryguy added the bug label Feb 2, 2015
@Fryguy
Copy link
Member

Fryguy commented Feb 2, 2015

@brandondunne Is this for you?

@bdunne
Copy link
Member

bdunne commented Feb 3, 2015

@Fryguy I don't think so. It appears @edit, or @edit[:new] is nil. I could change it to fetch_path to make it nicer to read and not blow up, but those were not nil in the past.

@dclarizio Do you know if anything has changed with @edit usage in this area?

@jkrocil
Copy link
Author

jkrocil commented Mar 5, 2015

Note: This happens both in zone-level and appliance-level log collection setup. (and the issue is still present in upstream)

@jrafanie
Copy link
Member

jrafanie commented Mar 5, 2015

Why is @edit[:new] or @edit nil? @h-kataria @dclarizio Any idea in terms of what has changed to @edit recently? Note, @jkrocil opened this in late January. Can someone in the UI team try to recreate this? We need log collection to work.

Note, @brandondunne made a change in 844a3c2 but it's not clear how that caused @edit to change.

Thanks!

@h-kataria
Copy link
Contributor

@jrafanie @brandondunne this issue is caused some of the code that was removed by commit:
844a3c2 Brandon Dunne at 10/27/14 2:17 PM
Remove duplicate Log Depot validation code
Adding following 2 lines back to code fixes the issue, i will create a PR shortly.
id = params[:id] ? params[:id] : "new"
return unless load_edit("logdepot_edit__#{id}","replace_cell__explorer")

h-kataria added a commit to h-kataria/manageiq that referenced this issue Mar 17, 2015
- Load @edit from session[:edit] when validate button is pressed.
- Added spec test

Issue ManageIQ#1506
@h-kataria h-kataria added this to the Sprint 21 Ending Mar 30, 2015 milestone Mar 17, 2015
@h-kataria
Copy link
Contributor

Fixed by #2183

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants