| Summary: | /etc/rc.d/init.d/iscsi is broken | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | David Zeuthen <davidz> |
| Component: | iscsi-initiator-utils | Assignee: | Mike Christie <mchristi> |
| Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 15 | CC: | agrover, hdegoede, lpoetter, mchristi, mclasen, metherid, mschmidt, notting, plautrba |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-04-26 07:43:10 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
David Zeuthen
2011-03-01 15:56:55 UTC
Actually this is not a systemd bug. The problem is that /etc/rc.d/init.d/iscsi checks for /var/lock/subsys/NetworkManager but on f15 this no longer exists... Reassigning to iscsi-initiator-utils... (In reply to comment #1) > Actually this is not a systemd bug. The problem is that /etc/rc.d/init.d/iscsi > checks for /var/lock/subsys/NetworkManager but on f15 this no longer exists... > Reassigning to iscsi-initiator-utils... I'll try to make some time to look into this. So what would be the way now to check if we have a configured network connection ? (In reply to comment #2) > I'll try to make some time to look into this. So what would be the way now to > check > if we have a configured network connection ? Well, what you did is check whether NM was running, not whether there was a network connection up. The right way to check whether a network connection is available is writing software that follows netlink and handles configuration changes properly. Networks are dynamic these day. They come and go, relying on static configuration and a point in time is wrong these days. That said, nmcli is probably what you want to be using. (In reply to comment #3) > (In reply to comment #2) > > > I'll try to make some time to look into this. So what would be the way now to > > check > > if we have a configured network connection ? > > Well, what you did is check whether NM was running, not whether there was a > network connection up. > > The right way to check whether a network connection is available is writing > software that follows netlink and handles configuration changes properly. > > Networks are dynamic these day. They come and go, relying on static > configuration and a point in time is wrong these days. > > That said, nmcli is probably what you want to be using. Well, what iscsi-initiator-utils was doing was already correct since it installed a /etc/NetworkManager/dispatcher.d hook to start/stop this service when the networking state changed (start when up, stop when down. And you can't really blame this package for /var/lock/subsys/NetworkManager disappearing... So I think the fix just requires changing the check for /var/lock/subsys/NetworkManager to something else.. maybe systemctl(1)? I don't know... In the mean time this issue was reported again, and fixed under bug 692230, marking this one as a dup... *** This bug has been marked as a duplicate of bug 692230 *** |