Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] iscsi states fail (1st run) until reboot (Arch/CentOS) #33

Open
noelmcloughlin opened this issue Apr 19, 2020 · 4 comments
Open
Labels

Comments

@noelmcloughlin
Copy link
Member

noelmcloughlin commented Apr 19, 2020

Your setup

Formula commit hash / release tag

Versions reports (master & minion)

Pillar / config used


Bug details

Describe the bug

The iscsi state fails on Archliux (travis and realtime).
https://travis-ci.com/github/noelmcloughlin/iscsi-formula/jobs/320857106

       Summary for local
       -------------
       Succeeded: 68 (changed=49)
       Failed:    11
       -------------
       Total states run:     79
       Total run time:   93.135 s

[vagrant@arch ~]$ uptime
 13:10:50 up 2 days,  1 user,  load average: 0.00, 0.02, 0.01

Following a reboot, the same iscsi states work 100%.
On CentOS only one service.running state fails => this can be addressed for Travis.

Steps to reproduce the bug

Expected behaviour

After reboot..

cloning iscsi-formula from saltstack-formulas ...

local:
    ----------
    base:
        - users
        - iscsi
run salt: this takes a while, please be patient ...
-------------
Succeeded: 52 (changed=15)
Failed:     0
-------------

[vagrant@arch ~]$ uptime
 13:30:50 up 15 min,  1 user,  load average: 0.00, 0.02, 0.01

Attempts to fix the bug

Additional context

@noelmcloughlin noelmcloughlin changed the title [BUG] Travis: jobs fail until reboot (arch) [BUG] iscsi states fail (1st run) until reboot (Arch) Apr 19, 2020
@noelmcloughlin
Copy link
Member Author

This could be option? https://github.com/error10/kexec-reboot

@noelmcloughlin noelmcloughlin changed the title [BUG] iscsi states fail (1st run) until reboot (Arch) [BUG] iscsi states fail (1st run) until reboot (Arch/CentOS) Apr 19, 2020
@noelmcloughlin
Copy link
Member Author

noelmcloughlin commented Apr 19, 2020

Setting iscsi.target.enabled: false skips service.running for target service. That is the best solution for CentOS/Travis. Testing that. update - that worked for CentOS!!

@noelmcloughlin
Copy link
Member Author

Test-kitchen has support for enduring reboots initiated by a Chef provisioner.

https://kitchen.ci/docs/reference/reboots/

Could this work with kitchen-salt?

@myii
Copy link
Member

myii commented May 4, 2020

@noelmcloughlin It doesn't look like it. Best to ask in an issue there:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants