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

Misleading error message when deleting a VM template with image #2053

Closed
2 of 37 tasks
tomaxuser opened this issue May 2, 2018 · 5 comments
Closed
2 of 37 tasks

Misleading error message when deleting a VM template with image #2053

tomaxuser opened this issue May 2, 2018 · 5 comments

Comments

@tomaxuser
Copy link

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

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

SunStone displays a misleading error message in the notification area when I try to delete a virtual machine template that has attached an image that I don't have right to delete.

Expected Behavior

[one.template.delete] Cannot delete image while deleting virtual machine template: 508 or something like that is displayed.

Actual Behavior

[one.template.delete] Cannot delete virtual machine template. Cannot delete image: 508 is displayed.

How to reproduce

  • use User view
  • Create VM Template
  • in Storage tab add an image that you can only Use but not Manage/Admin
  • click on Create
  • try to delete the template you've just created
  • choose Delete all images
  • observe an error message [one.template.delete] Cannot delete virtual machine template. Cannot delete image: 508
  • observe successful deletion of the template and expected preservation of the image

Progress Status

  • Branch created
  • Code committed to development branch
  • Testing - QA
  • Documentation
  • Release notes - resolved issues, compatibility, known issues
  • Code committed to upstream release/hotfix branches
  • Documentation committed to upstream release/hotfix branches
@stale
Copy link

stale bot commented May 3, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. The OpenNebula Dev Team

@tomaxuser
Copy link
Author

Hi, I'd like to ask if some progress is possible towards fixing this misleding bug. I still observe it using ONe 5.8.1.

To make it more clear, the Sunstone incorrectly claims the VM template cannot be deleted while in fact it has been deleted, albeit the recursive part of the deletion did not succeed.

@stale stale bot removed the Status: Abandoned label May 28, 2019
@stale
Copy link

stale bot commented May 27, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. The OpenNebula Dev Team

@Yenya
Copy link

Yenya commented May 27, 2020

This is still present in 5.10.1 - the error message appears, saying "Cannot delete template", but the template gets removed as expected, and the image remains undeleted, also as expected. There is no point in displaying this error message.

@stale stale bot removed the Status: Abandoned label May 27, 2020
@rsmontero
Copy link
Member

Fixed for 6.0.0.3/6.0.3

rsmontero pushed a commit that referenced this issue May 31, 2021
rsmontero added a commit to OpenNebula/docs that referenced this issue May 31, 2021
rsmontero added a commit to OpenNebula/docs that referenced this issue May 31, 2021
atodorov-storpool pushed a commit to storpool/one that referenced this issue Jun 1, 2021
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

4 participants