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

incorrect error message for file not found #2109

Closed
2 of 30 tasks
FlorianHeigl opened this issue May 22, 2018 · 1 comment
Closed
2 of 30 tasks

incorrect error message for file not found #2109

FlorianHeigl opened this issue May 22, 2018 · 1 comment

Comments

@FlorianHeigl
Copy link
Contributor

Bug Report

Version of OpenNebula

  • 5.2.2
  • 5.4.0
  • 5.4.1
  • 5.4.2
  • 5.4.3
  • 5.4.4
  • 5.4.5
  • 5.4.6
  • 5.4.7
  • 5.4.8
  • 5.4.9
  • 5.4.10
  • 5.4.11
  • Development build

Probably all

Component

  • Authorization (LDAP, x509 certs...)
  • Command Line Interface (CLI)
  • Contextualization
  • Documentation
  • Federation and HA
  • Host, Clusters and Monitorization
  • KVM
  • Networking
  • Orchestration (OpenNebula Flow)
  • Packages
  • Scheduler
  • Storage & Images
  • Sunstone
  • Upgrades
  • User, Groups, VDCs and ACL
  • vCenter

Description

The following error is given when trying to import an image with an incorrect filename
"[ImageAllocate] Cannot parse image SIZE:"

Expected Behavior

Report that the file isnt there

Actual Behavior

The underlying errors are not correctly handled / passed upwards
There is no check if the file exists prior to scanning its size

How to reproduce

Import an image, give incorrect name

@rsmontero
Copy link
Member

This issue needs to improve fs_size function (in libfs.sh) to return the message size in a variable so it can be send to oned as part of the response message. Currently is only sent to error stream and so only visible in oned.log.

Command manager expects the error information enclosed in the ERROR_OPEN/CLOSE tags. See GenericCommand::get_error_message in DriverExecHelper

@rsmontero rsmontero added this to the Release 5.6 milestone Jun 28, 2018
@vholer vholer closed this as completed Jun 28, 2018
@xorel xorel self-assigned this Apr 21, 2023
@xorel xorel reopened this Apr 21, 2023
@xorel xorel modified the milestones: Release 5.6, Release 7.0 Apr 21, 2023
@dcarracedo dcarracedo assigned 1gramos and unassigned xorel Jan 31, 2025
@dcarracedo dcarracedo marked this as a duplicate of #6700 Feb 3, 2025
@dcarracedo dcarracedo modified the milestones: Release 7.0, Release 6.10.3 Feb 3, 2025
1gramos added a commit to OpenNebula/docs that referenced this issue Feb 4, 2025
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

8 participants