Git Product home page Git Product logo

iot-docs's People

Contributors

cuddlyporcupine avatar durera avatar grtn316 avatar hnorlen avatar jackjliew avatar leo-davison avatar sanju7216 avatar stonepd avatar terenceq avatar twhart avatar whitfiea avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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

iot-docs's Issues

--assembly parameter missing

The --assembly parameter is missing from command when installing cp4d:

./cpd-linux adm -r repo.yaml -n zen --apply --verbose --accept-all-licenses

What value should it take? Is lite ok?

Pod didn't find available persistent volumes to bind.

I'm executing the installer on a local open shift cluster and getting this message on Pod Manager.

0/1 nodes are available: 1 node(s) didn't find available persistent volumes to bind.

Here are some outputs from the troubleshooting section

➜  oc describe po/mas-mongo-ce-0 -n mongo

Events:
  Type     Reason            Age                 From               Message
  ----     ------            ----                ----               -------
  Warning  FailedScheduling  4s (x9 over 5m50s)  default-scheduler  0/1 nodes are available: 1 node(s) didn't find available persistent volumes to bind.
➜  oc describe pvc/data-volume-mas-mongo-ce-0
Name:          data-volume-mas-mongo-ce-0
Namespace:     mongo
StorageClass:  local-storage
Status:        Pending
Volume:        
Labels:        app=mas-mongo-ce-svc
Annotations:   <none>
Finalizers:    [kubernetes.io/pvc-protection]
Capacity:      
Access Modes:  
VolumeMode:    Filesystem
Used By:       mas-mongo-ce-0
Events:
  Type    Reason                Age                   From                         Message
  ----    ------                ----                  ----                         -------
  Normal  WaitForFirstConsumer  7m7s                  persistentvolume-controller  waiting for first consumer to be created before binding
  Normal  WaitForPodScheduled   72s (x25 over 6m57s)  persistentvolume-controller  waiting for pod mas-mongo-ce-0 to be scheduled
➜  oc get storageclass
NAME            PROVISIONER                    RECLAIMPOLICY   VOLUMEBINDINGMODE      ALLOWVOLUMEEXPANSION   AGE
local-storage   kubernetes.io/no-provisioner   Delete          WaitForFirstConsumer   false                  18h
➜  echo $MONGODB_STORAGE_CLASS
local-storage
➜  oc get crd/mongodbcommunity.mongodbcommunity.mongodb.com
NAME                                            CREATED AT
mongodbcommunity.mongodbcommunity.mongodb.com   2022-04-22T15:06:15Z

➜  oc get role mongodb-kubernetes-operator
NAME                          CREATED AT
mongodb-kubernetes-operator   2022-04-22T15:06:16Z

➜  oc get rolebinding mongodb-kubernetes-operator
NAME                          ROLE                               AGE
mongodb-kubernetes-operator   Role/mongodb-kubernetes-operator   11m

➜  oc get serviceaccount mongodb-kubernetes-operator
NAME                          SECRETS   AGE
mongodb-kubernetes-operator   2         12m
oc get MongoDBCommunity -n mongo -o yaml
[...]
        volumeClaimTemplates:
        - metadata:
            name: data-volume
          spec:
            accessModes:
            - ReadWriteOnce
            resources:
              requests:
                storage: 20Gi
            storageClassName: local-storage
        - metadata:
            name: logs-volume
          spec:
            accessModes:
            - ReadWriteOnce
            resources:
              requests:
                storage: 2Gi
            storageClassName: local-storage
[...]

I hope someone can help me with this issue.

Thank you

Error from Server

Hi guys, really appreciate you putting this together for us. When running the script however I've been getting this issue:
Waiting for MongoDB CE Stateful Set to initialize and start \Error from server (NotFound): statefulsets.apps "mas-mongo-ce" not found
Are you aware of a workaround? Probably a simple solution..

install-mongo-ce.sh gets an error "mas-mongo-ce" not found

We're getting the following error when running the install-mongo-ce script that is due to oc get statefulset mas-mongo-ce -n ${MONGO_NAMESPACE} -o 'jsonpath={..status.readyReplicas}' not returning any value.

 $ ./install-mongo-ce.sh
Now using project "mongo" on server "https://api.nag.cp.fyre.ibm.com:6443".

You can add applications to this project with the 'new-app' command. For example, try:

    oc new-app rails-postgresql-example

to build a new example application in Ruby. Or use kubectl to deploy a simple Kubernetes application:

    kubectl create deployment hello-node --image=k8s.gcr.io/serve_hostname

customresourcedefinition.apiextensions.k8s.io/mongodbcommunity.mongodbcommunity.mongodb.com created
serviceaccount/mongodb-kubernetes-operator created
role.rbac.authorization.k8s.io/mongodb-kubernetes-operator created
rolebinding.rbac.authorization.k8s.io/mongodb-kubernetes-operator created
clusterrole.rbac.authorization.k8s.io/system:openshift:scc:anyuid added: "default"
clusterrole.rbac.authorization.k8s.io/system:openshift:scc:anyuid added: "mongodb-kubernetes-operator"
deployment.apps/mongodb-kubernetes-operator created
 - Waiting for MongoDB CE Operator   configmap/mas-mongo-ce-cert-map created
secret/mas-mongo-ce-cert-secret created
mongodbcommunity.mongodbcommunity.mongodb.com/mas-mongo-ce created
secret/mas-mongo-ce-admin-password created
 - Waiting for MongoDB CE Stateful Set to initialize and start  |Error from server (NotFound): statefulsets.apps "mas-mongo-ce" not found
 $ 

The script then appears to stop running (though the rest of the commands ran).

Running oc get statefulset mas-mongo-ce -n ${MONGO_NAMESPACE} -o 'jsonpath={.status.readyReplicas}' gives the result of 3 however. So maybe remove the extra dot in the jsonpath filter.

MongoDB CE Stateful Set doesn't initialize/start

The installation script for mongodb does run through successfully until the point it waits until the stateful set is initialize or started.

The openshift events log says at the total beginning:

0/3 nodes are available: 3 pod has unbound immediate PersistentVolumeClaims.

And after some successful logs it finally throws the error:

Readiness probe failed: panic: couldn't open sink "/var/log/mongodb-mms-automation/readiness.log": open /var/log/mongodb-mms-automation/readiness.log: permission denied goroutine 1 [running]: main.main() /build/main.go:216 +0x2df

The logs are as followed:
2022-08-04T11:41:03.010Z INFO versionhook/main.go:34 Running version change post-start hook 2022-08-04T11:41:03.010Z INFO versionhook/main.go:41 Waiting for agent health status... 2022-08-04T11:41:04.011Z ERROR versionhook/main.go:49 Error getting the agent health file: could not open file: open /healthstatus/agent-health-status.json: no such file or directory main.main /go/cmd/versionhook/main.go:49 runtime.main /usr/local/go/src/runtime/proc.go:225

The persistent volumes does exist as well as the persistent volumes claims. If I shell into the container the following path is available:
/var/log/mongodb-mms-automation/healthstatus
All folders, no files. The permissions are set correctly.

Running OpenShift 4.8.46

I am running out of options, thanks for the help!

Mongo CE deployment hangs

When deploying Mongo CE, sometimes it hangs indefinately due to the OCP API pods restarting (or something else).

See error:

customresourcedefinition.apiextensions.k8s.io/mongodbcommunity.mongodbcommunity.mongodb.com created
serviceaccount/mongodb-kubernetes-operator created
role.rbac.authorization.k8s.io/mongodb-kubernetes-operator created
rolebinding.rbac.authorization.k8s.io/mongodb-kubernetes-operator created
clusterrole.rbac.authorization.k8s.io/system:openshift:scc:anyuid added: "default"
clusterrole.rbac.authorization.k8s.io/system:openshift:scc:anyuid added: "mongodb-kubernetes-operator"
error: error when creating "config/manager/manager.yaml": Post "https://api.tempcluster.clustermaximo.com:6443/apis/apps/v1/namespaces/mongo/deployments?fieldManager=kubectl-create": dial tcp 10.0.0.5:6443: connect: connection refused
 - Waiting for MongoDB CE Operator  -Error from server (NotFound): deployments.apps "mongodb-kubernetes-operator" not found
^H/The connection to the server api.tempcluster.clustermaximo.com:6443 was refused - did you specify the right host or port?
^H|Error from server (NotFound): deployments.apps "mongodb-kubernetes-operator" not found
^H|Error from server (NotFound): deployments.apps "mongodb-kubernetes-operator" not found
^H\Error from server (NotFound): deployments.apps "mongodb-kubernetes-operator" not found
^H-Error from server (NotFound): deployments.apps "mongodb-kubernetes-operator" not found
^H/Error from server (NotFound): deployments.apps "mongodb-kubernetes-operator" not found
^H|Error from server (NotFound): deployments.apps "mongodb-kubernetes-operator" not found
^H\Error from server (NotFound): deployments.apps "mongodb-kubernetes-operator" not found

Is it possible to add a retry or check that these scripts are executing without error? Current error is here:

sed "s|{{MONGO_NAMESPACE}}|${MONGO_NAMESPACE}|g" config/manager/__manager__.yaml > config/manager/manager.yaml

However, I have seen it at different lines just depending on when one of the OCP API pods is restarted. We are taking this project as a dependancy for our automated deployments on azure found here: Maximo on Azure

SSL Issue on TLS handshake with MAS Configuration

Hi Terence,

I wanted to reach out and confirm an issue I am having with setting up MAS with this configuration.

I am receiving some issues with some of the pods spinning up:

%3|1649029690.728|FAIL|rdkafka#producer-1| [thrd:sasl_ssl://maskafka-kafka-2.maskafka-kafka-brokers.mas-masdemo-]: sasl_ssl://maskafka-kafka-2.maskafka-kafka-brokers.mas-masdemo-core.svc:9094/bootstrap: SSL handshake failed: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed: broker certificate could not be verified, verify that ssl.ca.location is correctly configured or root CA certificates are installed (install ca-certificates package) (after 6ms in state SSL_HANDSHAKE)

I have tried setting up the certificates from the secrets in the OC4 console, however I still seem to get the same issue.

I would really appreciate your help on this. Thanks!

MAS-Kafka-cluster yaml (v 2.40) not supported by current Strimzi

Need a little help. Installed Strimzi in the IBM Cloud (operator hub) - for my OpenShift cluster.
This is for setting up MAS.
Instructions in github states to use the mas-kafka-cluster yaml to create a Kafka cluster for MAS
(https://github.com/ibm-watson-iot/iot-docs/blob/master/kafka/kafka-resources/mas-kafka-cluster.yaml)

However the Strimzi version (0.20.1) states ... " Remove support for 2.4.0 and 2.4.1"

So the yaml definition here is no longer supported. I cannot create the Kafka cluster & am stuck at this point.
Can someone help to create a new mas-kafka-cluster yaml for the version of Strimzi.

Thank you for your help - I am a newbie and am trying to learn MAS

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.