Re: [openstack-dev] [all] Question about import module

2015-01-29 Thread iKhan
Suppose that's the way to do it.

On Fri, Jan 30, 2015, 7:44 AM liuxinguo liuxin...@huawei.com wrote:

   · I have seen that the module ‘oslo.config’ have changed to
 ‘oslo_config’ in Kilo but in Juno it is still ‘oslo.config’.



 I want my code work compatibly both for Juno and Kilo so I import this
 module in this way:



 try:

 from oslo_config import cfg

 except:

 from oslo.config import cfg



 · Does this way of importing module will be accepted by the
 community? Or is there any other better way?



 Thanks and regards,

 Liu


  
 __
 OpenStack Development Mailing List (not for usage questions)
 Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
 http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] Openstack Havana installation using devstack

2015-01-14 Thread iKhan
Go with stable/icehouse then.

On Thu Jan 15 2015 at 11:13:37 AM masoom alam masoom.a...@gmail.com wrote:

 Hi every one,

 How can I install Openstack Havana using devstack.

 The problem is that Havana branch does not exist on Github.

 git clone https://github.com/openstack-dev/devstack.git -b stable/havana

 Please guide.


 __
 OpenStack Development Mailing List (not for usage questions)
 Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
 http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [cinder][tempest]how to get cinder coverage using tempest?

2014-07-03 Thread iKhan
Can anyone kindly help me here? When the volume type is created and I try
starting volume service via coverage, I get coverage_manager not found
error.


On Wed, Jul 2, 2014 at 6:57 AM, iKhan ik.ibadk...@gmail.com wrote:

 I have manually deployed cinder and it is up and running. Now I wanted to
 get the live code coverage for cinder using tempest, I tried to running
 each cinder-api services as coverage run /usr/bin/cinder-api it started
 but when I tried same with cinder-volume with volume types configured it
 failed.

 Am I doing something wrong while volume types are configured?

 --
 Thanks,
 IK




-- 
Thanks,
IK
___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


[openstack-dev] [cinder][tempest]how to get cinder coverage using tempest?

2014-07-01 Thread iKhan
I have manually deployed cinder and it is up and running. Now I wanted to
get the live code coverage for cinder using tempest, I tried to running
each cinder-api services as coverage run /usr/bin/cinder-api it started
but when I tried same with cinder-volume with volume types configured it
failed.

Am I doing something wrong while volume types are configured?

-- 
Thanks,
IK
___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


[openstack-dev] Messaging queue is not cleaned when cinder volume-type is destroyed

2014-06-21 Thread iKhan
Hi,

I was intrigued when a cinder volume-type is destroyed completely its queue
still exists until the messaging service is restarted. In my case its
rabbitmq, not sure if it is valid behavior. Kindly let me know.

-- 
Thanks,
IK
___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] Understanding Openstack releases and components

2014-05-28 Thread iKhan
Hi,

You can find all the latest docs on OpenStack at http://docs.openstack.org/


On Thu, May 29, 2014 at 8:47 AM, Swaroop Jayanthi 
swaroop.jayan...@gmail.com wrote:

 Hi All,

 I am new to Openstack and want to understand the concepts of Openstack.

 I am going through the pdf provided in Openstack ie Grizzly, but somewhat
 from openstack website i found totally different releases such as Ironic,
 Telemeter.

 If anyone can point me the URL or PDF which is better to understand the
 releases and the component structure it would be really helpful to me
 -

 Appologies for sending it to wider audience, thanks for helping out


 Thanks and Regards,

 --Swaroop Jayanthi

 ___
 OpenStack-dev mailing list
 OpenStack-dev@lists.openstack.org
 http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev




-- 
Thanks,
IK
___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


[openstack-dev] [cinder] Unit test cases failing with error 'cannot import rpcapi'

2014-02-18 Thread iKhan
Hi All,

All cinder test cases are failing with error 'cannot import rpcapi', though
same files work fine in live cinder setup. I wonder what's going wrong when
unit testing is triggered. Can any one help me out here?

-- 
Thanks,
IK
___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [cinder] Unit test cases failing with error 'cannot import rpcapi'

2014-02-18 Thread iKhan
Yes I do run in venv, I'm checking for missing libraries.


On Wed, Feb 19, 2014 at 2:03 AM, John Griffith
john.griff...@solidfire.comwrote:

 On Tue, Feb 18, 2014 at 1:21 PM, iKhan ik.ibadk...@gmail.com wrote:
  Hi All,
 
  All cinder test cases are failing with error 'cannot import rpcapi',
 though
  same files work fine in live cinder setup. I wonder what's going wrong
 when
  unit testing is triggered. Can any one help me out here?
 
  --
  Thanks,
  IK
 
  ___
  OpenStack-dev mailing list
  OpenStack-dev@lists.openstack.org
  http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
 
 I just pulled a fresh clone and am not seeing any issues on my side.
 Could it be a problem with your env?  Are you running venv?

 John

 ___
 OpenStack-dev mailing list
 OpenStack-dev@lists.openstack.org
 http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev




-- 
Thanks,
IK
___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


[openstack-dev] [cinder]Multiple backends

2014-02-16 Thread iKhan
Hi All,

I'm just curious on how the manager.py is choosing backend while creating
volume, I know volume type is set but where is this being processed?

I am sorry if this is a basic question, but didn't got any help from
#openstack-dev IRC channel so was left without option to post here.

-- 
Thanks,
IK
___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] Proposed Logging Standards

2014-01-28 Thread iKhan
I haven't started contributing to openstack, looks like this might be good
opportunity. Count me in. I had the same doubt about AUDIT level log in
cinder.


On Tue, Jan 28, 2014 at 8:16 PM, Alexander Tivelkov
ativel...@mirantis.comwrote:

 Very interested, thanks a lot for this topic.
 Will work on bringing all of this to Murano

 --
 Regards,
 Alexander Tivelkov


 On Tue, Jan 28, 2014 at 6:45 AM, Sergey Lukjanov 
 slukja...@mirantis.comwrote:

 FYI it was added to the project meeting agenda -
 https://wiki.openstack.org/wiki/Meetings/ProjectMeeting


 On Tue, Jan 28, 2014 at 3:42 PM, Sergey Lukjanov 
 slukja...@mirantis.comwrote:

 Hi Sean,

 it's great that you're catching this up.

 I'd like to participate. I don't know how much time I'll be able to
 dedicate on it, but at least I'm ready for reviews and pushing it to
 Savanna.

 Thanks!


 On Tue, Jan 28, 2014 at 3:21 PM, Sean Dague s...@dague.net wrote:

 On 01/27/2014 09:57 PM, Christopher Yeoh wrote:
  On Tue, Jan 28, 2014 at 12:55 AM, Sean Dague s...@dague.net
  mailto:s...@dague.net wrote:
 
  On 01/27/2014 09:07 AM, Macdonald-Wallace, Matthew wrote:
   Hi Sean,
  
   I'm currently working on moving away from the built-in logging
  to use log_config=filename and the python logging framework so
  that we can start shipping to logstash/sentry/insert other useful
  tool here.
  
   I'd be very interested in getting involved in this, especially
  from a why do we have log messages that are split across multiple
  lines perspective!
 
  Do we have many that aren't either DEBUG or TRACE? I thought we
 were
  pretty clean there.
 
   Cheers,
  
   Matt
  
   P.S. FWIW, I'd also welcome details on what the Audit level
  gives us that the others don't... :)
 
  Well as far as I can tell the AUDIT level was a prior drive by
  contribution that's not being actively maintained. Honestly, I
 think we
  should probably rip it out, because I don't see any in tree
 tooling to
  use it, and it's horribly inconsistent.
 
 
  For the uses I've seen of it in the nova api code INFO would be
  perfectly fine in place of AUDIT.
 
  I'd be happy to help out with patches to cleanup the logging in n-api.
 
  One other thing to look at - I've noticed with logs is that when
  something like glanceclient code (just as an example) is called from
 nova,
  we can get ERROR level messages for say image not found when its
  actually perfectly expected that this will occur.
  I'm not sure if we should be changing the error level in glanceclient
 or
  just forcing any error logging in glanceclient when
  called from Nova to a lower level though.

 It's now changed in glanceclient -
 https://review.openstack.org/#/c/67744/ - it should be gone in the gate
 logs, and will be gone for everyone once a new release is out.

 -Sean

 --
 Sean Dague
 Samsung Research America
 s...@dague.net / sean.da...@samsung.com
 http://dague.net


 ___
 OpenStack-dev mailing list
 OpenStack-dev@lists.openstack.org
 http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev




 --
 Sincerely yours,
 Sergey Lukjanov
 Savanna Technical Lead
 Mirantis Inc.




 --
 Sincerely yours,
 Sergey Lukjanov
 Savanna Technical Lead
 Mirantis Inc.

 ___
 OpenStack-dev mailing list
 OpenStack-dev@lists.openstack.org
 http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev



 ___
 OpenStack-dev mailing list
 OpenStack-dev@lists.openstack.org
 http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev




-- 
Thanks,
Ibad Khan
9686594607
___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


[openstack-dev] Cinder unit test failure

2014-01-20 Thread iKhan
Hi,

I have imported iniparse to my cinder code, it works fine when I perform
execution. But when I run the unit test, it fails while importing iniparse.
It says No module named iniparse. Do I have to take care of something
here?

-- 
Thanks,
Ibad Khan
9686594607
___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] Cinder unit test failure

2014-01-20 Thread iKhan
Thanks John,

It worked earlier while executing because iniparse was installed, tho this
wasn't present in virtual environment. Installing iniparse via pip did
work. Since I didn't install iniparse specifically, I was under impression
it was there by default. Probably now I have to take care of this in
test-requirement.txt as you mentioned.

I wonder if there is an alternative to iniparse by default.

Regards


On Mon, Jan 20, 2014 at 10:47 PM, John Griffith john.griff...@solidfire.com
 wrote:

 On Mon, Jan 20, 2014 at 10:07 AM, iKhan ik.ibadk...@gmail.com wrote:
  Hi,
 
  I have imported iniparse to my cinder code, it works fine when I perform
  execution. But when I run the unit test, it fails while importing
 iniparse.
  It says No module named iniparse. Do I have to take care of something
  here?
 
  --
  Thanks,
  Ibad Khan
  9686594607
 
  ___
  OpenStack-dev mailing list
  OpenStack-dev@lists.openstack.org
  http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
 

 It sounds like it's not installed on your system.  You'd need to do a
 pip install iniparse, but if you're adding this to your unit tests
 you'll need to have a look at the common test-requires file.  Also
 keep in mind if your driver is going to rely on it you'll need it in
 requirements.  We can work through the details via IRC if you like.

 John

 ___
 OpenStack-dev mailing list
 OpenStack-dev@lists.openstack.org
 http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev




-- 
Thanks,
Ibad Khan
9686594607
___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] Cinder unit test failure

2014-01-20 Thread iKhan
Continued with ConfigParser, nothing much difference apart from clean way
of maintaining INI file in iniparse. I think unless a solution is thought,
good to go with this.

Thanks again John.


On Mon, Jan 20, 2014 at 11:47 PM, John Griffith john.griff...@solidfire.com
 wrote:

 On Mon, Jan 20, 2014 at 11:15 AM, John Griffith
 john.griff...@solidfire.com wrote:
  On Mon, Jan 20, 2014 at 10:30 AM, iKhan ik.ibadk...@gmail.com wrote:
  Thanks John,
 
  It worked earlier while executing because iniparse was installed, tho
 this
  wasn't present in virtual environment. Installing iniparse via pip did
 work.
  Since I didn't install iniparse specifically, I was under impression it
 was
  there by default. Probably now I have to take care of this in
  test-requirement.txt as you mentioned.
 
  I wonder if there is an alternative to iniparse by default.
 
  Regards
 
 
  On Mon, Jan 20, 2014 at 10:47 PM, John Griffith
  john.griff...@solidfire.com wrote:
 
  On Mon, Jan 20, 2014 at 10:07 AM, iKhan ik.ibadk...@gmail.com wrote:
   Hi,
  
   I have imported iniparse to my cinder code, it works fine when I
 perform
   execution. But when I run the unit test, it fails while importing
   iniparse.
   It says No module named iniparse. Do I have to take care of
 something
   here?
  
   --
   Thanks,
   Ibad Khan
   9686594607
  
   ___
   OpenStack-dev mailing list
   OpenStack-dev@lists.openstack.org
   http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
  
 
  It sounds like it's not installed on your system.  You'd need to do a
  pip install iniparse, but if you're adding this to your unit tests
  you'll need to have a look at the common test-requires file.  Also
  keep in mind if your driver is going to rely on it you'll need it in
  requirements.  We can work through the details via IRC if you like.
 
  John
 
  ___
  OpenStack-dev mailing list
  OpenStack-dev@lists.openstack.org
  http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
 
 
 
 
  --
  Thanks,
  Ibad Khan
  9686594607
 
  ___
  OpenStack-dev mailing list
  OpenStack-dev@lists.openstack.org
  http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
 
 
  there is check out openstack.common.iniparser, not sure if it'll fit
  your needs or not.
 DOH!!  Disregard that

 ___
 OpenStack-dev mailing list
 OpenStack-dev@lists.openstack.org
 http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev




-- 
Thanks,
Ibad Khan
9686594607
___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


[openstack-dev] Validation of IP

2014-01-20 Thread iKhan
Hi,

I am planning to validate an IP which is accepted part of input from user
in cinder, I need to verify if IP address is valid and it is up in the
network. The dirty way or only way that I know as of now is to create a
socket object and perform inet_aton()and gethostbyaddr()

Jut worried if these operations are safe to perform.

-- 
Thanks,
Ibad Khan
9686594607
___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


[openstack-dev] Cinder unit test failing

2014-01-08 Thread iKhan
Hi,

I am trying to run cinder unit tests via run_tests.sh since my tox has some
issues. Following is  the error I am getting while running run_tests.sh

error in setup command: Error parsing /RMCUT/cinder/havana/setup.cfg:
OSError: [Errno 2] No such file or directory

Running ` python setup.py testr --testr-args='--subunit --concurrency 1  '`

error in setup command: Error parsing /RMCUT/cinder/havana/setup.cfg:
OSError: [Errno 2] No such file or directory


Can anyone help me out?

-- 
Thanks,
Ibad Khan
9686594607
___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] Fwd: ./run_test.sh Fails

2013-12-21 Thread iKhan
Are you trying this on Ubuntu?


On Sat, Dec 21, 2013 at 1:15 PM, Sayali Lunkad sayali.92...@gmail.comwrote:


 Subject: ./run_test.sh fails to build environment

 Hello,
 I get this error when I try to set the environment for Horizon. Any idea
 why this is happening? I am running Devstack on a VM with Ubuntu 12.04.

 sayali@sayali:/opt/stack/horizon$ ./run_tests.sh
 Checking environment.
 Environment not found. Install? (Y/n) y
 Fetching new src packages...
 Creating venv... done.
 Installing dependencies with pip (this can take a while)...
 Downloading/unpacking pip=1.4
 Creating supposed download cache at /tmp/.pip_download_cache
   Downloading pip-1.4.1.tar.gz (445Kb): 445Kb downloaded
   Storing download in cache at /tmp/.pip_download_cache/https%3A%2F%
 2Fpypi.python.org%2Fpackages%2Fsource%2Fp%2Fpip%2Fpip-1.4.1.tar.gz
   Running setup.py egg_info for package pip

 warning: no files found matching '*.html' under directory 'docs'
 warning: no previously-included files matching '*.rst' found under
 directory 'docs/_build'
 no previously-included directories found matching
 'docs/_build/_sources'
 Installing collected packages: pip
   Found existing installation: pip 1.1
 Uninstalling pip:
   Successfully uninstalled pip
   Running setup.py install for pip

 warning: no files found matching '*.html' under directory 'docs'
 warning: no previously-included files matching '*.rst' found under
 directory 'docs/_build'
 no previously-included directories found matching
 'docs/_build/_sources'
 Installing pip script to /opt/stack/horizon/.venv/bin
 Installing pip-2.7 script to /opt/stack/horizon/.venv/bin
 Successfully installed pip
 Cleaning up...
 Downloading/unpacking distribute from
 https://pypi.python.org/packages/source/d/distribute/distribute-0.7.3.zip#md5=c6c59594a7b180af57af8a0cc0cf5b4a
   Downloading distribute-0.7.3.zip (145kB): 145kB downloaded
   Storing download in cache at /tmp/.pip_download_cache/https%3A%2F%
 2Fpypi.python.org
 %2Fpackages%2Fsource%2Fd%2Fdistribute%2Fdistribute-0.7.3.zip
   Running setup.py egg_info for package distribute

 Downloading/unpacking setuptools=0.7 (from distribute)
   Downloading setuptools-2.0.1.tar.gz (783kB): 783kB downloaded
   Storing download in cache at /tmp/.pip_download_cache/https%3A%2F%
 2Fpypi.python.org
 %2Fpackages%2Fsource%2Fs%2Fsetuptools%2Fsetuptools-2.0.1.tar.gz
   Running setup.py egg_info for package setuptools

 Installing collected packages: setuptools, distribute
   Found existing installation: distribute 0.6.24
 Uninstalling distribute:
   Successfully uninstalled distribute
   Running setup.py install for setuptools

 Installing easy_install script to /opt/stack/horizon/.venv/bin
 Installing easy_install-2.7 script to /opt/stack/horizon/.venv/bin
   Found existing installation: distribute 0.6.24
 Can't uninstall 'distribute'. No files were found to uninstall.
   Running setup.py install for distribute

 Successfully installed setuptools distribute
 Cleaning up...
 Downloading/unpacking pbr
   Downloading pbr-0.5.23.tar.gz (128kB): 128kB downloaded
   Storing download in cache at /tmp/.pip_download_cache/https%3A%2F%
 2Fpypi.python.org%2Fpackages%2Fsource%2Fp%2Fpbr%2Fpbr-0.5.23.tar.gz
   Running setup.py egg_info for package pbr
 [pbr] Processing SOURCES.txt
 warning: LocalManifestMaker: standard file '-c' not found

 [pbr] In git context, generating filelist from git
 warning: no previously-included files matching '*.pyc' found anywhere
 in distribution
 warning: no previously-included files found matching '.gitignore'
 warning: no previously-included files found matching '.gitreview'
 warning: no previously-included files matching '*.pyc' found anywhere
 in distribution
 Requirement already up-to-date: pip=1.0 in
 ./.venv/lib/python2.7/site-packages (from pbr)
 Installing collected packages: pbr
   Running setup.py install for pbr
 [pbr] Reusing existing SOURCES.txt
 Successfully installed pbr
 Cleaning up...
 Requirement already up-to-date: pbr=0.5.21,1.0 in
 ./.venv/lib/python2.7/site-packages (from -r
 /opt/stack/horizon/requirements.txt (line 1))
 Downloading/unpacking Django=1.4,1.6 (from -r
 /opt/stack/horizon/requirements.txt (line 3))
   Downloading Django-1.5.5.tar.gz (8.1MB): 8.1MB downloaded
   Storing download in cache at /tmp/.pip_download_cache/https%3A%2F%
 2Fpypi.python.org%2Fpackages%2Fsource%2FD%2FDjango%2FDjango-1.5.5.tar.gz
   Running setup.py egg_info for package Django

 warning: no previously-included files matching '__pycache__' found
 under directory '*'
 warning: no previously-included files matching '*.py[co]' found under
 directory '*'
 Downloading/unpacking django-compressor=1.3 (from -r
 /opt/stack/horizon/requirements.txt (line 4))
   Downloading django_compressor-1.3.tar.gz (91kB): 91kB downloaded
   Storing download in cache at /tmp/.pip_download_cache/https%3A%2F%
 2Fpypi.python.org
 

Re: [openstack-dev] [Solum] Git workflow meeting reminder agenda

2013-12-18 Thread iKhan
I am newbie here and I am from +5:30 GMT. Can any one direct me how to
attend this meeting?


On Wed, Dec 18, 2013 at 12:46 PM, Krishna Raman kra...@gmail.com wrote:

 Hi,

 The next Git-workflow meeting is tomorrow at 8 AM PST. (
 http://www.worldtimebuddy.com/?qm=1lid=8,524901,2158177,100h=8date=2013-12-18sln=8-9
 )

 Agenda:
 Administrative:
 * Skip meetings for next 2 weeks. Reconvene on Jan 8th.
 Topics:
  * Krishna and Monty to summarize offline discussion
 * Use it for git pull/push - DU build flow
 * Not exposed to user. Access always through authenticated Solum APIs.
  * Not for generic workflow in rest of Solum
 - Not used to orchestrate HEAT workflow
 * Discussion on suggested Zuul workflow
  * Other workflow suggestions?

 —Krishna

 ___
 OpenStack-dev mailing list
 OpenStack-dev@lists.openstack.org
 http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev




-- 
Thanks,
Ibad Khan
9686594607
___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] olso.config error on running Devstack

2013-12-18 Thread iKhan
If you are behind corporate proxy, make sure the proxy is set.


On Wed, Dec 18, 2013 at 8:56 PM, Sayali Lunkad sayali.92...@gmail.comwrote:

 Hello,

 I get the following error when I run stack.sh on Devstack

 Traceback (most recent call last):
   File /usr/local/bin/ceilometer-dbsync, line 6, in module
 from ceilometer.storage import dbsync
   File /opt/stack/ceilometer/ceilometer/storage/__init__.py, line 23, in
 module
 from oslo.config import cfg
 ImportError: No module named config
 ++ failed
 ++ local r=1
 +++ jobs -p
 ++ kill
 ++ set +o xtrace

 Search gives me olso.config is installed. Please let me know of any
 solution.

 Thanks,
 Sayali.

 ___
 OpenStack-dev mailing list
 OpenStack-dev@lists.openstack.org
 http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev




-- 
Thanks,
Ibad Khan
9686594607
___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] Re-initializing or dynamically configuring cinder driver

2013-12-15 Thread iKhan
I don't know if this is being planned in Icehouse, if not probably
proposing an approach will help. We have seen cinder-volume service
initialization part. Similarly if we can get our hands on child process
that are running under cinder-volume service, if we terminate those process
and restart them along with newly added backends. It might help us achieve
the target.


On Sun, Dec 15, 2013 at 12:49 PM, Joshua Harlow harlo...@yahoo-inc.comwrote:

  I don't currently know of a one size fits all solution here. There was
 talk at the summit of having the cinder app respond to a SIGHUP signal and
 attempting to reload config on this signal. Dynamic reloading is tricky
 business (basically u need to unravel anything holding references to the
 old config values/affected by the old config values).

  I would start with a simple trial of this if u want to so it, part if
 the issue will likely be oslo.config (can that library understand dynamic
 reloading?) and then cinder drivers themselves (perhaps u need to create a
 registry of drivers that can dynamically reload on config reloads?). Start
 out with something simple, isolate the reloading as much as u can to a
 single area (something like the mentioned registry of objects that can be
 reloaded when a SIGHUP arrives) and see how it goes.

  It does seem like a nice feature if u can get it right :-)

 Sent from my really tiny device...

 On Dec 13, 2013, at 8:57 PM, iKhan ik.ibadk...@gmail.com wrote:

   Hi All,

  At present cinder driver can be only configured with adding entries in
 conf file. Once these driver related entries are modified or added in conf
 file, we need to restart cinder-volume service to validate the conf entries
 and create a child process that runs in background.

  I am thinking of a way to re-initialize or dynamically configure cinder
 driver. So that I can accept the configuration from user on fly and perform
 operations. I think solution lies somewhere around oslo.config.cfg, but I
 am still unclear about how re-initializing can be achieved.

  Let know if anyone here is aware of any approach to re-initialize or
 dynamically configure a driver.

  --
  Thanks,
 IK

  ___
 OpenStack-dev mailing list
 OpenStack-dev@lists.openstack.org
 http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


 ___
 OpenStack-dev mailing list
 OpenStack-dev@lists.openstack.org
 http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev




-- 
Thanks,
Ibad Khan
9686594607
___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


[openstack-dev] Re-initializing or dynamically configuring cinder driver

2013-12-13 Thread iKhan
Hi All,

At present cinder driver can be only configured with adding entries in conf
file. Once these driver related entries are modified or added in conf file,
we need to restart cinder-volume service to validate the conf entries and
create a child process that runs in background.

I am thinking of a way to re-initialize or dynamically configure cinder
driver. So that I can accept the configuration from user on fly and perform
operations. I think solution lies somewhere around oslo.config.cfg, but I
am still unclear about how re-initializing can be achieved.

Let know if anyone here is aware of any approach to re-initialize or
dynamically configure a driver.

-- 
Thanks,
IK
___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev