← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1204440] Re: xenapi: console logrotate fails

 

** Changed in: nova
       Status: Fix Committed => Fix Released

** Changed in: nova
    Milestone: None => havana-3

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1204440

Title:
  xenapi: console logrotate fails

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  tools/xenserver/rotate_xen_guest_logs.sh

  fails if ran for the first time, because the files don't exist at that
  time.

  [root@jaglan ~]# /root/consolelogrotate 
  + log_dir=/var/log/xen/guest
  + kb=1024
  + max_size_bytes=1048576
  + truncated_size_bytes=5120
  + list_domains=/opt/xensource/bin/list_domains
  + log_file_base=/var/log/xen/guest/console.
  + tmp_file_base=/var/log/xen/guest/tmp.console.
  + xenstore-write /local/logconsole/@ /var/log/xen/guest/console.%d
  ++ /opt/xensource/bin/list_domains
  ++ sed '/^id*/d'
  ++ sed 's/|.*|.*$//g'
  ++ xargs
  + domains='0 3 36'
  + for i in '$domains'
  + log=/var/log/xen/guest/console.0
  + tmp=/var/log/xen/guest/tmp.console.0
  + mv /var/log/xen/guest/console.0 /var/log/xen/guest/tmp.console.0
  mv: cannot stat `/var/log/xen/guest/console.0': No such file or directory
  + true
  + for i in '$domains'
  + log=/var/log/xen/guest/console.3
  + tmp=/var/log/xen/guest/tmp.console.3
  + mv /var/log/xen/guest/console.3 /var/log/xen/guest/tmp.console.3
  mv: cannot stat `/var/log/xen/guest/console.3': No such file or directory
  + true
  + for i in '$domains'
  + log=/var/log/xen/guest/console.36
  + tmp=/var/log/xen/guest/tmp.console.36
  + mv /var/log/xen/guest/console.36 /var/log/xen/guest/tmp.console.36
  mv: cannot stat `/var/log/xen/guest/console.36': No such file or directory
  + true
  + rm -f '/var/log/xen/guest/console.*'
  ++ /opt/xensource/bin/list_domains
  ++ sed '/^id*/d'
  ++ sed 's/|.*|.*$//g'
  ++ xargs
  + domains='0 3 36'
  + for i in '$domains'
  + log=/var/log/xen/guest/console.0
  + tmp=/var/log/xen/guest/tmp.console.0
  ++ stat -c%s /var/log/xen/guest/tmp.console.0
  stat: cannot stat `/var/log/xen/guest/tmp.console.0': No such file or directory
  + size=

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