← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1175570] Re: glance-manage ignores --sql_connection parameter

 

** Changed in: glance
       Status: Fix Committed => Fix Released

** Changed in: glance
    Milestone: None => havana-3

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1175570

Title:
  glance-manage ignores --sql_connection parameter

Status in OpenStack Image Registry and Delivery Service (Glance):
  Fix Released

Bug description:
  glance-manage ignores --sql_connection parameter and uses connection
  from config file /etc/glance/glance-registry.conf . CLI parameter
  should override setting from config file.

  [para@virtual-rhel packstack]$ sudo glance-manage --sql_connection="mysql://glance:4437d490c3cf4c50@192.168.122.71/glance" db_sync
  2013-05-02 13:52:52.543 13954 CRITICAL glance [-] (OperationalError) (2002, "Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)") None None
  [para@virtual-rhel packstack]$ mysql -h 192.168.122.71 -u'glance' -p'4437d490c3cf4c50' glance
  Welcome to the MySQL monitor.  Commands end with ; or \g.
  Your MySQL connection id is 165
  Server version: 5.1.66 Source distribution

  Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights
  reserved.

  Oracle is a registered trademark of Oracle Corporation and/or its
  affiliates. Other names may be trademarks of their respective
  owners.

  Type 'help;' or '\h' for help. Type '\c' to clear the current input
  statement.

  mysql>

To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1175570/+subscriptions