Ceilometer fails to deploy when enable_swift=yes

Bug #1770415 reported by Paul Bourke
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla-ansible
Expired
Low
Unassigned

Bug Description

tools/kolla-ansible -i ~/multinode deploy --tags haproxy,mariadb,rabbitmq,keystone,ceilometer,gnocchi -e enable_swift=yes

TASK [ceilometer : Associate the ResellerAdmin role and ceilometer user] ***************************************************************************
fatal: [control01-upstream]: FAILED! => {"changed": false, "msg": "Role ResellerAdmin is not valid"}

caoyuan (cao-yuan)
Changed in kolla:
assignee: nobody → caoyuan (cao-yuan)
affects: kolla → kolla-ansible
Changed in kolla-ansible:
assignee: caoyuan (cao-yuan) → nobody
caoyuan (cao-yuan)
Changed in kolla-ansible:
assignee: nobody → caoyuan (cao-yuan)
Revision history for this message
caoyuan (cao-yuan) wrote :

you missing run swift role,
tools/kolla-ansible -i ~/multinode deploy --tags haproxy,mariadb,rabbitmq,keystone,ceilometer,gnocchi,swift -e enable_swift=yes can fix the error.

but we recommand to enable swift in /etc/kolla/globals.yml

Changed in kolla-ansible:
assignee: caoyuan (cao-yuan) → nobody
caoyuan (cao-yuan)
Changed in kolla-ansible:
status: New → Invalid
Revision history for this message
Paul Bourke (pauldbourke) wrote :

The issue is where I don't want to have Swift deployed. Arguably then I should have enable_swift set to False :) But it's still a hard to diagnose error that we should probably code against.

Changed in kolla-ansible:
status: Invalid → New
importance: Undecided → Low
status: New → Triaged
Revision history for this message
Tom Fifield (fifieldt) wrote :

Hi Paul, did you still want to work on this bug?

tags: added: ceilometer swift
Changed in kolla-ansible:
status: Triaged → Incomplete
Revision history for this message
Tom Fifield (fifieldt) wrote :

Sorry, misread as assigned to you, please ignore.

Changed in kolla-ansible:
status: Incomplete → Confirmed
Revision history for this message
Maksim Malchuk (mmalchuk) wrote :

OS: Ubuntu 20.04, Release: stable/xena

# egrep "enable_(ceilometer|swift)" /opt/kayobe/src/kayobe-config/etc/kolla/globals.yml
enable_ceilometer: true
enable_ceilometer_horizon_policy_file: true
enable_ceilometer_ipmi: true
enable_swift: true
enable_swift_s3api: true

and in log vith -vvvv

TASK [ceilometer : Associate the ResellerAdmin role and ceilometer user] *******
changed: [ctrl0] => {
    "action": "os_user_role",
    "changed": true,
    "invocation": {
        "module_args": {
            "api_timeout": null,
            "auth": {
                "auth_url": "https://192.168.44.40:35357",
                "password": "qNueRK8H16yOc7YyF4Pw5imii6Da7AbKcKzObXtE",
                "system_scope": "all",
                "user_domain_name": "Default",
                "username": "admin"
            },
            "auth_type": null,
            "availability_zone": null,
            "ca_cert": "/etc/ssl/certs/ca-certificates.crt",
            "cacert": "/etc/ssl/certs/ca-certificates.crt",
            "client_cert": null,
            "client_key": null,
            "domain": null,
            "endpoint_type": "admin",
            "group": null,
            "interface": "admin",
            "project": "service",
            "region_name": "RegionOne",
            "role": "ResellerAdmin",
            "sdk_log_level": "INFO",
            "sdk_log_path": null,
            "state": "present",
            "timeout": 180,
            "user": "ceilometer",
            "validate_certs": null,
            "wait": true
        }
    }
}

everything deployed correctly. looks like you have incorrect configuration.

Changed in kolla-ansible:
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for kolla-ansible because there has been no activity for 60 days.]

Changed in kolla-ansible:
status: Incomplete → Expired
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.