Bug 620891
Summary: | Need CLI script(s) to update connection properties that do not get set during plugin upgrade | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Other] RHQ Project | Reporter: | John Sanda <jsanda> | ||||||
Component: | Plugins | Assignee: | John Sanda <jsanda> | ||||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Mike Foley <mfoley> | ||||||
Severity: | medium | Docs Contact: | |||||||
Priority: | low | ||||||||
Version: | 3.0.0 | CC: | jshaughn, rtimaniy, skondkar | ||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | All | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2014-06-18 16:03:24 UTC | Type: | --- | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Attachments: |
|
Description
John Sanda
2010-08-03 17:30:06 UTC
I pushed the latest changes for these scripts which includes the initial commit for the apache script. commit hash: cd688890537687233af414fbdf785707a98f8718 Tested the upgrade for jboss-as/rhq-agent from 2.2 --> 2.3.1 and from 2.2 --> 2.4.0 For jboss-as/rhq-agent, after upgrade from 2.2 --> 2.3.1 and from 2.2 --> 2.4.0, i tried to execute the 'reset_jboss_agent_props.js' file which is located at: "https://hudson.qa.jboss.com/hudson/view/Jon-2.x/job/rhq-master/ws/etc/cli-scripts/" I got below error while executing the 'reset_jboss_agent_props.js' file at CLI: rhqadmin.193.104:7080$ exec -f /home/skondkar/Downloads/reset_jboss_agent_props.js sun.org.mozilla.javascript.internal.EcmaError: ReferenceError: "exec" is not defined. (<Unknown source>#108) in <Unknown source> at line number 108 ^ Debugged the file and removed 'exec -f' at line number 108 locally. Reexecuted the file at CLI which worked. The edit and save worked for jboss-as/rhq-agent plugin, after upgrade from 2.2 --> 2.3.1 and from 2.2 --> 2.4.0 ----------------------- For Apache, after upgrade from 2.2 --> 2.4.0 and 2.3.1 --> 2.4.0, i tried to execute the 'reset_apache_props.js' file which is located at: "https://hudson.qa.jboss.com/hudson/view/Jon-2.x/job/rhq-master/ws/etc/cli-scripts/" I got below error while executing the 'reset_apache_props.js' file at CLI: rhqadmin.193.104:7080$ exec -f /home/skondkar/Downloads/reset_apache_props.js sun.org.mozilla.javascript.internal.EvaluatorException: missing ; before statement (<Unknown source>#87) in <Unknown source> at line number 87 ^ Debugged the file at line number 87 and found that it has a typo 'functionr'. Changed it in the local copy to 'function' and reexecuted the file which worked. However, i am getting errors for the properties 'Augeas Module Name' and 'Path To Contain Virtual Hosts Files' after executing the script and edit and save for apache server connection properties. (Got the same errors after upgrade from 2.2 --> 2.4.0 and 2.3.1 --> 2.4.0. Please refer the screenshots.) Created attachment 517205 [details]
Screenshot1
Created attachment 517206 [details]
Screenshot2
no longer relevant |