服务器官方技术文章【转载】
取消
显示结果 
搜索替代 
您的意思是: 

"invalid URL to install files" when FTP Rolling Pool Upgrade

cicong
兼职投稿人

"invalid URL to install files" when FTP Rolling Pool Upgrade

Symptoms or Error Customer is unable to complete an automatic Rolling Pool Upgrade to XenServer 6\6.02 using FTP. The following error appears: "invalid URL to install files" Solution Complete the following procedure to fix the issue: Note: This procedure must be completed on each host being upgraded: Save a copy of accessor.py script. # cp /usr/lib/python2.4/site-packages/xcp/accessor.py /usr/lib/python2.4/site-packages/xcp/accessor.py_bak Use VI to edit file. # vi /usr/lib/python2.4/site-packages/xcp/accessor.py Find the line return url in lst. /return url in lst Comment the following line: #return url in lst Add the following line: return os.path.basename(url) in map(os.path.basename, lst Your screen should look similar to the following: lst = self.ftp.nlst(os.path.dirname(url)) #return url in lst return os.path.basename(url) in map(os.path.basename, lst) except Exception, e: logger.info(str(e)) return False Save and quit. Press ESC, then do a :wq!. Restart the toolstack. xe-toolstack-restart Disclaimer The above mentioned sample code is provided to you as is with no representations, warranties or conditions of any kind. You may use, modify and distribute it at your own risk. CITRIX DISCLAIMS ALL WARRANTIES WHATSOEVER, EXPRESS, IMPLIED, WRITTEN, ORAL OR STATUTORY, INCLUDING WITHOUT LIMITATION WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NONINFRINGEMENT. Without limiting the generality of the foregoing, you acknowledge and agree that (a) the sample code may exhibit errors, design flaws or other problems, possibly resulting in loss of data or damage to property; (b) it may not be possible to make the sample code fully functional; and (c) Citrix may, without notice or liability to you, cease to make available the current version and/or any future versions of the sample code. In no event should the code be used to support of ultra-hazardous activities, including but not limited to life support or blasting activities. NEITHER CITRIX NOR ITS AFFILIATES OR AGENTS WILL BE LIABLE, UNDER BREACH OF CONTRACT OR ANY OTHER THEORY OF LIABILITY, FOR ANY DAMAGES WHATSOEVER ARISING FROM USE OF THE SAMPLE CODE, INCLUDING WITHOUT LIMITATION DIRECT, SPECIAL, INCIDENTAL, PUNITIVE, CONSEQUENTIAL OR OTHER DAMAGES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. Although the copyright in the code belongs to Citrix, any distribution of the code should include only your own standard copyright attribution, and not that of Citrix. You agree to indemnify and defend Citrix against any and all claims arising from your use, modification or distribution of the code.