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

Michał Dulko michal.dulko at intel.com
Tue Jan 5 11:55:21 UTC 2016


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 <julien at danjou.info
> <mailto:julien at danjou.info>> 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 at 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 <module>
>     >     from cinder.cmd.api import main
>     >   File "/opt/stack/cinder/cinder/cmd/api.py", line 37, in <module>
>     >     from cinder import service
>     >   File "/opt/stack/cinder/cinder/service.py", line 65, in <module>
>     >     cfg.PortOpt('osapi_volume_listen_port',
>     > AttributeError: 'module' object has no attribute 'PortOpt'
>     > c-api failed to start
>     > stack at 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 <module>
>     > 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-request at lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev




More information about the OpenStack-dev mailing list