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
Don't fail trying to read boot image wihtout enable #56126
Conversation
if match: | ||
device_info['network_os_image'] = match.group(1) | ||
try: | ||
reply = self.get('bash timeout 5 cat /mnt/flash/boot-config') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a specific reason we do this instead of show boot-config | json
?
This now adds support to run eos tests against ansible/ansible. Depends-On: ansible/ansible#56126 Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This was pre-merged tested on zuul.ansible.com and appears to fix the issue: |
if match: | ||
device_info['network_os_image'] = match.group(1) | ||
except AnsibleConnectionFailure: | ||
# This requires enable mode to run |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we emit a warning/info instead of silently failing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think a warning might be a bit strong for this, but I don't know what the implications of this data not being populated are.
This now adds support to run eos tests against ansible/ansible. Depends-On: ansible/ansible#56126 Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This now adds support to run eos tests against ansible/ansible. Depends-On: ansible/ansible#56126 Depends-On: ansible/ansible#56131 Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This now adds support to run eos tests against ansible/ansible. Depends-On: ansible/ansible#56126 Depends-On: ansible/ansible#56131 Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This now adds support to run eos tests against ansible/ansible. Depends-On: ansible/ansible#56126 Depends-On: ansible/ansible#56131 Depends-On: ansible/ansible#56136 Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This now adds support to run eos tests against ansible/ansible. Depends-On: ansible/ansible#56126 Depends-On: ansible/ansible#56131 Depends-On: ansible/ansible#56136 Depends-On: ansible/ansible#56140 Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This now adds support to run eos tests against ansible/ansible. Depends-On: ansible/ansible#56126 Depends-On: ansible/ansible#56131 Depends-On: ansible/ansible#56136 Depends-On: ansible/ansible#56140 Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This now adds support to run eos tests against ansible/ansible. Depends-On: ansible/ansible#56126 Depends-On: ansible/ansible#56131 Depends-On: ansible/ansible#56136 Depends-On: ansible/ansible#56140 Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This now adds support to run eos tests against ansible/ansible. Depends-On: ansible/ansible#56126 Depends-On: ansible/ansible#56131 Depends-On: ansible/ansible#56136 Depends-On: ansible/ansible#56140 Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This now adds support to run eos tests against ansible/ansible. Depends-On: ansible/ansible#56126 Depends-On: ansible/ansible#56131 Depends-On: ansible/ansible#56136 Depends-On: ansible/ansible#56140 Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This now adds support to run eos tests against ansible/ansible. Depends-On: ansible/ansible#56126 Depends-On: ansible/ansible#56131 Depends-On: ansible/ansible#56136 Depends-On: ansible/ansible#56140 Signed-off-by: Paul Belanger <pabelanger@redhat.com>
…ible#56126) Also add a message when network_os_image can't be acquired. (cherry picked from commit 3d9da0c) Co-authored-by: Nathaniel Case <ncase@redhat.com>
SUMMARY
ISSUE TYPE
COMPONENT NAME
cliconf/eos