Hi, Sorry I applied the patch 3, and I still got the error :
2019-02-15 15:45:09.504 25609 ERROR oslo_service.service [req-3ac88fdc-134d-4931-9b2b-942e76618dae - - - - -] Error starting thread.: sqlalchemy.orm.exc.DetachedInstanceError: Parent instance <VolumeAttachment at 0x7f3efbd77320> is not bound to a Session; lazy load operation of attribute 'volume' cannot proceed (Background on this error at: http://sqlalche.me/e/bhk3) 2019-02-15 15:45:09.504 25609 ERROR oslo_service.service Traceback (most recent call last): 2019-02-15 15:45:09.504 25609 ERROR oslo_service.service File "/usr/lib/python3/dist-packages/oslo_service/service.py", line 796, in run_service 2019-02-15 15:45:09.504 25609 ERROR oslo_service.service service.start() 2019-02-15 15:45:09.504 25609 ERROR oslo_service.service File "/usr/lib/python3/dist-packages/cinder/service.py", line 222, in start 2019-02-15 15:45:09.504 25609 ERROR oslo_service.service service_id=Service.service_id) 2019-02-15 15:45:09.504 25609 ERROR oslo_service.service File "/usr/lib/python3/dist-packages/cinder/volume/manager.py", line 447, in init_host 2019-02-15 15:45:09.504 25609 ERROR oslo_service.service volumes = self._get_my_volumes(ctxt) 2019-02-15 15:45:09.504 25609 ERROR oslo_service.service File "/usr/lib/python3/dist-packages/cinder/volume/manager.py", line 2910, in _get_my_volumes 2019-02-15 15:45:09.504 25609 ERROR oslo_service.service return self._get_my_resources(ctxt, objects.VolumeList) 2019-02-15 15:45:09.504 25609 ERROR oslo_service.service File "/usr/lib/python3/dist-packages/cinder/volume/manager.py", line 2907, in _get_my_resources 2019-02-15 15:45:09.504 25609 ERROR oslo_service.service return getattr(ovo_class_list, 'get_all')(ctxt, filters=filters) 2019-02-15 15:45:09.504 25609 ERROR oslo_service.service File "/usr/lib/python3/dist-packages/cinder/objects/volume.py", line 617, in get_all 2019-02-15 15:45:09.504 25609 ERROR oslo_service.service volumes, expected_attrs=expected_attrs) 2019-02-15 15:45:09.504 25609 ERROR oslo_service.service File "/usr/lib/python3/dist-packages/oslo_versionedobjects/base.py", line 1133, in obj_make_list 2019-02-15 15:45:09.504 25609 ERROR oslo_service.service **extra_args) 2019-02-15 15:45:09.504 25609 ERROR oslo_service.service File "/usr/lib/python3/dist-packages/cinder/objects/volume.py", line 290, in _from_db_object 2019-02-15 15:45:09.504 25609 ERROR oslo_service.service db_volume.get('volume_attachment')) 2019-02-15 15:45:09.504 25609 ERROR oslo_service.service File "/usr/lib/python3/dist-packages/oslo_versionedobjects/base.py", line 1133, in obj_make_list 2019-02-15 15:45:09.504 25609 ERROR oslo_service.service **extra_args) 2019-02-15 15:45:09.504 25609 ERROR oslo_service.service File "/usr/lib/python3/dist-packages/cinder/objects/volume_attachment.py", line 98, in _from_db_object 2019-02-15 15:45:09.504 25609 ERROR oslo_service.service if 'volume' in expected_attrs and hasattr(db_attachment, 'volume'): 2019-02-15 15:45:09.504 25609 ERROR oslo_service.service File "/usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py", line 242, in __get__ 2019-02-15 15:45:09.504 25609 ERROR oslo_service.service return self.impl.get(instance_state(instance), dict_) 2019-02-15 15:45:09.504 25609 ERROR oslo_service.service File "/usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py", line 599, in get 2019-02-15 15:45:09.504 25609 ERROR oslo_service.service value = self.callable_(state, passive) 2019-02-15 15:45:09.504 25609 ERROR oslo_service.service File "/usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py", line 596, in _load_for_state 2019-02-15 15:45:09.504 25609 ERROR oslo_service.service (orm_util.state_str(state), self.key) 2019-02-15 15:45:09.504 25609 ERROR oslo_service.service sqlalchemy.orm.exc.DetachedInstanceError: Parent instance <VolumeAttachment at 0x7f3efbd77320> is not bound to a Session; lazy load operation of attribute 'volume' cannot proceed (Background on this error at: http://sqlalche.me/e/bhk3)
Hi,
Sorry I applied the patch 3, and I still got the error :
2019-02-15 15:45:09.504 25609 ERROR oslo_service. service [req-3ac88fdc- 134d-4931- 9b2b-942e76618d ae - - - - -] Error starting thread.: sqlalchemy. orm.exc. DetachedInstanc eError: Parent instance <VolumeAttachment at 0x7f3efbd77320> is not bound to a Session; lazy load operation of attribute 'volume' cannot proceed (Background on this error at: http:// sqlalche. me/e/bhk3) service Traceback (most recent call last): service File "/usr/lib/ python3/ dist-packages/ oslo_service/ service. py", line 796, in run_service service service.start() service File "/usr/lib/ python3/ dist-packages/ cinder/ service. py", line 222, in start service service_ id=Service. service_ id) service File "/usr/lib/ python3/ dist-packages/ cinder/ volume/ manager. py", line 447, in init_host service volumes = self._get_ my_volumes( ctxt) service File "/usr/lib/ python3/ dist-packages/ cinder/ volume/ manager. py", line 2910, in _get_my_volumes service return self._get_ my_resources( ctxt, objects.VolumeList) service File "/usr/lib/ python3/ dist-packages/ cinder/ volume/ manager. py", line 2907, in _get_my_resources service return getattr( ovo_class_ list, 'get_all')(ctxt, filters=filters) service File "/usr/lib/ python3/ dist-packages/ cinder/ objects/ volume. py", line 617, in get_all service volumes, expected_ attrs=expected_ attrs) service File "/usr/lib/ python3/ dist-packages/ oslo_versionedo bjects/ base.py" , line 1133, in obj_make_list service **extra_args) service File "/usr/lib/ python3/ dist-packages/ cinder/ objects/ volume. py", line 290, in _from_db_object service db_volume. get('volume_ attachment' )) service File "/usr/lib/ python3/ dist-packages/ oslo_versionedo bjects/ base.py" , line 1133, in obj_make_list service **extra_args) service File "/usr/lib/ python3/ dist-packages/ cinder/ objects/ volume_ attachment. py", line 98, in _from_db_object service if 'volume' in expected_attrs and hasattr( db_attachment, 'volume'): service File "/usr/lib/ python3/ dist-packages/ sqlalchemy/ orm/attributes. py", line 242, in __get__ service return self.impl. get(instance_ state(instance) , dict_) service File "/usr/lib/ python3/ dist-packages/ sqlalchemy/ orm/attributes. py", line 599, in get service value = self.callable_ (state, passive) service File "/usr/lib/ python3/ dist-packages/ sqlalchemy/ orm/strategies. py", line 596, in _load_for_state service (orm_util. state_str( state), self.key) service sqlalchemy. orm.exc. DetachedInstanc eError: Parent instance <VolumeAttachment at 0x7f3efbd77320> is not bound to a Session; lazy load operation of attribute 'volume' cannot proceed (Background on this error at: http:// sqlalche. me/e/bhk3)
2019-02-15 15:45:09.504 25609 ERROR oslo_service.
2019-02-15 15:45:09.504 25609 ERROR oslo_service.
2019-02-15 15:45:09.504 25609 ERROR oslo_service.
2019-02-15 15:45:09.504 25609 ERROR oslo_service.
2019-02-15 15:45:09.504 25609 ERROR oslo_service.
2019-02-15 15:45:09.504 25609 ERROR oslo_service.
2019-02-15 15:45:09.504 25609 ERROR oslo_service.
2019-02-15 15:45:09.504 25609 ERROR oslo_service.
2019-02-15 15:45:09.504 25609 ERROR oslo_service.
2019-02-15 15:45:09.504 25609 ERROR oslo_service.
2019-02-15 15:45:09.504 25609 ERROR oslo_service.
2019-02-15 15:45:09.504 25609 ERROR oslo_service.
2019-02-15 15:45:09.504 25609 ERROR oslo_service.
2019-02-15 15:45:09.504 25609 ERROR oslo_service.
2019-02-15 15:45:09.504 25609 ERROR oslo_service.
2019-02-15 15:45:09.504 25609 ERROR oslo_service.
2019-02-15 15:45:09.504 25609 ERROR oslo_service.
2019-02-15 15:45:09.504 25609 ERROR oslo_service.
2019-02-15 15:45:09.504 25609 ERROR oslo_service.
2019-02-15 15:45:09.504 25609 ERROR oslo_service.
2019-02-15 15:45:09.504 25609 ERROR oslo_service.
2019-02-15 15:45:09.504 25609 ERROR oslo_service.
2019-02-15 15:45:09.504 25609 ERROR oslo_service.
2019-02-15 15:45:09.504 25609 ERROR oslo_service.
2019-02-15 15:45:09.504 25609 ERROR oslo_service.
2019-02-15 15:45:09.504 25609 ERROR oslo_service.
2019-02-15 15:45:09.504 25609 ERROR oslo_service.
2019-02-15 15:45:09.504 25609 ERROR oslo_service.