Skip to content

Host.equals is not working after creation of HostAbstract #440

@manoelcampos

Description

@manoelcampos

The method is always returning true, causing the VmAllocationPolicyMigration to ignore all available Hosts for VM migration.
The issue happend after introducing the equals() implementation using Lombok EqualsAndHashCode annotation and creating the HostAbstract class.

Since the annotation was inside the HostSimple class and it doesn't have any attributes annotatted with EqualsAndHashCode.Include, the equals() implementation was not including any fields.

That annotations need to be moved to the HostAbstract class.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions