[osprofiler][neutron] Why there's no `profiler` section for neutron.conf?
There is this `profiler` section for osprofiler for nova.conf/glance-api.conf/cinder.conf/keystone.conf. But there's no such section for neutron.conf, why? I could not find this section in even the latest neutron.conf document. Thus I could not get `openstack network list --os-profile MY_KEY_HERE` to work.
Hi, Dnia wtorek, 28 lutego 2023 03:39:23 CET hai wu pisze:
There is this `profiler` section for osprofiler for nova.conf/glance-api.conf/cinder.conf/keystone.conf.
But there's no such section for neutron.conf, why? I could not find this section in even the latest neutron.conf document.
Thus I could not get `openstack network list --os-profile MY_KEY_HERE` to work.
maybe it's not documented (and that would be bug worth reporting) but You can use it with neutron for sure. We are doing that e.g. in neutron-ovs-rally-task CI job. See neutron config example from that job [1]. And result of profiling is then in the rally page [2] in the "Scenario Data" tab. [1] https://a5ee3d263fc9f9b0b1b0-8b0899cb6c8c0582fa25b52fb6031f3e.ssl.cf5.rackcd... [2] https://a5ee3d263fc9f9b0b1b0-8b0899cb6c8c0582fa25b52fb6031f3e.ssl.cf5.rackcd... -- Slawek Kaplonski Principal Software Engineer Red Hat
You can check this file: https://github.com/openstack/neutron/blob/master/neutron/common/profiler.py. If you would like to install with kolla-ansible, osprofiler configure should be manual added to /etc/kolla/config/neutron/(some thign herre) (i guess) On Tue, Feb 28, 2023 at 2:57 PM Slawek Kaplonski <skaplons@redhat.com> wrote:
Hi,
Dnia wtorek, 28 lutego 2023 03:39:23 CET hai wu pisze:
There is this `profiler` section for osprofiler for
nova.conf/glance-api.conf/cinder.conf/keystone.conf.
But there's no such section for neutron.conf, why? I could not find
this section in even the latest neutron.conf document.
Thus I could not get `openstack network list --os-profile MY_KEY_HERE` to work.
maybe it's not documented (and that would be bug worth reporting) but You can use it with neutron for sure. We are doing that e.g. in neutron-ovs-rally-task CI job. See neutron config example from that job [1]. And result of profiling is then in the rally page [2] in the "Scenario Data" tab.
[1] https://a5ee3d263fc9f9b0b1b0-8b0899cb6c8c0582fa25b52fb6031f3e.ssl.cf5.rackcd...
[2] https://a5ee3d263fc9f9b0b1b0-8b0899cb6c8c0582fa25b52fb6031f3e.ssl.cf5.rackcd...
--
Slawek Kaplonski
Principal Software Engineer
Red Hat
-- Thu.
It seems the entrypoint to load osprofiler options are missing from the file used by oslo-config-generator. This should fix the missing options. https://review.opendev.org/c/openstack/neutron/+/875622 On Tue, Feb 28, 2023 at 5:03 PM Hoai-Thu Vuong <thuvh87@gmail.com> wrote:
You can check this file: https://github.com/openstack/neutron/blob/master/neutron/common/profiler.py . If you would like to install with kolla-ansible, osprofiler configure should be manual added to /etc/kolla/config/neutron/(some thign herre) (i guess)
On Tue, Feb 28, 2023 at 2:57 PM Slawek Kaplonski <skaplons@redhat.com> wrote:
Hi,
Dnia wtorek, 28 lutego 2023 03:39:23 CET hai wu pisze:
There is this `profiler` section for osprofiler for
nova.conf/glance-api.conf/cinder.conf/keystone.conf.
But there's no such section for neutron.conf, why? I could not find
this section in even the latest neutron.conf document.
Thus I could not get `openstack network list --os-profile MY_KEY_HERE` to work.
maybe it's not documented (and that would be bug worth reporting) but You can use it with neutron for sure. We are doing that e.g. in neutron-ovs-rally-task CI job. See neutron config example from that job [1]. And result of profiling is then in the rally page [2] in the "Scenario Data" tab.
[1] https://a5ee3d263fc9f9b0b1b0-8b0899cb6c8c0582fa25b52fb6031f3e.ssl.cf5.rackcd...
[2] https://a5ee3d263fc9f9b0b1b0-8b0899cb6c8c0582fa25b52fb6031f3e.ssl.cf5.rackcd...
--
Slawek Kaplonski
Principal Software Engineer
Red Hat
-- Thu.
On Tue, Feb 28, 2023 at 6:05 PM Takashi Kajinami <tkajinam@redhat.com> wrote:
It seems the entrypoint to load osprofiler options are missing from the file used by oslo-config-generator. This should fix the missing options. https://review.opendev.org/c/openstack/neutron/+/875622
To clarify this a bit, the config file to generate neutron.conf does not include the appropriate entrypoint so oslo-config-generator does not load osprofiler options and these options are not rendered. However options themselves are valid and you can add the [profiler] section and desired options to neutron.conf additionally (or by any tooling) then neutron should be able to load these additional options .
On Tue, Feb 28, 2023 at 5:03 PM Hoai-Thu Vuong <thuvh87@gmail.com> wrote:
You can check this file: https://github.com/openstack/neutron/blob/master/neutron/common/profiler.py . If you would like to install with kolla-ansible, osprofiler configure should be manual added to /etc/kolla/config/neutron/(some thign herre) (i guess)
On Tue, Feb 28, 2023 at 2:57 PM Slawek Kaplonski <skaplons@redhat.com> wrote:
Hi,
Dnia wtorek, 28 lutego 2023 03:39:23 CET hai wu pisze:
There is this `profiler` section for osprofiler for
nova.conf/glance-api.conf/cinder.conf/keystone.conf.
But there's no such section for neutron.conf, why? I could not find
this section in even the latest neutron.conf document.
Thus I could not get `openstack network list --os-profile MY_KEY_HERE` to work.
maybe it's not documented (and that would be bug worth reporting) but You can use it with neutron for sure. We are doing that e.g. in neutron-ovs-rally-task CI job. See neutron config example from that job [1]. And result of profiling is then in the rally page [2] in the "Scenario Data" tab.
[1] https://a5ee3d263fc9f9b0b1b0-8b0899cb6c8c0582fa25b52fb6031f3e.ssl.cf5.rackcd...
[2] https://a5ee3d263fc9f9b0b1b0-8b0899cb6c8c0582fa25b52fb6031f3e.ssl.cf5.rackcd...
--
Slawek Kaplonski
Principal Software Engineer
Red Hat
-- Thu.
Thank you! This all makes sense to me. But I just tried again, by putting the same [profiler] configuration entries (as those in nova.conf/glance-api.conf/cinder.conf files) into /etc/neutron/neutron.conf, and restarted all neutron services on the controller host, and it still does not work when I tried to run `openstack network list --os-profile MY_KEY_HERE`, and I could not find any new entries showing up in redis. The same is working for all other services. I enabled `debug = True` in neutron.conf, and I could see all the entries for the profiler got setup correctly from its neutron-api.log. What else I could look into for this issue? On Tue, Feb 28, 2023 at 3:09 AM Takashi Kajinami <tkajinam@redhat.com> wrote:
On Tue, Feb 28, 2023 at 6:05 PM Takashi Kajinami <tkajinam@redhat.com> wrote:
It seems the entrypoint to load osprofiler options are missing from the file used by oslo-config-generator. This should fix the missing options. https://review.opendev.org/c/openstack/neutron/+/875622
To clarify this a bit, the config file to generate neutron.conf does not include the appropriate entrypoint so oslo-config-generator does not load osprofiler options and these options are not rendered.
However options themselves are valid and you can add the [profiler] section and desired options to neutron.conf additionally (or by any tooling) then neutron should be able to load these additional options .
On Tue, Feb 28, 2023 at 5:03 PM Hoai-Thu Vuong <thuvh87@gmail.com> wrote:
You can check this file: https://github.com/openstack/neutron/blob/master/neutron/common/profiler.py. If you would like to install with kolla-ansible, osprofiler configure should be manual added to /etc/kolla/config/neutron/(some thign herre) (i guess)
On Tue, Feb 28, 2023 at 2:57 PM Slawek Kaplonski <skaplons@redhat.com> wrote:
Hi,
Dnia wtorek, 28 lutego 2023 03:39:23 CET hai wu pisze:
There is this `profiler` section for osprofiler for
nova.conf/glance-api.conf/cinder.conf/keystone.conf.
But there's no such section for neutron.conf, why? I could not find
this section in even the latest neutron.conf document.
Thus I could not get `openstack network list --os-profile MY_KEY_HERE` to work.
maybe it's not documented (and that would be bug worth reporting) but You can use it with neutron for sure. We are doing that e.g. in neutron-ovs-rally-task CI job. See neutron config example from that job [1]. And result of profiling is then in the rally page [2] in the "Scenario Data" tab.
[1] https://a5ee3d263fc9f9b0b1b0-8b0899cb6c8c0582fa25b52fb6031f3e.ssl.cf5.rackcd...
[2] https://a5ee3d263fc9f9b0b1b0-8b0899cb6c8c0582fa25b52fb6031f3e.ssl.cf5.rackcd...
--
Slawek Kaplonski
Principal Software Engineer
Red Hat
-- Thu.
Found out that this is due to missing some entry as shown in this URL: https://review.opendev.org/c/openstack/neutron/+/273951/16/etc/api-paste.ini... On Tue, Feb 28, 2023 at 8:55 AM hai wu <haiwu.us@gmail.com> wrote:
Thank you! This all makes sense to me. But I just tried again, by putting the same [profiler] configuration entries (as those in nova.conf/glance-api.conf/cinder.conf files) into /etc/neutron/neutron.conf, and restarted all neutron services on the controller host, and it still does not work when I tried to run `openstack network list --os-profile MY_KEY_HERE`, and I could not find any new entries showing up in redis. The same is working for all other services. I enabled `debug = True` in neutron.conf, and I could see all the entries for the profiler got setup correctly from its neutron-api.log.
What else I could look into for this issue?
On Tue, Feb 28, 2023 at 3:09 AM Takashi Kajinami <tkajinam@redhat.com> wrote:
On Tue, Feb 28, 2023 at 6:05 PM Takashi Kajinami <tkajinam@redhat.com> wrote:
It seems the entrypoint to load osprofiler options are missing from the file used by oslo-config-generator. This should fix the missing options. https://review.opendev.org/c/openstack/neutron/+/875622
To clarify this a bit, the config file to generate neutron.conf does not include the appropriate entrypoint so oslo-config-generator does not load osprofiler options and these options are not rendered.
However options themselves are valid and you can add the [profiler] section and desired options to neutron.conf additionally (or by any tooling) then neutron should be able to load these additional options .
On Tue, Feb 28, 2023 at 5:03 PM Hoai-Thu Vuong <thuvh87@gmail.com> wrote:
You can check this file: https://github.com/openstack/neutron/blob/master/neutron/common/profiler.py. If you would like to install with kolla-ansible, osprofiler configure should be manual added to /etc/kolla/config/neutron/(some thign herre) (i guess)
On Tue, Feb 28, 2023 at 2:57 PM Slawek Kaplonski <skaplons@redhat.com> wrote:
Hi,
Dnia wtorek, 28 lutego 2023 03:39:23 CET hai wu pisze:
There is this `profiler` section for osprofiler for
nova.conf/glance-api.conf/cinder.conf/keystone.conf.
But there's no such section for neutron.conf, why? I could not find
this section in even the latest neutron.conf document.
Thus I could not get `openstack network list --os-profile MY_KEY_HERE` to work.
maybe it's not documented (and that would be bug worth reporting) but You can use it with neutron for sure. We are doing that e.g. in neutron-ovs-rally-task CI job. See neutron config example from that job [1]. And result of profiling is then in the rally page [2] in the "Scenario Data" tab.
[1] https://a5ee3d263fc9f9b0b1b0-8b0899cb6c8c0582fa25b52fb6031f3e.ssl.cf5.rackcd...
[2] https://a5ee3d263fc9f9b0b1b0-8b0899cb6c8c0582fa25b52fb6031f3e.ssl.cf5.rackcd...
--
Slawek Kaplonski
Principal Software Engineer
Red Hat
-- Thu.
participants (4)
-
hai wu
-
Hoai-Thu Vuong
-
Slawek Kaplonski
-
Takashi Kajinami