<div dir="ltr">Hi,<div>The above issue was passed. Now i am facing another issue (</div><h1 id="edit-title" class="gmail-yui3-editable_text-content" style="margin:0px;padding:0px;font-weight:normal;background-image:none;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;clear:none;line-height:34px;color:rgb(51,51,51);font-family:Ubuntu,"Bitstream Vera Sans","DejaVu Sans",Tahoma,sans-serif"><span class="gmail-yui3-editable_text-text ellipsis" id="gmail-yui_3_10_3_1_1673591317489_1019" style="max-width:95%"><font size="2">TypeError: __init__() got an unexpected keyword argument 'location'</font></span></h1><div>)</div><div><br></div><div><div id="gmail-yui_3_10_3_1_1673591317489_1935" style="margin:0px;padding:0px;color:rgb(51,51,51);font-family:Ubuntu,"Bitstream Vera Sans","DejaVu Sans",Tahoma,sans-serif;font-size:12px"><div id="gmail-yui_3_10_3_1_1673591317489_1149" class="gmail-yui3-widget gmail-yui3-editable_text" tabindex="-1" style="margin:0px;padding:0px;outline:none"><div class="gmail-lazr-multiline-edit gmail-yui3-editable_text-content" id="edit-description" style="margin:1em 0px;padding:0px;font-family:monospace"><div class="gmail-yui3-editable_text-text" id="gmail-yui_3_10_3_1_1673591317489_1154" style="margin:0px;padding:5px 10px 3px 20px;border-top:1px solid rgb(214,214,214)"><p style="margin:0px 0px 1.2em;padding:0px;width:auto;max-width:45em">$ openstack overcloud ceph deploy dcn01_overcloud-baremetal-deployed.yaml --stack dcn01 --config initial-ceph.conf --output deployed_ceph.yaml --container-image-prepare containers-prepare-parameter.yaml --network-data custom_network_data.yaml --cluster dcn01 --roles-data dcn01_roles.yaml -vvv</p><p style="margin:0px 0px 1.2em;padding:0px;width:auto;max-width:45em">2023-01-13 13:57:41.039472 | 48d539a1-1679-6d35-f36d-000000000013 | TASK | Create Ceph spec based on baremetal_deployed_path and tripleo_roles<br>Using module file /usr/share/ansible/plugins/modules/ceph_spec_bootstrap.py<br>Pipelining is enabled.<br><localhost> ESTABLISH LOCAL CONNECTION FOR USER: stack<br><localhost> EXEC /bin/sh -c '/usr/bin/python3 && sleep 0'<br>The full traceback is:<br>Traceback (most recent call last):<br>  File "<stdin>", line 102, in <module><br>  File "<stdin>", line 94, in _ansiballz_main<br>  File "<stdin>", line 40, in invoke_module<br>  File "/usr/lib64/python3.6/runpy.py", line 205, in run_module<br>    return _run_module_code(code, init_globals, run_name, mod_spec)<br>  File "/usr/lib64/python3.6/runpy.py", line 96, in _run_module_code<br>    mod_name, mod_spec, pkg_name, script_name)<br>  File "/usr/lib64/python3.6/runpy.py", line 85, in _run_code<br>    exec(code, run_globals)<br>  File "/tmp/ansible_ceph_spec_bootstrap_payload_67bkkver/ansible_ceph_spec_bootstrap_payload.zip/ansible/modules/ceph_spec_bootstrap.py", line 500, in <module><br>  File "/tmp/ansible_ceph_spec_bootstrap_payload_67bkkver/ansible_ceph_spec_bootstrap_payload.zip/ansible/modules/ceph_spec_bootstrap.py", line 487, in main<br>  File "/tmp/ansible_ceph_spec_bootstrap_payload_67bkkver/ansible_ceph_spec_bootstrap_payload.zip/ansible/modules/ceph_spec_bootstrap.py", line 333, in get_specs<br>TypeError: __init__() got an unexpected keyword argument 'location'<br>2023-01-13 13:57:42.204777 | 48d539a1-1679-6d35-f36d-000000000013 | FATAL | Create Ceph spec based on baremetal_deployed_path and tripleo_roles | undercloud | error={<br>    "changed": false,<br>    "module_stderr": "Traceback (most recent call last):\n File \"<stdin>\", line 102, in <module>\n File \"<stdin>\", line 94, in _ansiballz_main\n File \"<stdin>\", line 40, in invoke_module\n File \"/usr/lib64/python3.6/runpy.py\", line 205, in run_module\n return _run_module_code(code, init_globals, run_name, mod_spec)\n File \"/usr/lib64/python3.6/runpy.py\", line 96, in _run_module_code\n mod_name, mod_spec, pkg_name, script_name)\n File \"/usr/lib64/python3.6/runpy.py\", line 85, in _run_code\n exec(code, run_globals)\n File \"/tmp/ansible_ceph_spec_bootstrap_payload_67bkkver/ansible_ceph_spec_bootstrap_payload.zip/ansible/modules/ceph_spec_bootstrap.py\", line 500, in <module>\n File \"/tmp/ansible_ceph_spec_bootstrap_payload_67bkkver/ansible_ceph_spec_bootstrap_payload.zip/ansible/modules/ceph_spec_bootstrap.py\", line 487, in main\n File \"/tmp/ansible_ceph_spec_bootstrap_payload_67bkkver/ansible_ceph_spec_bootstrap_payload.zip/ansible/modules/ceph_spec_bootstrap.py\", line 333, in get_specs\nTypeError: __init__() got an unexpected keyword argument 'location'\n",<br>    "module_stdout": "",<br>    "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error",<br>    "rc": 1<br>}<br>2023-01-13 13:57:42.206279 | 48d539a1-1679-6d35-f36d-000000000013 | TIMING | Create Ceph spec based on baremetal_deployed_path and tripleo_roles | undercloud | 0:00:02.169503 | 1.16s</p><p style="margin:0px 0px 1.2em;padding:0px;width:auto;max-width:45em">(undercloud) [stack@hkg2director dcn01]$ cat dcn01_overcloud-baremetal-deployed.yaml<br>parameter_defaults:<br>  DeployedServerPortMap:<br>    dcn01-hci-0-ctlplane:<br>      fixed_ips:<br>      - ip_address: 172.25.221.108<br>    dcn01-hci-1-ctlplane:<br>      fixed_ips:<br>      - ip_address: 172.25.221.96<br>    dcn01-hci-2-ctlplane:<br>      fixed_ips:<br>      - ip_address: 172.25.221.105<br>  DistributedComputeHCICount: 3<br>  DistributedComputeHCIHostnameFormat: '%stackname%-distributedcomputehci-%index%'<br>  HostnameMap:<br>    dcn01-distributedcomputehci-0: dcn01-hci-0<br>    dcn01-distributedcomputehci-1: dcn01-hci-1<br>    dcn01-distributedcomputehci-2: dcn01-hci-2<br>  NodePortMap:<br>    dcn01-hci-0:<br>      ctlplane:<br>        ip_address: 172.25.221.108<br>        ip_address_uri: 172.25.221.108<br><...></p><p style="margin:0px 0px 1.2em;padding:0px;width:auto;max-width:45em">(undercloud) [stack@hkg2director dcn01]$ cat dcn01_roles.yaml<br>###############################################################################<br># File generated by TripleO<br>###############################################################################<br>###############################################################################<br># Role: DistributedComputeHCI #<br>###############################################################################<br>- name: DistributedComputeHCI<br>  description: |<br>    Distributed Compute Node role with Ceph, Cinder volume, and Glance.<br>  tags:<br>    - compute<br>  networks:<br>    InternalApi:<br>      subnet: internal_apis2_subnet<br>    Tenant:<br>      subnet: tenants2_subnet<br>    Storage:<br>      subnet: storages2_subnet<br>    StorageMgmt:<br>      subnet: storage_mgmts2_subnet<br>  HostnameFormatDefault: '%stackname%-hci-%index%'<br>  RoleParametersDefault:<br>    FsAioMaxNumber: 1048576<br>    TunedProfileName: "throughput-performance"<br>  # CephOSD present so serial has to be 1<br>  update_serial: 1<br>  ServicesDefault:<br>    - OS::TripleO::Services::Aide<br>    - OS::TripleO::Services::AuditD<br>    - OS::TripleO::Services::BarbicanClient<br><...></p></div></div></div></div><div class="gmail-clearfix" style="padding:0px;color:rgb(51,51,51);font-family:Ubuntu,"Bitstream Vera Sans","DejaVu Sans",Tahoma,sans-serif;font-size:12px"></div><br class="gmail-Apple-interchange-newline"></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jan 12, 2023 at 11:09 PM Swogat Pradhan <<a href="mailto:swogatpradhan22@gmail.com">swogatpradhan22@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><p id="m_8801751965362716479gmail-yui_3_10_3_1_1673544958271_1938" style="margin:0px 0px 1.2em;padding:0px;width:auto;max-width:45em;color:rgb(51,51,51);font-family:monospace;font-size:12px">Hi,<br>INFO: Openstack wallaby on centos 8 stream</p><p id="m_8801751965362716479gmail-yui_3_10_3_1_1673544958271_1927" style="margin:0px 0px 1.2em;padding:0px;width:auto;max-width:45em;color:rgb(51,51,51);font-family:monospace;font-size:12px">I am trying to deploy a DCN and during the ceph deploy command i am getting the following error:</p><p style="margin:0px 0px 1.2em;padding:0px;width:auto;max-width:45em;color:rgb(51,51,51);font-family:monospace;font-size:12px">(undercloud) [stack@hkg2director dcn01]$ openstack overcloud ceph deploy dcn01_overcloud-baremetal-deployed.yaml --stack dcn01 --config initial-ceph.conf --output deployed_ceph.yaml --container-image-prepare containers-prepare-parameter.yaml --network-data custom_network_data.yaml --cluster dcn01 --roles-data dcn01_roles.yaml -vvv</p><p style="margin:0px 0px 1.2em;padding:0px;width:auto;max-width:45em;color:rgb(51,51,51);font-family:monospace;font-size:12px">The full traceback is:<br>Traceback (most recent call last):<br>  File "/tmp/ansible_ceph_spec_bootstrap_payload_c4o_1q1y/ansible_ceph_spec_bootstrap_payload.zip/ansible/modules/ceph_spec_bootstrap.py", line 241, in get_deployed_roles_to_hosts<br>UnboundLocalError: local variable 'matching_hosts' referenced before assignment</p><p style="margin:0px 0px 1.2em;padding:0px;width:auto;max-width:45em;color:rgb(51,51,51);font-family:monospace;font-size:12px">During handling of the above exception, another exception occurred:</p><p style="margin:0px 0px 1.2em;padding:0px;width:auto;max-width:45em;color:rgb(51,51,51);font-family:monospace;font-size:12px">Traceback (most recent call last):<br>  File "<stdin>", line 102, in <module><br>  File "<stdin>", line 94, in _ansiballz_main<br>  File "<stdin>", line 40, in invoke_module<br>  File "/usr/lib64/python3.6/runpy.py", line 205, in run_module<br>    return _run_module_code(code, init_globals, run_name, mod_spec)<br>  File "/usr/lib64/python3.6/runpy.py", line 96, in _run_module_code<br>    mod_name, mod_spec, pkg_name, script_name)<br>  File "/usr/lib64/python3.6/runpy.py", line 85, in _run_code<br>    exec(code, run_globals)<br>  File "/tmp/ansible_ceph_spec_bootstrap_payload_c4o_1q1y/ansible_ceph_spec_bootstrap_payload.zip/ansible/modules/ceph_spec_bootstrap.py", line 500, in <module><br>  File "/tmp/ansible_ceph_spec_bootstrap_payload_c4o_1q1y/ansible_ceph_spec_bootstrap_payload.zip/ansible/modules/ceph_spec_bootstrap.py", line 471, in main<br>  File "/tmp/ansible_ceph_spec_bootstrap_payload_c4o_1q1y/ansible_ceph_spec_bootstrap_payload.zip/ansible/modules/ceph_spec_bootstrap.py", line 246, in get_deployed_roles_to_hosts<br>RuntimeError: The expected HostnameMap and RoleHostnameFormat are not defined in data file: /home/stack/dcn01/dcn01_overcloud-baremetal-deployed.yaml<br>2023-01-13 01:27:15.811878 | 48d539a1-1679-ea57-d54d-000000000013 | FATAL | Create Ceph spec based on baremetal_deployed_path and tripleo_roles | undercloud | error={<br>    "changed": false,<br>    "module_stderr": "Traceback (most recent call last):\n File \"/tmp/ansible_ceph_spec_bootstrap_payload_c4o_1q1y/ansible_ceph_spec_bootstrap_payload.zip/ansible/modules/ceph_spec_bootstrap.py\", line 241, in get_deployed_roles_to_hosts\nUnboundLocalError: local variable 'matching_hosts' referenced before assignment\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \"<stdin>\", line 102, in <module>\n File \"<stdin>\", line 94, in _ansiballz_main\n File \"<stdin>\", line 40, in invoke_module\n File \"/usr/lib64/python3.6/runpy.py\", line 205, in run_module\n return _run_module_code(code, init_globals, run_name, mod_spec)\n File \"/usr/lib64/python3.6/runpy.py\", line 96, in _run_module_code\n mod_name, mod_spec, pkg_name, script_name)\n File \"/usr/lib64/python3.6/runpy.py\", line 85, in _run_code\n exec(code, run_globals)\n File \"/tmp/ansible_ceph_spec_bootstrap_payload_c4o_1q1y/ansible_ceph_spec_bootstrap_payload.zip/ansible/modules/ceph_spec_bootstrap.py\", line 500, in <module>\n File \"/tmp/ansible_ceph_spec_bootstrap_payload_c4o_1q1y/ansible_ceph_spec_bootstrap_payload.zip/ansible/modules/ceph_spec_bootstrap.py\", line 471, in main\n File \"/tmp/ansible_ceph_spec_bootstrap_payload_c4o_1q1y/ansible_ceph_spec_bootstrap_payload.zip/ansible/modules/ceph_spec_bootstrap.py\", line 246, in get_deployed_roles_to_hosts\nRuntimeError: The expected HostnameMap and RoleHostnameFormat are not defined in data file: /home/stack/dcn01/dcn01_overcloud-baremetal-deployed.yaml\n",<br>    "module_stdout": "",<br>    "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error",<br>    "rc": 1<br>}</p><p style="margin:0px 0px 1.2em;padding:0px;width:auto;max-width:45em;color:rgb(51,51,51);font-family:monospace;font-size:12px">(undercloud) [stack@hkg2director dcn01]$ cat /home/stack/dcn01/dcn01_overcloud-baremetal-deployed.yaml<br>parameter_defaults:<br>  DeployedServerPortMap:<br>    dcn01-hci-0-ctlplane:<br>      fixed_ips:<br>      - ip_address: 172.25.221.96<br>    dcn01-hci-1-ctlplane:<br>      fixed_ips:<br>      - ip_address: 172.25.221.90<br>    dcn01-hci-2-ctlplane:<br>      fixed_ips:<br>      - ip_address: 172.25.221.106<br>  HCICount: 3<br>  HCIHostnameFormat: '%stackname%-hci-%index%'<br>  HostnameMap:<br>    dcn01-hci-0: dcn01-hci-0<br>    dcn01-hci-1: dcn01-hci-1<br>    dcn01-hci-2: dcn01-hci-2<br>  NodePortMap:<br>    dcn01-hci-0:<br>      ctlplane:<br>        ip_address: 172.25.221.96<br>...></p><p style="margin:0px 0px 1.2em;padding:0px;width:auto;max-width:45em;color:rgb(51,51,51);font-family:monospace;font-size:12px">Can someone please tell me what could be the issue here??<br>Am I missing something?</p><p style="margin:0px 0px 1.2em;padding:0px;width:auto;max-width:45em;color:rgb(51,51,51);font-family:monospace;font-size:12px"><br></p><p style="margin:0px 0px 1.2em;padding:0px;width:auto;max-width:45em;color:rgb(51,51,51);font-family:monospace;font-size:12px">With regards,</p><p style="margin:0px 0px 1.2em;padding:0px;width:auto;max-width:45em;color:rgb(51,51,51);font-family:monospace;font-size:12px">Swogat Pradhan</p></div>
</blockquote></div>