F5Networks / f5-openstack-lbaasv2-driver

F5 LBaaSv2 service provider driver for OpenStack Liberty and beyond
http://clouddocs.f5.com/products/openstack/lbaasv2-driver/master/
Apache License 2.0
21 stars 37 forks source link

Agent startup's messages not seen #204

Closed alonsocamaro closed 7 years ago

alonsocamaro commented 8 years ago

f5-openstack-agent (9.0.1)

root@node-2:/var/log# grep -i debug /etc/neutron/services/f5/f5-openstack-agent.ini
# Show debugging output in log (sets DEBUG log level output).
debug = True

Operating System

Mirantis 9.0 / Ubuntu 14.04.4 LTS

OpenStack Release

Mitaka

Description

After installing the agent. I did a service start of the agent but no diagnostic message was being shown neither positive or negative. After checking with ps it seemed no new process was created in the controller.

I had to strace it to find out what was happening:

19548 write(2, "ImportError", 11)       = 11
19548 write(2, ": ", 2)                 = 2
19548 write(2, "No module named neutron_lbaas.services.loadbalancer", 51) = 51
19548 write(2, "\n", 1)                 = 1
19548 rt_sigaction(SIGINT, {SIG_DFL, [], SA_RESTORER, 0x7f4bdff75330}, {0x45a0f5, [], SA_RESTORER, 0x7f4bdff75330}, 8) = 0
19548 exit_group(1)                     = ?
19548 +++ exited with 1 +++

Doing a grep on /var/log/ and /var/log//* didn't show the above error message.

OpenStack Release

Mitaka

Description

Log the messages to somewhere appropriate.

richbrowne commented 8 years ago

Hi Alonso,

Thanks for your issue report. It looks like you are missing a dependency. The agent is trying to import the constants from neutron_lbaas; however, they do not exist. If you are not installing the agent on the neutron controller, you will need to install this also.

jputrino commented 8 years ago

@alonsocamaro The instructions for installing the service provider package from neutron_lbaas are here: http://lbaasv2-test.readthedocs.io/en/release-8.0.6/map_quick-start-guide.html#install-the-f5-service-provider-package

alonsocamaro commented 8 years ago

Thanks Rich! I will give another try.

mattgreene commented 8 years ago

@alonsocamaro, was this issue resolved via the link to the installation instructions or are you still having problems? If not, can we close this issue?

alonsocamaro commented 8 years ago

Hi Matt

The issue I reported is not about not being able to install it yet I was having problems.

What I wanted to report here is that when agent initialization fails no logs are generated and I had to use strace (which customers should not expected to use) to figure out what was going on.

I would not say this is a high severity or high priority but instead a usability enhancement: I think that all the messages that are currently sent to stderr should be logged with the appropriate logging priority. ie: fatal errors like the one show above should logged with "error" priority

Regards

  Ulises
mattgreene commented 8 years ago

Agreed. We do see logs on CentOS, so perhaps something has been broken on Ubuntu. We'll treat this as a bug and triage, but I'll lower the priority one notch since you were able to complete installation.

ssorenso commented 7 years ago

Team,

I see this in two parts:

As such, in this fix, I propose to...

With the changes in this bug's sister bug, we should be able to handle the situation where the customer does not have the proper dependencies installed at multiple levels to hopefully keeping from user confusion.

Please let me know if this does not satisfy this bug's indicated problem statement.

dflanigan commented 7 years ago

This issue was not reference in the merge.