Comments (6)
Liam, could you please review these and update appropriately? Thanks!
from cp4waiops-samples.
Hi, these should be included in the PR for the pre-req script 3.6.1 updates!
from cp4waiops-samples.
@nastacio Please see the changes here, and verify if this issue has been remediated. Thanks!
from cp4waiops-samples.
@nastacio Please see the changes here, and verify if this issue has been remediated. Thanks!
Should I read into this that the issue will not be addressed in version 3.5.x of the script?
from cp4waiops-samples.
A cursory check on the 3.6 script (ran it against a cluster without any storage or prereq in place) still shows a a few of the original problems:
nastacio@Yeager4 3.6 % ./prereq.sh
Using project "default" on server "https://api.dncp4d.cp.fyre.ibm.com:6443".
Starting IBM Cloud Pak for Watson AIOps AI Manager prerequisite checker v3.6...
[INFO] =================================Openshift Container Platform Version Check=================================
[INFO] Checking OCP Version. Compatible Versions of OCP are v4.8 and v4.10.
[INFO] OCP Version 4.10.46 is compatible with IBM Cloud Pak for Watson AIOps AI Manager
[INFO] =================================Entitlement Pull Secret=================================
[INFO] Checking whether the Entitlement secret or Global pull secret is configured correctly.
[INFO] Checking if the job 'cp4waiops-entitlement-key-test-job' already exists.
[INFO] The job with name 'cp4waiops-entitlement-key-test-job' was not found, so moving ahead and creating it.
[INFO] Creating the job 'cp4waiops-entitlement-key-test-job'
job.batch/cp4waiops-entitlement-key-test-job created
[INFO] Verifying if the job 'cp4waiops-entitlement-key-test-job' completed successfully..
usage: sleep seconds
usage: sleep seconds
usage: sleep seconds
usage: sleep seconds
usage: sleep seconds
usage: sleep seconds
usage: sleep seconds
usage: sleep seconds
usage: sleep seconds
usage: sleep seconds
usage: sleep seconds
usage: sleep seconds
usage: sleep seconds
[INFO] SUCCESS! Entitlement secret is configured correctly.
job.batch "cp4waiops-entitlement-key-test-job" deleted
[INFO] =================================Entitlement Pull Secret=================================
[INFO] =================================Storage Provider=================================
[INFO] Checking storage providers
[WARNING] No StorageClusters found with "Online" status found. In order for Portworx to work, an instance of StorageCluster must have a status of "Online". Skipping configuration check for Portworx.
No resources found in openshift-storage namespace.
[INFO] Openshift Data Foundation not running.
[INFO] No IBM Cloud Storage not found... Skipping configuration check for IBM Cloud Storage Check.
[INFO] No IBM Spectrum Fusion or IBM Spectrum Scale Container Native... Skipping configuration check for IBM Spectrum.
At least one of the four Storage Providers are required
The supported Storage Providers are Portworx, Openshift Data Foundation, IBM Cloud Storage for ROKS, or IBM Spectrum Fusion/IBM Spectrum Scale Container Native. See https://ibm.biz/storage_consideration_360 for details.
[INFO] =================================Storage Provider=================================
[INFO] =================================Network Policy=================================
[INFO] Checking Network Policy configuration
Namespace default DOES NOT have the expected metadata label
Please see https://ibm.biz/aiops_netpolicy_36 to configure a network policy
[INFO] =================================Network Policy=================================
[INFO] =================================Small or Large Profile Install Resources=================================
[INFO] Checking for cluster resources
[INFO] ==================================Resource Summary=====================================================
[INFO] Nodes | vCPU | Memory(GB)
[INFO] Small profile(available/required) [ 3 / 3 ] [ 62 / 56 ] [ 209 / 140 ]
[INFO] Large profile(available/required) [ 3 / 10 ] [ 62 / 156 ] [ 209 / 360 ]
[INFO] ==================================Resource Summary=====================================================
[INFO] Cluster currently has resources available to create a small profile of Cloud Pak for Watson AIOps AI Manager
[INFO] =================================Small or Large Profile Install Resources=================================
[INFO] =================================Prerequisite Checker Tool Summary=================================
[ PASS ] Openshift Container Platform Version Check
[ PASS ] Entitlement Pull Secret
[ FAIL ] Storage Provider
[ FAIL ] Network Policy
[ PASS ] Small or Large Profile Install Resources
[INFO] =================================Prerequisite Checker Tool Summary=================================
-
(minor) Those extraneous
usage: sleep seconds
messages in the output are probably due to the usage ofSLEEP_LOOP=5s
inside the code. I ran the script on a macOS terminal and thats
at the end is non standard on macOS or Unix BSD. Removing thes
at the end will address the issue and not affect the results (sleep 5
should work across all Unix variants.) -
(medium) There are two failures identified (Storage Provider and Network Policy), yet the CLI now classifies the surrounding output flagging those errors as
INFO
. The lack of a supported storage provider should at least be a warning. If prerequisite network configuration is a mandatory prerequisite, the message around it should be an error. -
(major) There is still a warning about a problem with Portworx, even though this cluster has no Portworx storage.
-
(medium) The shortened link https://ibm.biz/aiops_netpolicy_36 leads to ibm.com (The shortlink https://ibm.biz/storage_consideration_360 is fine)
-
(major) Even with the two failures, the CLI is reporting a successful exit code of
0
. This is particularly troublesome for integrators attempting to incorporate the CLI into automated processes:nastacio@Yeager4 3.6 % echo $? 0
from cp4waiops-samples.
I ran the script against a cluster running ODF:
[INFO] =================================Storage Provider=================================
[INFO] Checking storage providers
[WARNING] No StorageClusters found with "Online" status found. In order for Portworx to work, an instance of StorageCluster must have a status of "Online". Skipping configuration check for Portworx.
[INFO] Openshift Data Foundation found. Skipping configuration check for ODF.
[INFO] No IBM Cloud Storage not found... Skipping configuration check for IBM Cloud Storage Check.
[INFO] No IBM Spectrum Fusion or IBM Spectrum Scale Container Native... Skipping configuration check for IBM Spectrum.
Checking Openshift Data Foundation Configuration...
Verifying if Red Hat Openshift Data Foundation pods are in "Running" or "Completed" status
[INFO] Pods in openshift-storage project are "Running" or "Completed"
[INFO] ocs-storagecluster-ceph-rbd exists.
[INFO] ocs-storagecluster-cephfs exists.
[INFO] openshift-storage.noobaa.io exists.
[INFO] No warnings or failures found when checking for Storage Providers.
[INFO] =================================Storage Provider=================================
- It says
No warnings or failures found when checking for Storage Providers.
even though it prints a warning. The warning is a false positive, but that indicates the logic behind the assessment of "No warnings ... found" needs to be revisited. - [No IBM Cloud Storage not found.] -> There is an extraneous "not" in that sentence.
- [Openshift Data Foundation found. Skipping configuration check for ODF.] -> That is not correct, the check is not skipped
from cp4waiops-samples.
Related Issues (9)
- uninstall targets installations CRD instead of installations.orchestrator.aiops.ibm.com HOT 2
- check_additional_installation_exists needs updated with proper installation CRD HOT 1
- Uninstall hangs while deleting IAF PVCs; incomplete deletion of resources HOT 1
- Initiate the folder structure for sample app work HOT 3
- move getting started to top HOT 1
- Infrastructure Management Install Fails on MacOS due to incorrect usage of sleep HOT 1
- v3.3 uninstall hangs on delete_connections HOT 1
- 4.4 prereq script does not comply with documentation. HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cp4waiops-samples.