Freezer all-in-one deployment fail

Bug #1961430 reported by Marc DANO
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Backup/Restore and DR (Freezer)
New
Undecided
Unassigned
kolla-ansible
New
Undecided
Unassigned

Bug Description

Hello,

I am trying to deploy an all-in-one Openstack with Freezer, but kolla-ansible deploy fail.

** How to reproduce it **
follow https://docs.openstack.org/kolla-ansible/xena/user/quickstart.html
set enable_freezer: "yes" in globals.yml
use all-in-one inventory

** Environment **
Ubuntu 20.04.3 LTS (Focal Fossa)
kolla-ansible@stable/xena

TASK [freezer : Copying over freezer confs] ************************************
task path: /home/ubuntu/kolla/share/kolla-ansible/ansible/roles/freezer/tasks/config.yml:65
<localhost> ESTABLISH LOCAL CONNECTION FOR USER: ubuntu
<localhost> EXEC /bin/sh -c 'echo ~ubuntu && sleep 0'
<localhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/ubuntu/.ansible/tmp `"&& mkdir "` echo /home/ubuntu/.ansible/tmp/ansible-tmp-1645199872.991953-224943-59943559414164 `" && echo ansible-tmp-1645199872.991953-224943-59943559414164="` echo /home/ubuntu/.ansible/tmp/ansible-tmp-1645199872.991953-224943-59943559414164 `" ) && sleep 0'
Using module file /home/ubuntu/kolla/lib/python3.8/site-packages/ansible/modules/stat.py
Pipelining is enabled.
<localhost> EXEC /bin/sh -c 'sudo -H -S -n -u root /bin/sh -c '"'"'echo BECOME-SUCCESS-bvuavharilqgqsapykbdizxqrewdwqvf ; /usr/bin/python3'"'"' && sleep 0'
Using module file /home/ubuntu/kolla/lib/python3.8/site-packages/ansible/modules/file.py
Pipelining is enabled.
<localhost> EXEC /bin/sh -c 'sudo -H -S -n -u root /bin/sh -c '"'"'echo BECOME-SUCCESS-huenqajtdxwlebojpsxqxselbowmgkyn ; /usr/bin/python3'"'"' && sleep 0'
<localhost> EXEC /bin/sh -c 'rm -f -r /home/ubuntu/.ansible/tmp/ansible-tmp-1645199872.991953-224943-59943559414164/ > /dev/null 2>&1 && sleep 0'
ok: [localhost] => (item={'key': 'freezer-api', 'value': {'container_name': 'freezer_api', 'group': 'freezer-api', 'enabled': True, 'image': 'quay.io/openstack.kolla/ubuntu-source-freezer-api:xena', 'volumes': ['/etc/kolla/freezer-api/:/var/lib/kolla/config_files/:ro', '/etc/localtime:/etc/localtime:ro', '/etc/timezone:/etc/timezone:ro', 'freezer:/var/lib/freezer/', 'kolla_logs:/var/log/kolla/', ''], 'dimensions': {}, 'haproxy': {'freezer_api': {'enabled': 'yes', 'mode': 'http', 'external': False, 'port': '9090'}, 'freezer_api_external': {'enabled': 'yes', 'mode': 'http', 'external': True, 'port': '9090'}}}}) => {
    "ansible_loop_var": "item",
    "changed": false,
    "checksum": "50bce79fc14d4d08b1c901a5d4f4cf574e4ab9d3",
    "dest": "/etc/kolla/freezer-api/freezer.conf",
    "diff": {
        "after": {
            "path": "/etc/kolla/freezer-api/freezer.conf"
        },
        "before": {
            "path": "/etc/kolla/freezer-api/freezer.conf"
        }
    },
    "gid": 0,
    "group": "root",
    "invocation": {
        "module_args": {
            "_diff_peek": null,
            "_original_basename": "source",
            "access_time": null,
            "access_time_format": "%Y%m%d%H%M.%S",
            "attributes": null,
            "dest": "/etc/kolla/freezer-api/freezer.conf",
            "follow": true,
            "force": false,
            "group": null,
            "mode": "0660",
            "modification_time": null,
            "modification_time_format": "%Y%m%d%H%M.%S",
            "owner": null,
            "path": "/etc/kolla/freezer-api/freezer.conf",
            "recurse": false,
            "selevel": null,
            "serole": null,
            "setype": null,
            "seuser": null,
            "src": null,
            "state": "file",
            "unsafe_writes": false
        }
    },
    "item": {
        "key": "freezer-api",
        "value": {
            "container_name": "freezer_api",
            "dimensions": {},
            "enabled": true,
            "group": "freezer-api",
            "haproxy": {
                "freezer_api": {
                    "enabled": "yes",
                    "external": false,
                    "mode": "http",
                    "port": "9090"
                },
                "freezer_api_external": {
                    "enabled": "yes",
                    "external": true,
                    "mode": "http",
                    "port": "9090"
                }
            },
            "image": "quay.io/openstack.kolla/ubuntu-source-freezer-api:xena",
            "volumes": [
                "/etc/kolla/freezer-api/:/var/lib/kolla/config_files/:ro",
                "/etc/localtime:/etc/localtime:ro",
                "/etc/timezone:/etc/timezone:ro",
                "freezer:/var/lib/freezer/",
                "kolla_logs:/var/log/kolla/",
                ""
            ]
        }
    },
    "mode": "0660",
    "owner": "root",
    "path": "/etc/kolla/freezer-api/freezer.conf",
    "size": 884,
    "state": "file",
    "uid": 0
}
<localhost> EXEC /bin/sh -c 'echo ~ubuntu && sleep 0'
<localhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/ubuntu/.ansible/tmp `"&& mkdir "` echo /home/ubuntu/.ansible/tmp/ansible-tmp-1645199873.6740682-224943-81134017767426 `" && echo ansible-tmp-1645199873.6740682-224943-81134017767426="` echo /home/ubuntu/.ansible/tmp/ansible-tmp-1645199873.6740682-224943-81134017767426 `" ) && sleep 0'
<localhost> EXEC /bin/sh -c 'rm -f -r /home/ubuntu/.ansible/tmp/ansible-tmp-1645199873.6740682-224943-81134017767426/ > /dev/null 2>&1 && sleep 0'
fatal: [localhost]: FAILED! => {
    "msg": "'dict object' has no attribute 'domain_name'"
}

PLAY RECAP *********************************************************************
localhost : ok=240 changed=11 unreachable=0 failed=1 skipped=125 rescued=0 ignored=0

Command failed ansible-playbook -e @/etc/kolla/globals.yml -e @/etc/kolla/passwords.yml -e CONFIG_DIR=/etc/kolla -e kolla_action=deploy /home/ubuntu/kolla/share/kolla-ansible/ansible/site.yml --verbose --verbose --verbose --verbose --inventory ./all-in-one

Thanks

Revision history for this message
Marc DANO (dano-marc0) wrote :
Marc DANO (dano-marc0)
summary: - Freezer deployment failed
+ Freezer all-in-one deployment fail
Revision history for this message
Marc DANO (dano-marc0) wrote :

The issue come from this:

os_project_domain_name = {{ openstack_auth.domain_name }} in https://github.com/openstack/kolla-ansible/blob/master/ansible/roles/freezer/templates/freezer.conf.j2#L19

There is no domain_name attribute but I don't know the value that should be used there.

Revision history for this message
Vince Mulhollon (vincemulhollon) wrote :

Three notes on this bug:

I have a testing cluster and I've been exercising Yoga (a pun?) and I can replicate this bug exactly on a fresh installation of Yoga yesterday afternoon. So this affects Xena and Yoga for sure. Possibly more. For boring dependency reasons beyond the scope of this post I can't install older versions on my test cluster.

I found a storyboard on the topic of changes from domain_name to user_domain_name
https://storyboard.openstack.org/#!/story/2009936

I don't think the freezer project is still alive as if you configure to use ElasticSearch (which is not the default) then Freezer requires a version of Elasticsearch from many years ago last decade.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.