Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1664928

Summary: iscsid: Can not bind IPC socket
Product: Red Hat OpenStack Reporter: Brendan Shephard <bshephar>
Component: rhosp-directorAssignee: RHOS Maint <rhos-maint>
Status: CLOSED DUPLICATE QA Contact: Gurenko Alex <agurenko>
Severity: high Docs Contact:
Priority: unspecified    
Version: 14.0 (Rocky)CC: dbecker, mburns, morazi
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-01-10 05:04:13 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Brendan Shephard 2019-01-10 04:50:52 UTC
Description of problem:
After rebooting the Director node, the iscsid container is unable to start as iscsid.socket is enabled and running on the system.

Version-Release number of selected component (if applicable):
RHOSP14

How reproducible:
On new undercloud installs by default

Steps to Reproduce:
1. openstack undercloud deploy
2. reboot undercloud
3. docker ps | grep iscsid

Actual results:
docker ps | grep iscsid    Observe that the container is restarting
Checking the logs:
[root@director ~]# docker logs iscsid| tail                                                                                                                                                                    
++ cat /run_command                                                                                                                                                                                            
+ CMD='/usr/sbin/iscsid -f'                                                                                                                                                                                    
+ ARGS=                                                                                                                                                                                                        
+ [[ ! -n '' ]]                                                                                                                                                                                                
+ . kolla_extend_start                                                                                                                                                                                         
++ [[ ! -f /etc/iscsi/initiatorname.iscsi ]]                                                                                                                                                                   
+ echo 'Running command: '\''/usr/sbin/iscsid -f'\'''                                                                                                                                                          
+ exec /usr/sbin/iscsid -f                                                                                                                                                                                     
Running command: '/usr/sbin/iscsid -f'                                                                                                                                                                         
iscsid: Can not bind IPC socket      

Checking the socket:
[root@director ~]# systemctl status iscsid.socket                                                                                                                                                              
● iscsid.socket - Open-iSCSI iscsid Socket                                                                                                                                                                     
   Loaded: loaded (/usr/lib/systemd/system/iscsid.socket; enabled; vendor preset: disabled)                                                                                                                    
   Active: active (listening) since Thu 2019-01-10 14:27:44 AEST; 9min ago                                                                                                                                     
     Docs: man:iscsid(8)                                                                                                                                                                                       
           man:iscsiadm(8)                                                                                                                                                                                     
   Listen: @ISCSIADM_ABSTRACT_NAMESPACE (Stream)   

Expected results:
iscsid.socket should NOT be enabled by default on the Director host.

Additional info:
After stopping iscsid.socket, the container is able to start:


[root@director ~]# docker logs iscsid| tail
INFO:__main__:Writing out command to execute
++ cat /run_command
+ CMD='/usr/sbin/iscsid -f'
+ ARGS=
+ [[ ! -n '' ]]
+ . kolla_extend_start
++ [[ ! -f /etc/iscsi/initiatorname.iscsi ]]
+ echo 'Running command: '\''/usr/sbin/iscsid -f'\'''
Running command: '/usr/sbin/iscsid -f'
+ exec /usr/sbin/iscsid -f

[root@director ~]# docker ps | grep iscsid                                                                                                                                                                     

203a2d6d284e        c89ba4941476                                                                   "kolla_start"            8 days ago          Up 39 seconds (healthy)                       iscsid

Comment 1 Brendan Shephard 2019-01-10 05:04:13 UTC
I just saw that I have create a duplicate of: https://bugzilla.redhat.com/show_bug.cgi?id=1642582


This in my case was caused by installing guestfish, which pulls the iscsi-initiator-utils.

Command Line   : install guestfish -y                                                                                                                                                                              
Transaction performed with:                                                                                                                                                                                        
    Installed     rpm-4.11.3-35.el7.x86_64                    @rhel-7-server-rpms                                                                                                                                 
    Installed     subscription-manager-1.21.10-3.el7_6.x86_64 @rhel-7-server-rpms                                                                                                                                 
    Installed     yum-3.4.3-161.el7.noarch                    @rhel-7-server-rpms                                                                                                                                 
Packages Altered:                                                                                                                                                                                                  
[...]                                                                                                          
    Dep-Install iscsi-initiator-utils-6.2.0.874-10.el7.x86_64                 @rhel-7-server-rpms                                                                                                                  
    Dep-Install iscsi-initiator-utils-iscsiuio-6.2.0.874-10.el7.x86_64        @rhel-7-server-rpms                                                                                                                  
[...]                                                                                                              
    Dep-Install libepoxy-1.5.2-1.el7.x86_64                                   @rhel-7-server-rpms                                                                                                                  
    Dep-Install libguestfs-1:1.38.2-12.22.lp.el7ev.x86_64                     @rhel-7-server-openstack-beta-rpms                                                                                                  
    Install     libguestfs-tools-c-1:1.38.2-12.22.lp.el7ev.x86_64             @rhel-7-server-openstack-beta-rpms

*** This bug has been marked as a duplicate of bug 1642582 ***