Highlighted
Absent Member.
Absent Member.
1527 views

Unattended OES11SP2 to SP3 upgrade - experiences sought!

Hello forums! Long time no see. Sorry to have neglected you for so long, I'll try to get back here more often. Like a forgotten distant relative, I'm only turning up when I want something 🙂


Customer wants to do a completely silent unattended upgrade from OES11SP2 to SP3 via a ZCM bundle or bundles.

They've got past the request for an Admin password by using the answer file as detailed here https://www.novell.com/documentation/oes11/inst_oes_lx/?page=/documentation/oes11/inst_oes_lx/data/byjo5tt.html#byjobom

But after that they get asked on the UI to allow restart of Apache and Tomcat, and have to manually click on Yes. Can anyone think of an automated way of doing this? They can't be the first, I'm sure!

best
Andrew

Andrew C Taubman (Sorry, support is not provided via e-mail) Opinions expressed above are not necessarily those of Micro Focus.
Labels (2)
0 Likes
10 Replies
Highlighted
Absent Member.
Absent Member.

Well THAT I didn't expect - 82 reads and no replies!

Is this really such an unusual requirement?

Andrew C Taubman (Sorry, support is not provided via e-mail) Opinions expressed above are not necessarily those of Micro Focus.
0 Likes
Highlighted
Knowledge Partner
Knowledge Partner

ataubman;2461174 wrote:
Well THAT I didn't expect - 82 reads and no replies!


I'm afraid I don't have a answer but I'll ask around...
_____
Kevin Boyle - Knowledge Partner - Calgary, Alberta, Canada
Who are the Knowledge Partners?
If you appreciate my comments, please click the Like button.
If I have resolved your issue, please click the Accept as Solution button.
0 Likes
Highlighted
Knowledge Partner
Knowledge Partner

ataubman;2461174 wrote:
Is this really such an unusual requirement?


Apparently so!

Sorry I haven't been able to find an answer for you.
_____
Kevin Boyle - Knowledge Partner - Calgary, Alberta, Canada
Who are the Knowledge Partners?
If you appreciate my comments, please click the Like button.
If I have resolved your issue, please click the Accept as Solution button.
0 Likes
Highlighted
Absent Member.
Absent Member.

Thank you for trying!

Andrew C Taubman (Sorry, support is not provided via e-mail) Opinions expressed above are not necessarily those of Micro Focus.
0 Likes
Highlighted
Absent Member.
Absent Member.

We found out last night that the customer has given a very misleading description of the issue.

We suggested just simply unloading Apache before applying the SP, which could be easily scripted. The customer responded as follows:


"That would stop the prompting however would defeat the purpose of running the "yast2 channel-upgrade-oes".

https://www.novell.com/support/kb/doc.php?id=7017996

To clarify, the patch upgrade process works fine without prompting. The channel upgrade is a secondary step to ensure that the OES services are upgraded in line with the RPMs."


In other words the issue has nothing to do with going from OES11SP2 tp SP3 as such, it's when applying the post-SP3 channel-upgrade-oes command that the prompt to restart Apache/Tomcat appears!

They feel that unloading Apache first would interfere with the operation of that command. So the question now becomes:

- is that so?
- if so is there a way to avoid the y/n prompt, or to script an answer to it?

Andrew C Taubman (Sorry, support is not provided via e-mail) Opinions expressed above are not necessarily those of Micro Focus.
0 Likes
Highlighted
Absent Member.
Absent Member.

I've just tested this over the last two days.

The upshot is that even if you stop both Apache and Tomcat:

/etc/init.d/novell-tomcat6 stop
rcapache2 stop

the yast2 channel-upgrade-oes process still asks if you want to stop and restart Apache and Tomcat. That is, the question appears to be hard-coded somewhere regardless of whether they are actually running or not.

I found the script which this command runs, at /usr/share/YaST2/clients/channel-upgrade-oes.ycp . The section about Apache and Tomcat says:


Service::Enable("novell-tomcat6");
Service::Enable("novell-tomcat6-32bit");
Service::Enable("apache2");

Service::Stop("apache2");
Service::Stop("novell-tomcat6");
Service::Start("novell-tomcat6");
Service::Stop("novell-tomcat6-32bit");
Service::Start("novell-tomcat6-32bit");
Service::Start("apache2");

y2milestone("ChannelUpgrade:PostConfig:restarted and enabled apache2 and novell-tomcat6");


So it seems that question is actually asked by Yast2 or by the modules themselves, not this script.

I'd still love to hear anyone's ideas on this!

Andrew C Taubman (Sorry, support is not provided via e-mail) Opinions expressed above are not necessarily those of Micro Focus.
0 Likes
Highlighted
Knowledge Partner
Knowledge Partner

Andrew,

Am 04.08.2017 um 01:14 schrieb ataubman:
> I found the script which this command runs, at
> /usr/share/YaST2/clients/channel-upgrade-oes.ycp . The section about
> Apache and Tomcat says:
>
>>
>> Service::Enable("novell-tomcat6");
>> Service::Enable("novell-tomcat6-32bit");
>> Service::Enable("apache2");
>>
>> Service::Stop("apache2");
>> Service::Stop("novell-tomcat6");
>> Service::Start("novell-tomcat6");
>> Service::Stop("novell-tomcat6-32bit");
>> Service::Start("novell-tomcat6-32bit");
>> Service::Start("apache2");
>>
>> y2milestone("ChannelUpgrade:PostConfig:restarted and enabled apache2
>> and novell-tomcat6");
>>

>
> So it seems that question is actually asked by Yast2 or by the modules
> themselves, not this script.
>
> I'd still love to hear anyone's ideas on this!


That's not all. channel-upgrade-oes,ycp just calls a handful of other
yast modules in return, the one you're looking for is most likely
related to imanager.

CU,
--
Massimo Rosen
Micro Focus Knowledge Partner
No emails please!
http://www.cfc-it.de
CU,
--
Massimo Rosen
Micro Focus Knowledge Partner
No emails please!
http://www.cfc-it.de
0 Likes
Highlighted
Absent Member.
Absent Member.

Thanks Massimo! Great to hear from you again.


They have a new issue now, on one of their servers "yast2 channel-upgrade-oes" comes back with an immediate response:

Error while creating client module channel-upgrade-oes

We can't see any way of getting a more verbose error - whether out of yast2 or elsewhere.

Do you have any idea what the problem might be, or how to at least get some more useful error?


The server is patched identically (they claim!); the only difference they can spot is the problem server has set their 120417-2to3-OES11-SP3-Updates-bundle and 120417-2to3-SLES11-SP4-Updates-bundle for the SP upgrade as Distributions, they think those are supposed to be Assigned only. I (still!) don't know much about Zen, could that be their issue? If so what can they do about it after the fact?

Andrew C Taubman (Sorry, support is not provided via e-mail) Opinions expressed above are not necessarily those of Micro Focus.
0 Likes
Highlighted
Knowledge Partner
Knowledge Partner

Am 09.08.2017 um 01:14 schrieb ataubman:
>
> Thanks Massimo! Great to hear from you again.
>
>
> They have a new issue now, on one of their servers "yast2
> channel-upgrade-oes" comes back with an immediate response:
>
> ERROR WHILE CREATING CLIENT MODULE CHANNEL-UPGRADE-OES
>
> We can't see any way of getting a more verbose error - whether out of
> yast2 or elsewhere.


Yast has it's own logfile /var/log/yast2/y2log which I usually find very
informative. There's nothing to be found there?

> Do you have any idea what the problem might be, or how to at least get
> some more useful error?


If there's nothing in y2log, then I'm afraid not. Maybe strace, but that
might be a stretch.

>
> The server is patched identically (they claim!); the only difference
> they can spot is the problem server has set their
> 120417-2to3-OES11-SP3-Updates-bundle and
> 120417-2to3-SLES11-SP4-Updates-bundle for the SP upgrade as
> Distributions, they think those are supposed to be Assigned only. I
> (still!) don't know much about Zen, could that be their issue? If so
> what can they do about it after the fact?
>


I have very sparse experience with patching linux with zen. I never went
farther with it than basically doing a proof-of-concept.

If all else fails, there is always the option to upgrade the broken
server from the install media.

CU,
--
Massimo Rosen
Micro Focus Knowledge Partner
No emails please!
http://www.cfc-it.de
CU,
--
Massimo Rosen
Micro Focus Knowledge Partner
No emails please!
http://www.cfc-it.de
0 Likes
Highlighted
Absent Member.
Absent Member.

It turns out that problem was caused by a corrupted script in the Zen bundle they were using to apply the SPs, so that's one issue out of the way!

Andrew C Taubman (Sorry, support is not provided via e-mail) Opinions expressed above are not necessarily those of Micro Focus.
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.