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

Wrong cluster ID on VM history after cluster reorganization #2226

Open
7 tasks
AdriMenendezM opened this issue Jun 27, 2018 · 2 comments · May be fixed by OpenNebula/docs#3139
Open
7 tasks

Wrong cluster ID on VM history after cluster reorganization #2226

AdriMenendezM opened this issue Jun 27, 2018 · 2 comments · May be fixed by OpenNebula/docs#3139

Comments

@AdriMenendezM
Copy link

Enhancement Request

Description

VMs deployed on a host which has been moved to another cluster, maintain the previous cluster ID on the last history record. Actions like attach nic to a network which is not part of the old cluster fail.
It would be very useful to add a new histroy record to log the new cluster ID.

To reproduce:
Two clusters with one host and some vnets and VMs on each one.
Reorganize hosts moving one of them to the other cluster.
Try to attach nic to a VM on a vnet of the new cluster.

Use case

You need to manually update the last history record of each VM of the moved host.

Interface Changes

N/A

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
@paczerny
Copy link
Member

paczerny commented Feb 6, 2024

In case somebody runs into this issue, here is command how to fix the cluster ID in the VM history record:

onedb change-history --id <vm-id> --seq <history-last-id> '/HISTORY/CID' <new-cluster-id>

@tinova tinova added this to the Release 7.0 milestone Feb 12, 2024
@paczerny paczerny self-assigned this Jan 7, 2025
@paczerny
Copy link
Member

paczerny commented Jan 7, 2025

For master branch solved by #6342
Need fix for 6.10 branch

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