<div dir="ltr">Hi Harald<div><br></div><div>Thanks for your response. After passing the role data with relevant details we were able to successfully deploy Overcloud and pass Service NetMap as well.</div><div><br></div><div>Thanks a lot for your help</div><div><br></div><div>Regards</div><div>Anirudh Gupta</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jun 7, 2022 at 7:01 PM Harald Jensas <<a href="mailto:hjensas@redhat.com">hjensas@redhat.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">On 6/7/22 14:32, Harald Jensas wrote:<br>
> On 6/7/22 11:49, Anirudh Gupta wrote:<br>
>> Hi Harald/Julia/Openstack Team<br>
>><br>
>> I had successfully installed Ironic Service in Tripleo Train, Ussuri <br>
>> Release with the help of openstack discuss team members.<br>
>><br>
>> <a href="https://lists.openstack.org/pipermail/openstack-discuss/2022-February/027047.html" rel="noreferrer" target="_blank">https://lists.openstack.org/pipermail/openstack-discuss/2022-February/027047.html</a> <br>
>> <<a href="https://lists.openstack.org/pipermail/openstack-discuss/2022-February/027047.html" rel="noreferrer" target="_blank">https://lists.openstack.org/pipermail/openstack-discuss/2022-February/027047.html</a>> <br>
>><br>
>><br>
>> I had custom network configuration for which I had passed Service net <br>
>> map as below in network-environment file.<br>
>><br>
>> parameter_defaults:<br>
>>    ServiceNetMap:<br>
>>      IronicApiNetwork: oc_provisioning<br>
>>      IronicNetwork: oc_provisioning<br>
>><br>
>> But with the Wallaby Release, since the deployment format has changed <br>
>> There is no network-environment file.<br>
>><br>
>> So I tried passing it in a separate environment.yaml file along with <br>
>> the templates.<br>
>> Command to deploy  in wallaby:<br>
>><br>
>> openstack overcloud deploy --templates \<br>
>>      --networks-file /home/stack/templates/custom_network_data.yaml \<br>
>>      --vip-file  /home/stack/templates/custom_vip_data.yaml \<br>
>>      --baremetal-deployment <br>
>>   /home/stack/templates/overcloud-baremetal-deploy.yaml <br>
>> --deployed-server \<br>
>>      --network-config \<br>
>>      -e /home/stack/templates/environment.yaml \<br>
>>      -e <br>
>> /usr/share/openstack-tripleo-heat-templates/environments/services/ironic-conductor.yaml <br>
>> \<br>
>>      -e <br>
>> /usr/share/openstack-tripleo-heat-templates/environments/services/ironic-inspector.yaml <br>
>> \<br>
>>      -e <br>
>> /usr/share/openstack-tripleo-heat-templates/environments/services/ironic-overcloud.yaml <br>
>> \<br>
>>      -e /home/stack/templates/ironic-config.yaml \<br>
>>      -e <br>
>> /usr/share/openstack-tripleo-heat-templates/environments/services/ptp.yaml <br>
>> \<br>
>>      -e <br>
>> /usr/share/openstack-tripleo-heat-templates/environments/docker-ha.yaml \<br>
>>      -e <br>
>> /usr/share/openstack-tripleo-heat-templates/environments/podman.yaml \<br>
>>      -e /home/stack/containers-prepare-parameter.yaml<br>
>><br>
>> Without Service Net Map, deployment was successful but TFTP of image <br>
>> was an issue since we are going with custom network approach.<br>
>><br>
>> Passing Service Net map details in a seperate file environment.yaml, <br>
>> is giving the below error:<br>
>><br>
>> 24d-f43f-6f76-000000006ce9 | TASK | Create containers managed by <br>
>> Podman for /var/lib/tripleo-config/container-startup-config/step_3<br>
>> 2022-06-07 11:16:46.806982 | | WARNING | ERROR: Can't run container <br>
>> ironic_db_sync<br>
>> stderr: Error: statfs <br>
>> /var/lib/config-data/puppet-generated/ironic_api: no such file or <br>
>> directory<br>
>> 2022-06-07 11:16:46.809252 | 525400fd-f24d-f43f-6f76-000000006c79 | <br>
>> FATAL | Create containers managed by Podman for <br>
>> /var/lib/tripleo-config/container-startup-config/step_3 | <br>
>> overcloud-controller-1 | error={"changed": false, "msg": "Failed <br>
>> containers: ironic_db_sync"}<br>
>> 2022-06-07 11:16:46.810197 | 525400fd-f24d-f43f-6f76-000000006c79 | <br>
>> TIMING | tripleo_container_manage : Create containers managed by <br>
>> Podman for /var/lib/tripleo-config/container-startup-config/step_3 | <br>
>> overcloud-controller-1 | 0:11:40.574944 | 10.62s<br>
>> 2022-06-07 11:16:47.683400 | | WARNING | ERROR: Can't run container <br>
>> ironic_db_sync<br>
>> stderr: Error: statfs <br>
>> /var/lib/config-data/puppet-generated/ironic_api: no such file or <br>
>> directory<br>
>> 2022-06-07 11:16:47.684455 | 525400fd-f24d-f43f-6f76-000000006ce9 | <br>
>> FATAL | Create containers managed by Podman for <br>
>> /var/lib/tripleo-config/container-startup-config/step_3 | <br>
>> overcloud-controller-2 | error={"changed": false, "msg": "Failed <br>
>> containers: ironic_db_sync"}<br>
>><br>
>> Can you please suggest the place we can pass the service net map <br>
>> details in Wallaby Release to resolve this issue?<br>
>><br>
> <br>
> You should be able to pass it in any of the environment files, like you <br>
> did. Can you try adding the following to the environment file where you <br>
> override the ServiceNetMap?<br>
> <br>
> parameter_merge_strategies:<br>
>    ServiceNetMap: merge<br>
> <br>
<br>
Actually, my bad. (Thanks Rabi for reminding me on IRC.) The merge <br>
strategies is after a change in master. With Wallaby we still have <br>
ServiceNetMapDefaults which is merged with overrides in ServiceNetMap.<br>
<br>
AFICT from this error ...<br>
<br>
 > 2022-06-07 11:16:47.683400 | | WARNING | ERROR: Can't run container<br>
 > ironic_db_sync<br>
 > stderr: Error: statfs<br>
 > /var/lib/config-data/puppet-generated/ironic_api: no such file or<br>
 > directory<br>
<br>
... it did not execute $THT/common/container-puppet.sh for the <br>
ironic_api service correctly.<br>
<br>
Could it be because you don't use a custom roles file?<br>
The default[1] role file does not have the `oc_provisioning` <br>
provisioning network. I wonder if some task is skipped because the node <br>
is not on the network the service is mapped to. Can you try using a <br>
custom roles file with the `oc_provisioning` network defined on the <br>
controller role?<br>
<br>
I think we probably need more information to understand the problem. <br>
Would it be possible to share more data? i.e full deploy log, all custom <br>
environment files?<br>
<br>
Thanks!<br>
<br>
[1] <a href="https://opendev.org/openstack/tripleo-heat-templates/src/branch/stable/wallaby/roles_data.yaml#L18" rel="noreferrer" target="_blank">https://opendev.org/openstack/tripleo-heat-templates/src/branch/stable/wallaby/roles_data.yaml#L18</a><br>
<br>
</blockquote></div>