Project

General

Profile

Actions

action #67987

closed

[u] sssd test wants to modify /etc/nsswitch.conf (which no longer exists on TW)

Added by dimstar almost 4 years ago. Updated over 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Bugs in existing tests
Target version:
SUSE QA - Milestone 30
Start date:
2020-06-11
Due date:
% Done:

0%

Estimated time:
42.00 h
Difficulty:

Description

Observation

The system default nsswitch file is in /usr/etc - only when an admin configures it himself will he write it to /etc. A default setup has oj /etc/nsswitch anymore.
The config file was edited via sed in https://github.com/os-autoinst/os-autoinst-distri-opensuse/blob/master/data/sssd-tests/testincl.sh#L14

Since the change in Tumbleweed about packages not installing anything under /etc, packages install default config files under /usr/etc/.
Users/Sysadmin should override those defaults manually creating config files under /etc/, how those config file should be created can vary depending on the package implementation. For nsswitch it may be as simple as creating /etc/nsswitch

Reproducible

  • openQA test in scenario opensuse-Tumbleweed-DVD-x86_64-extra_tests_in_textmode@64bit fails in sssd
  • Fails since (at least) Build 20191009
  • Last good: (unknown) (or more recent)
  • latest
Actions #1

Updated by okurz almost 4 years ago

This is an autogenerated message for openQA integration by the openqa_review script:

This bug is still referenced in a failing openQA test: extra_tests_in_textmode
https://openqa.opensuse.org/tests/1335955

To prevent further reminder comments one of the following options should be followed:

  1. The test scenario is fixed by applying the bug fix to the tested product or the test is adjusted
  2. The openQA job group is moved to "Released"
  3. The label in the openQA scenario is removed
Actions #2

Updated by okurz over 3 years ago

This is an autogenerated message for openQA integration by the openqa_review script:

This bug is still referenced in a failing openQA test: extra_tests_in_textmode
https://openqa.opensuse.org/tests/1350181

To prevent further reminder comments one of the following options should be followed:

  1. The test scenario is fixed by applying the bug fix to the tested product or the test is adjusted
  2. The openQA job group is moved to "Released"
  3. The label in the openQA scenario is removed
Actions #3

Updated by SLindoMansilla over 3 years ago

  • Subject changed from sssd test wants to modify /etc/nsswitch.conf (which no longer exists on TW) to [u] sssd test wants to modify /etc/nsswitch.conf (which no longer exists on TW)
Actions #4

Updated by SLindoMansilla over 3 years ago

  • Description updated (diff)
  • Status changed from New to Workable
  • Target version set to Milestone 30
  • Estimated time set to 42.00 h
Actions #5

Updated by SLindoMansilla over 3 years ago

This ticket contains useful information about how nsswitch.conf is expected to be handled: https://bugzilla.suse.com/show_bug.cgi?id=1175238

Actions #6

Updated by dimstar over 3 years ago

Proposal:

https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/10941

Does basically the same as we expect the user to do: before modifying /etc/nsswitch, copy it from /usr/etc in order to deviate from the distro default.

with this, the sssd test module passed.

Actions #7

Updated by dimstar over 3 years ago

  • Status changed from Workable to In Progress
Actions #8

Updated by zluo over 3 years ago

  • Status changed from In Progress to Workable

in progress, but not assigned! change to workable

Actions #9

Updated by zluo over 3 years ago

  • Assignee set to SLindoMansilla

I think we need to check this again for more details how to handle this ticket. Let us talk about in next grooming session, thanks.

Actions #10

Updated by SLindoMansilla over 3 years ago

  • Status changed from Workable to New
  • Assignee deleted (SLindoMansilla)
Actions #11

Updated by dimstar over 3 years ago

zluo wrote:

I think we need to check this again for more details how to handle this ticket. Let us talk about in next grooming session, thanks.

So you mean my PR is not the direction that you'd go, even though that is basically exactly what a user is supposed to do when modifting nsswitch.conf?

Actions #12

Updated by dimstar over 3 years ago

  • Status changed from New to Resolved

dimstar wrote:

Proposal:

https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/10941

Does basically the same as we expect the user to do: before modifying /etc/nsswitch, copy it from /usr/etc in order to deviate from the distro default.

with this, the sssd test module passed.

PR was merged, sssd test passed
https://openqa.opensuse.org/tests/1384427#step/sssd/83

Actions #13

Updated by SLindoMansilla over 3 years ago

  • Assignee set to dimstar
Actions #14

Updated by SLindoMansilla over 3 years ago

  • Assignee changed from dimstar to riafarov
Actions

Also available in: Atom PDF