local provider all-machines.log is empty
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.
$ModLoad imfile
$InputFilePersi
$InputFilePollI
$InputFileName /home/jesse/
$InputFileTag juju-jesse-
$InputFileStateFile machine-
$InputRunFileMo
$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-
:syslogtag, startswith, "juju-jesse-local-" /home/jesse/
& ~
Related branches
- Juju Engineering: Pending requested
-
Diff: 127 lines (+43/-5)5 files modifiedenvirons/cloudinit/cloudinit.go (+1/-1)
environs/cloudinit/cloudinit_test.go (+2/-2)
log/syslog/config.go (+26/-1)
log/syslog/config_test.go (+5/-1)
provider/local/environ.go (+9/-0)
Changed in juju-core: | |
status: | New → Incomplete |
Changed in juju-core: | |
status: | Incomplete → In Progress |
importance: | Undecided → High |
assignee: | nobody → Tim Penhey (thumper) |
importance: | High → Critical |
milestone: | none → 1.17.2 |
Changed in juju-core: | |
status: | In Progress → Fix Committed |
Changed in juju-core: | |
status: | Fix Committed → Fix Released |
-----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: d/25-juju- jesse-local. conf stStateInterval 50 $InputFilePollI nterval 5 .juju/local/ log/machine- 0.log local-machine- 0: $InputFileStateFile 0-jesse- local $InputRunFileMo nitor jesse-local, "%syslogtag: 18:$%%msg: ::sp-if- no-1st- sp%%msg: ::drop- last-lf% \n" .juju/local/ log/all- machines. log;JujuLogForm at-jesse- local
> Public bug reported:
>
> - first local provider running on machine - rsyslog config appears
> fine
>
> $ cat /etc/rsyslog.
>
> $ModLoad imfile
>
> $InputFilePersi
> $InputFileName /home/jesse/
> $InputFileTag juju-jesse-
> machine-
>
> $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-
>
> :syslogtag, startswith, "juju-jesse-local-"
> /home/jesse/
>
>
& ~
>
> ** Affects: juju-core Importance: Undecided Status: New
>
-----BEGIN PGP SIGNATURE----- www.enigmail. net/
c1rgACgkQJdeBCY SNAANYZgCg1SBM6 I66JDMKQ7Ldlla9 eQTl ggwktibqRnCa9NJ a4
Version: GnuPG v1.4.13 (Cygwin)
Comment: Using GnuPG with Thunderbird - http://
iEYEARECAAYFAlL
mi4AoLtE2iAwsHF
=6wwu
-----END PGP SIGNATURE-----