openvstorage / framework

The Framework is a set of components and tools which brings the user an interface (GUI / API) to setup, extend and manage an Open vStorage platform.
Other
27 stars 23 forks source link

Remove SNMP path #678

Closed wimpers closed 8 years ago

wimpers commented 8 years ago

Since the SNMP path isn't working and we are pushing stats to Redis.

wimpers commented 8 years ago

@khenderick any idea how much work this would be

khenderick commented 8 years ago

@wimpers, shouldn't take more than a few hours.

khenderick commented 8 years ago

Fixed by #1002, packaged in openvstorage-2.7.4-rev.4088.62c4f94

JeffreyDevloo commented 8 years ago

Steps

Checked the following files:

Checked if python-snmp is installed: Package:

Output

init file removed:

root@ovs-node1:~# cat /etc/init/ovs-snmp.conf
cat: /etc/init/ovs-snmp.conf: No such file or directory

ovs-snmp python files removed from ovs:

root@ovs-node1:~# ls /opt/OpenvStorage/ovs/extensions/snmp/
ls: cannot access /opt/OpenvStorage/ovs/extensions/snmp/: No such file or directory

Template file removed:

root@ovs-node1:~# cat /opt/OpenvStorage/config/templates/upstart/ovs-snmp
cat: /opt/OpenvStorage/config/templates/upstart/ovs-snmp: No such file or directory

Juju removed:

root@ovs-node1:~# ls /opt/Openvstorage/juju
ls: cannot access /opt/Openvstorage/juju: No such file or directory

Check if dependencies were installed: erlang-snmp is installed by the openvstorage-hc package

root@ovs-node1:~# dpkg -l | grep snmp
ii  erlang-snmp                        1:16.b.3-dfsg-1ubuntu2.1                                 amd64        Erlang/OTP SNMP applications

Test result

There is still a SNMP package installed by OVS. The package (erlang-smp) is installed due to rabbitmq-server depending on erlang-nox which depends on erlang-snmp

rabbitmq-server
  Depends: adduser
  Depends: erlang-nox (>= 1:13.b.3)
  Depends: esl-erlang
  Depends: logrotate
erlang-nox
  ...
  Depends: erlang-snmp
  ...

Test passed.

Packages