1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

B #3964: Clear PCI address from VM (#4602)

This commit is contained in:
Christian González 2020-04-24 12:52:10 +02:00 committed by GitHub
parent b3795a470f
commit 90605d15be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -211,6 +211,9 @@ void HostSharePCI::del(const vector<VectorAttribute *> &devs)
{
pci_it->second->vmid = -1;
pci_it->second->attrs->replace("VMID",-1);
// Clean address from VM as it's not using it anymore
(*it)->remove("ADDRESS");
}
}
};

View File

@ -938,12 +938,12 @@ void LifeCycleManager::epilog_success_action(int vid)
vmpool->update_history(vm);
vmpool->update(vm);
vm->get_capacity(sr);
hpool->del_capacity(vm->get_hid(), sr);
vmpool->update(vm);
//----------------------------------------------------
dm->trigger(action,vid);