Bug 837556 - [RFE]-Auto-restart the running processes after upgrade
Summary: [RFE]-Auto-restart the running processes after upgrade
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: CloudForms Cloud Engine
Classification: Retired
Component: aeolus-conductor
Version: 1.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: rc
Assignee: Steve Linabery
QA Contact: Giulio Fidente
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-07-04 08:52 UTC by Rehana
Modified: 2012-11-28 17:28 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Known Issue
Doc Text:
Executing the upgrade script while CloudForms was building and pushing an image caused image failure. Make sure no images are built or pushed during the upgrade process.
Clone Of:
Environment:
Last Closed: 2012-10-25 14:29:53 UTC
Embargoed:


Attachments (Terms of Use)
after_upgrade (221.25 KB, image/png)
2012-07-04 08:52 UTC, Rehana
no flags Details
before_upgrade (220.39 KB, image/png)
2012-07-04 08:53 UTC, Rehana
no flags Details
imagefactory.log (58.55 KB, text/x-log)
2012-07-04 09:01 UTC, Rehana
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2012:1516 0 normal SHIPPED_LIVE CloudForms Cloud Engine 1.1 update 2012-12-04 19:51:45 UTC

Description Rehana 2012-07-04 08:52:41 UTC
Created attachment 596176 [details]
after_upgrade

Description of problem:


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


How reproducible:


Steps to Reproduce:
1.Start a image build to rhevm( image status changed to 'building' :PFA:before_upgrade)
2.Do yum update and excute the upgrade script

  
Actual results:
Observed that images status was set back to 'build' (PFA:after_upgrade and the imagefactory.log)

I guess this happend may be due to the 'aeolus-services-stop' in the upgrade script. Is it possible to save the running process and start them after update is completed?


Additional info:

rpm -qa | grep aeolus
aeolus-conductor-0.8.34-1.el6cf.noarch
rubygem-aeolus-image-0.3.0-12.el6.noarch
rubygem-aeolus-cli-0.3.3-2.el6_2.noarch
aeolus-configure-2.5.10-1.el6cf.noarch
aeolus-conductor-daemons-0.8.34-1.el6cf.noarch
aeolus-all-0.8.34-1.el6cf.noarch
aeolus-conductor-doc-0.8.34-1.el6cf.noarch

Comment 1 Rehana 2012-07-04 08:53:50 UTC
Created attachment 596178 [details]
before_upgrade

Comment 2 Rehana 2012-07-04 09:01:33 UTC
Created attachment 596180 [details]
imagefactory.log

Comment 5 Steve Linabery 2012-08-13 14:24:46 UTC
My forthcoming patch will mimic the katello-upgrade script behaviour, so that if the upgrade script detects running services, it will complain and not do the upgrade. If, however, the script is called with the --auto-stop option, it will restart services automatically. In this way the user has full control over stopping services that might lose data otherwise.

Comment 7 Rehana 2012-09-26 07:51:57 UTC
Currently the script is listing all the running process and informed the user to go with auto-stop option to continue with upgrade,even while have some image upload process.

not sure what should be image status "Failed"  or "Build" 

Currently i am unable to check this due to the upgrade bug https://bugzilla.redhat.com/show_bug.cgi?id=860564

Need to retest the same,once the above mentioned bug is fixed

Comment 8 Rehana 2012-10-03 07:40:46 UTC
Retested the bug.Observed that the script is listing all the running process and informed the user to go with auto-stop option to continue with upgrade,even while have some image upload process.

Observed that the image status is set to "Build", since the first attempt of build is failed, i feel its should show the message "1 build attempt failed"

Steve Linabery,

Any thoughts ?


on 

 rpm -qa | grep aeolus
aeolus-conductor-doc-0.13.16-1.el6cf.noarch
rubygem-aeolus-cli-0.7.3-1.el6cf.noarch
aeolus-all-0.13.16-1.el6cf.noarch
aeolus-conductor-0.13.16-1.el6cf.noarch
aeolus-configure-2.8.8-1.el6cf.noarch
aeolus-conductor-daemons-0.13.16-1.el6cf.noarch
rubygem-aeolus-image-0.3.0-12.el6.noarch

Comment 9 Steve Linabery 2012-10-09 14:40:31 UTC
(In reply to comment #8)
> Retested the bug.Observed that the script is listing all the running process
> and informed the user to go with auto-stop option to continue with
> upgrade,even while have some image upload process.
> 
> Observed that the image status is set to "Build", since the first attempt of
> build is failed, i feel its should show the message "1 build attempt failed"
> 
> Steve Linabery,
> 
> Any thoughts ?
> 
> 
> on 
> 
>  rpm -qa | grep aeolus
> aeolus-conductor-doc-0.13.16-1.el6cf.noarch
> rubygem-aeolus-cli-0.7.3-1.el6cf.noarch
> aeolus-all-0.13.16-1.el6cf.noarch
> aeolus-conductor-0.13.16-1.el6cf.noarch
> aeolus-configure-2.8.8-1.el6cf.noarch
> aeolus-conductor-daemons-0.13.16-1.el6cf.noarch
> rubygem-aeolus-image-0.3.0-12.el6.noarch

As we discussed in irc with the other devs, I think this is a documentation issue. Admin should make sure no running builds before doing upgrade. will update with a release note doctype.

Comment 10 Rehana 2012-10-25 05:40:54 UTC
Steve,

Can you please confirm whether this has been added to Release note or not ?

If not then i can move it back to "assigned" status.

Comment 11 Giulio Fidente 2012-10-25 14:29:53 UTC
another bugzilla has been created, against Documentation, to document such a behaviour


Note You need to log in before you can comment on or make changes to this bug.