← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1575180] [NEW] logging does not work

 

Public bug reported:

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:~$

** Affects: neutron
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1575180

Title:
  logging does not work

Status in neutron:
  New

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:~$

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1575180/+subscriptions


Follow ups