Bifrost failing because of missing SUDO_USER

Bug #1674483 reported by Mohammed Naser
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
kolla
Fix Released
Critical
Michal Nasiadka

Bug Description

http://logs.openstack.org/01/446701/5/check/gate-kolla-dsvm-build-centos-source-centos-7/043bee9/console.html#_2017-03-20_21_37_58_316183

The building of Bifrost container seems to fail because ansible_env.SUDO_USER is undefined:

the field 'args' has an invalid value, which appears to include a variable that is undefined. The error was: {{ ansible_env.SUDO_USER }}: 'dict object' has no attribute 'SUDO_USER'

https://github.com/openstack/bifrost/blob/36e32ecdc26035ecd853f830b30d42827662a68a/playbooks/install.yaml#L11

Revision history for this message
Pavlo Shchelokovskyy (pshchelo) wrote :

this is pretty strange as this exact playbook forces all tasks to be run under 'become' [0] so this var should be there after facts gathering

are you somehow forcing become off when running this playbook?

[0] http://git.openstack.org/cgit/openstack/bifrost/tree/playbooks/install.yaml#n4

Revision history for this message
Mohammed Naser (mnaser) wrote :

I think that is disappearing because it is using the "localhost" connection plugin which might not use it? Could it be related to the Ansible version which is installed as part of the virtual environment that's already there?

Steven Dake (sdake)
Changed in kolla:
status: New → Confirmed
importance: Undecided → Critical
milestone: none → pike-1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to kolla (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/448666

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to kolla (master)

Reviewed: https://review.openstack.org/448666
Committed: https://git.openstack.org/cgit/openstack/kolla/commit/?id=f5a9c8c71c7b663ea286fd6779997053713a05fb
Submitter: Jenkins
Branch: master

commit f5a9c8c71c7b663ea286fd6779997053713a05fb
Author: Mohammed Naser <email address hidden>
Date: Wed Mar 22 12:19:17 2017 -0400

    Gate fixes: disable bifrost-base, fix ubuntu base image

    At the moment, Bifrost has caused a few failures which have
    blocked the gate, the latest of which is documented in the
    bug listed below (alongside with another one that caused another
    gate failure).

    In order to let patches flow though, we're disabling it
    from the gate build checks as agreed on the Kolla meeting on
    the 22nd of March 2017. Also, the Ubuntu base image seems
    to have a missing /etc/protocols which is created by the
    netbase package. This has been added to the base images.

    There are issues with subunit getting a very large log all
    at once which causes failures that is causing issues. We
    also enable logging to a local folder which will make
    troubleshooting image builds easier to read and avoid
    sending a large blob of data to subunit.

    Change-Id: Iee1f8b06ec1066015ea5c6a6a245723402e35a6a
    Related-Bug: #1674483
    Related-Bug: #1673776
    Closes-Bug: #1675101

Changed in kolla:
milestone: pike-2 → pike-3
Changed in kolla:
milestone: pike-3 → pike-rc1
Changed in kolla:
milestone: pike-rc1 → queens-1
Changed in kolla:
milestone: queens-2 → queens-3
Changed in kolla:
milestone: queens-3 → queens-rc1
Changed in kolla:
milestone: queens-rc1 → queens-rc2
Changed in kolla:
milestone: queens-rc2 → rocky-1
Revision history for this message
Michal Nasiadka (mnasiadka) wrote :

Seems this issue was fixed on 4th of April - https://github.com/openstack/bifrost/commit/d29a371e4a7618dbe6b2727dc2262e3f1bcc7acd
Will take this and try to resolve.

Changed in kolla:
assignee: nobody → Michal Nasiadka (mnasiadka)
Changed in kolla:
status: Confirmed → Fix Released
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.