Re: [Openstack] [Cinder] Loading cinder.conf
Thanks for all your responses. I didn't realize that stack.sh actually copies the cinder.conf.sample instead of cinder.conf to /etc/cinder every time it runs. So, it was overwriting my entries. I fixed it by making changes to the script. The issue is resolved. On Mon, Jul 15, 2013 at 4:54 PM, Unmesh Gurjar unmesh.gur...@gmail.comwrote: Hi, AFAIK, there are no additional changes required (other than restarting the service so that it loads the new conf settings). Assuming you have done that, can you check what is the 'volume_driver' from the service start up logs? ~Unmesh. On Mon, Jul 15, 2013 at 10:44 AM, zan tosh ztos...@gmail.com wrote: Ray I am wondering why I see the default driver even after I changed the entry in cinder.conf. I un-commented the line for volume_driver and changed the driver name. I tried to print volume driver in the __init__ and I see it still pointing to LVMISCSIDriver. It seems I am missing something and its not loading values from cinder.conf. ~z On Mon, Jul 15, 2013 at 10:33 AM, Ray Sun xiaoq...@gmail.com wrote: Yes, that's the default driver. See cinder/volume/manager.py volume_manager_opts = [ cfg.StrOpt('volume_driver', default='cinder.volume.drivers.lvm.LVMISCSIDriver', help='Driver to use for volume creation'), ] Best Regards -- Ray On Mon, Jul 15, 2013 at 12:51 PM, zan tosh ztos...@gmail.com wrote: I use devstack (Grizzly/stable). I have been trying to use a different volume driver by muncommenting and modifying the below line in cinder.conf under etc/cinder # Driver to use for volume creation (string value) #volume_driver=cinder.volume.drivers.lvm.LVMISCSIDriver But when VolumeManager is loaded I see it still refers to the default LVMISCSIDriver. Is there any other change to load cinder.conf? Any suggestions? Tahnks ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
[Openstack] [Cinder] Loading cinder.conf
I use devstack (Grizzly/stable). I have been trying to use a different volume driver by muncommenting and modifying the below line in cinder.conf under etc/cinder # Driver to use for volume creation (string value) #volume_driver=cinder.volume.drivers.lvm.LVMISCSIDriver But when VolumeManager is loaded I see it still refers to the default LVMISCSIDriver. Is there any other change to load cinder.conf? Any suggestions? Tahnks ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
Re: [Openstack] [Cinder] Loading cinder.conf
Ray I am wondering why I see the default driver even after I changed the entry in cinder.conf. I un-commented the line for volume_driver and changed the driver name. I tried to print volume driver in the __init__ and I see it still pointing to LVMISCSIDriver. It seems I am missing something and its not loading values from cinder.conf. ~z On Mon, Jul 15, 2013 at 10:33 AM, Ray Sun xiaoq...@gmail.com wrote: Yes, that's the default driver. See cinder/volume/manager.py volume_manager_opts = [ cfg.StrOpt('volume_driver', default='cinder.volume.drivers.lvm.LVMISCSIDriver', help='Driver to use for volume creation'), ] Best Regards -- Ray On Mon, Jul 15, 2013 at 12:51 PM, zan tosh ztos...@gmail.com wrote: I use devstack (Grizzly/stable). I have been trying to use a different volume driver by muncommenting and modifying the below line in cinder.conf under etc/cinder # Driver to use for volume creation (string value) #volume_driver=cinder.volume.drivers.lvm.LVMISCSIDriver But when VolumeManager is loaded I see it still refers to the default LVMISCSIDriver. Is there any other change to load cinder.conf? Any suggestions? Tahnks ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
[Openstack] Not loading cinder.conf
I use devstack (Grizzly/stable). I have been trying to use a different volume driver by muncommenting and modifying the below line in cinder.conf under etc/cinder # Driver to use for volume creation (string value) #volume_driver=cinder.volume.drivers.lvm.LVMISCSIDriver But when VolumeManager is loaded I see it still refers to the default LVMISCSIDriver. Is there any other change to load cinder.conf? Thanks ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
[Openstack] Problem running devstack / stack.sh
I am getting stuck with the following errors while installing using devstack (stable/grizzly). 2013-06-18 09:43:01 + export OS_SERVICE_TOKEN=password 2013-06-18 09:43:01 + OS_SERVICE_TOKEN=password 2013-06-18 09:43:01 + export OS_SERVICE_ENDPOINT=http://localhost:35357/v2.0 2013-06-18 09:43:01 + OS_SERVICE_ENDPOINT=http://localhost:35357/v2.0 2013-06-18 09:43:01 + create_keystone_accounts 2013-06-18 09:43:01 ++ keystone tenant-create --name admin 2013-06-18 09:43:01 ++ grep ' id ' 2013-06-18 09:43:01 ++ get_field 2 2013-06-18 09:43:01 ++ read data 2013-06-18 09:43:01 An unexpected error prevented the server from fulfilling your request. (OperationalError) (1045, Access denied for user 'root'@'localhost' (using password: YES)) None None (HTTP 500) 2013-06-18 09:43:01 + ADMIN_TENANT= 2013-06-18 09:43:01 ++ keystone user-create --name admin --pass password --email ad...@example.com 2013-06-18 09:43:01 ++ grep ' id ' 2013-06-18 09:43:01 ++ get_field 2 2013-06-18 09:43:01 ++ read data 2013-06-18 09:43:02 An unexpected error prevented the server from fulfilling your request. (OperationalError) (1045, Access denied for user 'root'@'localhost' (using password: YES)) None None (HTTP 500) 2013-06-18 09:43:02 + ADMIN_USER= 2013-06-18 09:43:02 ++ keystone role-create --name admin 2013-06-18 09:43:02 ++ grep ' id ' 2013-06-18 09:43:02 ++ get_field 2 2013-06-18 09:43:02 ++ read data 2013-06-18 09:43:02 An unexpected error prevented the server from fulfilling your request. (OperationalError) (1045, Access denied for user 'root'@'localhost' (using password: YES)) None None (HTTP 500) 2013-06-18 09:43:02 + ADMIN_ROLE= 2013-06-18 09:43:02 + keystone user-role-add --user_id --role_id --tenant_id 2013-06-18 09:43:03 usage: keystone user-role-add --user user --role role [--tenant tenant] 2013-06-18 09:43:03 keystone user-role-add: error: argument --user/--user-id/--user_id: expected one argument 2013-06-18 09:43:03 ++ keystone tenant-create --name service 2013-06-18 09:43:03 ++ grep ' id ' 2013-06-18 09:43:03 ++ get_field 2 2013-06-18 09:43:03 ++ read data 2013-06-18 09:43:03 An unexpected error prevented the server from fulfilling your request. (OperationalError) (1045, Access denied for user 'root'@'localhost' (using password: YES)) None None (HTTP 500) 2013-06-18 09:43:03 + SERVICE_TENANT= 2013-06-18 09:43:03 ++ keystone role-create --name=Member 2013-06-18 09:43:03 ++ grep ' id ' 2013-06-18 09:43:03 ++ get_field 2 2013-06-18 09:43:03 ++ read data 2013-06-18 09:43:04 An unexpected error prevented the server from fulfilling your request. (OperationalError) (1045, Access denied for user 'root'@'localhost' (using password: YES)) None None (HTTP 500) 2013-06-18 09:43:04 + MEMBER_ROLE= 2013-06-18 09:43:04 ++ keystone role-create --name=anotherrole 2013-06-18 09:43:04 ++ grep ' id ' 2013-06-18 09:43:04 ++ get_field 2 2013-06-18 09:43:04 ++ read data 2013-06-18 09:43:04 An unexpected error prevented the server from fulfilling your request. (OperationalError) (1045, Access denied for user 'root'@'localhost' (using password: YES)) None None (HTTP 500) 2013-06-18 09:43:04 + ANOTHER_ROLE= 2013-06-18 09:43:04 ++ keystone tenant-create --name=invisible_to_admin 2013-06-18 09:43:04 ++ grep ' id ' 2013-06-18 09:43:04 ++ get_field 2 2013-06-18 09:43:04 ++ read data 2013-06-18 09:43:05 An unexpected error prevented the server from fulfilling your request. (OperationalError) (1045, Access denied for user 'root'@'localhost' (using password: YES)) None None (HTTP 500) 2013-06-18 09:43:05 + INVIS_TENANT= 2013-06-18 09:43:05 ++ keystone tenant-create --name=demo 2013-06-18 09:43:05 ++ grep ' id ' 2013-06-18 09:43:05 ++ get_field 2 2013-06-18 09:43:05 ++ read data 2013-06-18 09:43:05 An unexpected error prevented the server from fulfilling your request. (OperationalError) (1045, Access denied for user 'root'@'localhost' (using password: YES)) None None (HTTP 500) 2013-06-18 09:43:05 + DEMO_TENANT= 2013-06-18 09:43:05 ++ keystone user-create --name demo --pass password --email d...@example.com 2013-06-18 09:43:05 ++ grep ' id ' 2013-06-18 09:43:05 ++ get_field 2 2013-06-18 09:43:05 ++ read data 2013-06-18 09:43:05 An unexpected error prevented the server from fulfilling your request. (OperationalError) (1045, Access denied for user 'root'@'localhost' (using password: YES)) None None (HTTP 500) 2013-06-18 09:43:06 + DEMO_USER= 2013-06-18 09:43:06 + keystone user-role-add --user_id --role_id --tenant_id 2013-06-18 09:43:06 usage: keystone user-role-add --user user --role role [--tenant tenant] 2013-06-18 09:43:06 keystone user-role-add: error: argument --user/--user-id/--user_id: expected one argument 2013-06-18 09:43:06 + keystone user-role-add --user_id --role_id --tenant_id 2013-06-18 09:43:06 usage: keystone user-role-add --user user --role role [--tenant tenant] 2013-06-18 09:43:06 keystone user-role-add: error: argument --user/--user-id/--user_id: expected one argument 2013-06-18 09:43:06 + keystone user-role-add --user_id --role_id
Re: [Openstack] Problem running devstack / stack.sh
Yes, this seems to be mysql issue. These are the error I am seeing: 2013-06-18 11:46:22 + sudo mysqladmin -u root password pass 2013-06-18 11:46:22 mysqladmin: connect to server at 'localhost' failed 2013-06-18 11:46:22 error: 'Access denied for user 'root'@'localhost' (using password: NO)' 2013-06-18 11:46:22 + true 2013-06-18 11:46:22 + sudo mysql -uroot -ppass -h127.0.0.1 -e 'GRANT ALL PRIVILEGES ON *.* TO '\''root'\''@'\''%'\'' identified by '\''pass'\'';' 2013-06-18 11:46:22 ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) 2013-06-18 11:46:22 + sudo sed -i '/^bind-address/s/127.0.0.1/0.0.0.0/g' /etc/my.cnf 2013-06-18 11:46:22 + sudo grep -q default-storage-engine /etc/my.cnf 2013-06-18 11:46:22 + sudo bash -c 'source /opt/stack/devstack/functions; iniset /etc/my.cnf mysqld default-storage-engine InnoDB' 2013-06-18 11:46:22 + sudo sed -i /log.slow.queries/d /etc/my.cnf 2013-06-18 11:46:22 + sudo sed -i -e '/^\[mysqld\]/ a log-slow-queries = /var/log/mysql/mysql-slow.log' /etc/my.cnf 2013-06-18 11:46:22 + sudo sed -i /long.query.time/d /etc/my.cnf 2013-06-18 11:46:22 + sudo sed -i -e '/^\[mysqld\]/ a long-query-time = 0' /etc/my.cnf 2013-06-18 11:46:22 + sudo sed -i /log.queries.not.using.indexes/d /etc/my.cnf 2013-06-18 11:46:22 + sudo sed -i -e '/^\[mysqld\]/ a log-queries-not-using-indexes' /etc/my.cnf I tried restarting mysqld, re-installing mysql-server etc. Still get the same error when I try to access mysql using root. Btw, I am runnin RHEL 6.4 On Tue, Jun 18, 2013 at 10:07 AM, Sean Dague s...@dague.net wrote: On 06/18/2013 12:49 PM, zan tosh wrote: I am getting stuck with the following errors while installing using devstack (stable/grizzly). 2013-06-18 09:43:01 + export OS_SERVICE_TOKEN=password 2013-06-18 09:43:01 + OS_SERVICE_TOKEN=password 2013-06-18 09:43:01 + export OS_SERVICE_ENDPOINT=http://** localhost:35357/v2.0 http://localhost:35357/v2.0 2013-06-18 09:43:01 + OS_SERVICE_ENDPOINT=http://**localhost:35357/v2.0http://localhost:35357/v2.0 2013-06-18 09:43:01 + create_keystone_accounts 2013-06-18 09:43:01 ++ keystone tenant-create --name admin 2013-06-18 09:43:01 ++ grep ' id ' 2013-06-18 09:43:01 ++ get_field 2 2013-06-18 09:43:01 ++ read data 2013-06-18 09:43:01 An unexpected error prevented the server from fulfilling your request. (OperationalError) (1045, Access denied for user 'root'@'localhost' (using password: YES)) None None (HTTP 500) ^^**^^ That is your issue. It's mysql connectivity. -Sean -- Sean Dague http://dague.net __**_ Mailing list: https://launchpad.net/~**openstackhttps://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~**openstackhttps://launchpad.net/~openstack More help : https://help.launchpad.net/**ListHelphttps://help.launchpad.net/ListHelp ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp