OpenStack is a cloud operating system that controls a large pool of computing, storage, and network resources in the entire data center. All resources are managed through a dashboard, which gives administrators control and allows users to prepare resources through the Web interface.
OpenStack is a cloud operating system that controls a large pool of computing, storage, and network resources in the entire data center. All resources are managed through a dashboard, which gives administrators control and allows users to prepare resources through the Web interface.
OpenStack supports MySQL, SQLite, and PostgreSQL by default. In this article, the author shows how to quickly enable OpenStack to support DB2®.
OpenStack is an excellent cloud operating system. It is wise for developers, administrators, and operators to possess skills related to it in their own virtual toolkit. An efficient cloud requires an efficient database and can accept multiple databases. However, if you want®What should I do if DB2 is used for OpenStack? OpenStack does not support DB2 by default.
This short exercise shows how to implement DB2 support in the OpenStack environment. The six steps involved include:
- Collect materials before you start.
- Install the database access package.
- Add additional support for DB2.
- Use OpenStack scripts.
- Configure OpenStack for DB2.
- Run OpenStack and DB2.
Let's get started.
Step 2: collect materials before start
OpenStack is built on other packages in Python 2.7 and Ubuntu 11.10 (64-bit Environment version. IBM DB2 is the target database you want to support. Before you begin, you need the following elements:
Step 2: Install the database access package
SQLAlchemy is a Python SQL Toolkit and object relation er. It supports SQL for Python application developers through an enterprise-level persistent mode suite designed for efficient and high-performance database access. SQLAlchemy tries to treat a database like a relational algebra engine, instead of a table set, to adapt to the two sizes and performance principles and abstract principles.
The object relation tor in SQLAlchemy (ing classes to databases in unlimited ways) supports the development of object models and database models in a completely decoupled manner.
SQLAlchemy-migrate is a mode migration tool. It provides a way to handle database schema changes in the SQLAlchemy project, and a database change repository mechanism that can be used on command lines, it can also be used in Python code.
- SQLAlchemy. Use sudo pip install SQLAlchemy = 0.7.2 (or any version you select) to install the SDK.
- Download SQLAlchemy-migrate. Because DB2 is not supported, install the patch db2.patch for DB2. Save the patch in the root folder of SQLAlchemy-migrate and run the command-p1 <db2.patch. Next, install SQLAlchemy-migrate.