[Bug 1671509] [NEW] placement api configuration in apache configure CustomLog incorrectly
Chris Dent
cdent+lp at anticdent.org
Thu Mar 9 14:52:56 UTC 2017
Public bug reported:
I'm using ubuntu 16.04 to verify the nova install docs being updated at
https://review.openstack.org/#/c/438328/ using packages via add-apt-
repository ppa:ubuntu-cloud-archive/ocata-staging
When doing that the logs for the placement service end up looking like
this:
==> nova_placement_access.log <==
combine
combine
combine
combine
combine
combine
combine
combine
combine
combine
combine
combine
This is because in /etc/apache2/sites-available/nova-placement-api.conf
the CustomLog directive uses a custom type of 'combine' and it needs to
be 'combined' (with a 'd' on the end). If I make this fix the logs show
the expected output:
==> nova_placement_access.log <==
127.0.0.1 - - [09/Mar/2017:14:50:08 +0000] "GET /resource_providers/bfe7cf08-19d9-4262-b51a-a132e884346b/aggregates HTTP/1.1" 200 362 "-" "nova-compute keystoneauth1/2.18.0 python-requests/2.12.4 CPython/2.7.12"
127.0.0.1 - - [09/Mar/2017:14:50:17 +0000] "GET /resource_providers/bfe7cf08-19d9-4262-b51a-a132e884346b/inventories HTTP/1.1" 200 739 "-" "nova-compute keystoneauth1/2.18.0 python-requests/2.12.4 CPython/2.7.12"
127.0.0.1 - - [09/Mar/2017:14:50:20 +0000] "GET /resource_providers/bfe7cf08-19d9-4262-b51a-a132e884346b/allocations HTTP/1.1" 200 397 "-" "nova-compute keystoneauth1/2.18.0 python-requests/2.12.4 CPython/2.7.12"
127.0.0.1 - - [09/Mar/2017:14:51:09 +0000] "GET /resource_providers/bfe7cf08-19d9-4262-b51a-a132e884346b/aggregates HTTP/1.1" 200 362 "-" "nova-compute keystoneauth1/2.18.0 python-requests/2.12.4 CPython/2.7.12"
127.0.0.1 - - [09/Mar/2017:14:51:09 +0000] "GET /resource_providers/bfe7cf08-19d9-4262-b51a-a132e884346b/inventories HTTP/1.1" 200 739 "-" "nova-compute keystoneauth1/2.18.0 python-requests/2.12.4 CPython/2.7.12"
127.0.0.1 - - [09/Mar/2017:14:51:09 +0000] "GET /resource_providers/bfe7cf08-19d9-4262-b51a-a132e884346b/allocations HTTP/1.1" 200 397 "-" "nova-compute keystoneauth1/2.18.0 python-requests/2.12.4 CPython/2.7.12"
**Note**: this same typo is present in the CustomLog setting for the virtual host on port 5000 in keystone.conf.
** Affects: nova (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to nova in Ubuntu.
https://bugs.launchpad.net/bugs/1671509
Title:
placement api configuration in apache configure CustomLog incorrectly
Status in nova package in Ubuntu:
New
Bug description:
I'm using ubuntu 16.04 to verify the nova install docs being updated
at https://review.openstack.org/#/c/438328/ using packages via add-
apt-repository ppa:ubuntu-cloud-archive/ocata-staging
When doing that the logs for the placement service end up looking like
this:
==> nova_placement_access.log <==
combine
combine
combine
combine
combine
combine
combine
combine
combine
combine
combine
combine
This is because in /etc/apache2/sites-available/nova-placement-
api.conf the CustomLog directive uses a custom type of 'combine' and
it needs to be 'combined' (with a 'd' on the end). If I make this fix
the logs show the expected output:
==> nova_placement_access.log <==
127.0.0.1 - - [09/Mar/2017:14:50:08 +0000] "GET /resource_providers/bfe7cf08-19d9-4262-b51a-a132e884346b/aggregates HTTP/1.1" 200 362 "-" "nova-compute keystoneauth1/2.18.0 python-requests/2.12.4 CPython/2.7.12"
127.0.0.1 - - [09/Mar/2017:14:50:17 +0000] "GET /resource_providers/bfe7cf08-19d9-4262-b51a-a132e884346b/inventories HTTP/1.1" 200 739 "-" "nova-compute keystoneauth1/2.18.0 python-requests/2.12.4 CPython/2.7.12"
127.0.0.1 - - [09/Mar/2017:14:50:20 +0000] "GET /resource_providers/bfe7cf08-19d9-4262-b51a-a132e884346b/allocations HTTP/1.1" 200 397 "-" "nova-compute keystoneauth1/2.18.0 python-requests/2.12.4 CPython/2.7.12"
127.0.0.1 - - [09/Mar/2017:14:51:09 +0000] "GET /resource_providers/bfe7cf08-19d9-4262-b51a-a132e884346b/aggregates HTTP/1.1" 200 362 "-" "nova-compute keystoneauth1/2.18.0 python-requests/2.12.4 CPython/2.7.12"
127.0.0.1 - - [09/Mar/2017:14:51:09 +0000] "GET /resource_providers/bfe7cf08-19d9-4262-b51a-a132e884346b/inventories HTTP/1.1" 200 739 "-" "nova-compute keystoneauth1/2.18.0 python-requests/2.12.4 CPython/2.7.12"
127.0.0.1 - - [09/Mar/2017:14:51:09 +0000] "GET /resource_providers/bfe7cf08-19d9-4262-b51a-a132e884346b/allocations HTTP/1.1" 200 397 "-" "nova-compute keystoneauth1/2.18.0 python-requests/2.12.4 CPython/2.7.12"
**Note**: this same typo is present in the CustomLog setting for the virtual host on port 5000 in keystone.conf.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nova/+bug/1671509/+subscriptions
More information about the Ubuntu-openstack-bugs
mailing list