'chown failed: failed to look up user stack'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Fix Released
|
Critical
|
John Fulton |
Bug Description
If you deploy using a separate undercloud with separate overcloud nodes and not using the standalone installer then the ceph deployment fails on the following task:
- name: genereate create_
and looking at the logs in /home/stack/
This bug was introduced by:
https:/
We didn't see it in CI because the standalone hides this issue.
[1]
[CentOS-8.2 - stack@undercloud ceph-ansible]$ head -15 create_
2020-07-15 17:56:49,992 p=399413 u=root n=ansible | [WARNING]: Skipping key (deprecated) in group (overcloud) as it is not a
mapping, it is a <class 'ansible.
2020-07-15 17:56:50,294 p=399413 u=root n=ansible | PLAY [all] *******
2020-07-15 17:56:50,306 p=399413 u=root n=ansible | TASK [create ceph_ansible_
2020-07-15 17:56:50,306 p=399413 u=root n=ansible | Wednesday 15 July 2020 17:56:50 +0000 (0:00:00.026) 0:00:00.026 ********
2020-07-15 17:56:50,643 p=399413 u=root n=ansible | changed: [undercloud]
2020-07-15 17:56:51,089 p=399413 u=root n=ansible | fatal: [oc0-controller-2]: FAILED! => changed=false
gid: 0
group: root
mode: '0755'
msg: 'chown failed: failed to look up user stack'
owner: root
path: /tmp/ceph_
secontext: unconfined_
[CentOS-8.2 - stack@undercloud ceph-ansible]$
Changed in tripleo: | |
assignee: | Juan Badia Payno (jbadiapa) → John Fulton (jfulton-org) |
Changed in tripleo: | |
assignee: | Juan Badia Payno (jbadiapa) → John Fulton (jfulton-org) |
Changed in tripleo: | |
milestone: | victoria-1 → victoria-3 |
This is not something we want to run on all overcloud nodes:
[CentOS-8.2 - stack@undercloud ceph-ansible]$ cat create_ ceph_ansible_ remote_ tmp.yml ansible_ tmp did not exist and was created remote_ tmp on all nodes with necessary ownership ansible_ tmp"
- hosts: all
gather_facts: no
tasks:
# Avoiding the following by creating directory owned by user who will
# SSH into nodes (not root). When root needs to write to this directory
# it will not have permission problems by definition. As per ansible:
# """
# Module remote_tmp /tmp/ceph_
# with a mode of 0700, this may cause issues when running as another user.
# To avoid this, create the remote_tmp dir with the correct permissions
# manually.
# """
- name: create ceph_ansible_
become: true
file:
path: "/tmp/ceph_
owner: "stack"
group: "stack"
mode: "700"
state: directory
[CentOS-8.2 - stack@undercloud ceph-ansible]$