Failed to create: /home/stack/config-download, error: [Errno 13] Permission denied: '/home/stack'

Bug #1915355 reported by Harald Jensås
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
In Progress
Medium
Rabi Mishra

Bug Description

(undercloud) [centos@undercloud ~]$ openstack overcloud config download \
> --name overcloud \
> --config-dir config-download

2021-02-11 00:18:58.800123 | fa163e98-9cfa-00fb-3ff5-00000000000e | FATAL | Get config | localhost | error={"changed": false, "error": "Failed to create: /home/stack/config-download, error: [Errno 13] Permission denied: '/home/stack'", "msg": "Error downloading config for overcloud: Failed to create: /home/stack/config-download, error: [Errno 13] Permission denied: '/home/stack'", "success": false}

Using 'centos' user, not the stack user. /home/stack does not exist.

Issue seems to be that 'work_dir' is'nt set in[0], so it uses the default[1].

[0] https://opendev.org/openstack/tripleo-ansible/src/branch/master/tripleo_ansible/playbooks/cli-config-download-export.yaml#L55-L60
[1] https://opendev.org/openstack/tripleo-ansible/src/branch/master/tripleo_ansible/ansible_plugins/modules/tripleo_config_download.py#L60

Revision history for this message
Rabi Mishra (rabi) wrote :
Changed in tripleo:
status: Triaged → In Progress
assignee: nobody → Rabi Mishra (rabi)
Changed in tripleo:
milestone: wallaby-3 → wallaby-rc1
Changed in tripleo:
milestone: wallaby-rc1 → xena-1
Changed in tripleo:
milestone: xena-1 → xena-2
Changed in tripleo:
milestone: xena-2 → xena-3
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.