Monasca fails libvirt detection for packstack

Bug #1691907 reported by Nagasai Vinaykumar Kapalavai
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Monasca
New
Undecided
Nagasai Vinaykumar Kapalavai

Bug Description

Monasca-agent setup fails to enable libvirt plugin when there is no argument nova.conf in the command line. This is observed in the rdo packstack setup.

cmd = proc.as_dict(['cmdline'])['cmdline']
                if len(cmd) > 2 and 'python' in cmd[0] and 'nova-compute' in cmd[1]:
                    conf_indexes = [cmd.index(y) for y in cmd if 'nova.conf' in y]
                    if not conf_indexes:
                        if os.path.exists('/etc/nova/nova.conf'):
                            nova_conf = "/etc/nova/nova.conf"

If the nova.conf file is missing the len(cmd) is 2 and even though the default path for the nova.conf is specified, it skips the detection step. So in the condition the len(cmd) >= 2 to detect and enable libvirt plugin.

Changed in monasca:
assignee: nobody → Nagasai Vinaykumar Kapalavai (vinaykns)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on monasca-agent (master)

Change abandoned by Tomasz Trębski (<email address hidden>) on branch: master
Review: https://review.openstack.org/466354
Reason: Handled in another change where need to look up for config file was removed.

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.