Stack user can't be deleted

Bug #1650653 reported by Honza Pokorny
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo-quickstart
Fix Released
Undecided
Attila Darazs

Bug Description

When using "--teardown all", the stack user isn't properly deleted. The "userdel" command fails.

TASK [provision/teardown : Remove non-root user account] ***********************
task path: /root/tripleo-quickstart/roles/provision/teardown/tasks/main.yml:48
Friday 16 December 2016 12:55:36 -0500 (0:00:02.790) 0:00:22.469 *******
fatal: [dell-pe-fm120-1a.rhts.eng.bos.redhat.com]: FAILED! => {"changed": false, "failed": true, "msg": "userdel: user stack is currently used by process 8260\n", "name": "stack", "rc": 8}

The workaround is to run "userdel stack" twice manually before retrying.

This is latest master, using --release master.

Revision history for this message
Attila Darazs (adarazs) wrote :

Hello Honza,

I checked the relevant part of this role and it deals with stopping all the processes just before this. so to know what really happens I would need the full logs for the run that doesn't succeed, not just this failed task.

My suspicion is that the machine you're running on is slow and we only wait 5 seconds for the processes to exit. I'll increase this to 15 by waiting 3 seconds between each check.

Changed in tripleo-quickstart:
assignee: nobody → Attila Darazs (adarazs)
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/426205

Changed in tripleo-quickstart:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-quickstart (master)

Reviewed: https://review.openstack.org/426205
Committed: https://git.openstack.org/cgit/openstack/tripleo-quickstart/commit/?id=c3fd60b67ae72603186e86e2443e08352b0f9687
Submitter: Jenkins
Branch: master

commit c3fd60b67ae72603186e86e2443e08352b0f9687
Author: Attila Darazs <email address hidden>
Date: Fri Jan 27 13:11:07 2017 +0100

    teardown: wait longer for processes to exit

    Increase the wait between retries from 1 to 3 seconds before the
    non_root_user gets deleted to avoid occasional errors.

    Closes-bug: #1650653
    Change-Id: I726dc1b12829bf613a2cce038f2fa98fae62b3bf

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

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