freezer-scheduler auth_url error

Bug #1837028 reported by Alessio Fioravanti
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
OpenStack Backup/Restore and DR (Freezer)
Confirmed
Undecided
Unassigned

Bug Description

Hello,
I'm experiencing a problem scheduling jobs with freezer.
When I create a job and schedule it from Horizon, freezer-scheduler always fails. The error shown in freezer-scheduler.log (from fluentd container) is:

2019-07-17 07:48:23.294 6 WARNING freezer.scheduler.scheduler_job [-] Job 1754ea4157b94acb916f8b9911886792 failed backup action, retrying in 60 seconds
2019-07-17 07:49:24.342 6 ERROR freezer.scheduler.scheduler_job [-] Freezer client error: Critical Error: auth_url required to authenticate. Make sure to export OS_AUTH_URL=http://keystone_url:5000/v3

Openstack and freezer have been installed with Kolla (I added enable_freezer: "yes" in all.yml).

Here some details:

Environment

kolla version: 8.0.1rc1
openstack release: stein
base container: centos
host os: ubuntu 18.04
environment: 1 controller on a dedicated host + 1 compute on a dedicated host

Thanks,
Alessio

Revision history for this message
Eugen Mayer (eugenmayer) wrote (last edit ):

Still happening with Xena. Installed using kolla.

Assuming this is the freezer-schedular checked, /e/k/f-schedular/freezer.conf

Redacted sensible parts

[DEFAULT]
debug = False
log_dir = /var/log/kolla/freezer
client_id = controller
jobs_dir = /etc/freezer/scheduler/conf.d
os_username = admin
os_password = <correct-admin-password>
os_auth_url = http://<correct-fqdn-of-my-controller:35357/v3
os_project_name = admin
os_project_domain_name = Default
os_user_domain_name = Default

the FQDN of my controller was right. Running

curl http://<correct-fqdn-of-my-controller:35357/v3 -v

from within the freezer-scheduler docker-container gets a proper json response.
Also validated the admin password, it is correct.

Compared it with the /etc/kolla/admin-openrc.sh on the deployer. Password matches but maybe one of those is missing here?
export OS_REGION_NAME=RegionOne
export OS_AUTH_PLUGIN=password

no longer affects: ubuntu
Revision history for this message
alpha23 (alpha23) wrote :

Any update on this defect? I'm also affected by the same making Freezer unusable. This defect is almost 3 years old and there has not been one explanatory reply.

Revision history for this message
alpha23 (alpha23) wrote :

Any update on this defect? I'm also affected by the same making Freezer unusable. This defect is almost 4 years old and there has not been one explanatory reply.

Revision history for this message
alpha23 (alpha23) wrote :

Also affects Ussuri and Victoria. Why is this defect left in a state of "undecided" for 4 YEARS?!

Revision history for this message
Phan Duc Anh (anhphantq) wrote :

I also saw this bug in my deployment? Is there any workaround this error?

Changed in freezer:
status: New → Confirmed
Revision history for this message
Vincent (vguillard35) wrote (last edit ):

I was inspired by this git project https://github.com/unlenen/openstack-kolla-freezer in which OS_AUTH_URL docker environment variable is set.
I've hacked the kolla-ansible by adding `environment: "OS_AUTH_URL={{ openstack_auth.auth_url }}/v3"` in kolla_docker module and now freezer-scheduler works.

Here are my snippets:
 . in roles/freezer/tasks/check-containers.yml:
- name: Check freezer containers
  become: true
  kolla_docker:
    action: "compare_container"
    common_options: "{{ docker_common_options }}"
    name: "{{ item.value.container_name }}"
    image: "{{ item.value.image }}"
    volumes: "{{ item.value.volumes | reject('equalto', '') | list }}"
    dimensions: "{{ item.value.dimensions }}"
    environment: "OS_AUTH_URL={{ openstack_auth.auth_url }}/v3"
...
- name: Restart freezer-scheduler container
  vars:
    service_name: "freezer-scheduler"
    service: "{{ freezer_services[service_name] }}"
  become: true
  kolla_docker:
    action: "recreate_or_restart_container"
    common_options: "{{ docker_common_options }}"
    name: "{{ service.container_name }}"
    image: "{{ service.image }}"
    volumes: "{{ service.volumes | reject('equalto', '') | list }}"
    dimensions: "{{ service.dimensions }}"
+ environment: "OS_AUTH_URL={{ openstack_auth.auth_url }}/v3"

 . in roles/freezer/tasks/check-containers.yml:
- name: Check freezer containers
  become: true
  kolla_docker:
    action: "compare_container"
    common_options: "{{ docker_common_options }}"
    name: "{{ item.value.container_name }}"
    image: "{{ item.value.image }}"
    volumes: "{{ item.value.volumes | reject('equalto', '') | list }}"
    dimensions: "{{ item.value.dimensions }}"
+ environment: "OS_AUTH_URL={{ openstack_auth.auth_url }}/v3"

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.