Skip to content

Instantly share code, notes, and snippets.

@rmeleromira
Created February 18, 2017 01:48
Show Gist options
  • Save rmeleromira/542a7a88d594c104d447fb8924ed97bc to your computer and use it in GitHub Desktop.
Save rmeleromira/542a7a88d594c104d447fb8924ed97bc to your computer and use it in GitHub Desktop.
root@osa-newton-2:~# /opt/monasca-agent/bin/monasca-setup -d libvirt
> /opt/monasca-agent/lib/python2.7/site-packages/monasca_setup/detection/plugins/libvirt.py(74)_detect()
-> if not conf_indexes:
(Pdb) l
69 try:
70 cmd = proc.cmdline()
71 if len(cmd) > 2 and 'python' in cmd[0] and 'nova-compute' in cmd[1]:
72 conf_indexes = [cmd.index(y) for y in cmd if 'nova.conf' in y]
73 import pdb;pdb.set_trace()
74 -> if not conf_indexes:
75 continue
76 param = conf_indexes[0]
77 if '=' in cmd[param]:
78 nova_conf = cmd[param].split('=')[1]
79 else:
(Pdb) conf_indexes
[]
(Pdb) cmd
['/openstack/venvs/nova-14.0.7/bin/python', '/openstack/venvs/nova-14.0.7/bin/nova-compute', '--log-file=/var/log/nova/nova-compute.log']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment