Skip to content

Broken configuration files due to Augeas change #38078

Closed

Description

@pkruithof

In PR #34643, a change was made to support quotes in arguments. However this change results in every augeas value being inserted with quotes.

The previous state works in 2016.3.4, but not in 2016.11.0:

sshd_config:
  augeas.change:
    - lens: sshd.lns
    - context: /files/etc/ssh/sshd_config
    - changes:
      - set PasswordAuthentication 'no'

The problem is that the configuration file ends up with PasswordAuthentication 'no' instead of PasswordAuthentication no, which breaks SSH logins in this case due to the configuration file being invalid.

Activity

  1. pkruithof commented on Dec 5, 2016

    @pkruithof
    ContributorAuthor

    What's interesting is that the tests in the PR fail. I cannot see what tests are failing, because it is not available anymore. However I'm wondering why failing code gets merged in the first place?

  2. gtmanfred commented on Dec 5, 2016

    @gtmanfred
    Contributor

    We have a lot of tests, and they fail from time to time, so sometimes we have to merge with failing tests. But we do not merge if tests are failing around the change that was made.

  3. Ch3LL commented on Dec 6, 2016

    @Ch3LL
    Contributor

    @pkruithof just to make sure if you add quotes around the arguments does it then work? just making sure you have a workaround set in place until we can get it fixed.

  4. added
    bug
    P3
    severity-medium
    on Dec 6, 2016
  5. added this to the Approved milestone on Dec 6, 2016
  6. added
    RIoT
    severity-critical
    on Dec 6, 2016
  7. pkruithof commented on Dec 7, 2016

    @pkruithof
    ContributorAuthor

    Not sure, I downgraded Salt to 2016.3.4 to get it working again, so I don't need a workaround for now.

  8. Ch3LL commented on Dec 7, 2016

    @Ch3LL
    Contributor

    K thanks. Looks like the fix was reverted in that PR and will be reviewed/merged. Will be included in 2016.11.1.

  9. modified the milestones: Approved, Nitrogen 1 on Dec 8, 2016
  10. added
    fixed-pls-verify
    on Dec 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Execution-ModuleP3RIoTZRELEASED - 2016.11.1bugfixed-pls-verifyseverity-criticalseverity-medium

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions