Bug 1855772 - shutdown-env role emit DEPRECATION WARNING
Summary: shutdown-env role emit DEPRECATION WARNING
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-ansible-collection
Classification: oVirt
Component: shutdown-env
Version: 1.0.4
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ovirt-4.4.2
: 1.1.0
Assignee: Asaf Rachmani
QA Contact: Nikolai Sednev
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-07-10 13:02 UTC by Sandro Bonazzola
Modified: 2020-09-18 07:12 UTC (History)
4 users (show)

Fixed In Version: ovirt-ansible-shutdown-env-1.1.0
Clone Of:
Environment:
Last Closed: 2020-09-18 07:12:01 UTC
oVirt Team: Integration
Embargoed:
sbonazzo: ovirt-4.4?
mtessun: planning_ack+
sbonazzo: devel_ack+
mavital: testing_ack+


Attachments (Terms of Use)
shutdownrun (149.61 KB, text/plain)
2020-09-06 11:45 UTC, Nikolai Sednev
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github oVirt ovirt-ansible-shutdown-env pull 33 0 None closed replace ovirt_host_facts with ovirt_host_info 2020-09-06 07:38:38 UTC

Description Sandro Bonazzola 2020-07-10 13:02:57 UTC
Running ovirt-ansible-shutdown-env-1.0.4

During shutdown a warning is issued:

[DEPRECATION WARNING]: The 'ovirt_host_facts' module has been renamed to 'ovirt_host_info', and the renamed one no longer returns ansible_facts. This feature will be removed in version 2.13. Deprecation 
warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.

We are currently using ansible-2.9.10 so not urgent but we should get rid of the warning.

Comment 1 Michal Skrivanek 2020-07-11 04:43:46 UTC
FWIW this is now emitted by many other roles we have

Comment 2 Nikolai Sednev 2020-09-06 11:44:39 UTC
This requires ovirt-ansible-shutdown-env-1.0.4-1.el8ev.noarch tool on the engine, prior for the verification.

Tested on:
ovirt-ansible-shutdown-env-1.0.4-1.el8ev.noarch
ansible-2.9.13-1.el8ae.noarch
ovirt-ansible-engine-setup-1.2.4-1.el8ev.noarch
ovirt-ansible-hosted-engine-setup-1.1.8-1.el8ev.noarch
vdsm-4.40.26.1-1.el8ev.x86_64
ovirt-hosted-engine-setup-2.4.6-2.el8ev.noarch
ovirt-hosted-engine-ha-2.4.4-1.el8ev.noarch
rhvm-appliance-4.4-20200722.0.el8ev.x86_64

1.I manually installed latest ovirt-ansible-shutdown-env-1.0.4-1.el8ev.noarch instead of an old ovirt-ansible-shutdown-env-1.1.0-1.el8ev.noarch.rpm, which came with the appliance.
2.I manually created shutdown.yml with the following:
---
- name: oVirt shutdown env
  hosts: localhost
  connection: local
  gather_facts: false

  vars_files:
    # Contains encrypted `engine_password` varibale using ansible-vault
    #- passwords.yml

  vars:
    engine_url: https://nsednev-he-1.qa.lab.tlv.redhat.com/ovirt-engine/api
    engine_user: admin@internal
    engine_password: 123456
    engine_cafile: /etc/pki/ovirt-engine/ca.pem

  roles:
    - ovirt.shutdown_env

3.I ran ansible-playbook -i localhost. shutdown.yml, for the run of the script results please check the attachment.



4.All guest-vms were shutdown and then ha-host with the engine itself, just like expected.

I didn't observed previously reported [DEPRECATION WARNING] issue.
Moving to verified.

Comment 3 Nikolai Sednev 2020-09-06 11:45:52 UTC
Created attachment 1713879 [details]
shutdownrun

Comment 4 Sandro Bonazzola 2020-09-18 07:12:01 UTC
This bugzilla is included in oVirt 4.4.2 release, published on September 17th 2020.

Since the problem described in this bug report should be resolved in oVirt 4.4.2 release, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.


Note You need to log in before you can comment on or make changes to this bug.