Ask Your Question
1

devstack installation

asked 2017-07-26 14:13:24 -0500

midos gravatar image

Hello guys

When i try to install devstack (stack.sh) on Centos 7 i have the following issue :

+./stack.sh:_install_epel_and_rdo:324 die 324 'Error installing EPEL repo, cannot continue' +functions-common:die:186 local exitcode=1 +functions-common:die:187 set +o xtrace [Call Trace] ./stack.sh:388:_install_epel_and_rdo ./stack.sh:324:die [ERROR] ./stack.sh:324 Error installing EPEL repo, cannot continue

Can anyone help me to fix this issue ? Thanks in advance

edit retag flag offensive close merge delete

Comments

Although Devstack can be installed on CentOS7, it could be quite easy if you prefer Ubuntu for devstack. Enable CentOS7 extras and optional repos in .repo file. Clean the stack and run stack.sh as non root user.

Praveen N gravatar imagePraveen N ( 2017-07-28 06:38:48 -0500 )edit

2 answers

Sort by » oldest newest most voted
2

answered 2017-07-28 13:12:40 -0500

Radhakrishnan Rk gravatar image

updated 2017-07-28 13:18:52 -0500

Hello Midos,

Have you installed epel repo with rpm before running stack.sh script. You can bypass the installation of epel release while executing stack.sh shell script.

Recommended epel rpm: epel-release-7-10.noarch

First of all, the script try to find out your os distribution name to install the appropriate epel release on your system. As we know epel release offers the software packages that are not provided by our os distributor. Most of the software packages in our system relies on these repo. So we need to have this repo in our system.

For information, Popular epel rpms: http://mirrors.fedoraproject.org/mirr...

How to bypass epel installation if epel is installed already. Assume you have unaltered the script stack.sh before.

Comment the line where they invoke function call to install epel and include the message that the package is already installed. Since epel is not installed by default in centos/rhel distros.

C:\fakepath\bypass_epel.png

comment line 382 and 388

**#sudo yum-config-manager --enable epel

#_install_epel_and_rdo**

C:\fakepath\eprl.png

File /opt/stack/devstack/functions-common has a method to find DISTRO. From which they identify the distro.

C:\fakepath\DISTRO.png

Then proceed your installation.

Best Regards,

Radhakrishnan Rk

edit flag offensive delete link more
1

answered 2017-07-30 12:22:19 -0500

midos gravatar image

Thank you for your answer.

I successfully installed the epel-release and i commented the line 382 & 388 but now i have a new issue :

++./stack.sh:main:373 SKIP_EPEL_INSTALL=False ./stack.sh: line 383: syntax error near unexpected token fi' ./stack.sh: line 383: fi'

Thank you in advance for your help

edit flag offensive delete link more

Comments

hi its a syntax error, please check the script stack.sh....BTW you can add the statement pass after lines 382 and 388 as workaround for time being as given below.

# sudo yum-config-manager --enable epel  # hope you have commented this at Line 382

pass  # Add this line
Praveen N gravatar imagePraveen N ( 2017-07-31 02:00:01 -0500 )edit

Midos,

It seems like a typo error. fi' . Remove ' in your script

https://ask.openstack.org/upfiles/150...

Best Regards, RK

Radhakrishnan Rk gravatar imageRadhakrishnan Rk ( 2017-07-31 14:02:03 -0500 )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: 2017-07-26 14:13:24 -0500

Seen: 918 times

Last updated: Jul 30 '17