openmainframeproject / feilong

Feilong is a open source z/VM cloud connector project under the Open Mainframe Project umbrella that will accelerate the z/VM adoption, extending its ecosystem and its user experience. It provides a set of APIs to operate z/VM including guest, image, network, volume etc.
https://www.openmainframeproject.org/projects/feilong
Apache License 2.0
35 stars 70 forks source link

retry to get fcp target wwpn in refresh_bootmap #798

Closed jackydalong closed 7 months ago

jackydalong commented 7 months ago
jackydalong commented 7 months ago

Test Retry

---- start retry

refreshFCPBootmap: Output of 'lszfcp -P': . refreshFCPBootmap: Target WWPNs shown under /sys/bus/ccw/drivers/zfcp/0.0.1a17/: refreshFCPBootmap: Retrying to get the target WWPNs for FCP device 1a17, 9 times left...

refreshFCPBootmap: Output of 'lszfcp -P': . refreshFCPBootmap: Target WWPNs shown under /sys/bus/ccw/drivers/zfcp/0.0.1a17/: refreshFCPBootmap: Retrying to get the target WWPNs for FCP device 1a17, 8 times left...

refreshFCPBootmap: Output of 'lszfcp -P': . refreshFCPBootmap: Target WWPNs shown under /sys/bus/ccw/drivers/zfcp/0.0.1a17/: 0x5005076306105388#0120x50050763061bd388#0120x50050763080052cf#0120x500507630800d2cf#0120x50050763080bd2cf#0120x500507630810d2cf#0120x500507680b21bac6#0120x500507680b21bac7#0120x500507680b23bac6#0120x500507680b23bac7#0120x500507680d060027#0120x500507680d120027#0120x500507680d760027#0120x500507680d820027#0120x50050768101391e1#0120x50050768102491d8#0120x50050768102491e1#0120x50050768103391d8 refreshFCPBootmap: Found one valid path: (1a17,0x50050768102491d8). refreshFCPBootmap: Found one valid path: (1a17,0x50050768103391d8). refreshFCPBootmap: Found one valid path: (1a17,0x50050768101391e1). refreshFCPBootmap: Found one valid path: (1a17,0x50050768102491e1). refreshFCPBootmap: Found target WWPNs 50050768102491d8 50050768103391d8 50050768101391e1 50050768102491e1 for FCP device 1a17.

refreshFCPBootmap: Output of 'lszfcp -P': . refreshFCPBootmap: Target WWPNs shown under /sys/bus/ccw/drivers/zfcp/0.0.1c19/: refreshFCPBootmap: Retrying to get the target WWPNs for FCP device 1c19, 9 times left...

refreshFCPBootmap: Output of 'lszfcp -P': . refreshFCPBootmap: Target WWPNs shown under /sys/bus/ccw/drivers/zfcp/0.0.1c19/: refreshFCPBootmap: Retrying to get the target WWPNs for FCP device 1c19, 8 times left...

---- end: retry

refreshFCPBootmap: Output of 'lszfcp -P': . refreshFCPBootmap: Target WWPNs shown under /sys/bus/ccw/drivers/zfcp/0.0.1c19/: 0x5005076306105388#0120x50050763061bd388#0120x50050763080052cf#0120x500507630800d2cf#0120x50050763080bd2cf#0120x500507630810d2cf#0120x500507680b21bac6#0120x500507680b21bac7#0120x500507680b23bac6#0120x500507680b23bac7#0120x500507680d060027#0120x500507680d120027#0120x500507680d760027#0120x500507680d820027#0120x50050768101391e1#0120x50050768102491d8#0120x50050768102491e1#0120x50050768103391d8 refreshFCPBootmap: Found one valid path: (1c19,0x50050768102491d8). refreshFCPBootmap: Found one valid path: (1c19,0x50050768103391d8). refreshFCPBootmap: Found one valid path: (1c19,0x50050768101391e1). refreshFCPBootmap: Found one valid path: (1c19,0x50050768102491e1). refreshFCPBootmap: Found target WWPNs 50050768102491d8 50050768103391d8 50050768101391e1 50050768102491e1 for FCP device 1c19. refreshFCPBootmap: valid target ports found on FCP: 1a17 are: 50050768102491d8 50050768103391d8 50050768101391e1 50050768102491e1. refreshFCPBootmap: Successfully added disk path: /dev/disk/by-path/ccw-0.0.1a17-zfcp-0x50050768102491d8:0x0000000000000000. refreshFCPBootmap: Successfully added disk path: /dev/disk/by-path/ccw-0.0.1a17-zfcp-0x50050768103391d8:0x0000000000000000. refreshFCPBootmap: Successfully added disk path: /dev/disk/by-path/ccw-0.0.1a17-zfcp-0x50050768101391e1:0x0000000000000000. refreshFCPBootmap: Successfully added disk path: /dev/disk/by-path/ccw-0.0.1a17-zfcp-0x50050768102491e1:0x0000000000000000. refreshFCPBootmap: valid target ports found on FCP: 1c19 are: 50050768102491d8 50050768103391d8 50050768101391e1 50050768102491e1. refreshFCPBootmap: Successfully added disk path: /dev/disk/by-path/ccw-0.0.1c19-zfcp-0x50050768102491d8:0x0000000000000000. refreshFCPBootmap: Successfully added disk path: /dev/disk/by-path/ccw-0.0.1c19-zfcp-0x50050768103391d8:0x0000000000000000. refreshFCPBootmap: Successfully added disk path: /dev/disk/by-path/ccw-0.0.1c19-zfcp-0x50050768101391e1:0x0000000000000000. refreshFCPBootmap: Successfully added disk path: /dev/disk/by-path/ccw-0.0.1c19-zfcp-0x50050768102491e1:0x0000000000000000. refreshFCPBootmap: 8 valid paths found. refreshFCPBootmap: valid paths string is: 1a17:50050768102491d8 50050768103391d8 50050768101391e1 50050768102491e1,1c19:50050768102491d8 50050768103391d8 50050768101391e1 50050768102491e1. refreshFCPBootmap: Multipath is enabled, using multipath devNode: /dev/disk/by-id/dm-uuid-part1-mpath-3600507681080848f0800000000003b86. refreshZIPL: Begin to refreshZIPL. refreshZIPL: devNode is: /dev/disk/by-id/dm-uuid-part1-mpath-3600507681080848f0800000000003b86 point: /tmp/aG7hE refreshZIPL: Updating /tmp/aG7hE/etc/fstab refreshZIPL: Purge contents in /tmp/aG7hE/etc/zfcp.conf refreshZIPL: Move stale multipath bindings and wwids if any refreshZIPL: Final rd.zfcp value is: rd.zfcp=0.0.1a17 rd.zfcp=0.0.1c19 . refreshZIPL: Refresh rhel86 zipl. refreshZIPL: zipl command: /tmp/aG7hE/usr/sbin/zipl -V -c /tmp/aG7hE/etc/zipl.conf_zipl_postfix -b /tmp/aG7hE/boot/loader/entries_zipl_postfix 2>&1 refreshZIPL: zipl.conf content: [defaultboot]#012defaultauto#012prompt=1#012timeout=5#012target=/boot#012secure=auto refreshZIPL: Successed to execute zipl on rhel86. Output: Looking for components in '/lib/s390-tools'#012Using config file '/tmp/aG7hE/etc/zipl.conf_zipl_postfix' (from command line)#012Using BLS config file '/tmp/aG7hE/boot/loader/entries_zipl_postfix/9892de908d024cbfafb5fedf97a37b2f-4.18.0-372.9.1.el8.s390x.conf'#012Using BLS config file '/tmp/aG7hE/boot/loader/entries_zipl_postfix/9892de908d024cbfafb5fedf97a37b2f-0-rescue.conf'#012Run /lib/s390-tools//zipl_helper.device-mapper /tmp/aG7hE/boot#012Target device information#012 Device..........................: fd:00 )#012 Partition.......................: fd:01#012 Device name.....................: dm-0#012 Device driver name..............: device-mapper#012 Type............................: disk partition#012 Disk layout.....................: SCSI disk layout )#012 Geometry - start................: 2048 )#012 File system block size..........: 4096#012 Physical block size.............: 512 )#012 Device size in physical blocks..: 8388608#012 *) Data provided by script.#012Building bootmap in '/tmp/aG7hE/boot'#012Building menu 'zipl-automatic-menu'#012Adding #1: IPL section 'Red Hat Enterprise Linux (4.18.0-372.9.1.el8.s390x) 8.6 (Ootpa)' (default)#012 initial ramdisk...: /tmp/aG7hE/boot/initramfs-4.18.0-372.9.1.el8.s390x.img#012 kernel image......: /tmp/aG7hE/boot/vmlinuz-4.18.0-372.9.1.el8.s390x#012 kernel parmline...: 'root=/dev/disk/by-id/dm-uuid-part1-mpath-3600507681080848f0800000000003b86 crashkernel=auto cio_ignore=all,!0.0.0009 rd.zfcp=0.0.1a17 rd.zfcp=0.0.1c19'#012 component address:#012 heap area.......: 0x00002000-0x00005fff#012 stack area......: 0x0000f000-0x0000ffff#012 internal loader.: 0x0000a000-0x0000dfff#012 parameters......: 0x00009000-0x000091ff#012 kernel image....: 0x00010000-0x0073bfff#012 parmline........: 0x0073d000-0x0073d1ff#012 initial ramdisk.: 0x00740000-0x021a03ff#012 environment blk.: 0x0073e000-0x0073efff#012Adding #2: IPL section 'Red Hat Enterprise Linux (0-rescue-9892de908d024cbfafb5fedf97a37b2f) 8.6 (Ootpa)'#012 initial ramdisk...: /tmp/aG7hE/boot/initramfs-0-rescue-9892de908d024cbfafb5fedf97a37b2f.img#012 kernel image......: /tmp/aG7hE/boot/vmlinuz-0-rescue-9892de908d024cbfafb5fedf97a37b2f#012 kernel parmline...: 'root=/dev/disk/by-id/dm-uuid-part1-mpath-3600507681080848f0800000000003b86 crashkernel=auto cio_ignore=all,!0.0.0009 rd.zfcp=0.0.1a17 rd.zfcp=0.0.1c19'#012 component address:#012 heap area.......: 0x00002000-0x00005fff#012 stack area......: 0x0000f000-0x0000ffff#012 internal loader.: 0x0000a000-0x0000dfff#012 parameters......: 0x00009000-0x000091ff#012 kernel image....: 0x00010000-0x0073bfff#012 parmline........: 0x0073d000-0x0073d1ff#012 initial ramdisk.: 0x00740000-0x032461ff#012 environment blk.: 0x0073e000-0x0073efff#012Environment block content:#012Preparing boot device: dm-0.#012Detected SCSI PCBIOS disk layout.#012Writing SCSI master boot record.#012Syncing disks...#012Done. refreshZIPL: RESULT PATHS: 1a17:50050768102491d8 50050768103391d8 50050768101391e1 50050768102491e1,1c19:50050768102491d8 50050768103391d8 50050768101391e1 50050768102491e1


- after test, remember to revert the previous change