os_ceilometer fails without swift installed

Bug #1721554 reported by Ondrej Vasko on 2017-10-05
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

Hello OSA,

I am doing upgrade from Ocata (stable/ocata) to Pike (stable/pike) manually by using official guide [1].

When running last step - `openstack-ansible setup-openstack.yml`, the playbook for `os_ceilometer` fails because it has not defined variable `swift_system_comment`.

Now this fails in my environment, where I do not have OS Swift installed but on the other hand I have defined `swift_ceilometer_enabled: false` in `user_variables.yml`.

The play that fails is located in file `os_ceilometer/tasks/ceilometer_pre_install.yml` which in my opinion should respect setting of `swift_ceilometer_enabled`, or if it is necessary to do this task, it should include variables needed for that.

Edit: pasted error log

TASK [os_ceilometer : Create the swift system user and add to ceilometer group] **************************************************************************************************************************************************************
Thursday 05 October 2017 14:12:26 +0200 (0:00:03.248) 1:49:14.169 ******
fatal: [controller2_ceilometer_api_container-535462bf]: FAILED! => {"failed": true, "msg": "the field 'args' has an invalid value, which appears to include a variable that is undefined. The error was: 'swift_system_comment' is undefined\n\nThe error appears to have been in '/etc/ansible/roles/os_ceilometer/tasks/ceilometer_pre_install.yml': line 32, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Create the swift system user and add to ceilometer group\n ^ here\n"}

[1] https://docs.openstack.org/openstack-ansible/pike/user/manual-upgrade.html

description: updated
Changed in openstack-ansible:
importance: Undecided → Low
importance: Low → Medium

We have sadly not enough resources to triage this bug, and confirm it.

I am adding this bug to the list of things to do for telemetry in openstack-ansible.

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

Other bug subscribers