Re: [jboss-dev-forums] [JBoss AS 7 Development] - Single Installation Patching
by Jeff Mesnil
Jeff Mesnil [https://community.jboss.org/people/jmesnil] commented on the document
"Single Installation Patching"
To view all comments on this document, visit: https://community.jboss.org/docs/DOC-47500#comment-10899
--------------------------------------------------
I've been thinking about giving some history to the user to know how patching affected its installation.
The most essential info is to let him know which patches have been applied and when. When a patch is applied to the installation, I store a timestamp file in the .metadata/history/patchX.
When the user query the system, we look at the patch info service, fill the history for the CP (if it applies) and the previous CPs and one-offs (if it applies).
Thinking about this raises some questions about patches metadata.
Can we apply multiple CP one after the othe (e.g. CP for 6.0.1->6.0.2 then CP for 6.0.2->6.0.5) or can we apply only 1 CP per installation?
It's my understanding that applying a CP invalidates all the applied one-offs but I can not find this stated anywhere, am I mistaken?
If one-offs can only have been applied to the current CP (or the base version)., that means that in the history, only CPs have a cumulative file containing the *previous cumulative* (renaming the file to previous-cumulative makes it simpler to understand)
I've come up with a simple concrete example where:
- a base version has been installed
- CP patch-00-CP has been applied
- CP patch-01-CP has been applied
- one-off patch-XX-oneoff has been applied
- one-off patch-YY-oneoff has been applied
we end up with the following directory layout:
patches/
|-- patch-00-CP
| |-- bundles
| `-- modules
|-- patch-01-CP
| |-- bundles
| `-- modules
|-- patch-XX-oneoff
| |-- bundles
| `-- modules
|-- patch-YY-oneoff
| |-- bundles
| `-- modules
`-- .metadata
|-- cumulative (file content => 'patch-01-CP')
|-- references
| `-- patch-01-CP (file content => [patch-01, patch-02])
`-- history
|-- patch-00-CP
| |-- timestamp
| `-- misc (patch' "root" for misc content)
| `-- bin
| ` standalone.sh (file backup)
|-- patch-01-CP
| |-- previous-cumulative
| |-- timestamp
| `-- misc
|-- patch-XX-oneoff
| |-- timestamp
| `-- misc
`-- patch-YY-oneoff
|-- timestamp
`-- misc
* .metadata/cumulative file correspond to the current cumulative version. If no CP have been applied (the installation is at its base version), this file does not exist.
* history/patch-00-CP has not previous-cumulative since it's been applied to base version
* .metadata/references/XXX files correspond to a given cumulative version and contains a list of the patches that have been applied on top of the CP (one per line)
* history/XXX/timestamp file contains a ISO-8601 data corresponding to the time the patch has been applied.
* history/XXX/misc is the "root" directory for backup of modified/removed misc content
To build the history, we have to browse:
1) the .metadata/cumulative & history/XXX/previous-cumulative to build the successive CP (if more than one can be applied)
2) the references/XXX of the current cumulative to have the history of the one-off applied patches
I also have a question about rollback. From the spec, I understand we want to rollback to a previous point in history. But we will not provide a way to rollback a given patch. Is that correct?
>From the concrete example above, the user will not been able to rollback the patch-XX-oneoff (while keeping the patch-YY-oneoff). In order to do that, he must: 1) rollback to the point in history before the patch-XX-oneoff has been applied, 2) applies again all the patches after it.
--------------------------------------------------
11 years, 6 months
[JBoss AS 7 Development] - Incomplete configuration returned by jboss-service.xml mbeans
by Cristian Serje
Cristian Serje [https://community.jboss.org/people/cri_sys] created the discussion
"Incomplete configuration returned by jboss-service.xml mbeans"
To view the discussion, visit: https://community.jboss.org/message/764321#764321
--------------------------------------------------------------
Hello,
I have been trying to get the configuration from an Mbean configured in the jboss'service.xml file, i can get all of the attributes but the long ones, it seem that for some enviroment jboss its returning me the configuration incomplete.
For example.
if i have something like this to configure some country properties
<attribute name="Countries">AR=3XXXXXXZZZZZZZEEEEE1123355EEE
AT=3XXXXXXZZZZZZZEEEEE1123355EEE
AU=3XXXXXXZZZZZZZEEEEE1123355EEE
BE_NL=3XXXXXXZZZZZZZEEEEE1123355EEE
BE_FR=3XXXXXXZZZZZZZEEEEE1123355EEE
CA_EN=3XXXXXXZZZZZZZEEEEE1123355EEE
CA_FR=3XXXXXXZZZZZZZEEEEE1123355EEE
CH_DE=3XXXXXXZZZZZZZEEEEE1123355EEE
CH_IT=3XXXXXXZZZZZZZEEEEE1123355EEE
CH_FR=3XXXXXXZZZZZZZEEEEE1123355EEE
CL=3XXXXXXZZZZZZZEEEEE1123355EEE
DE=3XXXXXXZZZZZZZEEEEE1123355EEE
DK=3XXXXXXZZZZZZZEEEEE1123355EEE
ES=3XXXXXXZZZZZZZEEEEE1123355EEE
FI=3XXXXXXZZZZZZZEEEEE1123355EEE
FR=3XXXXXXZZZZZZZEEEEE1123355EEE
HK_EN=3XXXXXXZZZZZZZEEEEE1123355EEE
IE=3XXXXXXZZZZZZZEEEEE1123355EEE
JP_EN=3XXXXXXZZZZZZZEEEEE1123355EEE
MX=3XXXXXXZZZZZZZEEEEE1123355EEE
NL=3XXXXXXZZZZZZZEEEEE1123355EEE
NO=3XXXXXXZZZZZZZEEEEE1123355EEE
NZ=3XXXXXXZZZZZZZEEEEE1123355EEE
SE=3XXXXXXZZZZZZZEEEEE1123355EEE
SG_EN=3XXXXXXZZZZZZZEEEEE1123355EEE
UK_EN=3XXXXXXZZZZZZZEEEEE1123355EEE
US_EN=3XXXXXXZZZZZZZEEEEE1123355EEE
VE=3XXXXXXZZZZZZZEEEEE1123355EEE
ZA=3XXXXXXZZZZZZZEEEEE1123355EEE
PL=3XXXXXXZZZZZZZEEEEE1123355EEE
KR=3XXXXXXZZZZZZZEEEEE1123355EEE
CZ=3XXXXXXZZZZZZZEEEEE1123355EEE
IT=3XXXXXXZZZZZZZEEEEE1123355EEE
IL_EN=3XXXXXXZZZZZZZEEEEE1123355EEE
RU=3XXXXXXZZZZZZZEEEEE1123355EEE
HR=3XXXXXXZZZZZZZEEEEE1123355EEE
SK=3XXXXXXZZZZZZZEEEEE1123355EEE
SI=3XXXXXXZZZZZZZEEEEE1123355EEE
UA_RU=3XXXXXXZZZZZZZEEEEE1123355EEE
UA_UA=3XXXXXXZZZZZZZEEEEE1123355EEE
GR=3XXXXXXZZZZZZZEEEEE1123355EEE
BR_PT=3XXXXXXZZZZZZZEEEEE1123355EEE
PT=3XXXXXXZZZZZZZEEEEE1123355EEE</attribute>
it returnes,
_EN=3XXXXXXZZZZZZZEEEEE1123355EEE
RU=3XXXXXXZZZZZZZEEEEE1123355EEE
HR=3XXXXXXZZZZZZZEEEEE1123355EEE
SK=3XXXXXXZZZZZZZEEEEE1123355EEE
SI=3XXXXXXZZZZZZZEEEEE1123355EEE
UA_RU=3XXXXXXZZZZZZZEEEEE1123355EEE
UA_UA=3XXXXXXZZZZZZZEEEEE1123355EEE
GR=3XXXXXXZZZZZZZEEEEE1123355EEE
BR_PT=3XXXXXXZZZZZZZEEEEE1123355EEE
PT=3XXXXXXZZZZZZZEEEEE1123355EEE
For some reason jboss its cutting in random places the long configurations, i was looking for hidden chars in that place where its cutting with no success.
Any idea about it.
Thanks in advance
Regards
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/764321#764321]
Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 6 months