Skip to content

Snapshot selection bug #9518

@Jonathan-Caruana

Description

@Jonathan-Caruana

Hello,

We experienced a singular bug with our ManageIQ instance when we try to restore a snapshot. We realize that sometimes, when we restore, the state of the VM was not that we expected.

For example : single VM with 3 snapshots

Image

the selection is on the latest snapshot, and now i want to restore de previous one, and so i click on it :

Image

Notice the creation date of the snapshot is exactly the same of the latest. And if i click one more time (even if i already selected the correct one) :

Image

Now i'ts good, the date seems really match the original created date of this particular snapshot.

To reproduce, just select a VM that it have two snapshots at least and click on one then the other repeatedly. You will see the created date will not be the good one at each attempt.

Now to prevent this situation we click many times on the snapshot to be sure that is the correct one but it's clearly a bug.

For information, this bug is also present on the latest version.

Environment

VM on oVirt, CentOS Stream release 8, petrosian-1.20230912222549_a07cb46

gems

[root@vs-inf-prd-miq-fr-502 data]# gem env
Ignoring ffi-1.15.0 because its extensions are not built. Try: gem pristine ffi --version 1.15.0
Ignoring psych-3.3.1 because its extensions are not built. Try: gem pristine psych --version 3.3.1
RubyGems Environment:
  - RUBYGEMS VERSION: 3.2.33
  - RUBY VERSION: 3.0.4 (2022-04-12 patchlevel 208) [x86_64-linux]
  - INSTALLATION DIRECTORY: /opt/manageiq/manageiq-gemset
  - USER INSTALLATION DIRECTORY: /root/.local/share/gem/ruby
  - RUBY EXECUTABLE: /usr/bin/ruby
  - GIT EXECUTABLE: /usr/bin/git
  - EXECUTABLE DIRECTORY: /opt/manageiq/manageiq-gemset/bin
  - SPEC CACHE DIRECTORY: /root/.local/share/gem/specs
  - SYSTEM CONFIGURATION DIRECTORY: /etc
  - RUBYGEMS PLATFORMS:
     - ruby
     - x86_64-linux
  - GEM PATHS:
     - /opt/manageiq/manageiq-gemset
     - /usr/share/gems
     - /usr/local/share/gems
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :backtrace => false
     - :bulk_threshold => 1000
     - "gem" => "--install-dir=/usr/local/share/gems --bindir /usr/local/bin"
  - REMOTE SOURCES:
     - https://rubygems.org/
  - SHELL PATH:
     - /opt/manageiq/manageiq-gemset/bin
     - /usr/local/sbin
     - /usr/local/bin
     - /usr/sbin
     - /usr/bin
     - /root/bin

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions