Fails to manage groups the nova user belongs to

Bug #1350980 reported by Mathieu Gagné
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
puppet-ceilometer
Fix Released
Undecided
Chris Hoge
Icehouse
Fix Released
Undecided
Unassigned

Bug Description

We are no longer managing the nova user in puppet-nova.

The following error occurs when provisioning ceilometer::agent::compute:

Error: Could not set groups on user[ceilometer]: Execution of '/usr/sbin/usermod -G libvirtd,nova ceilometer' returned 6: usermod: group 'libvirtd' does not exist
usermod: group 'nova' does not exist
Error: /User[ceilometer]/groups: change from to libvirtd,nova failed: Could not set groups on user[ceilometer]: Execution of '/usr/sbin/usermod -G libvirtd,nova ceilometer' returned 6: usermod: group 'libvirtd' does not exist
usermod: group 'nova' does not exist

The nova user is provided by nova-common. We should depend on this package if we want to make sure the user is present.

Chris Hoge (hoge)
Changed in puppet-ceilometer:
assignee: nobody → Chris Hoge (hoge)
status: New → Confirmed
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to puppet-ceilometer (master)

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on puppet-ceilometer (master)

Change abandoned by Chris Hoge (<email address hidden>) on branch: master
Review: https://review.openstack.org/115828

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to puppet-ceilometer (master)

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on puppet-ceilometer (master)

Change abandoned by Chris Hoge (<email address hidden>) on branch: master
Review: https://review.openstack.org/119200
Reason: Abandoned in favor of https://review.openstack.org/#/c/125530/

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

Reviewed: https://review.openstack.org/125530
Committed: https://git.openstack.org/cgit/stackforge/puppet-ceilometer/commit/?id=08fc9d9159cd9eb0830d550abb1058bc2b9b5759
Submitter: Jenkins
Branch: master

commit 08fc9d9159cd9eb0830d550abb1058bc2b9b5759
Author: Chris Hoge <email address hidden>
Date: Wed Oct 1 20:10:50 2014 -0500

    Ensure nova-common is installed before ceilometer

    Ceilometer depends on the nova user and group being
    present. This change adds a dependency to nova-common
    to ensure that packging will handle the user before
    the ceilometer compute agent tries to add user ceilometer
    to the nova group.

    Fixes bug 1350980

    Change-Id: Iaf950c4a487b4b25c9053d59cab4fa45a1f7390b

Changed in puppet-ceilometer:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to puppet-ceilometer (stable/icehouse)

Fix proposed to branch: stable/icehouse
Review: https://review.openstack.org/126985

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to puppet-ceilometer (stable/icehouse)

Reviewed: https://review.openstack.org/126985
Committed: https://git.openstack.org/cgit/stackforge/puppet-ceilometer/commit/?id=f8fd9a713282f2228799d89c1bc614f04b488ef2
Submitter: Jenkins
Branch: stable/icehouse

commit f8fd9a713282f2228799d89c1bc614f04b488ef2
Author: Chris Hoge <email address hidden>
Date: Wed Oct 1 20:10:50 2014 -0500

    Ensure nova-common is installed before ceilometer

    Ceilometer depends on the nova user and group being
    present. This change adds a dependency to nova-common
    to ensure that packging will handle the user before
    the ceilometer compute agent tries to add user ceilometer
    to the nova group.

    Fixes bug 1350980

    (cherry picked from commit 08fc9d9159cd9eb0830d550abb1058bc2b9b5759)

    Conflicts:
     spec/classes/ceilometer_agent_compute_spec.rb

    Change-Id: I26dd4e8e4172d777a04d99c7d23c1861714ca079

tags: added: in-stable-icehouse
Mathieu Gagné (mgagne)
Changed in puppet-ceilometer:
milestone: none → 4.0.0
milestone: 4.0.0 → 5.0.0
status: Fix Committed → Fix Released
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.