Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Share instance xxx failed on creation. #43

Open
TatusGepetto opened this issue Mar 15, 2023 · 0 comments
Open

Share instance xxx failed on creation. #43

TatusGepetto opened this issue Mar 15, 2023 · 0 comments

Comments

@TatusGepetto
Copy link

TatusGepetto commented Mar 15, 2023

Hi,

I'm facing an issue with share creation when DHSS is True and huawei is used as a backend. My error code is:

2023-03-15 13:01:55.938 4066930 ERROR manila.share.manager [req-de6ec8c5-027f-49e7-bc5a-d9ebc3437b0e 0d63c8861a124f4fbebe4170a9d59e61 175e079b3aef47a38da16d125863fd9d - - -] Share instance a02c57c7-012d-460f-8f1e-a259052b3f51 failed on creation.
2023-03-15 13:01:55.938 4066930 WARNING manila.share.manager [req-de6ec8c5-027f-49e7-bc5a-d9ebc3437b0e 0d63c8861a124f4fbebe4170a9d59e61 175e079b3aef47a38da16d125863fd9d - - -] Share instance information in exception can not be written to db because it contains {} and it is not a dictionary.
2023-03-15 13:01:55.967 4066930 INFO manila.message.api [req-de6ec8c5-027f-49e7-bc5a-d9ebc3437b0e 0d63c8861a124f4fbebe4170a9d59e61 175e079b3aef47a38da16d125863fd9d - - -] Creating message record for request_id = req-de6ec8c5-027f-49e7-bc5a-d9ebc3437b0e
2023-03-15 13:01:55.999 4066930 ERROR oslo_messaging.rpc.server [req-de6ec8c5-027f-49e7-bc5a-d9ebc3437b0e 0d63c8861a124f4fbebe4170a9d59e61 175e079b3aef47a38da16d125863fd9d - - -] Exception during message handling: KeyError: 'ip'
2023-03-15 13:01:55.999 4066930 ERROR oslo_messaging.rpc.server Traceback (most recent call last):
2023-03-15 13:01:55.999 4066930 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3/dist-packages/oslo_messaging/rpc/server.py", line 165, in _process_incoming
2023-03-15 13:01:55.999 4066930 ERROR oslo_messaging.rpc.server     res = self.dispatcher.dispatch(message)
2023-03-15 13:01:55.999 4066930 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3/dist-packages/oslo_messaging/rpc/dispatcher.py", line 309, in dispatch
2023-03-15 13:01:55.999 4066930 ERROR oslo_messaging.rpc.server     return self._do_dispatch(endpoint, method, ctxt, args)
2023-03-15 13:01:55.999 4066930 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3/dist-packages/oslo_messaging/rpc/dispatcher.py", line 229, in _do_dispatch
2023-03-15 13:01:55.999 4066930 ERROR oslo_messaging.rpc.server     result = func(ctxt, **new_args)
2023-03-15 13:01:55.999 4066930 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3/dist-packages/manila/share/manager.py", line 220, in wrapped
2023-03-15 13:01:55.999 4066930 ERROR oslo_messaging.rpc.server     return f(self, *args, **kwargs)
2023-03-15 13:01:55.999 4066930 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3/dist-packages/manila/utils.py", line 568, in wrapper
2023-03-15 13:01:55.999 4066930 ERROR oslo_messaging.rpc.server     return func(self, *args, **kwargs)
2023-03-15 13:01:55.999 4066930 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3/dist-packages/manila/share/manager.py", line 2146, in create_share_instance
2023-03-15 13:01:55.999 4066930 ERROR oslo_messaging.rpc.server     self.message_api.create(
2023-03-15 13:01:55.999 4066930 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3/dist-packages/oslo_utils/excutils.py", line 227, in __exit__
2023-03-15 13:01:55.999 4066930 ERROR oslo_messaging.rpc.server     self.force_reraise()
2023-03-15 13:01:55.999 4066930 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3/dist-packages/oslo_utils/excutils.py", line 200, in force_reraise
2023-03-15 13:01:55.999 4066930 ERROR oslo_messaging.rpc.server     raise self.value
2023-03-15 13:01:55.999 4066930 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3/dist-packages/manila/share/manager.py", line 2109, in create_share_instance
2023-03-15 13:01:55.999 4066930 ERROR oslo_messaging.rpc.server     export_locations = self.driver.create_share(
2023-03-15 13:01:55.999 4066930 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3/dist-packages/manila/share/drivers/huawei/huawei_nas.py", line 513, in create_share
2023-03-15 13:01:55.999 4066930 ERROR oslo_messaging.rpc.server     return self._get_export_location(
2023-03-15 13:01:55.999 4066930 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3/dist-packages/manila/share/drivers/huawei/huawei_nas.py", line 482, in _get_export_location
2023-03-15 13:01:55.999 4066930 ERROR oslo_messaging.rpc.server     ips = self._get_share_server_export_ips(
2023-03-15 13:01:55.999 4066930 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3/dist-packages/manila/share/drivers/huawei/huawei_nas.py", line 463, in _get_share_server_export_ips
2023-03-15 13:01:55.999 4066930 ERROR oslo_messaging.rpc.server     return [share_server['backend_details']['ip']]
2023-03-15 13:01:55.999 4066930 ERROR oslo_messaging.rpc.server KeyError: 'ip'
2023-03-15 13:01:55.999 4066930 ERROR oslo_messaging.rpc.server 

I configured huawei_backend as below, but I'm not sure if NFSClient IP is the one which should be taken or it has to be something else:

<?xml version='1.0' encoding='UTF-8'?>
<config>
    <Storage>
            <Product>Dorado</Product>
            <LogicalPortIP>10.1.20.100;10.1.20.101;10.1.20.102;10.1.20.103</LogicalPortIP>
            <RestURL>https://10.1.0.247:8088/deviceManager/rest/</RestURL>
            <UserName>xxx</UserName>
            <UserPassword>!xxx</UserPassword>
    </Storage>
    <Filesystem>
            <StoragePool>StoragePool001</StoragePool>
            <NFSClient>
                    <IP>100.71.0.253</IP>
            </NFSClient>
    </Filesystem>
</config>

100.71.0.253 -> this IP is taken directly from neutron network which is defined as attached:
image

If I'm doing something wrong - please let me know. Or if something else has to be defined - let me know. Thanks in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant