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
Ovirt add rename functionality #44951
Conversation
The test
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.
shipit
# Change cluster Name | ||
- ovirt_cluster: | ||
id: 00000000-0000-0000-0000-000000000000 | ||
name: "new cluster name" |
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.
There can't be spaces in cluster name.
# Change Datacenter Name | ||
- ovirt_datacenter: | ||
id: 00000000-0000-0000-0000-000000000000 | ||
name: "new datacenter name" |
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.
Here as well.
@@ -18,6 +18,10 @@ | |||
description: | |||
- "Module to manage hosts in oVirt/RHV" | |||
options: | |||
id: | |||
description: | |||
- "ID of the nic to manage." |
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.
s/nic/host
# Change MAC pool Name | ||
- ovirt_nic: | ||
id: 00000000-0000-0000-0000-000000000000 | ||
name: "new mac pool name" |
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.
No spaces.
# Change Network Name | ||
- ovirt_network: | ||
id: 00000000-0000-0000-0000-000000000000 | ||
name: "new network name" |
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.
No spaces.
# Change cluster Name | ||
- ovirt_tag: | ||
id: 00000000-0000-0000-0000-000000000000 | ||
name: "new tag name" |
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.
No spaces. s/new tag name/new_cluster_name
# Change Template Name | ||
- ovirt_template: | ||
id: 00000000-0000-0000-0000-000000000000 | ||
name: "new template name" |
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.
No spaces.
# Change VM Name | ||
- ovirt_vmpool: | ||
id: 00000000-0000-0000-0000-000000000000 | ||
name: "new vm name" |
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.
No spaces.
@@ -677,6 +677,11 @@ | |||
nics: | |||
- name: nic1 | |||
|
|||
# Change VM Name | |||
- ovirt_vmpool: |
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.
ovirt_vm
# Change Pool Name | ||
- ovirt_vmpool: | ||
id: 00000000-0000-0000-0000-000000000000 | ||
name: "new disk name" |
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.
No spaces. s/new disk name/new_pool_name
@@ -18,6 +18,10 @@ | |||
description: | |||
- "Module to manage hosts in oVirt/RHV" | |||
options: | |||
id: | |||
description: | |||
- "ID of the nic to manage." |
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.
s/nic/host
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
Ondro, maybe you will need to approve the PR to get this merged automatically? |
bot_status |
Componentslib/ansible/modules/cloud/ovirt/ovirt_cluster.py lib/ansible/modules/cloud/ovirt/ovirt_datacenter.py lib/ansible/modules/cloud/ovirt/ovirt_disk.py lib/ansible/modules/cloud/ovirt/ovirt_host.py lib/ansible/modules/cloud/ovirt/ovirt_mac_pool.py lib/ansible/modules/cloud/ovirt/ovirt_network.py lib/ansible/modules/cloud/ovirt/ovirt_nic.py lib/ansible/modules/cloud/ovirt/ovirt_quota.py lib/ansible/modules/cloud/ovirt/ovirt_tag.py lib/ansible/modules/cloud/ovirt/ovirt_template.py lib/ansible/modules/cloud/ovirt/ovirt_vm.py lib/ansible/modules/cloud/ovirt/ovirt_vmpool.py Metadatawaiting_on: maintainer |
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
bot_status |
Componentslib/ansible/modules/cloud/ovirt/ovirt_cluster.py lib/ansible/modules/cloud/ovirt/ovirt_datacenter.py lib/ansible/modules/cloud/ovirt/ovirt_disk.py lib/ansible/modules/cloud/ovirt/ovirt_host.py lib/ansible/modules/cloud/ovirt/ovirt_mac_pool.py lib/ansible/modules/cloud/ovirt/ovirt_network.py lib/ansible/modules/cloud/ovirt/ovirt_nic.py lib/ansible/modules/cloud/ovirt/ovirt_quota.py lib/ansible/modules/cloud/ovirt/ovirt_tag.py lib/ansible/modules/cloud/ovirt/ovirt_template.py lib/ansible/modules/cloud/ovirt/ovirt_vm.py lib/ansible/modules/cloud/ovirt/ovirt_vmpool.py Metadatawaiting_on: maintainer |
shipit |
We have found out on Thursday that there was some misinformation about Community Freeze dates (already discussed that with Dylan). Ryan, is it possible to get this to 2.7? It's partial bug and partial RFE (only becuase of the need to add ID parameter) and it's quite critical for RHV. |
+label bug |
1 similar comment
+label bug |
@ryansb any update? |
I'm sorry, this feature wasn't even submitted until Friday, the day after final feature freeze. for 2.7. We can look at getting this into the 2.8 release but it is too late to make 2.7. |
Other than version_added being updated to say "2.8" instead of 2.7, I think this is okay. Once version_added has been updated, this can be merged into devel. |
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
merged to devel for the 2.8 release. |
Can I rename oVirt template with this PR? |
Yes, if you pass id of the old template in |
SUMMARY
Now you can rename most of ovirt components. When you pass components ID then you can change name.
Fixes #43236
ISSUE TYPE
COMPONENT NAME
ovirt
ANSIBLE VERSION
ADDITIONAL INFORMATION