Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

listAvailablePackages returns No packages were found #56

Open
majguo opened this issue May 21, 2021 · 14 comments
Open

listAvailablePackages returns No packages were found #56

majguo opened this issue May 21, 2021 · 14 comments

Comments

@majguo
Copy link
Collaborator

majguo commented May 21, 2021

Today when I'm testing the latest tWAS cluster testing offer using Ed's entitled IBMid, it always failed. I further triaged the issue and found that the command used to list available packages doesn't run as expected, which caused the entitlement check failed:

userName=<your.IBMid>
password=<your.IBMid.pwd>
${IM_INSTALL_DIRECTORY}/eclipse/tools/imutilsc saveCredential -secureStorageFile storage_file -userName "$userName" -userPassword "$password" -passportAdvantage
${IM_INSTALL_DIRECTORY}/eclipse/tools/imcl listAvailablePackages -cPA -secureStorageFile storage_file

Command output for listing available packages:

No packages were found.

I run the above command both in a vm deployed on Azure and my local laptop, with entitled and un-entitled IBMids, but get the same result.
Actually when I re-thought the issue, the similar phenomenon happened few times before, but then disappeared. However, the issue seems persist this time, not sure if the back-end service for listing available packages is down or there is something else wrong.

This issue needs to be triaged and resolved ASAP as it blocks successful tWAS cluster deployments.

@majguo
Copy link
Collaborator Author

majguo commented May 22, 2021

Hello @git4rk Could you pls help take a look at this issue? Thanks.

@majguo
Copy link
Collaborator Author

majguo commented May 22, 2021

Note: this issue not only breaks entitlement check, but also breaks tWAS installation, as no available packages returned.

@git4rk
Copy link
Contributor

git4rk commented May 22, 2021

@majguo imcl listAvailablePackages worked for me now. Maybe it was a temporary (but long) outage. I will continue to follow up with Install team.

@git4rk
Copy link
Contributor

git4rk commented May 25, 2021

@majguo
Copy link
Collaborator Author

majguo commented May 31, 2021

Closing the ticket per @git4rk 's response.

@majguo majguo closed this as completed May 31, 2021
@NottyCode NottyCode transferred this issue from WASdev/azure.websphere-traditional.image Jun 22, 2021
@edburns
Copy link
Collaborator

edburns commented Jun 30, 2021

I recently ran into this again.

We must make it so that such a cause of failure does not show up as "un-entitled".

@majguo
Copy link
Collaborator Author

majguo commented Jun 30, 2021

@edburns @git4rk Re-open this issue to add the check against the result of listAvailablePackages:

  • display the appropriate error message to the end user if No packages were found is returned, which indicates the back-end service for listing available packages is down so entitlement check and cluster deployment are blocked

@majguo majguo reopened this Jun 30, 2021
@majguo
Copy link
Collaborator Author

majguo commented Jul 5, 2021

@gcharters @git4rk Currently, if listAvailablePackages returns No packages were found., the followings happen:

  • the user's IBMid will be identified as un-entitled ==> inaccurate, need to be improved
  • the software pre-installed in the base image is uninstalled ==> safe and good enough

I ask your help to provide the appropriate error message for the 1st item, so that user can clearly understand the deployment failure is due to the unavailability of listAvailablePackages used for checking entitlement.

@gcharters
Copy link
Member

@majguo is there another action after listAvailablePackages that acts as the entitlement check? If so, then maybe something like this as an error message:
No WebSphere Application Server installation packages were found. This is likely due to a temporary issue with the installation repository. Please try again and raise and IBM support issue if the problem persists.

@majguo
Copy link
Collaborator Author

majguo commented Jul 5, 2021

@gcharters Yes. Below is part of output of listAvailablePackages for your reference:

...
com.ibm.websphere.ND.v90_9.0.5006.20201109_1605
com.ibm.websphere.ND.v90_9.0.5007.20210301_1241
...
com.ibm.websphere.WCT.v90_9.0.5006.20201109_1605
com.ibm.websphere.WCT.v90_9.0.5007.20210301_1241
...
com.ibm.websphere.PLG.v90_9.0.5006.20201109_1605
com.ibm.websphere.PLG.v90_9.0.5007.20210301_1241
...
com.ibm.websphere.IHS.v90_9.0.5006.20201109_1605
com.ibm.websphere.IHS.v90_9.0.5007.20210301_1241
...
com.ibm.java.jdk.v8_8.0.6030.20210512_0631
com.ibm.java.jdk.v8_8.0.6031.20210513_1113
...

Based on @git4rk 's response before, ND.v90_9.0.5007 is the first entitled version which is only accessible by the entitled IBM ID. In other words, no ND.v90_9.0.5007 is returned in the output of ND.v90_9.0.5007 for an un-entitled IBM ID. So the next action after listAvailablePackages is to check whether the output includes literal string ND.v90_9.0.5007. The same entitlement check mechanism is used for both WAS ND and IHS.

Besides, few comments for your suggested message:

  • Typo: "Please try again and raise and IBM support issue if the problem persists." ==> should be "Please try again and raise an IBM support issue if the problem persists."?
  • Does the suggested message only apply to WAS ND or it can apply to both WAS ND and IHS? We have the ability to differentiate between WAD ND and IHS.

@git4rk
Copy link
Contributor

git4rk commented Jul 6, 2021

@majguo @gcharters Here is the suggested text from the IDD team (Pam):
No WebSphere Application Server installation packages were found. This is likely due to a temporary issue with the installation repository. Try again and open an IBM Support issue if the problem persists.

@git4rk
Copy link
Contributor

git4rk commented Jul 13, 2021

From 2021-07-06 meeting minutes:

  • listAvailablePackages returns No packages were found: related issue Make it possible to have <= 20 nodes in the cluster #39 (see above)
    • Option 1: problem with service. Returns "No packages were found"
    • Option 2: not entitled. Returns a set of packages, but not the one we're looking for.
    • Option 3: entitled. Returns a set of packages including the one we were looking for.
  • Action: Graham Investigate the issues with listAvailablePackages issue on IBM side. Why it's happening quite frequently and lasting for up to a day.

@edburns
Copy link
Collaborator

edburns commented Feb 26, 2022

This issue can be closed. If the problem resurfaces, we will open another one. @git4rk .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants