All validations tests are failing with a stderr "sudo: no tty present and no askpass program specified\n" when running them through Mistral

Bug #1716625 reported by Gael Chamoulaud
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
High
Florian Fuchs

Bug Description

Since tripleo-common commit [1], all validations tests are failing:

(undercloud) [stack@undercloud ~]$ openstack workflow execution create -f value -c ID tripleo.validations.v1.run_validation '{"validation_name": "ceilometerdb-size"}'
3e231516-c691-4e5c-bb17-9be6e7f110b1

(undercloud) [stack@undercloud ~]$ mistral execution-get-output "3e231516-c691-4e5c-bb17-9be6e7f110b1"
{
    "status": "FAILED",
    "result": null,
    "stderr": "sudo: no tty present and no askpass program specified\n",
    "stdout": ""
}

[1] - https://github.com/openstack/tripleo-common/commit/34713f3b52f4da950d565f7ad490f03d55706b82

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-common (master)

Fix proposed to branch: master
Review: https://review.openstack.org/503002

Changed in tripleo:
assignee: nobody → Florian Fuchs (flo-fuchs)
status: New → In Progress
Changed in tripleo:
milestone: none → queens-1
importance: Undecided → High
tags: added: pike-backport-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-common (master)

Reviewed: https://review.openstack.org/503002
Committed: https://git.openstack.org/cgit/openstack/tripleo-common/commit/?id=57c9bda9bdbb67445e1bfd33ebdd686314edbc48
Submitter: Jenkins
Branch: master

commit 57c9bda9bdbb67445e1bfd33ebdd686314edbc48
Author: Florian Fuchs <email address hidden>
Date: Tue Sep 12 15:50:18 2017 +0200

    Fix chown command in sudoers file

    The tripleo-common sudoers file allows an owner change on the
    validations identity file. The command is only allowed with the `-h`
    option, but this option isn't used everywhere in the code. This breaks
    validation runs started through Mistral.

    This patch changes the tripleo-common sudoers file to allow the chmod
    command with and without the `-h` option.

    Change-Id: I8770fc356a46a7a13ba3823a5d157104d08c087a
    Closes-Bug: #1716625

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-common (stable/pike)

Fix proposed to branch: stable/pike
Review: https://review.openstack.org/509712

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-common (stable/pike)

Reviewed: https://review.openstack.org/509712
Committed: https://git.openstack.org/cgit/openstack/tripleo-common/commit/?id=3d66de50b637caf1127de1746de4403e903570ea
Submitter: Jenkins
Branch: stable/pike

commit 3d66de50b637caf1127de1746de4403e903570ea
Author: Florian Fuchs <email address hidden>
Date: Tue Sep 12 15:50:18 2017 +0200

    Fix chown command in sudoers file

    The tripleo-common sudoers file allows an owner change on the
    validations identity file. The command is only allowed with the `-h`
    option, but this option isn't used everywhere in the code. This breaks
    validation runs started through Mistral.

    This patch changes the tripleo-common sudoers file to allow the chmod
    command with and without the `-h` option.

    Change-Id: I8770fc356a46a7a13ba3823a5d157104d08c087a
    Closes-Bug: #1716625
    (cherry picked from commit 57c9bda9bdbb67445e1bfd33ebdd686314edbc48)

tags: added: in-stable-pike
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-common 8.0.0

This issue was fixed in the openstack/tripleo-common 8.0.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-common 7.6.2

This issue was fixed in the openstack/tripleo-common 7.6.2 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.