|
| 1 | +# How to update the tWAS on Azure VMs solution for next tWAS fixpack |
| 2 | + |
| 3 | +Please follow sections below in order to update the solution for next tWAS fixpack. |
| 4 | + |
| 5 | +## Updating the image |
| 6 | + |
| 7 | +1. Which file to update for WAS version? |
| 8 | + * For `twas-nd` image, update the following properties in file [`virtualimage.properties`](https://github.com/WASdev/azure.websphere-traditional.image/blob/master/twas-nd/src/main/scripts/virtualimage.properties#L14-L15), e.g.: |
| 9 | + |
| 10 | + ```bash |
| 11 | + WAS_ND_TRADITIONAL=com.ibm.websphere.ND.v90 |
| 12 | + IBM_JAVA_SDK=com.ibm.java.jdk.v8 |
| 13 | + ``` |
| 14 | + |
| 15 | + Note: only the major version should be specified, the minor version should not be hard-coded as the Installation Manager will intelligently install the latest available minor version. |
| 16 | + |
| 17 | + * For `ihs` image, update the following properties in file [`virtualimage.properties`](https://github.com/WASdev/azure.websphere-traditional.image/blob/master/ihs/src/main/scripts/virtualimage.properties#L22-L25), e.g.: |
| 18 | + |
| 19 | + ```bash |
| 20 | + IBM_HTTP_SERVER=com.ibm.websphere.IHS.v90 |
| 21 | + WEBSPHERE_PLUGIN=com.ibm.websphere.PLG.v90 |
| 22 | + WEBSPHERE_WCT=com.ibm.websphere.WCT.v90 |
| 23 | + IBM_JAVA_SDK=com.ibm.java.jdk.v8 |
| 24 | + ``` |
| 25 | + |
| 26 | + Note: only the major version should be specified, the minor version should not be hard-coded as the Installation Manager will intelligently install the latest available minor version. |
| 27 | + |
| 28 | +1. How to run CI/CD? |
| 29 | + * Go to [Actions](https://github.com/WASdev/azure.websphere-traditional.image/actions) > Click `twas-nd CICD` > Click to expand `Run workflow` > Click `Run workflow` > Refresh the page |
| 30 | + * Go to [Actions](https://github.com/WASdev/azure.websphere-traditional.image/actions) > Click `ihs CICD` > Click to expand `Run workflow` > Click `Run workflow` > Refresh the page |
| 31 | + |
| 32 | +1. How to test the image, what testcases to run? |
| 33 | + * The CI/CD has already contains tests to verify the entitlement check and tWAS installation, so basically it's good to go without manual tests. |
| 34 | +
|
| 35 | +1. How to publish the image in marketplace and who can do it? |
| 36 | + 1. For `twas-nd` image: Wait until the CI/CD workflow for `twas-nd CICD` successfully completes > Click to open details of the workflow run > Scroll to the bottom of the page > Click `sasurl` to download the zip file `sasurl.zip` > Unzip and open file `sas-url.txt` > Find values for `osDiskSasUrl` and `dataDiskSasUrl`; |
| 37 | + 1. For `ihs` image: Wait until the CI/CD workflow for `ihs CICD` successfully completes > Click to open details of the workflow run > Scroll to the bottom of the page > Click `sasurl` to download the zip file `sasurl.zip` > Unzip and open file `sas-url.txt` > Find values for `osDiskSasUrl` and `dataDiskSasUrl`; |
| 38 | + 1. Sign into [Microsoft Partner Center](https://partner.microsoft.com/dashboard/commercial-marketplace/overview) > Click to open the offer for `twas-nd` base image > Click `Plan overview` > Click to open the plan > Click `Technical configuration` > Click `+ Add VM image` > Specify a new value for `Disk version` and write it down > Select `SAS URI` > Copy and paste value of `osDiskSasUrl` for `twas-nd` to textbox `SAS URI` > Click `+ Add data disk (max 16)` > Select `Data disk 0` > Copy and paste value of `dataDiskSasUrl` for `twas-nd` to textbox `Data disk VHD link` > Scroll to the bottom of the page > Click `Save draft` > Click `Review and publish` > Click `Publish`; |
| 39 | + 1. Sign into [Microsoft Partner Center](https://partner.microsoft.com/dashboard/commercial-marketplace/overview) > Click to open the offer for `ihs` base image > Click `Plan overview` > Click to open the plan > Click `Technical configuration` > Click `+ Add VM image` > Specify a new value for `Disk version` and write it down > Select `SAS URI` > Copy and paste value of `osDiskSasUrl` for `ihs` to textbox `SAS URI` > Click `+ Add data disk (max 16)` > Select `Data disk 0` > Copy and paste value of `dataDiskSasUrl` for `ihs` to textbox `Data disk VHD link` > Scroll to the bottom of the page > Click `Save draft` > Click `Review and publish` > Click `Publish`; |
| 40 | +
|
| 41 | + Note: Currently Graham Charters has privilege to update the image in marketplace, contact him for more information. |
| 42 | +
|
| 43 | +1. Do we need to update the solution every time we do the image update? |
| 44 | + * Yes. That's because image versions of [`twas-nd`](https://github.com/WASdev/azure.websphere-traditional.cluster/blob/master/pom.xml#L51) and [`ihs`](https://github.com/WASdev/azure.websphere-traditional.cluster/blob/master/pom.xml#L57) are explicitely referenced in the tWAS solutoin. Make sure correct image versions are specified in the `pom.xml` of the solution code. |
| 45 | + |
| 46 | +## Updating and publishing the solution code |
| 47 | + |
| 48 | +Note: The steps included in this section are also applied to release new features / bug fixes which have no changes to the images. |
| 49 | + |
| 50 | +1. How to update the version of the solution? |
| 51 | + * Increase the [version number](https://github.com/WASdev/azure.websphere-traditional.cluster/blob/master/pom.xml#L23) which is specified in the `pom.xml` |
| 52 | + |
| 53 | +1. How to run CI/CD? |
| 54 | + * Go to [Actions](https://github.com/WASdev/azure.websphere-traditional.cluster/actions) > Click `Package ARM` > Click to expand `Run workflow` > Click `Run workflow` > Refresh the page |
| 55 | + |
| 56 | +1. How to publish the solution in marketplace and who can do it? |
| 57 | + 1. Wait until the CI/CD workflow for `Package ARM` successfully completes > Click to open details of the workflow run > Scroll to the bottom of the page > Click `azure.websphere-traditional.cluster-<version>-arm-assembly` to download the zip file `azure.websphere-traditional.cluster-<version>-arm-assembly.zip`; |
| 58 | + 1. Sign into [Microsoft Partner Center](https://partner.microsoft.com/dashboard/commercial-marketplace/overview) > Click to open the offer for the solution > Click `Plan overview` > Click to open the plan > Click `Technical configuration` > Specify the increased version number for `Version` > Click `Remove` to remove the previous package file > Click `browse your file(s)` to upload the downloaded zip package generated by the CI/CD pipeline before > Scroll to the bottom of the page > Click `Save draft` > Click `Review and publish` > Click `Publish`; |
| 59 | + |
| 60 | + Note: Currently Graham Charters has privilege to update the solution in marketplace, contact him for more information. |
| 61 | + |
| 62 | +1. How to test the solution, what testcases to run? |
| 63 | + 1. Wait until the soluton offer is in `Publisher signoff` (aka "preview") stage; |
| 64 | + 1. Run test cases defined in [twas-solution-test-cases.pdf](twas-solution-test-cases.pdf). Note: use "preview link" for each test case. |
| 65 | + |
| 66 | +## What needs to be cleaned up from test env and how to clean them up? |
| 67 | + |
| 68 | +Azure marketplace is responsible for managing different stages during the offer publishing, just follow its process to make it Go-Live and no additional clean-ups are needed. |
| 69 | + |
| 70 | +## Do we delete/archive previous version of the solution? |
| 71 | + |
| 72 | +Previous versions of the solution are archived. You can find/download them from "Offer > Plan overview > Technical configuration > Previously published packages". |
| 73 | + |
| 74 | +## Create a release and a branch with the GA code (for image and cluster repo) |
| 75 | + |
| 76 | +Probably creating a release/tag for each GA code is good enough. |
0 commit comments