GithubHelp home page GithubHelp logo

eviladevil / mas-local Goto Github PK

View Code? Open in Web Editor NEW
18.0 18.0 8.0 95 KB

A few files to quickly bring up a MAS Manage instance on OCP Local

License: Eclipse Public License 2.0

Batchfile 25.73% Shell 74.27%

mas-local's People

Contributors

eviladevil avatar liyongc avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mas-local's Issues

Error from server (NotFound): error when creating "mssql/manageworkspace-masdemo-maslocal.yaml": namespaces "mas-masdemo-manage" not found C:\MAS8\mas-local>

I am trying to install MAS8.X on Windows 2019 Server using Sql server.
Stuck at below error.

Error from server (NotFound): error when creating "mssql/manageworkspace-masdemo-maslocal.yaml": namespaces "mas-masdemo-manage" not found
C:\MAS8\mas-local>

FAILED - RETRYING: [localhost]: Wait for Suite Components to be ready (60s delay) (1 retries left).
fatal: [localhost]: FAILED! => {"api_found": true, "attempts": 50, "changed": false, "resources": [{"apiVersion": "core.mas.ibm.com/v1", "kind": "Suite", "metadata": {"creationTimestamp": "2024-01-03T01:52:29Z", "finalizers": ["core.mas.ibm.com/finalizer"], "generation": 1, "labels":.......................................................
-...............................
, "message": "Failed to apply object: Namespace is required for cert-manager.io/v1.Issuer", "reason": "Failed", "status": "True", "type": "Failure"}]}}]}

NO MORE HOSTS LEFT *************************************************************

PLAY RECAP *********************************************************************
localhost : ok=207 changed=14 unreachable=0 failed=1 skipped=73 rescued=0 ignored=0

Wednesday 03 January 2024 02:43:22 +0000 (0:50:48.056) 0:51:57.808 *****

ibm.mas_devops.suite_verify : Wait for Suite Components to be ready (60s delay) 3048.06s
ibm.mas_devops.install_operator : Create subscription ------------------- 5.76s
ibm.mas_devops.suite_config : Apply configs ----------------------------- 4.67s
Gathering Facts --------------------------------------------------------- 2.42s
ibm.mas_devops.mongodb : community : install : Install the MongoDb Operator --- 1.85s
ibm.mas_devops.install_operator : Create ibm-entitlement secret --------- 1.59s
ibm.mas_devops.mongodb : Get cluster info ------------------------------- 1.48s
ibm.mas_devops.mongodb : community : check-mongo-exists : Check for existing mongo operator instance --- 1.23s
ibm.mas_devops.ibm_catalogs : detect-airgap : Look for the MAS ImageContentSourcePolicy --- 1.18s
ibm.mas_devops.mongodb : Create a issuer in mongoce -------------------- 1.06s
ibm.mas_devops.mongodb : Create a Issuer for server certificate in mongoce --- 0.92s
ibm.mas_devops.mongodb : community : check-mongo-exists : Check for existing mongodb instance --- 0.91s
ibm.mas_devops.suite_install : Create suite.ibm.com/v1 CR --------------- 0.77s
ibm.mas_devops.sls : Wait for License File & ID Upload (30s delay) ------ 0.77s
ibm.mas_devops.ibm_catalogs : Create IBM online catalog ----------------- 0.75s
ibm.mas_devops.mongodb : community : install : Configure anyuid permissions in the MongoDb namespace --- 0.71s
ibm.mas_devops.install_operator : Create operator group ----------------- 0.71s
ibm.mas_devops.mongodb : Lookup ibm-operator-catalog -------------------- 0.70s
ibm.mas_devops.common_services : Check if operator group is present in ibm-common-services already --- 0.69s
ibm.mas_devops.mongodb : community : install : Install MongoDBCommunity CRD --- 0.68s
ibm.mas_devops.sls : Wait for LicenseService to be running (30s delay) --- 0.67s
ibm.mas_devops.sls : Create the sls.ibm.com/v1.LicenseService ----------- 0.67s
ibm.mas_devops.mongodb : Create a ca certificate in mongoce ------------- 0.67s
ibm.mas_devops.sls : Create the Mongo Secret for SLS -------------------- 0.66s
ibm.mas_devops.cert_manager : Wait for ibm-cert-manager-operator to be ready (60s delay) --- 0.66s
ibm.mas_devops.mongodb : Create a server certificate in mongoce --------- 0.65s
ibm.mas_devops.sls : Lookup sls.ibm.com/v1.LicenseService --------------- 0.65s
ibm.mas_devops.mongodb : community : install : Create MongoDb cluster --- 0.64s
ibm.mas_devops.cert_manager : Install Foundation Services ibm-cert-manager operand request --- 0.63s
ibm.mas_devops.suite_install : Wait until the Suite CRD is available ---- 0.63s
ibm.mas_devops.common_services : Lookup ibm-common-service-operator packagemanifest --- 0.63s
ibm.mas_devops.mongodb : community : install : Lookup the ca.pem -------- 0.63s
ibm.mas_devops.sls : Wait for LicenseService to be ready (60s delay) ---- 0.63s
ibm.mas_devops.install_operator : Create operator group ----------------- 0.63s
ibm.mas_devops.mongodb : community : install : Create namespace & install RBAC --- 0.62s
ibm.mas_devops.sls : Lookup PackageManifest: ibm-sls -------------------- 0.62s
ibm.mas_devops.sls : Obtain License Service Certificate ----------------- 0.62s
ibm.mas_devops.suite_install : detect-airgap : Look for the MAS ImageContentSourcePolicy --- 0.62s
ibm.mas_devops.ibm_catalogs : Wait until CatalogSource/ibm-operator-catalog is Ready --- 0.62s
ibm.mas_devops.mongodb : community : install : Wait for stateful set to be ready --- 0.61s
ibm.mas_devops.install_operator : Create subscription ------------------- 0.61s
ibm.mas_devops.common_services : Create ibm-common-services namespace --- 0.61s
ibm.mas_devops.cert_manager : Increase common service cpu limit to account for increased cert privateKey sizings --- 0.61s
ibm.mas_devops.sls : Wait until the LicenseService CRD is available ----- 0.60s
ibm.mas_devops.install_operator : Create namespace ---------------------- 0.59s
ibm.mas_devops.mongodb : community : install : Wait for Mongo CR to report correct version --- 0.59s
ibm.mas_devops.sls : Wait for LicenseService to be initialized (30s delay) --- 0.58s
ibm.mas_devops.mongodb : community : install : Lookup admin password ---- 0.57s
ibm.mas_devops.mongodb : community : install : Check for existing metrics endpoint secret --- 0.57s
ibm.mas_devops.mongodb : community : install : Lookup mongo pods -------- 0.57s
ibm.mas_devops.common_services : Wait for Foundational Services resources to be ready (60s delay) --- 0.57s
ibm.mas_devops.mongodb : community : check-mongo-exists : Check for existing mongo operator instance --- 0.57s
ibm.mas_devops.sls : Create SLS Bootstrap secret ------------------------ 0.57s
ibm.mas_devops.cert_manager : Wait for cert-manager-webhook deployment to be ready (60s delay) --- 0.57s
ibm.mas_devops.mongodb : community : check-mongo-exists : Check for existing mongodb instance --- 0.57s
ibm.mas_devops.cert_manager : Check if Certificate Manager is already installed --- 0.57s
ibm.mas_devops.sls : Get cluster subdomain ------------------------------ 0.57s
ibm.mas_devops.mongodb : community : install : Check for existing service monitor --- 0.57s
ibm.mas_devops.mongodb : Lookup storage classes ------------------------- 0.57s
ibm.mas_devops.mongodb : Lookup ibm-operator-catalog -------------------- 0.56s
ibm.mas_devops.common_services : Install Foundational Services ---------- 0.56s
ibm.mas_devops.mongodb : community : install : Lookup the server.crt ---- 0.56s
ibm.mas_devops.sls : detect-airgap : Look for the MAS ImageContentSourcePolicy --- 0.55s
ibm.mas_devops.install_operator : Create namespace ---------------------- 0.55s
ibm.mas_devops.mongodb : community : install : Lookup the ca.crt -------- 0.55s
ibm.mas_devops.mongodb : community : install : Check for existing CA configmap --- 0.54s
ibm.mas_devops.mongodb : community : install : Create MAS MongoCfg ------ 0.54s
ibm.mas_devops.mongodb : community : install : Check for existing user password secret --- 0.53s
ibm.mas_devops.suite_install : Get cluster subdomain -------------------- 0.53s
ibm.mas_devops.mongodb : Lookup ibm-operator-catalog -------------------- 0.51s
ibm.mas_devops.gencfg_workspace : Copy Workspace to filesytem ----------- 0.41s
ibm.mas_devops.sls : Copy SLSCfg to filesytem --------------------------- 0.39s
ibm.mas_devops.mongodb : List yml files in common_vars/casebundles folder --- 0.33s
ibm.mas_devops.mongodb : Check if file exists in casebundles ------------ 0.32s
ibm.mas_devops.mongodb : community : install : Configure anyuid permissions for database service account --- 0.31s
ibm.mas_devops.suite_config : Find *.yml and *.yaml files in the MAS config directory --- 0.26s
ibm.mas_devops.mongodb : Check if file exists in casebundles ------------ 0.24s
ibm.mas_devops.mongodb : Check if file exists in casebundles ------------ 0.23s
ibm.mas_devops.mongodb : Check again if file exists in casebundles ------ 0.22s
ibm.mas_devops.mongodb : Check if file exists in casebundles ------------ 0.21s
ibm.mas_devops.mongodb : Check if file exists in casebundles ------------ 0.21s
ibm.mas_devops.sls : Override MongoDb facts bases on mongocfg ----------- 0.14s
ibm.mas_devops.mongodb : set_fact --------------------------------------- 0.13s
ibm.mas_devops.mongodb : include_tasks ---------------------------------- 0.13s
ibm.mas_devops.mongodb : set_fact --------------------------------------- 0.12s
ibm.mas_devops.suite_config : Debug the list of config files located ---- 0.09s
ibm.mas_devops.ibm_catalogs : Run the selected action ------------------- 0.08s
ibm.mas_devops.mongodb : Set existing_mongo_minor_version --------------- 0.08s
ibm.mas_devops.sls : Generate SLSCfg ------------------------------------ 0.07s
ibm.mas_devops.mongodb : community : install : Check for existing Grafana dashboard --- 0.07s
Install SLS Operator ---------------------------------------------------- 0.07s
ibm.mas_devops.mongodb : community : install : Call install-mongo to install/upgrade to mongo v5 or v6 --- 0.06s
ibm.mas_devops.sls : Run the specified action --------------------------- 0.06s
ibm.mas_devops.ansible_version_check : Verify minimum Ansible version is 2.10.3 --- 0.06s
ibm.mas_devops.mongodb : community : install : Create new MongoDb Grafana dashboard --- 0.06s
ibm.mas_devops.ibm_catalogs : Determine whether this is an airgap environment --- 0.06s
ibm.mas_devops.mongodb : Retrieve image setting parts ------------------- 0.05s
ibm.mas_devops.install_operator : Debug Entitlement Secret Creation ----- 0.05s
ibm.mas_devops.mongodb : debug ------------------------------------------ 0.05s
ibm.mas_devops.mongodb : set_fact --------------------------------------- 0.05s
command terminated with exit code 2
Error from server (NotFound): error when creating "mssql/manageworkspace-masdemo-maslocal.yaml": namespaces "mas-masdemo-manage" not found

C:\MAS8\mas-local>

Works well

Hi,

Thanks for the script.

Working perfectly!

Custom Domain of local environment

Hi,

I have executed the script on my local machine and it’s working great.

question - is there any option where we can use the custom domain for Mas application in this setup?

There is one variable called “MAS_DOMAIN” which is being used by the the Ansible script.

Can we use this variable and make our own custom URL’s for Mas setup on local environment?

I am asking the question because we are looking for some local environment where we can connect from the Mobile Emulator where public CA is required. In case if custom domain is available in the local OCP then we can setup public CA in one of front end web server like (NGINX, Apach)

Please let us know how the variable MAS_DOMAIN works in the Ansible script

From my side, I am planing to make one environment to setup and check. But if you already have idea of limitation then please let us know.

I will provide my input after my change and test result.

Thanks.

installation hangs on mogodb cluster

Hi,
trying to use the script on both Linux and Windows OS, but in both cases installation does not go past 'create MongoDB cluster'.
I've managed to pinpoint the problem to the creating of PVC which throws error in log:
mkdir: can't create directory '/data/pvc-954d7733-57a1-47b9-ba9e-dc337106b055': Permission denied
Do You have any hints on that ?

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.