<div dir="ltr"><div>(2) should read 'the data should appear on both metadata and the config drive', I would say. Vish was making a point that this metadata changes (e.g. when running nova interface-attach) and it might be nice if the metadata server updated its information. It might be, and changing metadata has been discussed more than once before, but that's a can of worms that no-one is going to rush to open so it's not going to affect tests right now.<br>
<br></div><div>To run that test case, I don't think you have any option right now but to use a special interface template - it's that or go reading your addresses from the Neutron API directly when your machine tries to configure, and no-one would set up a VM like that.<br>
</div><div>-- <br></div>Ian.<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 12 December 2013 10:33, Yang XY Yu <span dir="ltr"><<a href="mailto:yuyangbj@cn.ibm.com" target="_blank">yuyangbj@cn.ibm.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><font face="sans-serif">Hi Ian and Vish,</font>
<br>
<br><font face="sans-serif">Thanks for your reply. From your response,
I still have some questions, hope you can help me to clear up them.</font>
<br>
<br><font face="sans-serif"><1> From Vish's response, may
I believe that static IPv6 injection using the interface.template will
be dropped in future because it is not a correct way to do net config as
you said?</font>
<br>
<br><font face="sans-serif"><2> If we still use the interface.template
to do net config, we'd better put it into metadata server, right?</font>
<br>
<br><font face="sans-serif"><3> If these two assumption above
are correct, my question is we still need to prepare some special ENV such
as images with cloud-init to run this tempest case </font><a href="https://review.openstack.org/#/c/58721/" target="_blank"><font color="blue" size="3"><u>https://review.openstack.org/#/c/58721/</u></font></a><font face="sans-serif">,
is it reasonable to be accepted by community? Is it the correct direction
to submit case for IPv6? How should I ask community to prepare the this
special ENV£¿</font>
<br>
<br><font face="sans-serif"><div class="im">Thanks & Best Regards,<br>
----------------------------------------------------<br>
Yang Yu(ÓÚÑî)<br></div>
----------------------------------------------------</font>
<br>
<br>
<br>
<p></p><table width="100%">
<tbody><tr valign="top">
<td width="40%"><font face="sans-serif" size="1"><b>Vishvananda Ishaya <<a href="mailto:vishvananda@gmail.com" target="_blank">vishvananda@gmail.com</a>></b>
</font>
<p><font face="sans-serif" size="1">2013-12-06 02:34</font>
</p><table border="">
<tbody><tr valign="top">
<td bgcolor="white">
<div align="center"><font face="sans-serif" size="1">Please respond to<br>
"OpenStack Development Mailing List \(not for usage questions\)"
<<a href="mailto:openstack-dev@lists.openstack.org" target="_blank">openstack-dev@lists.openstack.org</a>></font></div></td></tr></tbody></table>
<br>
</td><td width="59%">
<table width="100%">
<tbody><tr valign="top">
<td>
<div align="right"><font face="sans-serif" size="1">To</font></div>
</td><td><font face="sans-serif" size="1">"OpenStack Development Mailing
List \(not for usage questions\)" <<a href="mailto:openstack-dev@lists.openstack.org" target="_blank">openstack-dev@lists.openstack.org</a>></font>
</td></tr><tr valign="top">
<td>
<div align="right"><font face="sans-serif" size="1">cc</font></div>
</td><td>
</td></tr><tr valign="top">
<td>
<div align="right"><font face="sans-serif" size="1">Subject</font></div>
</td><td><font face="sans-serif" size="1">Re: [openstack-dev] [Neutron] Interfaces
file format, was [Tempest] Need to prepare
the IPv6 environment for static IPv6 injection
test case</font></td></tr></tbody></table>
<br>
<table>
<tbody><tr valign="top">
<td>
</td><td></td></tr></tbody></table>
<br></td></tr></tbody></table><div><div class="h5">
<br>
<br>
<br><font size="3">Hi Ian,</font>
<br>
<br><font size="3">The rendered network template was a legacy item that got
stuck onto the config drive so we could remove file injection. It is not
intended that this is the correct way to do net config. We have intended
in the past to put a generic form of network info into the metadata service
and config drive. Cloud-init can parse this data and have code to set up
networking config on different operating systems.</font>
<br>
<br><font size="3">We actually discussed doing this during the Havana summit,
but no one ever made any progress. There was some debate about whether
there was an existing xml format and someone was going to investigate.
Since this has not happened, I propose we scrap that idea and just produce
the network info in json.</font>
<br>
<br><font size="3">Nova should be able to populate this data from its cached
network info. It might also be nice to stick it in a known location on
the metadata server so the neutron proxy could potentially overwrite it
with more current network data if it wanted to.</font>
<br>
<br><font size="3">Vish</font>
<br>
<br><font size="3">On Dec 4, 2013, at 8:26 AM, Ian Wells <</font><a href="mailto:ijw.ubuntu@cack.org.uk" target="_blank"><font color="blue" size="3"><u>ijw.ubuntu@cack.org.uk</u></font></a><font size="3">>
wrote:</font>
<br>
<br><font size="3">We seem to have bound our config drive file formats to
those used by the operating system we're running, which doesn't seem like
the right approach to take.<br>
</font>
<br><font size="3">Firstly, the above format doesn't actually work even for
Debian-based systems - if you have a network without ipv6, ipv6 ND will
be enabled on the ipv4-only interfaces, which strikes me as wrong. (This
is a feature of Linux - ipv4 is enabled on interfaces which are specifically
configured with ipv4, but ipv6 is enabled on all interfaces that are brought
up.)<br>
</font>
<br><font size="3">But more importantly, the above file template only works
for Debian-based machines - not Redhat, not Windows, not anything else
- and we seem to have made that a feature of Openstack from the relatively
early days of file injection. That's not an ipv6 only thing but a
general statement. It seems wrong to have to extend Openstack's config
drive injection for every OS that might come along, so is there a way we
can make this work without tying the two things together? Are we
expecting the cloud-init code in whatever OS to parse and understand this
file format, or are they supposed to use other information? In general,
what would the recommendation be for someone using a VM where this config
format is not native?<br>
<br>
-- </font>
<br><font size="3">Ian.</font>
<br><font size="3"><br>
</font>
<br><font size="3">On 2 December 2013 03:01, Yang XY Yu <</font><a href="mailto:yuyangbj@cn.ibm.com" target="_blank"><font color="blue" size="3"><u>yuyangbj@cn.ibm.com</u></font></a><font size="3">>
wrote:</font>
<br><font face="sans-serif" size="3">Hi all stackers,</font><font size="3">
<br>
</font><font face="sans-serif" size="3"><br>
Currently Neutron/Nova code has supported the static IPv6 injection, but
there is no tempest scenario coverage to support IPv6 injection test case.
So I finished the test case and run the it successfully in my local environment,
and already submitted the code-review in community: </font><a href="https://review.openstack.org/#/c/58721/" target="_blank"><font color="blue" size="3"><u>https://review.openstack.org/#/c/58721/</u></font></a><font size="3">,
</font><font face="sans-serif" size="3">but the community Jenkins env has
not supported IPv6 and there are still a few pre-requisites setup below
if running the test case correctly, </font><font size="3"><br>
</font><font face="sans-serif" size="3"><br>
1. Special Image needed to support IPv6 by using cloud-init, currently
the cirros image used by tempest does not installed cloud-init.</font><font size="3">
<br>
</font><font face="sans-serif" size="3"><br>
2. Prepare interfaces.template file below on compute node.</font><font size="3">
</font><font color="#2f2f2f" face="Arial" size="1"><br>
edit /usr/share/nova/interfaces.template</font><font size="3">
<br>
</font><font face="Arial" size="1"><br>
# Injected by Nova on instance boot</font><font size="3"> </font><font face="Arial" size="1"><br>
#</font><font size="3"> </font><font face="Arial" size="1"><br>
# This file describes the network interfaces available on your system</font><font size="3">
</font><font face="Arial" size="1"><br>
# and how to activate them. For more information, see interfaces(5).</font><font size="3">
<br>
</font><font face="Arial" size="1"><br>
# The loopback network interface</font><font size="3"> </font><font face="Arial" size="1"><br>
auto lo</font><font size="3"> </font><font face="Arial" size="1"><br>
iface lo inet loopback</font><font size="3"> <br>
</font><font face="Arial" size="1"><br>
{% for ifc in interfaces -%}</font><font size="3"> </font><font face="Arial" size="1"><br>
auto {{ </font><a href="http://ifc.name/" target="_blank"><font color="blue" face="Arial" size="1"><u>ifc.name</u></font></a><font face="Arial" size="1">
}}</font><font size="3"> </font><font face="Arial" size="1"><br>
{% if use_ipv6 -%}</font><font size="3"> </font><font face="Arial" size="1"><br>
iface {{ </font><a href="http://ifc.name/" target="_blank"><font color="blue" face="Arial" size="1"><u>ifc.name</u></font></a><font face="Arial" size="1">
}} inet6 static</font><font size="3"> </font><font face="Arial" size="1"><br>
address {{ ifc.address_v6 }}</font><font size="3"> </font><font face="Arial" size="1"><br>
netmask {{ ifc.netmask_v6 }}</font><font size="3"> </font><font face="Arial" size="1"><br>
{%- if ifc.gateway_v6 %}</font><font size="3"> </font><font face="Arial" size="1"><br>
gateway {{ ifc.gateway_v6 }}</font><font size="3"> </font><font face="Arial" size="1"><br>
{%- endif %}</font><font size="3"> </font><font face="Arial" size="1"><br>
{%- endif %}</font><font size="3"> <br>
</font><font face="Arial" size="1"><br>
{%- endfor %}</font><font size="3"> <br>
<br>
</font><font face="Arial" size="1"><br>
So considering these two pre-requisites, what should be done to enable
this patch for IPv6 injection? Should I open a bug for cirros to enable
cloud-init? Or skip the test case because of this bug ?</font><font size="3">
</font><font face="Arial" size="1"><br>
Any comments are appreciated!</font><font size="3"> <br>
</font></div></div><font face="sans-serif" size="3"><div><div class="h5"><br>
Thanks & Best Regards,<br>
----------------------------------------------------<br>
Yang Yu(ÓÚÑî)<br></div></div>
----------------------------------------------------</font><font size="3">
<br>
_______________________________________________<br>
OpenStack-dev mailing list</font><div class="HOEnZb"><div class="h5"><font color="blue" size="3"><u><br>
</u></font><a href="mailto:OpenStack-dev@lists.openstack.org" target="_blank"><font color="blue" size="3"><u>OpenStack-dev@lists.openstack.org</u></font></a><font color="blue" size="3"><u><br>
</u></font><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank"><font color="blue" size="3"><u>http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</u></font></a><font size="3"><br>
</font>
<br>
<br><font size="3">_______________________________________________<br>
OpenStack-dev mailing list</font><font color="blue" size="3"><u><br>
</u></font><a href="mailto:OpenStack-dev@lists.openstack.org" target="_blank"><font color="blue" size="3"><u>OpenStack-dev@lists.openstack.org</u></font></a><font size="3"><br>
</font><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank"><font size="3">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</font></a>
<br><tt><font>_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org" target="_blank">OpenStack-dev@lists.openstack.org</a><br>
</font></tt><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank"><tt><font>http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</font></tt></a><tt><font><br>
</font></tt>
<br>
</div></div><br>_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><br></div>