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
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.