Ask Your Question
0

Notice: /Stage[main]/Keystone::Db::Sync/Exec[keystone-manage db_sync]/returns: ImportError: No module named mysql [closed]

asked 2014-10-22 07:52:26 -0500

visayafan gravatar image

I tried to install OpenStack using command packstack --allinone, but error appeared. It seems like service openstack-keystone fail to start.

Can anyone help me out? Thank you.

[root@node1 ~]# service openstack-keystone start
Starting keystone:                                         [FAILED]

Below is the log:

[root@node1 ~]# packstack --allinone Welcome to Installer setup utility

Installing:
Clean Up                                             [ DONE ]
Setting up ssh keys                                  [ DONE ]
Discovering hosts' details                           [ DONE ]
Adding pre install manifest entries                  [ DONE ]
Preparing servers                                    [ DONE ]
Adding AMQP manifest entries                         [ DONE ]
Adding MariaDB manifest entries                      [ DONE ]
Adding Keystone manifest entries                     [ DONE ]
Adding Glance Keystone manifest entries              [ DONE ]
Adding Glance manifest entries                       [ DONE ]
Adding Cinder Keystone manifest entries              [ DONE ]
Adding Cinder manifest entries                       [ DONE ]
Checking if the Cinder server has a cinder-volumes vg[ DONE ]
Adding Nova API manifest entries                     [ DONE ]
Adding Nova Keystone manifest entries                [ DONE ]
Adding Nova Cert manifest entries                    [ DONE ]
Adding Nova Conductor manifest entries               [ DONE ]
Creating ssh keys for Nova migration                 [ DONE ]
Gathering ssh host keys for Nova migration           [ DONE ]
Adding Nova Compute manifest entries                 [ DONE ]
Adding Nova Scheduler manifest entries               [ DONE ]
Adding Nova VNC Proxy manifest entries               [ DONE ]
Adding Openstack Network-related Nova manifest entries[ DONE ]
Adding Nova Common manifest entries                  [ DONE ]
Adding Neutron API manifest entries                  [ DONE ]
Adding Neutron Keystone manifest entries             [ DONE ]
Adding Neutron L3 manifest entries                   [ DONE ]
Adding Neutron L2 Agent manifest entries             [ DONE ]
Adding Neutron DHCP Agent manifest entries           [ DONE ]
Adding Neutron LBaaS Agent manifest entries          [ DONE ]
Adding Neutron Metering Agent manifest entries       [ DONE ]
Adding Neutron Metadata Agent manifest entries       [ DONE ]
Checking if NetworkManager is enabled and running    [ DONE ]
Adding OpenStack Client manifest entries             [ DONE ]
Adding Horizon manifest entries                      [ DONE ]
Adding Swift Keystone manifest entries               [ DONE ]
Adding Swift builder manifest entries                [ DONE ]
Adding Swift proxy manifest entries                  [ DONE ]
Adding Swift storage manifest entries                [ DONE ]
Adding Swift common manifest entries                 [ DONE ]
Adding Provisioning Demo manifest entries            [ DONE ]
Adding Provisioning Glance manifest entries          [ DONE ]
Adding MongoDB manifest entries                      [ DONE ]
Adding Ceilometer manifest entries                   [ DONE ]
Adding Ceilometer Keystone manifest entries          [ DONE ]
Adding Nagios server manifest entries                [ DONE ]
Adding Nagios host manifest entries                  [ DONE ]
Adding post install manifest entries                 [ DONE ]
Installing Dependencies                              [ DONE ]
Copying Puppet modules and manifests                 [ DONE ]
Applying 192.168.1.101_prescript.pp
192.168.1.101_prescript.pp:                          [ DONE ]
Applying 192.168.1.101_amqp.pp
Applying 192.168.1.101_mariadb.pp
192.168.1.101_amqp.pp:                               [ DONE ]
192.168.1.101_mariadb.pp:                            [ DONE ]
Applying 192.168.1.101_keystone.pp
Applying 192.168.1.101_glance.pp
Applying 192.168.1.101_cinder.pp
192.168.1.101_keystone.pp:                        [ ERROR ]
Applying Puppet manifests                         [ ERROR ]

ERROR : Error appeared during Puppet run: 192.168.1.101_keystone.pp
Notice: /Stage[main]/Keystone::Db::Sync/Exec[keystone-manage db_sync]/returns: ImportError: No module named mysql
You will find full trace in log /var/tmp/packstack/20141022-203735-VtYQgL/manifests/192.168.1.101_keystone.pp.log
Please check log file /var/tmp/packstack/20141022-203735-VtYQgL/openstack-setup.log for more information

The log file:

[root@node1 ~]# cat /var/tmp/packstack/20141022-203735-VtYQgL/manifests/192.168.1.101_keystone.pp.log
Warning: Config file /etc/puppet/hiera.yaml not found, using Hiera defaults
Warning: Scope(Class[Keystone]): token_format ...
(more)
edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by visayafan
close date 2014-10-23 05:09:33.053156

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-10-22 10:18:05 -0500

It seems that your mysql-python is not installed on your system. Try this:

easy_install mysql-python

For more help.

edit flag offensive delete link more

Comments

Thank you, but sadly, it's not where the problem is. I retried packstack --allinone on a new server and it worked fine. Have no clue where the problem is.

visayafan gravatar imagevisayafan ( 2014-10-23 05:08:28 -0500 )edit

easy_install worked for my issue, thank you very much Mzoorikh

deepak.pulgurle gravatar imagedeepak.pulgurle ( 2016-04-07 01:54:49 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-10-22 07:52:26 -0500

Seen: 768 times

Last updated: Oct 22 '14