Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the problem of inconsistency between the version of the dependency package of openstack native development and the running environment

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces "how to solve the problem of inconsistent version of dependency package between openstack native development and running environment". In daily operation, I believe that many people have doubts about how to solve the problem of inconsistent version of dependency package between openstack native development and running environment. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful for you to answer the question of "how to solve the problem of inconsistency between the version of the dependency package of openstack native development and the running environment"! Next, please follow the editor to study!

The native development environment is UBUNTU16.04LTS, and the development environment is the newton version openstack running environment built by the native centos7 virtual machine through packstack. During the development of horizon, it was found that the code reported by openstack did not match the code seen locally. By comparison, it is found that the versions of openstack_auth are inconsistent on both sides.

Because the native development horizon solves the dependency is installed by executing the following command in the horizon source directory

Sudo pip install-r requirements.txt

Therefore, the local installation depends on the universal version number higher than the packstack environment, and openstack has already released the ocata version, so there is a big difference in openstack_auth between the two environments.

The test can make the dependency packages of both environments consistent through the following steps.

Generate dependency information through pip in packstack environment

Pip freeze-r requirements.txt

Before changing requirements.txt to requirements.sh

Alembic==0.8.7amqp==1.4.6anyjson==0.3.3aodh==3.0.1.

Through the column editing mode of vscode, quickly modify it to the following:

Sudo pip install alembic==0.8.7sudo pip install amqp==1.4.6sudo pip install anyjson==0.3.3sudo pip install aodh==3.0.1.

By installing and executing sudo sh requirements.sh, you can adjust the native and packstack dependency package versions to be consistent.

At this point, the study on "how to solve the problem of inconsistency between the version of the dependency package of openstack native development and the running environment" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report