Bug 1590336 - Can't set password via miq_app_password variable
Summary: Can't set password via miq_app_password variable
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-ansible-collection
Classification: oVirt
Component: manageiq
Version: 1.1.6
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ovirt-4.2.5
: ---
Assignee: Ondra Machacek
QA Contact: Ravi Nori
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-06-12 12:47 UTC by Petr Kubica
Modified: 2018-07-31 15:30 UTC (History)
2 users (show)

Fixed In Version: ovirt-ansible-manageiq-1.1.11
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-07-31 15:30:04 UTC
oVirt Team: Infra
Embargoed:
rule-engine: ovirt-4.2+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github oVirt ovirt-ansible-manageiq pull 58 0 None None None 2018-06-21 13:29:20 UTC

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.


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