delorean: Get the non-root user UI fails after user is created

Bug #1791053 reported by Sorin Sbarnea
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
High
Quique Llorente

Bug Description

01:04:01 TASK [provision/remote : Create non-root user] *********************************
01:04:01 task path: /home/jenkins/workspace/tripleo-quickstart-extras-gate-master-delorean-quick-basic/tripleo-quickstart/roles/provision/remote/tasks/main.yml:41
01:04:01 Thursday 06 September 2018 00:04:01 +0000 (0:00:02.242) 0:00:13.513 ****
01:04:02 ok: [172.19.2.76] => {"append": false, "changed": false, "comment": "", "group": 1000, "home": "/home/stack", "move_home": false, "name": "stack", "shell": "/bin/bash", "state": "present", "uid": 1000}
01:04:02
01:04:02 TASK [provision/remote : Get the non-root user UID] ****************************
01:04:02 task path: /home/jenkins/workspace/tripleo-quickstart-extras-gate-master-delorean-quick-basic/tripleo-quickstart/roles/provision/remote/tasks/main.yml:48
01:04:02 Thursday 06 September 2018 00:04:02 +0000 (0:00:00.632) 0:00:14.145 ****
01:04:02 fatal: [172.19.2.76]: FAILED! => {"changed": false, "cmd": ["id", "stack", "-u"], "delta": "0:00:00.003534", "end": "2018-09-06 01:04:02.974102", "msg": "non-zero return code", "rc": 1, "start": "2018-09-06 01:04:02.970568", "stderr": "id: stack: no such user", "stderr_lines": ["id: stack: no such user"], "stdout": "", "stdout_lines": []}

Found on https://ci.centos.org/job/tripleo-quickstart-extras-gate-master-delorean-quick-basic/341/consoleFull

This bug is interesting because the task before successfully creates the user `stack` but getting its id fails on the second task. To my knowledge it was not possible to create a user without an id on linux.

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

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

Changed in tripleo:
assignee: nobody → Sorin Sbarnea (ssbarnea)
status: New → In Progress
Sorin Sbarnea (ssbarnea)
Changed in tripleo:
importance: Undecided → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on tripleo-quickstart (master)

Change abandoned by Sorin Sbarnea (<email address hidden>) on branch: master
Review: https://review.openstack.org/600407

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

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

Changed in tripleo:
assignee: Sorin Sbarnea (ssbarnea) → Quique Llorente (quiquell)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on tripleo-quickstart (master)

Change abandoned by Sorin Sbarnea (<email address hidden>) on branch: master
Review: https://review.openstack.org/600730
Reason: https://review.openstack.org/#/c/602015 is better.

tags: removed: promotion-blocker
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-quickstart (master)

Reviewed: https://review.openstack.org/602015
Committed: https://git.openstack.org/cgit/openstack/tripleo-quickstart/commit/?id=ff5112cdecea1de56f2ca9dfe7ea4cb98b617508
Submitter: Zuul
Branch: master

commit ff5112cdecea1de56f2ca9dfe7ea4cb98b617508
Author: Quique Llorente <email address hidden>
Date: Wed Sep 12 14:20:15 2018 +0200

    Retry id command for stack user

    Sometimes the stack user is not yet present, we add a retry to overcome
    it.

    Change-Id: I8c39ea710034a6dbe5ab910afa8230c2fd1ecc37
    Closes-Bug: 1791053

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-quickstart 2.1.1

This issue was fixed in the openstack/tripleo-quickstart 2.1.1 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.