os_ceilometer fails without swift installed

Bug #1721554 reported by Ondrej Vasko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack-Ansible
Fix Released
Medium
Mohammed Naser

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
Revision history for this message
Jean-Philippe Evrard (jean-philippe-evrard) wrote :

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

Revision history for this message
Jean-Philippe Evrard (jean-philippe-evrard) wrote :

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

Revision history for this message
Jean-Philippe Evrard (jean-philippe-evrard) wrote :
Changed in openstack-ansible:
assignee: nobody → Mohammed Naser (mnaser)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-ansible-os_ceilometer (master)

Fix proposed to branch: master
Review: https://review.openstack.org/541374

Changed in openstack-ansible:
status: New → In Progress
Revision history for this message
Ondrej Vasko (ondrej.vasko) wrote : [Autoreply] [Bug 1721554] Re: os_ceilometer fails without swift installed

dobrý deň,

ďakujem za Váš e-mail, momentálne som mimo kancelárie. Vrátim sa
dňa 08.02.2018. V prípade potreby kontaktujte, prosím, obchodné
oddelenie (<email address hidden>, +421 2 5292 6151) alebo technickú podporu
(<email address hidden>, +421 2 2129 0222).

Thank you for your message. I am currently out of the office. I will
be returning on 08.02.2018. If you need assistance before then, you
may contact sales dpt. (<email address hidden>, +421 2 5292 6151) or
techsupport (<email address hidden>, +421 2 2129 0222).

** Changed in: openstack-ansible
     Assignee: (unassigned) => Mohammed Naser (mnaser)

--
You received this bug notification because you are subscribed to the bug
report.
https://bugs.launchpad.net/bugs/1721554

Title:
  os_ceilometer fails without swift installed

Status in openstack-ansible:
  In Progress

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/openstack-ansible/+bug/1721554/+subscriptions

Revision history for this message
Ondrej Vasko (ondrej.vasko) wrote :

dobrý deň,

ďakujem za Váš e-mail, momentálne som mimo kancelárie. Vrátim sa
dňa 08.02.2018. V prípade potreby kontaktujte, prosím, obchodné
oddelenie (<email address hidden>, +421 2 5292 6151) alebo technickú podporu
(<email address hidden>, +421 2 2129 0222).

Thank you for your message. I am currently out of the office. I will
be returning on 08.02.2018. If you need assistance before then, you
may contact sales dpt. (<email address hidden>, +421 2 5292 6151) or
techsupport (<email address hidden>, +421 2 2129 0222).

Fix proposed to branch: master
Review: https://review.openstack.org/541374

** Changed in: openstack-ansible
       Status: New => In Progress

--
You received this bug notification because you are subscribed to the bug
report.
https://bugs.launchpad.net/bugs/1721554

Title:
  os_ceilometer fails without swift installed

Status in openstack-ansible:
  In Progress

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/openstack-ansible/+bug/1721554/+subscriptions

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-ansible-os_ceilometer (master)

Reviewed: https://review.openstack.org/541374
Committed: https://git.openstack.org/cgit/openstack/openstack-ansible-os_ceilometer/commit/?id=0772d34100bd48e055442f4696b94d9f08a8e6a7
Submitter: Zuul
Branch: master

commit 0772d34100bd48e055442f4696b94d9f08a8e6a7
Author: Mohammed Naser <email address hidden>
Date: Tue Feb 6 12:00:13 2018 -0500

    Skip creation of Swift user if Ceilometer support is disabled

    This patch skips the creation of a Swift user if the integration
    for Swift in Ceilometer is disabled.

    Change-Id: Ic5b619ee7f2dd0bffe018af57d203a980e668760
    Closes-Bug: #1721554

Changed in openstack-ansible:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/openstack-ansible-os_ceilometer 17.0.0.0rc1

This issue was fixed in the openstack/openstack-ansible-os_ceilometer 17.0.0.0rc1 release candidate.

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.