Ask Your Question

devstack installation

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

midos gravatar image

Hello guys

When i try to install devstack ( on Centos 7 i have the following issue :

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

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

edit retag flag offensive close merge delete


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

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 script. You can bypass the installation of epel release while executing 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:

How to bypass epel installation if epel is installed already. Assume you have unaltered the script 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.


comment line 382 and 388

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



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


Then proceed your installation.

Best Regards,

Radhakrishnan Rk

edit flag offensive delete link more

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 :

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

Thank you in advance for your help

edit flag offensive delete link more


hi its a syntax error, please check the script 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


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

Best Regards, RK

Radhakrishnan Rk gravatar imageRadhakrishnan Rk ( 2017-07-31 14:02:03 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


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

Seen: 1,280 times

Last updated: Jul 30 '17