Newton gnocchi installes startup for gnocchi-api even when apache wsgi is setup

Bug #1633205 reported by Ionuț Bîru
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack-Ansible
Fix Released
High
Travis Truman

Bug Description

Os: Ubuntu 14

stable/newton the gnocchi api is set up to use wsgi in apache but the startup file for upstart is also installed automatically. The playbook starts the correct daemons but if the container is rebooted, gnocchi-api is started automatically.

root@ctrl1-gnocchi-container-700ecc67:~# ls /etc/init -lh | grep gnocchi
-rw-r--r-- 1 root root 1.2K Oct 13 18:52 gnocchi-api.conf
-rw-r--r-- 1 root root 1.3K Oct 13 18:52 gnocchi-metricd.conf

gnocchi 1799 0.0 0.3 478948 60512 ? Ss 22:43 0:04 gnocchi-metricd: master process [/openstack/venvs/gnocchi-14.0.0/bin/gnocchi-metricd --log-file=/var/log/gnocchi/gnocchi-metr
gnocchi 1977 0.0 0.3 1110008 50392 ? Sl 22:43 0:01 \_ gnocchi-metricd: master process [/openstack/venvs/gnocchi-14.0.0/bin/gnocchi-metricd --log-file=/var/log/gnocchi/gnocchi-
gnocchi 1981 0.0 0.4 638540 67188 ? Sl 22:43 0:01 \_ gnocchi-metricd: scheduler worker(0)
gnocchi 1983 0.0 0.4 639000 74496 ? Sl 22:43 0:03 \_ gnocchi-metricd: processing worker(0)
gnocchi 1985 0.0 0.4 639000 74668 ? Sl 22:43 0:04 \_ gnocchi-metricd: processing worker(1)
gnocchi 1987 0.0 0.4 639000 74440 ? Sl 22:43 0:04 \_ gnocchi-metricd: processing worker(2)
gnocchi 1990 0.0 0.4 639000 74516 ? Sl 22:43 0:03 \_ gnocchi-metricd: processing worker(3)
gnocchi 1992 0.0 0.4 639000 74396 ? Sl 22:43 0:04 \_ gnocchi-metricd: processing worker(4)
gnocchi 1994 0.0 0.4 639000 74724 ? Sl 22:43 0:04 \_ gnocchi-metricd: processing worker(5)
gnocchi 1996 0.0 0.4 639000 74656 ? Sl 22:43 0:04 \_ gnocchi-metricd: processing worker(6)
gnocchi 1997 0.0 0.4 639000 74708 ? Sl 22:43 0:03 \_ gnocchi-metricd: processing worker(7)
gnocchi 1998 0.0 0.4 637976 66620 ? Sl 22:43 0:01 \_ gnocchi-metricd: reporting worker(0)
gnocchi 2000 0.0 0.4 638488 67716 ? Sl 22:43 0:01 \_ gnocchi-metricd: janitor worker(0)
root 1843 0.0 0.0 84232 5172 ? Ss 22:43 0:00 /usr/sbin/apache2 -k start
gnocchi 1846 0.0 0.6 726444 104228 ? Sl 22:43 0:42 \_ (wsgi:gnocchi) -k start
gnocchi 1847 0.0 0.6 726440 104284 ? Sl 22:43 0:45 \_ (wsgi:gnocchi) -k start
gnocchi 1848 0.0 0.6 726696 104512 ? Sl 22:43 0:46 \_ (wsgi:gnocchi) -k start
gnocchi 1849 0.0 0.6 725928 103356 ? Sl 22:43 0:44 \_ (wsgi:gnocchi) -k start
gnocchi 1850 0.0 0.6 726176 103748 ? Sl 22:43 0:41 \_ (wsgi:gnocchi) -k start
gnocchi 1851 0.0 0.6 726432 103900 ? Sl 22:43 0:41 \_ (wsgi:gnocchi) -k start
gnocchi 1852 0.0 0.6 726440 103744 ? Sl 22:43 0:42 \_ (wsgi:gnocchi) -k start
gnocchi 1853 0.0 0.6 726696 104672 ? Sl 22:43 0:45 \_ (wsgi:gnocchi) -k start
gnocchi 1854 0.0 0.6 726440 104256 ? Sl 22:43 0:45 \_ (wsgi:gnocchi) -k start
gnocchi 1855 0.0 0.6 725928 103100 ? Sl 22:43 0:43 \_ (wsgi:gnocchi) -k start
gnocchi 1856 0.0 0.6 725928 103540 ? Sl 22:43 0:44 \_ (wsgi:gnocchi) -k start
gnocchi 1857 0.0 0.6 725928 103200 ? Sl 22:43 0:45 \_ (wsgi:gnocchi) -k start
gnocchi 1858 0.0 0.6 726440 104064 ? Sl 22:43 0:42 \_ (wsgi:gnocchi) -k start
gnocchi 1859 0.0 0.6 726444 103824 ? Sl 22:43 0:45 \_ (wsgi:gnocchi) -k start
gnocchi 1860 0.0 0.6 726184 103896 ? Sl 22:43 0:42 \_ (wsgi:gnocchi) -k start
gnocchi 1861 0.0 0.6 726188 103740 ? Sl 22:43 0:45 \_ (wsgi:gnocchi) -k start
www-data 1862 0.0 0.0 442160 12092 ? Sl 22:43 0:01 \_ /usr/sbin/apache2 -k start
www-data 1863 0.0 0.0 442216 11872 ? Sl 22:43 0:02 \_ /usr/sbin/apache2 -k start
www-data 2865 0.0 0.0 376700 11560 ? Sl 22:43 0:05 \_ /usr/sbin/apache2 -k start
root 2048 0.0 0.0 12788 1972 lxc/console Ss+ 22:43 0:00 /sbin/getty -8 38400 console
root 2050 0.0 0.0 12788 1976 lxc/tty1 Ss+ 22:43 0:00 /sbin/getty -8 38400 tty1
gnocchi 3135 0.0 0.2 89864 38220 ? Rs 22:51 0:00 /openstack/venvs/gnocchi-14.0.0/bin/python /openstack/venvs/gnocchi-14.0.0/bin/gnocchi-api --log-file=/var/log/gnocchi/gnocch

tags: added: newton-rc-potential
Changed in openstack-ansible:
importance: Undecided → High
Revision history for this message
Alexandra Settle (alexandra-settle) wrote :

Requires confirmation.

Revision history for this message
Travis Truman (travis-truman) wrote :

I'll test and possibly confirm this. If the issue is confirmed, I'll submit a patch with a fix.

Changed in openstack-ansible:
assignee: nobody → Travis Truman (travis-truman)
Revision history for this message
Ionuț Bîru (ionut-3) wrote :

I can still confirm it.

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

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

Changed in openstack-ansible:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-ansible-os_gnocchi (master)

Reviewed: https://review.openstack.org/395767
Committed: https://git.openstack.org/cgit/openstack/openstack-ansible-os_gnocchi/commit/?id=46a58b78510894928a31e54a31a7ee81a15fbb6e
Submitter: Jenkins
Branch: master

commit 46a58b78510894928a31e54a31a7ee81a15fbb6e
Author: Travis Truman <email address hidden>
Date: Wed Nov 9 14:07:02 2016 -0500

    Disable gnocchi-api service when mod_wsgi is used

    The *_services dict pattern present in other roles
    has been adopted and systemd/upstart service enablement
    of the gnocchi-api service is now directly tied to the
    state of `gnocchi_use_mod_wsgi`.

    Change-Id: Ibc15c37bbd5a1a70b0774a1184b5759e558a0efb
    Closes-Bug: #1633205

Changed in openstack-ansible:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-ansible-os_gnocchi (stable/newton)

Fix proposed to branch: stable/newton
Review: https://review.openstack.org/395979

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-ansible-os_gnocchi (stable/newton)

Reviewed: https://review.openstack.org/395979
Committed: https://git.openstack.org/cgit/openstack/openstack-ansible-os_gnocchi/commit/?id=2dc5394caa98314d853cd96c8503d64345612c9a
Submitter: Jenkins
Branch: stable/newton

commit 2dc5394caa98314d853cd96c8503d64345612c9a
Author: Travis Truman <email address hidden>
Date: Wed Nov 9 14:07:02 2016 -0500

    Disable gnocchi-api service when mod_wsgi is used

    The *_services dict pattern present in other roles
    has been adopted and systemd/upstart service enablement
    of the gnocchi-api service is now directly tied to the
    state of `gnocchi_use_mod_wsgi`.

    Change-Id: Ibc15c37bbd5a1a70b0774a1184b5759e558a0efb
    Closes-Bug: #1633205
    (cherry picked from commit 46a58b78510894928a31e54a31a7ee81a15fbb6e)

tags: added: in-stable-newton
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/openstack-ansible-os_gnocchi 15.0.0.0b1

This issue was fixed in the openstack/openstack-ansible-os_gnocchi 15.0.0.0b1 development milestone.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/openstack-ansible-os_gnocchi 14.0.3

This issue was fixed in the openstack/openstack-ansible-os_gnocchi 14.0.3 release.

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.