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

Deal more gracefully with YAML errors in neighbordb #216

Closed
advornic opened this issue Oct 6, 2014 · 1 comment
Closed

Deal more gracefully with YAML errors in neighbordb #216

advornic opened this issue Oct 6, 2014 · 1 comment

Comments

@advornic
Copy link
Contributor

advornic commented Oct 6, 2014

Specifically:

  • hidden tabs
  • "---" marker in the middle of the file
@advornic advornic self-assigned this Oct 6, 2014
@advornic advornic added this to the Release1.2 milestone Oct 6, 2014
@advornic
Copy link
Contributor Author

advornic commented Nov 3, 2014

Release note:

YAML serialization errors are now exposed in ZTPS logs:

DEBUG: [controller:170] JPE14140273: running post_node                                                              
ERROR: [topology:83] JPE14140273: failed to load file: /usr/share/ztpserver/neighbordb                              
ERROR: [topology:116] JPE14140273: failed to load neighbordb:                                                       
expected a single document in the stream                                                                            
  in "", line 26, column 1:                                                                                 
    patterns:                                                                                                       
    ^                                                                                                               
but found another document                                                                                          
  in "", line 35, column 1:                                                                                 
    ---                                                                                                             
    ^                                                                                                               
DEBUG: [controller:182] JPE14140273: response to post_node: {'status': 400, 'body': '', 'content_type': 'text/html'}
s7056.lab.local - - [03/Nov/2014 21:05:33] "POST /nodes HTTP/1.1" 400 0                                             

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

No branches or pull requests

1 participant