[openstack-dev] [tripleo] What is the proper way to use NetConfigDataLookup?

Saravanan KR skramaja at redhat.com
Mon Jul 9 04:57:30 UTC 2018


Are you using the first-boot script [1] mapped to NodeUserData? If
yes, you could check the logs/error of the first-boot script
@/var/log/cloud-init-output.log on the overcloud nodes.

Regards,
Saravanan KR

[1] https://github.com/openstack/tripleo-heat-templates/blob/e64c10b9c13188f37e6f122475fe02280eaa6686/firstboot/os-net-config-mappings.yaml
On Fri, Jul 6, 2018 at 9:53 PM Mark Hamzy <hamzy at us.ibm.com> wrote:
>
> What is the proper way to use NetConfigDataLookup?  I tried the following:
>
> (undercloud) [stack at oscloud5 ~]$ cat << '__EOF__' > ~/templates/mapping-info.yaml
> parameter_defaults:
>   NetConfigDataLookup:
>       control1:
>         nic1: '5c:f3:fc:36:dd:68'
>         nic2: '5c:f3:fc:36:dd:6c'
>         nic3: '6c:ae:8b:29:27:fa' # 9.114.219.34
>         nic4: '6c:ae:8b:29:27:fb' # 9.114.118.???
>         nic5: '6c:ae:8b:29:27:fc'
>         nic6: '6c:ae:8b:29:27:fd'
>       compute1:
>         nic1: '6c:ae:8b:25:34:ea' # 9.114.219.44
>         nic2: '6c:ae:8b:25:34:eb'
>         nic3: '6c:ae:8b:25:34:ec' # 9.114.118.???
>         nic4: '6c:ae:8b:25:34:ed'
>       compute2:
>         nic1: '00:0a:f7:73:3c:c0'
>         nic2: '00:0a:f7:73:3c:c1'
>         nic3: '00:0a:f7:73:3c:c2' # 9.114.118.156
>         nic4: '00:0a:f7:73:3c:c3' # 9.114.112.???
>         nic5: '00:0a:f7:73:73:f4'
>         nic6: '00:0a:f7:73:73:f5'
>         nic7: '00:0a:f7:73:73:f6' # 9.114.219.134
>         nic8: '00:0a:f7:73:73:f7'
> __EOF__
> (undercloud) [stack at oscloud5 ~]$ openstack overcloud deploy --templates -e ~/templates/node-info.yaml -e ~/templates/mapping-info.yaml -e ~/templates/overcloud_images.yaml -e ~/templates/environments/network-environment.yaml -e ~/templates/environments/network-isolation.yaml -e ~/templates/environments/config-debug.yaml --disable-validations --ntp-server pool.ntp.org --control-scale 1 --compute-scale
>
> But I did not see a /etc/os-net-config/mapping.yaml get created.
>
> Also is this configuration used when the system boots IronicPythonAgent to provision the disk?
>
> --
> Mark
>
> You must be the change you wish to see in the world. -- Mahatma Gandhi
> Never let the future disturb you. You will meet it, if you have to, with the same weapons of reason which today arm you against the present. -- Marcus Aurelius
> __________________________________________________________________________
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev



More information about the OpenStack-dev mailing list