logging does not work

Bug #1575180 reported by Na Zhu
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-openstackclient
Invalid
Undecided
Unassigned

Bug Description

I follow the link http://docs.openstack.org/developer/python-openstackclient/configuration.html#logging-settings to enable openstackclient syslog, here is my cloud.yaml contents:
juno@bgpvpn:~$ cat /etc/openstack/clouds.yaml
clouds:
  devstack:
    auth:
      auth_url: http://192.168.122.102:35357
      password: blade123
      project_domain_id: default
      project_name: demo
      user_domain_id: default
      username: demo
    identity_api_version: '3'
    region_name: RegionOne
    volume_api_version: '2'
    operation_log:
      logging: TRUE
      file: /tmp/openstackclient_admin.log
      level: debug
  devstack-admin:
    auth:
      auth_url: http://192.168.122.102:35357
      password: blade123
      project_domain_id: default
      project_name: admin
      user_domain_id: default
      username: admin
    identity_api_version: '3'
    region_name: RegionOne
    volume_api_version: '2'
    operation_log:
      logging: TRUE
      file: /tmp/openstackclient_admin.log
      level: debug
  devstack-alt:
    auth:
      auth_url: http://192.168.122.102:35357
      password: blade123
      project_domain_id: default
      project_name: alt_demo
      user_domain_id: default
      username: alt_demo
    identity_api_version: '3'
    region_name: RegionOne
    volume_api_version: '2'
juno@bgpvpn:~$
Then I create a network:
juno@bgpvpn:~$ openstack --os-cloud devstack-admin network create juno
+---------------------------+--------------------------------------+
| Field | Value |
+---------------------------+--------------------------------------+
| admin_state_up | UP |
| availability_zone_hints | |
| availability_zones | |
| created_at | 2016-04-26 12:48:49+00:00 |
| description | |
| headers | |
| id | fe8a5d06-beb9-4d8a-974e-def14596bc0d |
| ipv4_address_scope | None |
| ipv6_address_scope | None |
| mtu | 1450 |
| name | juno |
| port_security_enabled | True |
| project_id | 4503c1d4f54b48cdb941f4fa43cf4916 |
| provider:network_type | vxlan |
| provider:physical_network | None |
| provider:segmentation_id | 1029 |
| router_external | Internal |
| shared | False |
| status | ACTIVE |
| subnets | |
| tags | [] |
| updated_at | 2016-04-26 12:48:49+00:00 |
+---------------------------+--------------------------------------+

But there is no logs generated.
juno@bgpvpn:~$ cat /tmp/openstackclient_admin.log
cat: /tmp/openstackclient_admin.log: No such file or directory
juno@bgpvpn:~$

Doug Wiegley (dougwig)
affects: neutron → python-openstackclient
Revision history for this message
Richard Theis (rtheis) wrote :

I don't see log_file or log_level set in your cloud.yaml per the documentation.

Changed in python-openstackclient:
status: New → Incomplete
Dean Troyer (dtroyer)
Changed in python-openstackclient:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.