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

Ovirt add rename functionality #44951

Merged
merged 5 commits into from Sep 12, 2018
Merged

Ovirt add rename functionality #44951

merged 5 commits into from Sep 12, 2018

Conversation

mnecas
Copy link
Contributor

@mnecas mnecas commented Aug 31, 2018

SUMMARY

Now you can rename most of ovirt components. When you pass components ID then you can change name.

Fixes #43236

ISSUE TYPE
  • Feature Pull Request
  • Bugfix Pull Request
COMPONENT NAME

ovirt

ANSIBLE VERSION
ansible 2.6.3
  config file = /etc/ansible/ansible.cfg
  configured module search path = [u'/home/mnecas/Desktop/Projects/Redhat/ansible/lib/ansible/modules/cloud/ovirt']
  ansible python module location = /usr/lib/python2.7/site-packages/ansible
  executable location = /usr/bin/ansible
  python version = 2.7.15 (default, May 16 2018, 17:50:09) [GCC 8.1.1 20180502 (Red Hat 8.1.1-1)]

ADDITIONAL INFORMATION

@ansibot
Copy link
Contributor

ansibot commented Aug 31, 2018

@ansibot ansibot added affects_2.7 This issue/PR affects Ansible v2.7 cloud community_review In order to be merged, this PR must follow the community review workflow. feature This issue/PR relates to a feature request. module This issue/PR relates to a module. needs_triage Needs a first human triage before being processed. virt Virt community (incl. QEMU, KVM, libvirt, ovirt, RHV and Proxmox) support:community This issue/PR relates to code supported by the Ansible community. labels Aug 31, 2018
@ansibot
Copy link
Contributor

ansibot commented Aug 31, 2018

The test ansible-test sanity --test pylint [explain] failed with 1 error:

lib/ansible/modules/cloud/ovirt/ovirt_mac_pool.py:133:0: trailing-whitespace Trailing whitespace

The test ansible-test sanity --test pep8 [explain] failed with 2 errors:

lib/ansible/modules/cloud/ovirt/ovirt_mac_pool.py:133:78: W291 trailing whitespace
lib/ansible/modules/cloud/ovirt/ovirt_nic.py:106:13: W291 trailing whitespace

click here for bot help

@ansibot ansibot added ci_verified Changes made in this PR are causing tests to fail. needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. and removed community_review In order to be merged, this PR must follow the community review workflow. labels Aug 31, 2018
@ansibot ansibot added community_review In order to be merged, this PR must follow the community review workflow. and removed ci_verified Changes made in this PR are causing tests to fail. needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. labels Aug 31, 2018
Copy link
Contributor

@mwperina mwperina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shipit

@ansibot ansibot removed the needs_triage Needs a first human triage before being processed. label Aug 31, 2018
# Change cluster Name
- ovirt_cluster:
id: 00000000-0000-0000-0000-000000000000
name: "new cluster name"
Copy link
Contributor

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"
Copy link
Contributor

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."
Copy link
Contributor

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"
Copy link
Contributor

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"
Copy link
Contributor

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"
Copy link
Contributor

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"
Copy link
Contributor

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"
Copy link
Contributor

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:
Copy link
Contributor

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"
Copy link
Contributor

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."
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/nic/host

@machacekondra
Copy link
Contributor

shipit

Copy link
Contributor

@mwperina mwperina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shipit

@mwperina
Copy link
Contributor

Ondro, maybe you will need to approve the PR to get this merged automatically?
@machacekondra

@mwperina
Copy link
Contributor

bot_status

@ansibot
Copy link
Contributor

ansibot commented Sep 3, 2018

Components

lib/ansible/modules/cloud/ovirt/ovirt_cluster.py
support: community
maintainers: machacekondra mwperina

lib/ansible/modules/cloud/ovirt/ovirt_datacenter.py
support: community
maintainers: machacekondra mwperina

lib/ansible/modules/cloud/ovirt/ovirt_disk.py
support: community
maintainers: machacekondra mwperina

lib/ansible/modules/cloud/ovirt/ovirt_host.py
support: community
maintainers: machacekondra mwperina

lib/ansible/modules/cloud/ovirt/ovirt_mac_pool.py
support: community
maintainers: machacekondra mwperina

lib/ansible/modules/cloud/ovirt/ovirt_network.py
support: community
maintainers: machacekondra mwperina

lib/ansible/modules/cloud/ovirt/ovirt_nic.py
support: community
maintainers: machacekondra mwperina

lib/ansible/modules/cloud/ovirt/ovirt_quota.py
support: community
maintainers: machacekondra mwperina

lib/ansible/modules/cloud/ovirt/ovirt_tag.py
support: community
maintainers: machacekondra mwperina

lib/ansible/modules/cloud/ovirt/ovirt_template.py
support: community
maintainers: machacekondra mwperina

lib/ansible/modules/cloud/ovirt/ovirt_vm.py
support: community
maintainers: machacekondra mwperina

lib/ansible/modules/cloud/ovirt/ovirt_vmpool.py
support: community
maintainers: machacekondra mwperina

Metadata

waiting_on: maintainer
changes_requested_by: null
needs_info: False
needs_revision: False
needs_rebase: False
merge_commits: []
too many files or commits: False
mergeable_state: clean
shippable_status: success
maintainer_shipits (module maintainers): 2
community_shipits (namespace maintainers): 0
ansible_shipits (core team members): 0
shipit_actors (maintainers or core team members): machacekondra mwperina
shipit_actors_other: []
automerge: automerge tests passed

click here for bot help

@ansibot ansibot removed the community_review In order to be merged, this PR must follow the community review workflow. label Sep 3, 2018
@ansibot ansibot added automerge This PR was automatically merged by ansibot. shipit This PR is ready to be merged by Core labels Sep 3, 2018
Copy link
Contributor

@machacekondra machacekondra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shipit

@mwperina
Copy link
Contributor

mwperina commented Sep 3, 2018

bot_status

@ansibot
Copy link
Contributor

ansibot commented Sep 3, 2018

Components

lib/ansible/modules/cloud/ovirt/ovirt_cluster.py
support: community
maintainers: machacekondra mwperina

lib/ansible/modules/cloud/ovirt/ovirt_datacenter.py
support: community
maintainers: machacekondra mwperina

lib/ansible/modules/cloud/ovirt/ovirt_disk.py
support: community
maintainers: machacekondra mwperina

lib/ansible/modules/cloud/ovirt/ovirt_host.py
support: community
maintainers: machacekondra mwperina

lib/ansible/modules/cloud/ovirt/ovirt_mac_pool.py
support: community
maintainers: machacekondra mwperina

lib/ansible/modules/cloud/ovirt/ovirt_network.py
support: community
maintainers: machacekondra mwperina

lib/ansible/modules/cloud/ovirt/ovirt_nic.py
support: community
maintainers: machacekondra mwperina

lib/ansible/modules/cloud/ovirt/ovirt_quota.py
support: community
maintainers: machacekondra mwperina

lib/ansible/modules/cloud/ovirt/ovirt_tag.py
support: community
maintainers: machacekondra mwperina

lib/ansible/modules/cloud/ovirt/ovirt_template.py
support: community
maintainers: machacekondra mwperina

lib/ansible/modules/cloud/ovirt/ovirt_vm.py
support: community
maintainers: machacekondra mwperina

lib/ansible/modules/cloud/ovirt/ovirt_vmpool.py
support: community
maintainers: machacekondra mwperina

Metadata

waiting_on: maintainer
changes_requested_by: null
needs_info: False
needs_revision: False
needs_rebase: False
merge_commits: []
too many files or commits: False
mergeable_state: clean
shippable_status: success
maintainer_shipits (module maintainers): 2
community_shipits (namespace maintainers): 0
ansible_shipits (core team members): 0
shipit_actors (maintainers or core team members): machacekondra mwperina
shipit_actors_other: []
automerge: automerge tests passed

click here for bot help

@machacekondra
Copy link
Contributor

shipit

@mwperina
Copy link
Contributor

mwperina commented Sep 3, 2018

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.

@ryansb

@mwperina
Copy link
Contributor

mwperina commented Sep 3, 2018

+label bug

1 similar comment
@mwperina
Copy link
Contributor

mwperina commented Sep 3, 2018

+label bug

@sandrobonazzola
Copy link

@ryansb any update?

@abadger
Copy link
Contributor

abadger commented Sep 6, 2018

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.

@abadger
Copy link
Contributor

abadger commented Sep 6, 2018

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.

@ansibot ansibot added community_review In order to be merged, this PR must follow the community review workflow. and removed automerge This PR was automatically merged by ansibot. shipit This PR is ready to be merged by Core labels Sep 12, 2018
Copy link
Contributor

@mwperina mwperina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shipit

@abadger abadger merged commit 2a3f338 into ansible:devel Sep 12, 2018
@abadger
Copy link
Contributor

abadger commented Sep 12, 2018

merged to devel for the 2.8 release.

@jinh-dk
Copy link

jinh-dk commented Sep 20, 2018

Can I rename oVirt template with this PR?

@machacekondra
Copy link
Contributor

Can I rename oVirt template with this PR?

Yes, if you pass id of the old template in id, and new name in name parameter, the template will be renamed.

@dagwieers dagwieers added ovirt oVirt and RHV community and removed virt Virt community (incl. QEMU, KVM, libvirt, ovirt, RHV and Proxmox) labels Feb 21, 2019
@ansible ansible locked and limited conversation to collaborators Jul 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.7 This issue/PR affects Ansible v2.7 cloud community_review In order to be merged, this PR must follow the community review workflow. feature This issue/PR relates to a feature request. module This issue/PR relates to a module. ovirt oVirt and RHV community support:community This issue/PR relates to code supported by the Ansible community.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ovirt module: Rename ovirt management network
8 participants