openshift-tools | public repository of scripts | Cloud library
kandi X-RAY | openshift-tools Summary
kandi X-RAY | openshift-tools Summary
This repository contains scripts used by OpenShift Operations for various purposes, many of which do not pertain directly to management of OpenShift itself. Code here may be under heavy development, and none of these scripts are officially supported by Red Hat. Use at your own risk. The repository layout is designed for use with Tito. See our Build instructions for more information.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Read config file .
- Returns a list of snapshots that have expired snapshots .
- Run ansible .
- Verify that the image has a different configuration
- check if the host label on the host
- Parse a sample string .
- run a pod
- Check if user defs are equal
- Check if the node exists .
- Load a certificate and handle it .
openshift-tools Key Features
openshift-tools Examples and Code Snippets
Community Discussions
Trending Discussions on openshift-tools
QUESTION
I am using Openshift to deploy a django application which uses pyodbc for connecting to external database. Currently I wanted to schedule a cronjob in openshift using yaml file. The cronjob gets created with no problem but throws this error when run: ('IM004', "[IM004] [unixODBC][Driver Manager]Driver's SQLAllocHandle on SQL_HANDLE_HENV failed (0) (SQLDriverConnect)")
This error occcured before as Openshift overrides uid when running a container. I overcame this error by following this workaround: https://github.com/VeerMuchandi/mssql-openshift-tools/blob/master/mssql-client/uid_entrypoint.sh
This error pops up again when the cronjob is run and this maybe due to same uid issue. Following is my yaml file for scheduling cronjob:
...ANSWER
Answered 2020-Oct-10 at 14:21Was able to solve the issue using the entrypoint script I mentioned above and I included the the command to run the python script inside the .sh entrypoint script and instead of command: [ "python3", "/script.py" ] ["sh" , "/entrypoint.sh"] was used..The python script is used to connect to a DB server using pyodbc. pyodbc.connect() causes an issue if UID of container of is not written in etc/passwd which is done by entrypoint script mentioned above.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install openshift-tools
You can use openshift-tools like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page