freezer-scheduler have no permission to create jobs_dir

Bug #2031953 reported by howard lee
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla
In Progress
Medium
howard lee
kolla-ansible
Status tracked in Bobcat
Antelope
Confirmed
Medium
Unassigned
Bobcat
In Progress
Medium
howard lee
Xena
Confirmed
Medium
Unassigned
Yoga
Confirmed
Medium
Unassigned
Zed
Confirmed
Medium
Unassigned

Bug Description

When deploying freezer using kolla-ansible, the following error is reported in the freezer-scheduler log:

2023-08-19 10:22:03.740 7 CRITICAL freezer-scheduler [-] Unhandled error: Exception: Error while creating directory /etc/freezer/scheduler/conf.d: [Errno 13] Permission denied: '/etc/freezer/scheduler'
2023-08-19 10:22:03.740 7 ERROR freezer-scheduler Traceback (most recent call last):
2023-08-19 10:22:03.740 7 ERROR freezer-scheduler File "/var/lib/kolla/venv/lib64/python3.9/site-packages/freezer/utils/utils.py", line 66, in create_dir
2023-08-19 10:22:03.740 7 ERROR freezer-scheduler os.makedirs(expanded_dir_name)
2023-08-19 10:22:03.740 7 ERROR freezer-scheduler File "/usr/lib64/python3.9/os.py", line 215, in makedirs
2023-08-19 10:22:03.740 7 ERROR freezer-scheduler makedirs(head, exist_ok=exist_ok)
2023-08-19 10:22:03.740 7 ERROR freezer-scheduler File "/usr/lib64/python3.9/os.py", line 225, in makedirs
2023-08-19 10:22:03.740 7 ERROR freezer-scheduler mkdir(name, mode)
2023-08-19 10:22:03.740 7 ERROR freezer-scheduler PermissionError: [Errno 13] Permission denied: '/etc/freezer/scheduler'
2023-08-19 10:22:03.740 7 ERROR freezer-scheduler
2023-08-19 10:22:03.740 7 ERROR freezer-scheduler During handling of the above exception, another exception occurred:
2023-08-19 10:22:03.740 7 ERROR freezer-scheduler
2023-08-19 10:22:03.740 7 ERROR freezer-scheduler Traceback (most recent call last):
2023-08-19 10:22:03.740 7 ERROR freezer-scheduler File "/var/lib/kolla/venv/bin/freezer-scheduler", line 8, in <module>
2023-08-19 10:22:03.740 7 ERROR freezer-scheduler sys.exit(main())
2023-08-19 10:22:03.740 7 ERROR freezer-scheduler File "/var/lib/kolla/venv/lib64/python3.9/site-packages/freezer/scheduler/freezer_scheduler.py", line 231, in main
2023-08-19 10:22:03.740 7 ERROR freezer-scheduler freezer_utils.create_dir(CONF.jobs_dir, do_log=False)
2023-08-19 10:22:03.740 7 ERROR freezer-scheduler File "/var/lib/kolla/venv/lib64/python3.9/site-packages/freezer/utils/utils.py", line 74, in create_dir
2023-08-19 10:22:03.740 7 ERROR freezer-scheduler raise Exception(err)
2023-08-19 10:22:03.740 7 ERROR freezer-scheduler Exception: Error while creating directory /etc/freezer/scheduler/conf.d: [Errno 13] Permission denied: '/etc/freezer/scheduler'
2023-08-19 10:22:03.740 7 ERROR freezer-scheduler

howard lee (howardlee)
Changed in kolla-ansible:
assignee: nobody → howard lee (howardlee)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla-ansible (master)
Changed in kolla-ansible:
status: New → In Progress
Changed in kolla-ansible:
importance: Undecided → Medium
howard lee (howardlee)
Changed in kolla:
assignee: nobody → howard lee (howardlee)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/kolla/+/892643

Changed in kolla:
status: New → In Progress
Changed in kolla:
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to kolla (master)

Reviewed: https://review.opendev.org/c/openstack/kolla/+/892643
Committed: https://opendev.org/openstack/kolla/commit/709d27ba3706ac15cefa76172ee4c7317d1d63aa
Submitter: "Zuul (22348)"
Branch: master

commit 709d27ba3706ac15cefa76172ee4c7317d1d63aa
Author: howardlee <email address hidden>
Date: Thu Aug 24 15:03:33 2023 +0800

    create parent dir of jobs_dir for freezer-scheduer

    Commit [1] deletes the relevant operation permission of the
    /etc/freezer directory, causing the freezer-scheduler to have
    no permission when creating the jobs_dir directory in the
    /etc/freezer directory. This patch creates partent dir of
    jobs_dir for freezer-scheduler, so that, freezer-scheduler
    process can startup successfully.

    [1] https://review.opendev.org/c/openstack/kolla/+/722102

    Related-Bug: #2031953
    Change-Id: I9c7fea3e0f70ff2e15394e99e26d21c548b95b16

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.