Manila Netapp supports only a VLAN and Flat provider network, so manila is expecting a VLAN provider network along with a segmentation Id. But as per the contrail team, it can not work like that, and the network will be managed by fragment.
Request is to disable their check-in network config in manila code to make sure it continue the deployment.
2022-08-17 16:03:04.164 1190065 DEBUG manila.share.manager [req-a75e3dcb-3a19-4ead-a8ae-b470b9014463 93756dcbe8b841b1a13988425fd4541d 8ffaa57bb28e4aabb764f0dba58f440e - - -] Using share_server 37870307-b76d-49cb-8269-f20e57baeb41 for share instance 00fc2112-642f-4ee8-82c9-a86989061506 _wrapped_provide_share_server_for_share /usr/lib/python3/dist-packages/manila/share/manager.py:629
2022-08-17 16:03:04.313 1190065 DEBUG oslo_concurrency.lockutils [req-a75e3dcb-3a19-4ead-a8ae-b470b9014463 93756dcbe8b841b1a13988425fd4541d 8ffaa57bb28e4aabb764f0dba58f440e - - -] Lock "instantiate_neutron_api" acquired by "manila.network.neutron.neutron_network_plugin.NeutronNetworkPlugin.neutron_api" :: waited 0.000s inner /usr/lib/python3/dist-packages/oslo_concurrency/lockutils.py:354
2022-08-17 16:03:04.314 1190065 DEBUG oslo_concurrency.lockutils [req-a75e3dcb-3a19-4ead-a8ae-b470b9014463 93756dcbe8b841b1a13988425fd4541d 8ffaa57bb28e4aabb764f0dba58f440e - - -] Lock "instantiate_neutron_api" released by "manila.network.neutron.neutron_network_plugin.NeutronNetworkPlugin.neutron_api" :: held 0.001s inner /usr/lib/python3/dist-packages/oslo_concurrency/lockutils.py:366
2022-08-17 16:03:05.097 1190065 DEBUG oslo_concurrency.lockutils [req-a75e3dcb-3a19-4ead-a8ae-b470b9014463 93756dcbe8b841b1a13988425fd4541d 8ffaa57bb28e4aabb764f0dba58f440e - - -] Lock "instantiate_neutron_api" acquired by "manila.network.neutron.neutron_network_plugin.NeutronNetworkPlugin.neutron_api" :: waited 0.000s inner /usr/lib/python3/dist-packages/oslo_concurrency/lockutils.py:354
2022-08-17 16:03:05.098 1190065 DEBUG oslo_concurrency.lockutils [req-a75e3dcb-3a19-4ead-a8ae-b470b9014463 93756dcbe8b841b1a13988425fd4541d 8ffaa57bb28e4aabb764f0dba58f440e - - -] Lock "instantiate_neutron_api" released by "manila.network.neutron.neutron_network_plugin.NeutronNetworkPlugin.neutron_api" :: held 0.001s inner /usr/lib/python3/dist-packages/oslo_concurrency/lockutils.py:366
2022-08-17 16:03:31.651 1190065 DEBUG oslo_concurrency.lockutils [req-a75e3dcb-3a19-4ead-a8ae-b470b9014463 93756dcbe8b841b1a13988425fd4541d 8ffaa57bb28e4aabb764f0dba58f440e - - -] Lock "share_manager_6824b5fd-b8ca-4dc1-bf67-79806562a414" released by "manila.share.manager.ShareManager._provide_share_server_for_share.<locals>._wrapped_provide_share_server_for_share" :: held 27.537s inner /usr/lib/python3/dist-packages/oslo_concurrency/lockutils.py:366
2022-08-17 16:03:31.652 1190065 ERROR manila.share.manager [req-a75e3dcb-3a19-4ead-a8ae-b470b9014463 93756dcbe8b841b1a13988425fd4541d 8ffaa57bb28e4aabb764f0dba58f440e - - -] Creation of share instance 00fc2112-642f-4ee8-82c9-a86989061506 failed: failed to get share server.
2022-08-17 16:03:31.679 1190065 INFO manila.message.api [req-a75e3dcb-3a19-4ead-a8ae-b470b9014463 93756dcbe8b841b1a13988425fd4541d 8ffaa57bb28e4aabb764f0dba58f440e - - -] Creating message record for request_id = req-a75e3dcb-3a19-4ead-a8ae-b470b9014463
2022-08-17 16:03:31.691 1190065 ERROR oslo_messaging.rpc.server [req-a75e3dcb-3a19-4ead-a8ae-b470b9014463 93756dcbe8b841b1a13988425fd4541d 8ffaa57bb28e4aabb764f0dba58f440e - - -] Exception during message handling: KeyError: 'provider:network_type'
2022-08-17 16:03:31.691 1190065 ERROR oslo_messaging.rpc.server Traceback (most recent call last):
2022-08-17 16:03:31.691 1190065 ERROR oslo_messaging.rpc.server File "/usr/lib/python3/dist-packages/oslo_messaging/rpc/server.py", line 165, in _process_incoming
2022-08-17 16:03:31.691 1190065 ERROR oslo_messaging.rpc.server res = self.dispatcher.dispatch(message)
2022-08-17 16:03:31.691 1190065 ERROR oslo_messaging.rpc.server File "/usr/lib/python3/dist-packages/oslo_messaging/rpc/dispatcher.py", line 276, in dispatch
2022-08-17 16:03:31.691 1190065 ERROR oslo_messaging.rpc.server return self._do_dispatch(endpoint, method, ctxt, args)
2022-08-17 16:03:31.691 1190065 ERROR oslo_messaging.rpc.server File "/usr/lib/python3/dist-packages/oslo_messaging/rpc/dispatcher.py", line 196, in _do_dispatch
2022-08-17 16:03:31.691 1190065 ERROR oslo_messaging.rpc.server result = func(ctxt, **new_args)
2022-08-17 16:03:31.691 1190065 ERROR oslo_messaging.rpc.server File "/usr/lib/python3/dist-packages/manila/share/manager.py", line 187, in wrapped
2022-08-17 16:03:31.691 1190065 ERROR oslo_messaging.rpc.server return f(self, *args, **kwargs)
2022-08-17 16:03:31.691 1190065 ERROR oslo_messaging.rpc.server File "/usr/lib/python3/dist-packages/manila/utils.py", line 568, in wrapper
2022-08-17 16:03:31.691 1190065 ERROR oslo_messaging.rpc.server return func(self, *args, **kwargs)
2022-08-17 16:03:31.691 1190065 ERROR oslo_messaging.rpc.server File "/usr/lib/python3/dist-packages/manila/share/manager.py", line 1748, in create_share_instance
2022-08-17 16:03:31.691 1190065 ERROR oslo_messaging.rpc.server self.message_api.create(
2022-08-17 16:03:31.691 1190065 ERROR oslo_messaging.rpc.server File "/usr/lib/python3/dist-packages/oslo_utils/excutils.py", line 220, in __exit__
2022-08-17 16:03:31.691 1190065 ERROR oslo_messaging.rpc.server self.force_reraise()
2022-08-17 16:03:31.691 1190065 ERROR oslo_messaging.rpc.server File "/usr/lib/python3/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise
2022-08-17 16:03:31.691 1190065 ERROR oslo_messaging.rpc.server six.reraise(self.type_, self.value, self.tb)
2022-08-17 16:03:31.691 1190065 ERROR oslo_messaging.rpc.server File "/usr/lib/python3/dist-packages/six.py", line 703, in reraise
2022-08-17 16:03:31.691 1190065 ERROR oslo_messaging.rpc.server raise value
2022-08-17 16:03:31.691 1190065 ERROR oslo_messaging.rpc.server File "/usr/lib/python3/dist-packages/manila/share/manager.py", line 1733, in create_share_instance
2022-08-17 16:03:31.691 1190065 ERROR oslo_messaging.rpc.server self._provide_share_server_for_share(
2022-08-17 16:03:31.691 1190065 ERROR oslo_messaging.rpc.server File "/usr/lib/python3/dist-packages/manila/share/manager.py", line 649, in _provide_share_server_for_share
2022-08-17 16:03:31.691 1190065 ERROR oslo_messaging.rpc.server return _wrapped_provide_share_server_for_share()
2022-08-17 16:03:31.691 1190065 ERROR oslo_messaging.rpc.server File "/usr/lib/python3/dist-packages/oslo_concurrency/lockutils.py", line 359, in inner
2022-08-17 16:03:31.691 1190065 ERROR oslo_messaging.rpc.server return f(*args, **kwargs)
2022-08-17 16:03:31.691 1190065 ERROR oslo_messaging.rpc.server File "/usr/lib/python3/dist-packages/manila/share/manager.py", line 643, in _wrapped_provide_share_server_for_share
2022-08-17 16:03:31.691 1190065 ERROR oslo_messaging.rpc.server self._create_share_server_in_backend(
2022-08-17 16:03:31.691 1190065 ERROR oslo_messaging.rpc.server File "/usr/lib/python3/dist-packages/manila/share/manager.py", line 660, in _create_share_server_in_backend
2022-08-17 16:03:31.691 1190065 ERROR oslo_messaging.rpc.server share_server = self._setup_server(context, share_server,
2022-08-17 16:03:31.691 1190065 ERROR oslo_messaging.rpc.server File "/usr/lib/python3/dist-packages/oslo_messaging/rpc/dispatcher.py", line 196, in _do_dispatch
2022-08-17 16:03:31.691 1190065 ERROR oslo_messaging.rpc.server result = func(ctxt, **new_args)
2022-08-17 16:03:31.691 1190065 ERROR oslo_messaging.rpc.server File "/usr/lib/python3/dist-packages/manila/share/manager.py", line 187, in wrapped
2022-08-17 16:03:31.691 1190065 ERROR oslo_messaging.rpc.server return f(self, *args, **kwargs)
2022-08-17 16:03:31.691 1190065 ERROR oslo_messaging.rpc.server File "/usr/lib/python3/dist-packages/manila/utils.py", line 568, in wrapper
2022-08-17 16:03:31.691 1190065 ERROR oslo_messaging.rpc.server return func(self, *args, **kwargs)
2022-08-17 16:03:31.691 1190065 ERROR oslo_messaging.rpc.server File "/usr/lib/python3/dist-packages/manila/share/manager.py", line 1748, in create_share_instance
2022-08-17 16:03:31.691 1190065 ERROR oslo_messaging.rpc.server self.message_api.create(
2022-08-17 16:03:31.691 1190065 ERROR oslo_messaging.rpc.server File "/usr/lib/python3/dist-packages/oslo_utils/excutils.py", line 220, in __exit__
2022-08-17 16:03:31.691 1190065 ERROR oslo_messaging.rpc.server self.force_reraise()
2022-08-17 16:03:31.691 1190065 ERROR oslo_messaging.rpc.server File "/usr/lib/python3/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise
2022-08-17 16:03:31.691 1190065 ERROR oslo_messaging.rpc.server six.reraise(self.type_, self.value, self.tb)
2022-08-17 16:03:31.691 1190065 ERROR oslo_messaging.rpc.server File "/usr/lib/python3/dist-packages/six.py", line 703, in reraise
2022-08-17 16:03:31.691 1190065 ERROR oslo_messaging.rpc.server raise value
2022-08-17 16:03:31.691 1190065 ERROR oslo_messaging.rpc.server File "/usr/lib/python3/dist-packages/manila/share/manager.py", line 1733, in create_share_instance
2022-08-17 16:03:31.691 1190065 ERROR oslo_messaging.rpc.server self._provide_share_server_for_share(
2022-08-17 16:03:31.691 1190065 ERROR oslo_messaging.rpc.server File "/usr/lib/python3/dist-packages/manila/share/manager.py", line 649, in _provide_share_server_for_share
2022-08-17 16:03:31.691 1190065 ERROR oslo_messaging.rpc.server return _wrapped_provide_share_server_for_share()
2022-08-17 16:03:31.691 1190065 ERROR oslo_messaging.rpc.server File "/usr/lib/python3/dist-packages/oslo_concurrency/lockutils.py", line 359, in inner
2022-08-17 16:03:31.691 1190065 ERROR oslo_messaging.rpc.server return f(*args, **kwargs)
2022-08-17 16:03:31.691 1190065 ERROR oslo_messaging.rpc.server File "/usr/lib/python3/dist-packages/manila/share/manager.py", line 643, in _wrapped_provide_share_server_for_share
2022-08-17 16:03:31.691 1190065 ERROR oslo_messaging.rpc.server self._create_share_server_in_backend(
2022-08-17 16:03:31.691 1190065 ERROR oslo_messaging.rpc.server File "/usr/lib/python3/dist-packages/manila/share/manager.py", line 660, in _create_share_server_in_backend
2022-08-17 16:03:31.691 1190065 ERROR oslo_messaging.rpc.server share_server = self._setup_server(context, share_server,
2022-08-17 16:03:31.691 1190065 ERROR oslo_messaging.rpc.server File "/usr/lib/python3/dist-packages/manila/share/manager.py", line 3778, in _setup_server
2022-08-17 16:03:31.691 1190065 ERROR oslo_messaging.rpc.server self.driver.deallocate_network(context, share_server['id'])
2022-08-17 16:03:31.691 1190065 ERROR oslo_messaging.rpc.server File "/usr/lib/python3/dist-packages/oslo_utils/excutils.py", line 220, in __exit__
2022-08-17 16:03:31.691 1190065 ERROR oslo_messaging.rpc.server self.force_reraise()
2022-08-17 16:03:31.691 1190065 ERROR oslo_messaging.rpc.server File "/usr/lib/python3/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise
2022-08-17 16:03:31.691 1190065 ERROR oslo_messaging.rpc.server six.reraise(self.type_, self.value, self.tb)
2022-08-17 16:03:31.691 1190065 ERROR oslo_messaging.rpc.server File "/usr/lib/python3/dist-packages/six.py", line 703, in reraise
2022-08-17 16:03:31.691 1190065 ERROR oslo_messaging.rpc.server raise value
2022-08-17 16:03:31.691 1190065 ERROR oslo_messaging.rpc.server File "/usr/lib/python3/dist-packages/manila/share/manager.py", line 3695, in _setup_server
2022-08-17 16:03:31.691 1190065 ERROR oslo_messaging.rpc.server self.driver.allocate_network(context, share_server, share_network,
2022-08-17 16:03:31.691 1190065 ERROR oslo_messaging.rpc.server File "/usr/lib/python3/dist-packages/manila/share/driver.py", line 891, in allocate_network
2022-08-17 16:03:31.691 1190065 ERROR oslo_messaging.rpc.server self.network_api.allocate_network(
2022-08-17 16:03:31.691 1190065 ERROR oslo_messaging.rpc.server File "/usr/lib/python3/dist-packages/manila/network/neutron/neutron_network_plugin.py", line 156, in allocate_network
2022-08-17 16:03:31.691 1190065 ERROR oslo_messaging.rpc.server self._store_neutron_net_info(context, share_network_subnet)
2022-08-17 16:03:31.691 1190065 ERROR oslo_messaging.rpc.server File "/usr/lib/python3/dist-packages/manila/network/neutron/neutron_network_plugin.py", line 129, in _store_neutron_net_info
2022-08-17 16:03:31.691 1190065 ERROR oslo_messaging.rpc.server self._save_neutron_network_data(context, share_network_subnet)
2022-08-17 16:03:31.691 1190065 ERROR oslo_messaging.rpc.server File "/usr/lib/python3/dist-packages/manila/network/neutron/neutron_network_plugin.py", line 386, in _save_neutron_network_data
2022-08-17 16:03:31.691 1190065 ERROR oslo_messaging.rpc.server network_type = net_info['provider:network_type']
2022-08-17 16:03:31.691 1190065 ERROR oslo_messaging.rpc.server KeyError: 'provider:network_type'
2022-08-17 16:03:31.691 1190065 ERROR oslo_messaging.rpc.server
2022-08-17 16:03:33.286 1190065 DEBUG oslo_service.periodic_task [req-53bbf170-838c-4f3b-bfd9-5eae56c20627 - - - - -] Running periodic task ShareManager._execute_periodic_hook run_periodic_tasks /usr/lib/python3/dist-packages/oslo_service/periodic_task.py:216
2022-08-17 16:03:33.307 1190065 DEBUG oslo_service.periodic_task [req-53bbf170-838c-4f3b-bfd9-5eae56c20627 - - - - -] Running periodic task ShareManager.periodic_share_status_update run_periodic_tasks /usr/lib/python3/dist-packages/oslo_service/periodic_task.py:216
2022-08-17 16:03:33.308 1190065 DEBUG manila.share.manager [req-53bbf170-838c-4f3b-bfd9-5eae56c20627 - - - - -] Updating status of share instances. periodic_share_status_update /usr/lib/python3/dist-packages/manila/share/manager.py:4515
/usr/lib/python3/dist-packages/manila/network/neutron/neutron_network_plugin.py
code snippet
def _save_neutron_network_data(self, context, share_network_subnet):
net_info = self.neutron_api.get_network(
share_network_subnet['neutron_net_id'])
segmentation_id = None
network_type = None
if self._is_neutron_multi_segment(share_network_subnet, net_info):
# we have a multi segment network and need to identify the
# lowest segment used for binding
phy_nets = []
phy = self.neutron_api.configuration.neutron_physical_net_name
if not phy:
msg = "Cannot identify segment used for binding. Please add "
"neutron_physical_net_name in configuration."
raise exception.NetworkBadConfigurationException(reason=msg)
for segment in net_info['segments']:
phy_nets.append(segment['provider:physical_network'])
if segment['provider:physical_network'] == phy:
segmentation_id = segment['provider:segmentation_id']
network_type = segment['provider:network_type']
if not (segmentation_id and network_type):
msg = ("No matching neutron_physical_net_name found for %s "
"(found: %s)." % (phy, phy_nets))
raise exception.NetworkBadConfigurationException(reason=msg)
else:
network_type = net_info['provider:network_type']
segmentation_id = net_info['provider:segmentation_id']
provider_nw_dict = {
'network_type': network_type,
'segmentation_id': segmentation_id,
'mtu': net_info['mtu'],
}
share_network_subnet.update(provider_nw_dict)
if self.label != 'admin':
self.db.share_network_subnet_update(
context, share_network_subnet['id'], provider_nw_dict)
This is not a charm issue, but rather the way that the manila code itself handles the network share information.