[openstack-dev] [cinder] oslo_config.PortOp is undefined

2016-01-05 Thread Pradip Mukhopadhyay
Hello,


I have a devstack created on 12/22/15. Just seeing that (after a vacation)
it stops working.

Tried to restart the cinder services, getting the error:

stack@openstack4:~/devstack$ /usr/local/bin/cinder-api --config-file
/etc/cinder/cinder.conf & echo $! >/opt/stack/status/stack/c-api.pid; fg ||
echo "c-api failed to start" | tee "/opt/stack/status/stack/c-api.failure"
[1] 23828
/usr/local/bin/cinder-api --config-file /etc/cinder/cinder.conf
Traceback (most recent call last):
  File "/usr/local/bin/cinder-api", line 6, in 
from cinder.cmd.api import main
  File "/opt/stack/cinder/cinder/cmd/api.py", line 37, in 
from cinder import service
  File "/opt/stack/cinder/cinder/service.py", line 65, in 
cfg.PortOpt('osapi_volume_listen_port',
AttributeError: 'module' object has no attribute 'PortOpt'
c-api failed to start
stack@openstack4:~/devstack$



Looks like something to do with oslo_config.PortOpt.

I dont have any port mentioned in cinder.conf (tried also specifying 8070 -
same failure).

When commenting out the lines, getting the following for rabbit:

2016-01-05 05:44:10.421 TRACE cinder plugin = ep.resolve()
2016-01-05 05:44:10.421 TRACE cinder   File
"/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line
2386, in resolve
2016-01-05 05:44:10.421 TRACE cinder module =
__import__(self.module_name, fromlist=['__name__'], level=0)
2016-01-05 05:44:10.421 TRACE cinder   File
"/usr/local/lib/python2.7/dist-packages/oslo_messaging/_drivers/impl_rabbit.py",
line 94, in 
2016-01-05 05:44:10.421 TRACE cinder cfg.PortOpt('rabbit_port',
2016-01-05 05:44:10.421 TRACE cinder AttributeError: 'module' object has no
attribute 'PortOpt'
2016-01-05 05:44:10.421 TRACE cinder



Any workaround (unstack and stacking want to avoid) would be hightly
appreciated.



Thanks in advance,
Pradip
__
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] oslo_config.PortOp is undefined

2016-01-05 Thread Pradip Mukhopadhyay
I did not do anything specific.

Oslo Config has IntOpt, not PortOpt.

Any clue how can I upgrade oslo.config?



--pradip



On Tue, Jan 5, 2016 at 4:43 PM, Julien Danjou  wrote:

> On Tue, Jan 05 2016, Pradip Mukhopadhyay wrote:
>
> Upgrade oslo.config?
>
> > Hello,
> >
> >
> > I have a devstack created on 12/22/15. Just seeing that (after a
> vacation)
> > it stops working.
> >
> > Tried to restart the cinder services, getting the error:
> >
> > stack@openstack4:~/devstack$ /usr/local/bin/cinder-api --config-file
> > /etc/cinder/cinder.conf & echo $! >/opt/stack/status/stack/c-api.pid; fg
> ||
> > echo "c-api failed to start" | tee
> "/opt/stack/status/stack/c-api.failure"
> > [1] 23828
> > /usr/local/bin/cinder-api --config-file /etc/cinder/cinder.conf
> > Traceback (most recent call last):
> >   File "/usr/local/bin/cinder-api", line 6, in 
> > from cinder.cmd.api import main
> >   File "/opt/stack/cinder/cinder/cmd/api.py", line 37, in 
> > from cinder import service
> >   File "/opt/stack/cinder/cinder/service.py", line 65, in 
> > cfg.PortOpt('osapi_volume_listen_port',
> > AttributeError: 'module' object has no attribute 'PortOpt'
> > c-api failed to start
> > stack@openstack4:~/devstack$
> >
> >
> >
> > Looks like something to do with oslo_config.PortOpt.
> >
> > I dont have any port mentioned in cinder.conf (tried also specifying
> 8070 -
> > same failure).
> >
> > When commenting out the lines, getting the following for rabbit:
> >
> > 2016-01-05 05:44:10.421 TRACE cinder plugin = ep.resolve()
> > 2016-01-05 05:44:10.421 TRACE cinder   File
> > "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line
> > 2386, in resolve
> > 2016-01-05 05:44:10.421 TRACE cinder module =
> > __import__(self.module_name, fromlist=['__name__'], level=0)
> > 2016-01-05 05:44:10.421 TRACE cinder   File
> >
> "/usr/local/lib/python2.7/dist-packages/oslo_messaging/_drivers/impl_rabbit.py",
> > line 94, in 
> > 2016-01-05 05:44:10.421 TRACE cinder cfg.PortOpt('rabbit_port',
> > 2016-01-05 05:44:10.421 TRACE cinder AttributeError: 'module' object has
> no
> > attribute 'PortOpt'
> > 2016-01-05 05:44:10.421 TRACE cinder
> >
> >
> >
> > Any workaround (unstack and stacking want to avoid) would be hightly
> > appreciated.
> >
> >
> >
> > Thanks in advance,
> > Pradip
> >
> >
>
> --
> Julien Danjou
> # Free Software hacker
> # https://julien.danjou.info
>
__
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] oslo_config.PortOp is undefined

2016-01-05 Thread Michał Dulko
PortOpt definitely exists in oslo.config [1]. Try executing "pip install
-U -r /opt/stack/cinder/requirements.txt".

[1]
https://github.com/openstack/oslo.config/blob/f5e2fab3ae5af5bd47fe3526a73f13fbaa27c1f0/oslo_config/cfg.py#L1180-L1216

On 01/05/2016 12:33 PM, Pradip Mukhopadhyay wrote:
> I did not do anything specific.
>
> Oslo Config has IntOpt, not PortOpt.
>
> Any clue how can I upgrade oslo.config?
>
>
>
> --pradip
>
>
>
> On Tue, Jan 5, 2016 at 4:43 PM, Julien Danjou  > wrote:
>
> On Tue, Jan 05 2016, Pradip Mukhopadhyay wrote:
>
> Upgrade oslo.config?
>
> > Hello,
> >
> >
> > I have a devstack created on 12/22/15. Just seeing that (after a
> vacation)
> > it stops working.
> >
> > Tried to restart the cinder services, getting the error:
> >
> > stack@openstack4:~/devstack$ /usr/local/bin/cinder-api --config-file
> > /etc/cinder/cinder.conf & echo $!
> >/opt/stack/status/stack/c-api.pid; fg ||
> > echo "c-api failed to start" | tee
> "/opt/stack/status/stack/c-api.failure"
> > [1] 23828
> > /usr/local/bin/cinder-api --config-file /etc/cinder/cinder.conf
> > Traceback (most recent call last):
> >   File "/usr/local/bin/cinder-api", line 6, in 
> > from cinder.cmd.api import main
> >   File "/opt/stack/cinder/cinder/cmd/api.py", line 37, in 
> > from cinder import service
> >   File "/opt/stack/cinder/cinder/service.py", line 65, in 
> > cfg.PortOpt('osapi_volume_listen_port',
> > AttributeError: 'module' object has no attribute 'PortOpt'
> > c-api failed to start
> > stack@openstack4:~/devstack$
> >
> >
> >
> > Looks like something to do with oslo_config.PortOpt.
> >
> > I dont have any port mentioned in cinder.conf (tried also
> specifying 8070 -
> > same failure).
> >
> > When commenting out the lines, getting the following for rabbit:
> >
> > 2016-01-05 05:44:10.421 TRACE cinder plugin = ep.resolve()
> > 2016-01-05 05:44:10.421 TRACE cinder   File
> >
> "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line
> > 2386, in resolve
> > 2016-01-05 05:44:10.421 TRACE cinder module =
> > __import__(self.module_name, fromlist=['__name__'], level=0)
> > 2016-01-05 05:44:10.421 TRACE cinder   File
> >
> 
> "/usr/local/lib/python2.7/dist-packages/oslo_messaging/_drivers/impl_rabbit.py",
> > line 94, in 
> > 2016-01-05 05:44:10.421 TRACE cinder cfg.PortOpt('rabbit_port',
> > 2016-01-05 05:44:10.421 TRACE cinder AttributeError: 'module'
> object has no
> > attribute 'PortOpt'
> > 2016-01-05 05:44:10.421 TRACE cinder
> >
> >
> >
> > Any workaround (unstack and stacking want to avoid) would be hightly
> > appreciated.
> >
> >
> >
> > Thanks in advance,
> > Pradip
> >
> >
>
> --
> Julien Danjou
> # Free Software hacker
> # https://julien.danjou.info
>
>
>
>
> __
> 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] oslo_config.PortOp is undefined

2016-01-05 Thread Julien Danjou
On Tue, Jan 05 2016, Pradip Mukhopadhyay wrote:

Upgrade oslo.config?

> Hello,
>
>
> I have a devstack created on 12/22/15. Just seeing that (after a vacation)
> it stops working.
>
> Tried to restart the cinder services, getting the error:
>
> stack@openstack4:~/devstack$ /usr/local/bin/cinder-api --config-file
> /etc/cinder/cinder.conf & echo $! >/opt/stack/status/stack/c-api.pid; fg ||
> echo "c-api failed to start" | tee "/opt/stack/status/stack/c-api.failure"
> [1] 23828
> /usr/local/bin/cinder-api --config-file /etc/cinder/cinder.conf
> Traceback (most recent call last):
>   File "/usr/local/bin/cinder-api", line 6, in 
> from cinder.cmd.api import main
>   File "/opt/stack/cinder/cinder/cmd/api.py", line 37, in 
> from cinder import service
>   File "/opt/stack/cinder/cinder/service.py", line 65, in 
> cfg.PortOpt('osapi_volume_listen_port',
> AttributeError: 'module' object has no attribute 'PortOpt'
> c-api failed to start
> stack@openstack4:~/devstack$
>
>
>
> Looks like something to do with oslo_config.PortOpt.
>
> I dont have any port mentioned in cinder.conf (tried also specifying 8070 -
> same failure).
>
> When commenting out the lines, getting the following for rabbit:
>
> 2016-01-05 05:44:10.421 TRACE cinder plugin = ep.resolve()
> 2016-01-05 05:44:10.421 TRACE cinder   File
> "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line
> 2386, in resolve
> 2016-01-05 05:44:10.421 TRACE cinder module =
> __import__(self.module_name, fromlist=['__name__'], level=0)
> 2016-01-05 05:44:10.421 TRACE cinder   File
> "/usr/local/lib/python2.7/dist-packages/oslo_messaging/_drivers/impl_rabbit.py",
> line 94, in 
> 2016-01-05 05:44:10.421 TRACE cinder cfg.PortOpt('rabbit_port',
> 2016-01-05 05:44:10.421 TRACE cinder AttributeError: 'module' object has no
> attribute 'PortOpt'
> 2016-01-05 05:44:10.421 TRACE cinder
>
>
>
> Any workaround (unstack and stacking want to avoid) would be hightly
> appreciated.
>
>
>
> Thanks in advance,
> Pradip
>
>

-- 
Julien Danjou
# Free Software hacker
# https://julien.danjou.info


signature.asc
Description: PGP signature
__
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] oslo_config.PortOp is undefined

2016-01-05 Thread Pradip Mukhopadhyay
After upgrading all the oslo.config, oslo.service and oslo.log, now c-sch
and c-vol running well. Buit c-api is failing with this stack-trace:

stack@openstack4:~/devstack$ screen -x
2016-01-05 06:44:18.544 TRACE cinder return
self.object_type.invoke(self)
2016-01-05 06:44:18.544 TRACE cinder   File
"/usr/local/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line
144, in invoke
2016-01-05 06:44:18.544 TRACE cinder **context.local_conf)
2016-01-05 06:44:18.544 TRACE cinder   File
"/usr/local/lib/python2.7/dist-packages/paste/deploy/util.py", line 58, in
fix_call
2016-01-05 06:44:18.544 TRACE cinder reraise(*exc_info)
2016-01-05 06:44:18.544 TRACE cinder   File
"/usr/local/lib/python2.7/dist-packages/paste/deploy/compat.py", line 23,
in reraise
2016-01-05 06:44:18.544 TRACE cinder exec('raise t, e, tb', dict(t=t,
e=e, tb=tb))
2016-01-05 06:44:18.544 TRACE cinder   File
"/usr/local/lib/python2.7/dist-packages/paste/deploy/util.py", line 55, in
fix_call
2016-01-05 06:44:18.544 TRACE cinder val = callable(*args, **kw)
2016-01-05 06:44:18.544 TRACE cinder   File
"/opt/stack/cinder/cinder/api/__init__.py", line 38, in root_app_factory
2016-01-05 06:44:18.544 TRACE cinder return
paste.urlmap.urlmap_factory(loader, global_conf, **local_conf)
2016-01-05 06:44:18.544 TRACE cinder   File
"/usr/local/lib/python2.7/dist-packages/paste/urlmap.py", line 31, in
urlmap_factory
2016-01-05 06:44:18.544 TRACE cinder app = loader.get_app(app_name,
global_conf=global_conf)
2016-01-05 06:44:18.544 TRACE cinder   File
"/usr/local/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line
350, in get_app
2016-01-05 06:44:18.544 TRACE cinder name=name,
global_conf=global_conf).create()
2016-01-05 06:44:18.544 TRACE cinder   File
"/usr/local/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line
710, in create
2016-01-05 06:44:18.544 TRACE cinder return
self.object_type.invoke(self)
2016-01-05 06:44:18.544 TRACE cinder   File
"/usr/local/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line
144, in invoke
2016-01-05 06:44:18.544 TRACE cinder **context.local_conf)
2016-01-05 06:44:18.544 TRACE cinder   File
"/usr/local/lib/python2.7/dist-packages/paste/deploy/util.py", line 58, in
fix_call
2016-01-05 06:44:18.544 TRACE cinder reraise(*exc_info)
2016-01-05 06:44:18.544 TRACE cinder   File
"/usr/local/lib/python2.7/dist-packages/paste/deploy/compat.py", line 23,
in reraise
2016-01-05 06:44:18.544 TRACE cinder exec('raise t, e, tb', dict(t=t,
e=e, tb=tb))
2016-01-05 06:44:18.544 TRACE cinder   File
"/usr/local/lib/python2.7/dist-packages/paste/deploy/util.py", line 55, in
fix_call
2016-01-05 06:44:18.544 TRACE cinder val = callable(*args, **kw)
2016-01-05 06:44:18.544 TRACE cinder   File
"/opt/stack/cinder/cinder/api/middleware/auth.py", line 55, in
pipeline_factory
2016-01-05 06:44:18.544 TRACE cinder filters = [loader.get_filter(n)
for n in pipeline[:-1]]
2016-01-05 06:44:18.544 TRACE cinder   File
"/usr/local/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line
354, in get_filter
2016-01-05 06:44:18.544 TRACE cinder name=name,
global_conf=global_conf).create()
2016-01-05 06:44:18.544 TRACE cinder   File
"/usr/local/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line
710, in create
2016-01-05 06:44:18.544 TRACE cinder return
self.object_type.invoke(self)
2016-01-05 06:44:18.544 TRACE cinder   File
"/usr/local/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line
161, in invoke
2016-01-05 06:44:18.544 TRACE cinder context.global_conf,
**context.local_conf)
2016-01-05 06:44:18.544 TRACE cinder   File
"/usr/local/lib/python2.7/dist-packages/paste/deploy/util.py", line 58, in
fix_call
2016-01-05 06:44:18.544 TRACE cinder reraise(*exc_info)
2016-01-05 06:44:18.544 TRACE cinder   File
"/usr/local/lib/python2.7/dist-packages/paste/deploy/compat.py", line 23,
in reraise
2016-01-05 06:44:18.544 TRACE cinder exec('raise t, e, tb', dict(t=t,
e=e, tb=tb))
2016-01-05 06:44:18.544 TRACE cinder   File
"/usr/local/lib/python2.7/dist-packages/paste/deploy/util.py", line 55, in
fix_call
2016-01-05 06:44:18.544 TRACE cinder val = callable(*args, **kw)
2016-01-05 06:44:18.544 TRACE cinder TypeError: factory() takes exactly 3
arguments (2 given); got ({'__file...er'}, oslo_config_project=...), wanted
(cls, global_conf, allowed_origin, **local_conf)
2016-01-05 06:44:18.544 TRACE cinder





Any help.


--pradip



On Tue, Jan 5, 2016 at 5:03 PM, Pradip Mukhopadhyay <
pradip.inte...@gmail.com> wrote:

> I did not do anything specific.
>
> Oslo Config has IntOpt, not PortOpt.
>
> Any clue how can I upgrade oslo.config?
>
>
>
> --pradip
>
>
>
> On Tue, Jan 5, 2016 at 4:43 PM, Julien Danjou  wrote:
>
>> On Tue, Jan 05 2016, Pradip Mukhopadhyay wrote:
>>
>> Upgrade oslo.config?
>>
>> > Hello,
>> >
>> >
>> > I have a devstack created on 12/22/15. Just seeing that (after a
>> vacation)
>> > it stops working.
>> >
>> > Tried 

Re: [openstack-dev] [cinder] oslo_config.PortOp is undefined

2016-01-05 Thread Pradip Mukhopadhyay
Thanks. Tried this. Still getting the same error on c-api installation.


The pip upgrade shown some issues as follows:

Installing collected packages: lxml, oslo.middleware, pyparsing, requests,
python-keystoneclient, SQLAlchemy, urllib3
  Found existing installation: lxml 3.3.3
Uninstalling lxml-3.3.3:
Exception:
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/pip/basecommand.py", line
211, in main
status = self.run(options, args)
  File "/usr/local/lib/python2.7/dist-packages/pip/commands/install.py",
line 311, in run
root=options.root_path,
  File "/usr/local/lib/python2.7/dist-packages/pip/req/req_set.py", line
640, in install
requirement.uninstall(auto_confirm=True)
  File "/usr/local/lib/python2.7/dist-packages/pip/req/req_install.py",
line 716, in uninstall
paths_to_remove.remove(auto_confirm)
  File "/usr/local/lib/python2.7/dist-packages/pip/req/req_uninstall.py",
line 125, in remove
renames(path, new_path)
  File "/usr/local/lib/python2.7/dist-packages/pip/utils/__init__.py", line
315, in renames
shutil.move(old, new)
  File "/usr/lib/python2.7/shutil.py", line 300, in move
rmtree(src)
  File "/usr/lib/python2.7/shutil.py", line 252, in rmtree
onerror(os.remove, fullname, sys.exc_info())
  File "/usr/lib/python2.7/shutil.py", line 250, in rmtree
os.remove(fullname)
OSError: [Errno 13] Permission denied:
'/usr/lib/python2.7/dist-packages/lxml/lxml.etree_api.h'




Do you think a unstack-stake would make life simple?




--pradip



On Tue, Jan 5, 2016 at 5:25 PM, Michał Dulko  wrote:

> PortOpt definitely exists in oslo.config [1]. Try executing "pip install
> -U -r /opt/stack/cinder/requirements.txt".
>
> [1]
>
> https://github.com/openstack/oslo.config/blob/f5e2fab3ae5af5bd47fe3526a73f13fbaa27c1f0/oslo_config/cfg.py#L1180-L1216
>
> On 01/05/2016 12:33 PM, Pradip Mukhopadhyay wrote:
> > I did not do anything specific.
> >
> > Oslo Config has IntOpt, not PortOpt.
> >
> > Any clue how can I upgrade oslo.config?
> >
> >
> >
> > --pradip
> >
> >
> >
> > On Tue, Jan 5, 2016 at 4:43 PM, Julien Danjou  > > wrote:
> >
> > On Tue, Jan 05 2016, Pradip Mukhopadhyay wrote:
> >
> > Upgrade oslo.config?
> >
> > > Hello,
> > >
> > >
> > > I have a devstack created on 12/22/15. Just seeing that (after a
> > vacation)
> > > it stops working.
> > >
> > > Tried to restart the cinder services, getting the error:
> > >
> > > stack@openstack4:~/devstack$ /usr/local/bin/cinder-api
> --config-file
> > > /etc/cinder/cinder.conf & echo $!
> > >/opt/stack/status/stack/c-api.pid; fg ||
> > > echo "c-api failed to start" | tee
> > "/opt/stack/status/stack/c-api.failure"
> > > [1] 23828
> > > /usr/local/bin/cinder-api --config-file /etc/cinder/cinder.conf
> > > Traceback (most recent call last):
> > >   File "/usr/local/bin/cinder-api", line 6, in 
> > > from cinder.cmd.api import main
> > >   File "/opt/stack/cinder/cinder/cmd/api.py", line 37, in 
> > > from cinder import service
> > >   File "/opt/stack/cinder/cinder/service.py", line 65, in 
> > > cfg.PortOpt('osapi_volume_listen_port',
> > > AttributeError: 'module' object has no attribute 'PortOpt'
> > > c-api failed to start
> > > stack@openstack4:~/devstack$
> > >
> > >
> > >
> > > Looks like something to do with oslo_config.PortOpt.
> > >
> > > I dont have any port mentioned in cinder.conf (tried also
> > specifying 8070 -
> > > same failure).
> > >
> > > When commenting out the lines, getting the following for rabbit:
> > >
> > > 2016-01-05 05:44:10.421 TRACE cinder plugin = ep.resolve()
> > > 2016-01-05 05:44:10.421 TRACE cinder   File
> > >
> > "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py",
> line
> > > 2386, in resolve
> > > 2016-01-05 05:44:10.421 TRACE cinder module =
> > > __import__(self.module_name, fromlist=['__name__'], level=0)
> > > 2016-01-05 05:44:10.421 TRACE cinder   File
> > >
> >
>  
> "/usr/local/lib/python2.7/dist-packages/oslo_messaging/_drivers/impl_rabbit.py",
> > > line 94, in 
> > > 2016-01-05 05:44:10.421 TRACE cinder cfg.PortOpt('rabbit_port',
> > > 2016-01-05 05:44:10.421 TRACE cinder AttributeError: 'module'
> > object has no
> > > attribute 'PortOpt'
> > > 2016-01-05 05:44:10.421 TRACE cinder
> > >
> > >
> > >
> > > Any workaround (unstack and stacking want to avoid) would be
> hightly
> > > appreciated.
> > >
> > >
> > >
> > > Thanks in advance,
> > > Pradip
> > >
> > >
> >
> > --
> > Julien Danjou
> > # Free Software hacker
> > # https://julien.danjou.info
> >
> >
> >
> >
> >
> __
> > OpenStack 

Re: [openstack-dev] [cinder] oslo_config.PortOp is undefined

2016-01-05 Thread Pradip Mukhopadhyay
Oops. sorry. I was as stack user. It works now (with a sudo). All the three
cinder services are running.


Thanks a ton for the help,

Pradip





On Tue, Jan 5, 2016 at 5:51 PM, Pradip Mukhopadhyay <
pradip.inte...@gmail.com> wrote:

> Thanks. Tried this. Still getting the same error on c-api installation.
>
>
> The pip upgrade shown some issues as follows:
>
> Installing collected packages: lxml, oslo.middleware, pyparsing, requests,
> python-keystoneclient, SQLAlchemy, urllib3
>   Found existing installation: lxml 3.3.3
> Uninstalling lxml-3.3.3:
> Exception:
> Traceback (most recent call last):
>   File "/usr/local/lib/python2.7/dist-packages/pip/basecommand.py", line
> 211, in main
> status = self.run(options, args)
>   File "/usr/local/lib/python2.7/dist-packages/pip/commands/install.py",
> line 311, in run
> root=options.root_path,
>   File "/usr/local/lib/python2.7/dist-packages/pip/req/req_set.py", line
> 640, in install
> requirement.uninstall(auto_confirm=True)
>   File "/usr/local/lib/python2.7/dist-packages/pip/req/req_install.py",
> line 716, in uninstall
> paths_to_remove.remove(auto_confirm)
>   File "/usr/local/lib/python2.7/dist-packages/pip/req/req_uninstall.py",
> line 125, in remove
> renames(path, new_path)
>   File "/usr/local/lib/python2.7/dist-packages/pip/utils/__init__.py",
> line 315, in renames
> shutil.move(old, new)
>   File "/usr/lib/python2.7/shutil.py", line 300, in move
> rmtree(src)
>   File "/usr/lib/python2.7/shutil.py", line 252, in rmtree
> onerror(os.remove, fullname, sys.exc_info())
>   File "/usr/lib/python2.7/shutil.py", line 250, in rmtree
> os.remove(fullname)
> OSError: [Errno 13] Permission denied:
> '/usr/lib/python2.7/dist-packages/lxml/lxml.etree_api.h'
>
>
>
>
> Do you think a unstack-stake would make life simple?
>
>
>
>
> --pradip
>
>
>
> On Tue, Jan 5, 2016 at 5:25 PM, Michał Dulko 
> wrote:
>
>> PortOpt definitely exists in oslo.config [1]. Try executing "pip install
>> -U -r /opt/stack/cinder/requirements.txt".
>>
>> [1]
>>
>> https://github.com/openstack/oslo.config/blob/f5e2fab3ae5af5bd47fe3526a73f13fbaa27c1f0/oslo_config/cfg.py#L1180-L1216
>>
>> On 01/05/2016 12:33 PM, Pradip Mukhopadhyay wrote:
>> > I did not do anything specific.
>> >
>> > Oslo Config has IntOpt, not PortOpt.
>> >
>> > Any clue how can I upgrade oslo.config?
>> >
>> >
>> >
>> > --pradip
>> >
>> >
>> >
>> > On Tue, Jan 5, 2016 at 4:43 PM, Julien Danjou > > > wrote:
>> >
>> > On Tue, Jan 05 2016, Pradip Mukhopadhyay wrote:
>> >
>> > Upgrade oslo.config?
>> >
>> > > Hello,
>> > >
>> > >
>> > > I have a devstack created on 12/22/15. Just seeing that (after a
>> > vacation)
>> > > it stops working.
>> > >
>> > > Tried to restart the cinder services, getting the error:
>> > >
>> > > stack@openstack4:~/devstack$ /usr/local/bin/cinder-api
>> --config-file
>> > > /etc/cinder/cinder.conf & echo $!
>> > >/opt/stack/status/stack/c-api.pid; fg ||
>> > > echo "c-api failed to start" | tee
>> > "/opt/stack/status/stack/c-api.failure"
>> > > [1] 23828
>> > > /usr/local/bin/cinder-api --config-file /etc/cinder/cinder.conf
>> > > Traceback (most recent call last):
>> > >   File "/usr/local/bin/cinder-api", line 6, in 
>> > > from cinder.cmd.api import main
>> > >   File "/opt/stack/cinder/cinder/cmd/api.py", line 37, in 
>> > > from cinder import service
>> > >   File "/opt/stack/cinder/cinder/service.py", line 65, in 
>> > > cfg.PortOpt('osapi_volume_listen_port',
>> > > AttributeError: 'module' object has no attribute 'PortOpt'
>> > > c-api failed to start
>> > > stack@openstack4:~/devstack$
>> > >
>> > >
>> > >
>> > > Looks like something to do with oslo_config.PortOpt.
>> > >
>> > > I dont have any port mentioned in cinder.conf (tried also
>> > specifying 8070 -
>> > > same failure).
>> > >
>> > > When commenting out the lines, getting the following for rabbit:
>> > >
>> > > 2016-01-05 05:44:10.421 TRACE cinder plugin = ep.resolve()
>> > > 2016-01-05 05:44:10.421 TRACE cinder   File
>> > >
>> > "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py",
>> line
>> > > 2386, in resolve
>> > > 2016-01-05 05:44:10.421 TRACE cinder module =
>> > > __import__(self.module_name, fromlist=['__name__'], level=0)
>> > > 2016-01-05 05:44:10.421 TRACE cinder   File
>> > >
>> >
>>  
>> "/usr/local/lib/python2.7/dist-packages/oslo_messaging/_drivers/impl_rabbit.py",
>> > > line 94, in 
>> > > 2016-01-05 05:44:10.421 TRACE cinder
>>  cfg.PortOpt('rabbit_port',
>> > > 2016-01-05 05:44:10.421 TRACE cinder AttributeError: 'module'
>> > object has no
>> > > attribute 'PortOpt'
>> > > 2016-01-05 05:44:10.421 TRACE cinder
>> > >
>> > >
>> > >
>> >