Ask Your Question
1

Devstack installation issue: unknown error (http 500)

asked 2017-12-20 13:58:19 -0500

SuperBayern gravatar image

Trying to install Devstack on CentOS 7, got the error

  • 2017-12-20 19:02:07.990 | +./stack.sh:main:1304 create_flavors
  • 2017-12-20 19:02:08.020 | +lib/nova:create_flavors:1036 is_service_enabled n-api
  • 2017-12-20 19:02:08.176 | +functions-common:is_service_enabled:1908 return 0
  • 2017-12-20 19:02:08.205 | +lib/nova:create_flavors:1037 openstack --os-region-name=RegionOne flavor list
  • 2017-12-20 19:02:08.207 | +lib/nova:create_flavors:1037 grep -q ds512M
  • 2017-12-20 19:02:25.605 | Unknown Error (HTTP 500)
  • 2017-12-20 19:02:27.371 | +lib/nova:create_flavors:1039 openstack --os-region-name=RegionOne flavor create --id c1 --ram 256 --disk 0 --vcpus 1 cirros256
  • 2017-12-20 19:02:40.887 | Unknown Error (HTTP 500)
  • 2017-12-20 19:02:42.570 | +lib/nova:create_flavors:1 exit_trap

I've checked the log files, and it gave the same thing.

Any idea? Thanks in advance!

edit retag flag offensive close merge delete

Comments

Did you check the Nova logs? By default, you should see them with sudo journalctl -u devstack@n-*.

This is most likely not the root error. Something failed earlier, and Nova is not working correctly as a result.

Bernd Bausch gravatar imageBernd Bausch ( 2017-12-22 03:38:07 -0500 )edit

2 answers

Sort by ยป oldest newest most voted
1

answered 2018-02-18 00:13:57 -0500

rackerstacker gravatar image

updated 2018-02-18 00:14:34 -0500

As Bernd commented... This is not the root cause of the issue.

To find the root cause , check sudo journalctl -u devstack@n- and look for the last error that has occurred. In my case the error was AttributeError: 'module' object has no attribute 'GSSException' I removed the python-gssapi.x86_64 using the command yum remove python-gssapi.x86_64 and this issue was resolved. But another error popped up. This was due to a missing python module. ImportError: No module named pyasn1.type.univ So installed the module python-pyasn1 and python-pyasn1-modules using command yum install python-pyasn1 python-pyasn1-modules*.

After doing this, to test, I started only the nova-api (The service that threw these errors) and the service came up.

So the issue was fixed now. After this simply run the below get going ./unstack.sh and ./stack.sh

edit flag offensive delete link more
0

answered 2018-02-18 00:33:15 -0500

Radhakrishnan Rk gravatar image

It is recommended to install under python virtual environment, So that you can install all dev stack packages without any package dependency issues.

edit flag offensive delete link more

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-12-20 13:58:19 -0500

Seen: 624 times

Last updated: Feb 18 '18