2015-09-02 13:42:21 |
poinck |
bug |
|
|
added bug |
2015-09-04 10:52:57 |
Robie Basak |
bug |
|
|
added subscriber Ubuntu Server Team |
2015-09-04 10:53:06 |
Robie Basak |
tags |
|
bitesize |
|
2016-05-24 16:31:28 |
Robie Basak |
augeas (Ubuntu): assignee |
|
Ryan Harper (raharper) |
|
2016-06-06 18:55:55 |
Ryan Harper |
augeas (Ubuntu): status |
New |
Incomplete |
|
2016-06-07 20:03:50 |
Ryan Harper |
attachment added |
|
augeas-lenses-nagios-nospace-patch.debdiff https://bugs.launchpad.net/ubuntu/+source/augeas/+bug/1491406/+attachment/4679132/+files/augeas-lenses-nagios-nospace-patch.debdiff |
|
2016-06-07 20:06:44 |
Ryan Harper |
nominated for series |
|
Ubuntu Trusty |
|
2016-06-07 20:08:41 |
Ryan Harper |
augeas (Ubuntu): status |
Incomplete |
Invalid |
|
2016-06-07 20:11:13 |
Ryan Harper |
description |
# lsb_release -rd
Description: Ubuntu 14.04.3 LTS
Release: 14.04
# apt-cache policy augeas-lenses
augeas-lenses:
Installed: 1.2.0-0ubuntu1.1
Candidate: 1.2.0-0ubuntu1.1
Version table:
*** 1.2.0-0ubuntu1.1 0
500 http://archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
100 /var/lib/dpkg/status
1.2.0-0ubuntu1 0
500 http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
3. After applying configuration changes with augeas for Nagios3 there should be no spaces before and after "="
```nagios.cfg
var=value
```
4. Nagios3 fails to parse a configuration line with spaces before and after "="
```nagios.cfg
var = value
```
```.log
Error in configuration file '/etc/nagios/nagios.cfg' - Line ??? (UNKNOWN VARIABLE)
Error processing main config file!
```
Upstream fix and discussion here:
https://github.com/hercules-team/augeas/pull/177 |
[Impact]
* The nagios lens provided in augeas-lenses can generate configuration
values that are not parsable by nagios due to the lense creating
these values with a space character before and after the equal.
(foo = "bar" vs. foo="bar").
This affects the 1.2.0 release of augeas-lenses and has been
been fixed in newer releases available in Xenial and Yakkety.
* All patches applied are already accepted upstream and newer Ubuntu
releases are not affected.
[Test Case]
* On a Xenial 16.04 system
- lxc launch ubuntu-daily:trusty t1
- lxc exec t1 /bin/bash
# inside the container t1
- apt-get update && apt-get install --no-install-recommends augeas-lenses augeas-tools nagios3
# setup temp area to test augeas out per http://augeas.net/tour.html
- export AUGEAS_ROOT=/tmp/augeas-sandbox
- mkdir $AUGEAS_ROOT
- cp -pr /etc $AUGEAS_ROOT
- chown -R $(id -nu):$(id -ng) $AUGEAS_ROOT
- augtool -b
# in the augtool shell, make a change (remove and reset a value)
- print /files/etc/nagios3/nagios.cfg/log_file
- rm /files/etc/nagios3/nagios.cfg/log_file
- set /files/etc/nagios3/nagios.cfg/log_file /var/log/nagios3/nagios.log-wark
- save
- control-d
# diff the files to see the change
- root@t2:~# diff -u $AUGEAS_ROOT/etc/nagios3/nagios.cfg.augsave $AUGEAS_ROOT/etc/nagios3/nagios.cfg
# confirm that we can still parse the new config file
- nagios3 --verify-config $AUGEAS_ROOT/etc/nagios3/nagios.cfg
[Regression Potential]
* Users of nagios lens should verify that the change in output doesn't
break their usage, but the change only affects nagioscfg lens users.
[Original Description]
# lsb_release -rd
Description: Ubuntu 14.04.3 LTS
Release: 14.04
# apt-cache policy augeas-lenses
augeas-lenses:
Installed: 1.2.0-0ubuntu1.1
Candidate: 1.2.0-0ubuntu1.1
Version table:
*** 1.2.0-0ubuntu1.1 0
500 http://archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
100 /var/lib/dpkg/status
1.2.0-0ubuntu1 0
500 http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
3. After applying configuration changes with augeas for Nagios3 there should be no spaces before and after "="
```nagios.cfg
var=value
```
4. Nagios3 fails to parse a configuration line with spaces before and after "="
```nagios.cfg
var = value
```
```.log
Error in configuration file '/etc/nagios/nagios.cfg' - Line ??? (UNKNOWN VARIABLE)
Error processing main config file!
```
Upstream fix and discussion here:
https://github.com/hercules-team/augeas/pull/177 |
|
2016-06-08 13:48:15 |
Robie Basak |
bug task added |
|
augeas (Ubuntu Trusty) |
|
2016-06-08 13:49:38 |
Ryan Harper |
bug |
|
|
added subscriber Ubuntu Sponsors Team |
2016-06-08 14:35:03 |
Robie Basak |
augeas (Ubuntu Trusty): status |
New |
In Progress |
|
2016-06-08 14:35:11 |
Robie Basak |
augeas (Ubuntu): status |
Invalid |
Fix Released |
|
2016-06-08 14:35:13 |
Robie Basak |
augeas (Ubuntu Trusty): assignee |
|
Ryan Harper (raharper) |
|
2016-06-08 14:35:19 |
Robie Basak |
removed subscriber Ubuntu Sponsors Team |
|
|
|
2016-06-08 16:37:25 |
Chris J Arges |
augeas (Ubuntu Trusty): status |
In Progress |
Fix Committed |
|
2016-06-08 16:37:26 |
Chris J Arges |
bug |
|
|
added subscriber Ubuntu Stable Release Updates Team |
2016-06-08 16:37:34 |
Chris J Arges |
bug |
|
|
added subscriber SRU Verification |
2016-06-08 16:37:38 |
Chris J Arges |
tags |
bitesize |
bitesize verification-needed |
|
2016-06-14 18:15:11 |
Ryan Harper |
tags |
bitesize verification-needed |
bitesize verification-done |
|
2016-06-16 16:00:39 |
Launchpad Janitor |
augeas (Ubuntu Trusty): status |
Fix Committed |
Fix Released |
|
2016-06-16 16:00:46 |
Brian Murray |
removed subscriber Ubuntu Stable Release Updates Team |
|
|
|