简体   繁体   English

云服务部署回滚

[英]Cloud Service deployment rolled back

we had a strange issue a couple of times now with our Azure service. 现在,我们的Azure服务遇到了一个奇怪的问题。 We have a cloud service installed that has a web application running on it. 我们安装了一个运行了Web应用程序的云服务。

The service was created sometime around beginning of december and he first deployment was done that time as well. 该服务是在12月初左右的某个时间创建的,他的第一次部署也已在该时间完成。 After that we did multiple deployments to the cloud service, but (it happens a couple of times now) sometime the Azure decides to roll back the deployment to initial one - the one that was made 2 months ago. 之后,我们对云服务进行了多次部署,但是(现在已经发生了几次),Azure有时会决定将部署回滚到最初的部署-两个月前进行的部署。 This happened this midnight once again and we see that the files creation date on the "restored" or "rolled back" instance is 12/5/2013, which seems to be the date when we did an initial deployment. 这种情况再次发生在这个午夜,我们看到在“还原”或“回滚”实例上的文件创建日期为12/5/2013,这似乎是我们进行初始部署的日期。

A question: 1) Why does that happen? 一个问题:1)为什么会这样? 2) How can we determine what caused this rollback? 2)我们如何确定导致此回滚的原因? 3) How can we prevent the rollback? 3)如何防止回滚? or 4) How can we make a "snapshot" of the cloud service so when the Rollback happens, it actually rolls back to the latest stable image? 或4)我们如何制作云服务的“快照”,以便在发生回滚时,它实际上会回滚到最新的稳定映像?

Thanks, Denis 谢谢,丹尼斯

How are you doing "After that we did multiple deployments to the cloud service"? 您如何做“在此之后,我们对云服务进行了多次部署”? Are you doing this via WebDeploy or via RDP to the Azure VM? 您是通过WebDeploy还是通过RDP到Azure VM?

PaaS cloud service VMs are stateless. PaaS云服务虚拟机是无状态的。 The code that is running your website will frequently be rebuilt from the original .cspkg that was uploaded. 运行您的网站的代码通常会根据上传的原始.cspkg进行重建。 See http://blogs.msdn.com/b/kwill/archive/2012/10/05/windows-azure-disk-partition-preservation.aspx for a bit more info. 有关更多信息,请参见http://blogs.msdn.com/b/kwill/archive/2012/10/05/windows-azure-disk-partition-preservation.aspx

If you want to make changes to your webrole then you need to upload a new cspkg. 如果要更改您的webrole,则需要上传一个新的cspkg。 See http://msdn.microsoft.com/en-us/library/windowsazure/hh472157.aspx for more information. 有关更多信息,请参见http://msdn.microsoft.com/zh-cn/library/windowsazure/hh472157.aspx

If you are deploying via WebDeploy you should know that these changes are only intended for development/testing cycle and that the changes are only temporary. 如果通过WebDeploy进行部署,则应该知道这些更改仅用于开发/测试周期,并且这些更改只是临时的。 See http://msdn.microsoft.com/en-us/library/windowsazure/ff683672.aspx for more information, in particular the "For development and testing purposes only" section. 有关更多信息,请参见http://msdn.microsoft.com/zh-cn/library/windowsazure/ff683672.aspx ,尤其是“仅用于开发和测试目的”部分。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM