Giter Site home page Giter Site logo

cp4waiops-samples's Introduction

Table of Contents generated with DocToc

IBM Cloud Pak for Watson AIOps Sample Files (cp4waiops-samples)

Scope

The purpose of this project is to provide sample files and code snippets for IBM Cloud Pak for Watson AIOps; for example, configuration yaml files, script sample files, and so on. You can directly download these files for either installing or configuring IBM Cloud Pak for Watson AIOps.

Usage

To understand and use the IBM Cloud Pak for Watson AIOps, see the documentation and select the appropriate version.

In the documentation, if the sample yaml file or script file is long, it is not included in the content. Instead, it is available inside this repo and linked to from the topic. By clicking the link in the topic, you open the specific file url and can then download the file to your local directory for direct use.

You can also refer to cp4waiops-gitops repo to check how to use gitops to deploy the IBM Cloud Pak for Watson AIOps.

Contributing

Pull requests are very welcome! Make sure that your patches are tested. Ideally create a topic branch for every separate change you make. For example:

  1. Fork the repo
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

cp4waiops-samples's People

Contributors

aadeshpa avatar adamdarney avatar aziahan avatar blancettb avatar diasandia avatar email2smohanty avatar griffindvs avatar gyliu513 avatar jackbuggins avatar joker23 avatar kschanrtp avatar kvijai82 avatar lsalazar1 avatar matthewt-ibm avatar piers-walter-ibm avatar qahmed1998 avatar ranjeetsingh-23 avatar rolivieri avatar rwellon avatar siyer-123 avatar snail-gggg avatar stevemar avatar taylormgeorge91 avatar tseelbach avatar veronicaboychuk avatar virajvyasibm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cp4waiops-samples's Issues

Initiate the folder structure for sample app work

As we start the work on sample app for CP4WAIOps, including documents and automation for people to quickly setup demo env or PoC of CP4WAIOps along w/ sample app, we need to define a folder structure to host all these contents. This issue is used to track the progress of the folder structure construction.

A proposed structure might look as below:

- sample-app (root folder for all sample app work)
  - data (sample data)
  - scripts (util scripts called by tasks)
  - tasks (ansible playbooks)
  - templates (j2 templates)
  sample-app.conf (configuration file)
  xyz.sh (shell script to start the automation)

Uninstall hangs while deleting IAF PVCs; incomplete deletion of resources

Description

When running the uninstall script, it will hang indefinitely trying to delete data-iaf-system-elasticsearch-es-aiops-0.
The hanging issue is due to IAF PVC deletion occurring before deletion of IAF operators.

Additionally, it does not handle the deletion two resources under the ibm-common-services namespace:
nss-odlm-scope
odlm-scope-managedby-odlm
(Can be seen by running oc get namespacescopes.operator.ibm.com -n ibm-common-services)

Notes:
Found through automated testing pipeline; some tests may have been creating user resources on the PVC causing the operator pod to hold on to it, which is a scenario that may not have been previously tested.

Resolution

Fixes are made in this pull request. IAF PVC deletion is moved after IAF operators and the two resources are added to deletion list.

Infrastructure Management Install Fails on MacOS due to incorrect usage of sleep

The installation scripts for infrastructure automation fails on the first run-through as the scripts use an 's' at the end of the sleep instruction to specify the length to sleep for. On linux this is supported but on MacOS only supports an integer after sleep in the shell. This causes the installation script to fail quickly as sleep returns instantly rather than waiting, meaning the script doesn't give the cluster time to deploy resources

To support MacOS sleep should not use an 's' after specifying the number of seconds, this will also support Linux as it default to seconds if no 's' 'm' or 'h' is put after the number.

Prereq checker tool for WAIOps 3.5 "uprates" errors (info as warning and warning as errors)

Examples:

[INFO] Checking if the job 'cp4waiops-entitlement-key-test-job' already exists.
Error from server (NotFound): jobs.batch "cp4waiops-entitlement-key-test-job" not found

That is not an error, it is just the involuntary output of a check for its existence. There is a --ignore-not-found=true flag for oc get that can suppress that error message.

[INFO] Checking storage providers
error: the server doesn't have a resource type "storagecluster"
error: the server doesn't have a resource type "storagecluster"

That is not an error, once again, just the involuntary output of a resource check. The cluster may just be using a different form of storage.

[WARNING] StorageCluster instance is not Online. In order for Portworx to work, an instance of StorageCluster must have a status of "Online".
No resources found in openshift-storage namespace.

StorageCluster's absence does not warrant warnings unless ODF is installed.

[WARNING] Openshift Data Foundation not running.

That is information, not reason to warn a user who is not attempting to use ODF.

Error from server (NotFound): storageclasses.storage.k8s.io "ibmc-file-gold-gid" not found

Same observation about involuntary output of oc get calls to check for resource existence. From the perspective of the user, this is not an Error.

[WARNING] ibmc-file-gold-gid is not running.

ibmc-file-gold-gid is a storage class, not something that runs. Also, it is perfectly fine for it to not exist on most clusters since ROKS is just one of many supported platforms.

[ERROR] At least one of the three Storage Providers are required
[ERROR] The supported Storage Providers are Portworx, Openshift Data Foundation, or IBMC File Gold Gid. See https://ibm.biz/storage_consideration_350 for details.

According to the cited page, these providers are "recommended" rather than "required". Therefore this should be a WARNING, not an Error.

Also, the cited page mentions the support for Spectrum Fusion, so that the final error message is incomplete.

v3.3 uninstall hangs on delete_connections

We had an AIOps v3.3 install that didn't fully complete. We ran the v0.3 version of the uninstall script and for the delete_connections step it hung. There were no connections to delete, so it seems that this case is not properly handled by the script. To workaround we had to comment out the call to delete_connections and run again.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.