Uploaded image for project: 'CloudStack'
  1. CloudStack
  2. CLOUDSTACK-8367

When Apply the hotfix(XS61E040) to host(XenServer 6.1) , Can't use NFS Storage in CloudStack

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Done
    • Affects Version/s: 4.2.1
    • Fix Version/s: None
    • Component/s: XenServer
    • Security Level: Public (Anyone can view this level - this is the default.)
    • Labels:
      None
    • Environment:
      Apache CloudStack 4.2.1 (perhaps any versions...?)
      XenServer 6.1 + XS61E040

      Description

      When Apply the hotfix(XS61E040) to host(XenServer 6.1) , Can't use NFS Storage in CloudStack

      Environment:

      Apache CloudStack 4.2.1 (perhaps any versions...?)
      XenServer 6.1 + XS61E040

      1. Apply the hotfix(XS61E040) to host(XenServer 6.1)
      2. Reboot the host
      3. Can't use NFS Storage(Primary Storage)

      packet capture:
      MOUNT 206 V3 MNT Call (Reply In 295) /export/primary/1e0a51cd-cf99-9b7a-74fd-a739f285842f

      XenServer added sr-uuid to the mount point , it is not possible to mount

      [root@xen61-01 ~]# xe pbd-list
      :

      uuid ( RO) : 2c68e999-8516-05cd-07d4-7d3b4cfe1b0c
      host-uuid ( RO): a030fdfb-6823-462e-835a-2714e299d373
      sr-uuid ( RO): 1e0a51cd-cf99-9b7a-74fd-a739f285842f
      device-config (MRO): serverpath: /export/primary; server: 192.168.11.10
      currently-attached ( RO): false

      1. xencenter_nfs_remount_error.png
        27 kB
        satoru nakaya
      2. xencenter_nfs_mount_error.png
        81 kB
        satoru nakaya
      3. packet capture_nfs_mount_error.png
        114 kB
        satoru nakaya

        Activity

        Hide
        giraffeforestg satoru nakaya added a comment -

        I solved the problem.

        http://support.citrix.com/article/CTX138152

        CloudStack replace the NFSSR.py of XenServer.

        CloudStack ManagementServer:

        [root@acs ~]# find / -name NFSSR.py
        /usr/share/cloudstack-common/scripts/vm/hypervisor/xenserver/xcpserver/NFSSR.py
        /usr/share/cloudstack-common/scripts/vm/hypervisor/xenserver/xcposs/NFSSR.py
        /usr/share/cloudstack-common/scripts/vm/hypervisor/xenserver/xenserver60/NFSSR.py
        /usr/share/cloudstack-common/scripts/vm/hypervisor/xenserver/xenserver56fp1/NFSSR.py
        /usr/share/cloudstack-common/scripts/vm/hypervisor/xenserver/xenserver56/NFSSR.py
        [root@acs ~]#

        XenServer:

        [root@xen61-01 ~]# find / -name NFSSR.py
        /opt/xensource/sm/NFSSR.py
        [root@xen61-01 ~]#

        Which one for XenServer 6.1.0 is ?
        I checked the hash value.

        XS61E040 installation before:

        [root@xen61-01 ~]# md5sum /opt/xensource/sm/NFSSR.py
        af8a6bf6a93317075fbc51dd1b7f913c /opt/xensource/sm/NFSSR.py
        [root@xen61-01 ~]#

        This one.

        [root@acs ~]# md5sum /usr/share/cloudstack-common/scripts/vm/hypervisor/xenserver/xenserver60/NFSSR.py
        af8a6bf6a93317075fbc51dd1b7f913c /usr/share/cloudstack-common/scripts/vm/hypervisor/xenserver/xenserver60/NFSSR.py
        [root@acs ~]#

        XS61E040 installation after:

        [root@xen61-01 ~]# md5sum /opt/xensource/sm/NFSSR.py
        ebdba8f6d7e5c3be7009cc7b924cd88d /opt/xensource/sm/NFSSR.py
        [root@xen61-01 ~]#

        NFSSR.py had returned to those of the original Xenserver.

        I solved the problem below.

        Copy this file to the XenServer at the location & xe-toolstack-restart

        [root@acs ~]# scp /usr/share/cloudstack-common/scripts/vm/hypervisor/xenserver/xenserver60/NFSSR.py root@[xenserver]:/opt/xensource/sm/
        [root@acs ~]# ssh root@[xenserver] xe-toolstack-restart

        Thanks.

        Show
        giraffeforestg satoru nakaya added a comment - I solved the problem. http://support.citrix.com/article/CTX138152 CloudStack replace the NFSSR.py of XenServer. CloudStack ManagementServer: [root@acs ~] # find / -name NFSSR.py /usr/share/cloudstack-common/scripts/vm/hypervisor/xenserver/xcpserver/NFSSR.py /usr/share/cloudstack-common/scripts/vm/hypervisor/xenserver/xcposs/NFSSR.py /usr/share/cloudstack-common/scripts/vm/hypervisor/xenserver/xenserver60/NFSSR.py /usr/share/cloudstack-common/scripts/vm/hypervisor/xenserver/xenserver56fp1/NFSSR.py /usr/share/cloudstack-common/scripts/vm/hypervisor/xenserver/xenserver56/NFSSR.py [root@acs ~] # XenServer: [root@xen61-01 ~] # find / -name NFSSR.py /opt/xensource/sm/NFSSR.py [root@xen61-01 ~] # Which one for XenServer 6.1.0 is ? I checked the hash value. XS61E040 installation before: [root@xen61-01 ~] # md5sum /opt/xensource/sm/NFSSR.py af8a6bf6a93317075fbc51dd1b7f913c /opt/xensource/sm/NFSSR.py [root@xen61-01 ~] # This one. [root@acs ~] # md5sum /usr/share/cloudstack-common/scripts/vm/hypervisor/xenserver/xenserver60/NFSSR.py af8a6bf6a93317075fbc51dd1b7f913c /usr/share/cloudstack-common/scripts/vm/hypervisor/xenserver/xenserver60/NFSSR.py [root@acs ~] # XS61E040 installation after: [root@xen61-01 ~] # md5sum /opt/xensource/sm/NFSSR.py ebdba8f6d7e5c3be7009cc7b924cd88d /opt/xensource/sm/NFSSR.py [root@xen61-01 ~] # NFSSR.py had returned to those of the original Xenserver. I solved the problem below. Copy this file to the XenServer at the location & xe-toolstack-restart [root@acs ~] # scp /usr/share/cloudstack-common/scripts/vm/hypervisor/xenserver/xenserver60/NFSSR.py root@ [xenserver] :/opt/xensource/sm/ [root@acs ~] # ssh root@ [xenserver] xe-toolstack-restart Thanks.

          People

          • Assignee:
            Unassigned
            Reporter:
            giraffeforestg satoru nakaya
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development