Bug 1590336

Summary: Can't set password via miq_app_password variable
Product: [oVirt] ovirt-ansible-collection Reporter: Petr Kubica <pkubica>
Component: manageiqAssignee: Ondra Machacek <omachace>
Status: CLOSED CURRENTRELEASE QA Contact: Ravi Nori <rnori>
Severity: low Docs Contact:
Priority: low    
Version: 1.1.6CC: mperina, rnori
Target Milestone: ovirt-4.2.5Flags: rule-engine: ovirt-4.2+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovirt-ansible-manageiq-1.1.11 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-07-31 15:30:04 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Petr Kubica 2018-06-12 12:47:25 UTC
Description of problem:
TASK [ovirt-manageiq : Set application admin password] *******************************
task path: /usr/share/ansible/roles/oVirt.manageiq/tasks/wait_for_api.yml:13
Using module file /usr/lib/python2.7/site-packages/ansible/modules/net_tools/basics/uri.py
<localhost> ESTABLISH LOCAL CONNECTION FOR USER: root
<localhost> EXEC /bin/sh -c 'echo ~root && sleep 0'
<localhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1528803878.37-195025488323630 `" && echo ansible-tmp-1528803878.37-195025488323630="` echo /root/.ansible/tmp/ansible-tmp-1528803878.37-195025488323630 `" ) && sleep 0'
<localhost> PUT /root/.ansible/tmp/ansible-local-265029aU3Gx/tmp5w53SK TO /root/.ansible/tmp/ansible-tmp-1528803878.37-195025488323630/uri.py
<localhost> EXEC /bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-tmp-1528803878.37-195025488323630/ /root/.ansible/tmp/ansible-tmp-1528803878.37-195025488323630/uri.py && sleep 0'
<localhost> EXEC /bin/sh -c '/usr/bin/python /root/.ansible/tmp/ansible-tmp-1528803878.37-195025488323630/uri.py && sleep 0'
<localhost> EXEC /bin/sh -c 'rm -f -r /root/.ansible/tmp/ansible-tmp-1528803878.37-195025488323630/ > /dev/null 2>&1 && sleep 0'
fatal: [localhost]: FAILED! => {
    "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", 
    "changed": false
}

CFME production.log:
[----] I, [2018-06-12T07:44:38.596456 #12691:dc4934]  INFO -- : Started POST "/api/users/1" for 127.0.0.1 at 2018-06-12 07:44:38 -0400
[----] I, [2018-06-12T07:44:38.614264 #12691:dc4934]  INFO -- : Processing by Api::UsersController#update as JSON
[----] I, [2018-06-12T07:44:38.614379 #12691:dc4934]  INFO -- :   Parameters: {"resource"=>{"password"=>"[FILTERED]"}, "c_id"=>"1", "user"=>{}}
[----] I, [2018-06-12T07:44:38.918335 #12691:dc4934]  INFO -- : Completed 500 Internal Server Error in 304ms (Views: 0.3ms | ActiveRecord: 27.0ms)


Version-Release number of selected component (if applicable):
CFME 5.9.3.1-1
ansible-2.5.4-1.el7ae.noarch
ovirt-ansible-manageiq-1.1.10-1.el7ev.noarch

How reproducible:
100%

Steps to Reproduce:
use variable miq_app_password:
-> miq_app_password: 123456

Comment 1 Ondra Machacek 2018-06-14 09:29:01 UTC
The issue is password 123456, if it's a number MiQ fails with 500, if you use "123456", it's OK. I doubt anyone is using just numbers as passwords and there is easy workaround, I am decreasing severity.

Comment 2 Yaniv Kaul 2018-06-14 10:19:35 UTC
Ravi, it's a low severity BZ - why is it marked for 4.2.4?

Comment 3 Martin Perina 2018-06-14 12:37:10 UTC
(In reply to Yaniv Kaul from comment #2)
> Ravi, it's a low severity BZ - why is it marked for 4.2.4?

We were not sure how severe at the moment we targeted it, I've just moved it to 4.2.5

Comment 4 Sandro Bonazzola 2018-07-31 15:30:04 UTC
This bugzilla is included in oVirt 4.2.5 release, published on July 30th 2018.

Since the problem described in this bug report should be
resolved in oVirt 4.2.5 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.