openshift-tools | Tools and utilities for managing and monitoring the OSE | Monitoring library
kandi X-RAY | openshift-tools Summary
kandi X-RAY | openshift-tools Summary
Tools and utilities for managing and monitoring the OSE infrastructure components.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- List projects
- Summarize build files
- Get a namespace resource
- Returns the base URL for the given resource path
- Normalize cpu string
- Normalize a storage string
- Print out alert rules
- Prints the rule
- Get alerts from blacklist
- Check if plugin_id matches the given plugin_id
- Dump the contents of the docker logs
- Summarize running pods
- Get all available pods
- Retrieve usage details for a given date range
- Display a project
- Print usage for usage
- Writes throughput data to influxdb
- Summarize persistent volume claims
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