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
ovrit_cluster: fix for CPU arch entity #37425 #37436
Conversation
The test
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
shipit |
architecture=self.param('cpu_arch'), | ||
architecture=otypes.Architecture( | ||
self.param('cpu_arch') | ||
), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, can you change it to:
achitecture=otypes.Architecture(
self.param('cpu_arch')
) if self.param('cpu_arch') else None,
So if cpu_arch
parameter isn't passed we don't try to sent empty architecture
parameter.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, i guess that case would be handled by this fix, which is in place already.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, that's different case. The code above I've sent:
achitecture=otypes.Architecture(
self.param('cpu_arch')
) if self.param('cpu_arch') else None,
Ensures it sent <achitecture/>
xml element when creating/updating cluster only when user passes cpu_arch
parameter to Ansible. The current code you've sent will sent <achitecture/>
element also when user don't cpu_arch
parameter.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool got it, Thanks! changed it.
fixes: #37425 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! shipit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shipit
* ovrit_cluster: fix for CPU arch entity ansible#37425 * Corrected Indentation * Condition to check if `architecture` is defined
* ovirt_host_networks: Fix idempotency * ovirt_hosts: Fix failed_state after PM fence * ovirt_host_networks: Fix of bond assignment (#38054) * ovirt_host_networks: Fix of bond assignment * ovirt_host_networks: Fix bond modes * ovirt_host_networks: Fix incorrect prefix documentation * ovrit_cluster: fix for CPU arch entity #37425 (#37436) * ovrit_cluster: fix for CPU arch entity #37425 * Corrected Indentation * Condition to check if `architecture` is defined
SUMMARY
CPU arch entity is passing the value as it is from the request, this would validate it.
ISSUE TYPE
COMPONENT NAME
ovirt_cluster
ANSIBLE VERSION
ADDITIONAL INFORMATION
This fix would take care of below error message, when the request comes with CPU arch defined.
The error,