Ask Your Question
0

openstack offline installation using local repo on centos/redhat

asked 2016-07-02 13:43:07 -0600

os_newbie gravatar image

updated 2016-07-02 13:45:22 -0600

 Hi All,

I was trying to create a local repo and install openstack offline using local repo.
I downloaded all openstack packages as below for example :-
yum install openstack-nova-api --downloadonly --downloaddir=/root/local-pkgs

I created local repo pointing to /root/local-pkgs using createrepo utility.

But when I try to install openstack-nova-api :
[root@pcie7410-s1-c2 ~]# yum install openstack-nova-api 
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
No package openstack-nova-api available.
Error: Nothing to do
[root@pcie7410-s1-c2 ~]# 


I need to install rdo-release-kilo-2.rpm.
Then it install the first rpm from openstack-kilo repostitory and other from local repository "custom"
partial Output of yum install when rdo rpm is installed.
================================================================================
 Package                Arch    Version                   Repository       Size
================================================================================
Installing:
 openstack-nova-api     noarch  2015.1.2-1.el7            openstack-kilo  6.6 k
Installing for dependencies:
 libwebp                x86_64  0.3.0-3.el7               customrepo      170 k
 openstack-nova-common  noarch  2015.1.2-1.el7            customrepo       67 k
 python-cheetah         x86_64  2.4.4-5.el7.centos        customrepo      341 k
 python-jinja2          noarch  2.7.2-2.el7               customrepo      515 k
 python-markdown        noarch  2.4.1-1.el7.centos        customrepo      186 k
 python-nova            noarch  2015.1.2-1.el7            customrepo      2.9 M
 python-oslo-rootwrap   noarch  1.6.0-1.el7               customrepo       60 k
 python-pillow          x86_64  2.0.0-19.gitd1c6db8.el7   customrepo      438 k
 python-psutil          x86_64  2.2.1-1.el7               customrepo      114 k
 python-pygments        noarch  2.0.2-4.el7               customrepo      1.6 M
 python-rfc3986         noarch  0.2.0-1.el7               customrepo       20 k
 python2-ecdsa          noarch  0.13-4.el7                customrepo       83 k
 python2-paramiko       noarch  1.16.1-1.el7              customrepo      257 k

It gets the openstack-nova-api from openstack-kilo repository and rest from local repo i.e custom repo.
So, it still needs internet and rdo rpm installed. 
I have the openstack-nova-api in customrepo but it not useful as shown in the first output above.

One alternative I found is go to local_pkgs directory and using yum localinstall which will install the first and all dependencies rpms from custom repo.

But I would like to know the actual procedure.
Am I missing anything in this process.

There are many such packages which needs rdo rpm to be installed. I gave example of openstack-nova-api only.

Thanks,
Rajasekhar
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-07-03 09:51:00 -0600

os_newbie gravatar image
I found the solution.
There is a old repodata folder in the local_pkgs directory which does not have details of openstack-nova-api rpm.
I removed the old repodata directory and 
yum clean all
createrepo --update /root/local_pkgs/ 

Now new repodata is created with all the rpms details and it went fine.
edit flag offensive delete link more

Comments

can you tell me for what all services you have downladed using below command:

yum install <<openstack-nova-api>> --downloadonly --downloaddir=/root/local-pkgs

And was you installation succeeded?

udayutkarsh gravatar imageudayutkarsh ( 2018-06-26 09:24:32 -0600 )edit

Hi, Can you please share the steps which you have performed while doing offline installation of openstack-mitaka release.

Thanks.

Vikas_Singh_Rajput gravatar imageVikas_Singh_Rajput ( 2018-12-11 19:44:18 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2016-07-02 13:43:07 -0600

Seen: 1,554 times

Last updated: Jul 03 '16