local provider all-machines.log is empty

Bug #1270671 reported by Jesse Meek
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
juju-core
Fix Released
High
Tim Penhey

Bug Description

- first local provider running on machine
- rsyslog config appears fine

$ cat /etc/rsyslog.d/25-juju-jesse-local.conf

$ModLoad imfile

$InputFilePersistStateInterval 50
$InputFilePollInterval 5
$InputFileName /home/jesse/.juju/local/log/machine-0.log
$InputFileTag juju-jesse-local-machine-0:
$InputFileStateFile machine-0-jesse-local
$InputRunFileMonitor

$ModLoad imudp
$UDPServerRun 514

# Messages received from remote rsyslog machines have messages prefixed with a space,
# so add one in for local messages too if needed.
$template JujuLogFormat-jesse-local,"%syslogtag:18:$%%msg:::sp-if-no-1st-sp%%msg:::drop-last-lf%\n"

:syslogtag, startswith, "juju-jesse-local-" /home/jesse/.juju/local/log/all-machines.log;JujuLogFormat-jesse-local
& ~

Related branches

Revision history for this message
John A Meinel (jameinel) wrote : Re: [Bug 1270671] [NEW] local provider all-machines.log is empty

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

This sounds like a case where rsyslogd is configured correctly (and it
initializes the file to empty), but if the agent never actually comes
up, it never rights to machine-0.log in which case there is nothing to
be copied into all-machines.log.

Can you confirm if machine-0.log has content that you would expect to
see in all-machines.log ?

John
=:->

On 2014-01-20 5:31, Jesse Meek wrote:
> Public bug reported:
>
> - first local provider running on machine - rsyslog config appears
> fine
>
> $ cat /etc/rsyslog.d/25-juju-jesse-local.conf
>
> $ModLoad imfile
>
> $InputFilePersistStateInterval 50 $InputFilePollInterval 5
> $InputFileName /home/jesse/.juju/local/log/machine-0.log
> $InputFileTag juju-jesse-local-machine-0: $InputFileStateFile
> machine-0-jesse-local $InputRunFileMonitor
>
> $ModLoad imudp $UDPServerRun 514
>
> # Messages received from remote rsyslog machines have messages
> prefixed with a space, # so add one in for local messages too if
> needed. $template
> JujuLogFormat-jesse-local,"%syslogtag:18:$%%msg:::sp-if-no-1st-sp%%msg:::drop-last-lf%\n"
>
> :syslogtag, startswith, "juju-jesse-local-"
> /home/jesse/.juju/local/log/all-machines.log;JujuLogFormat-jesse-local
>
>
& ~
>
> ** Affects: juju-core Importance: Undecided Status: New
>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.13 (Cygwin)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlLc1rgACgkQJdeBCYSNAANYZgCg1SBM6I66JDMKQ7Ldlla9eQTl
mi4AoLtE2iAwsHFggwktibqRnCa9NJa4
=6wwu
-----END PGP SIGNATURE-----

Curtis Hovey (sinzui)
Changed in juju-core:
status: New → Incomplete
Tim Penhey (thumper)
Changed in juju-core:
status: Incomplete → In Progress
importance: Undecided → High
assignee: nobody → Tim Penhey (thumper)
importance: High → Critical
milestone: none → 1.17.2
Revision history for this message
Tim Penhey (thumper) wrote :

I have fixed a key part of the problem, but Jesse still has issues.

Changed in juju-core:
importance: Critical → High
Curtis Hovey (sinzui)
Changed in juju-core:
status: In Progress → Fix Committed
Curtis Hovey (sinzui)
Changed in juju-core:
status: Fix Committed → Fix Released
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.