[Openstack] oraclelinux and cloud-init with config drive
Joshua Harlow
harlowja at yahoo-inc.com
Wed Nov 20 07:35:29 UTC 2013
Ya it definitely works for us, anyway u can file a cloudinit bug with your findings?
https://bugs.launchpad.net/cloud-init
That would be much appreciated :)
Sent from my really tiny device...
> On Nov 19, 2013, at 11:03 PM, "Cristian Falcas" <cristi.falcas at gmail.com> wrote:
>
> Hi,
>
> I was referring to cloud init and config drive specifically, no dhcp ip.
>
> Is it working in thi scenario?
>
>
>
>
>> On Tue, Nov 19, 2013 at 10:19 PM, Joshua Harlow <harlowja at yahoo-inc.com> wrote:
>> Hmmm at yahoo cloudinit works on rhel 5.6, 6.2, 6.3, 6.4 so my guess there could be some bug. U shouldn't need your own custom script to set the networking setting.
>>
>> It hopefully should just work.
>>
>> Sent from my really tiny device...
>>
>>> On Nov 19, 2013, at 9:52 AM, "Cristian Falcas" <cristi.falcas at gmail.com> wrote:
>>>
>>> How I fixed this for my case (it may be that cloud-init can't set
>>> netowrking on redhat clones):
>>> 0. No cloud-init needed
>>>
>>> 1. In nova.conf:
>>> force_config_drive = True
>>> config_drive_cdrom = True
>>> flat_injected = True
>>> libvirt_inject_partition=-1
>>>
>>> 2. Replace /usr/share/nova/interfaces.template with this:
>>> {% for ifc in interfaces -%}
>>> ###################### start
>>> DEVICE="{{ ifc.name }}"
>>> NM_CONTROLLED="no"
>>> ONBOOT=yes
>>> TYPE=Ethernet
>>> BOOTPROTO=static
>>> IPADDR={{ ifc.address }}
>>> NETMASK={{ ifc.netmask }}
>>> BROADCAST={{ ifc.broadcast }}
>>> GATEWAY={{ ifc.gateway }}
>>>
>>> ### DNS={{ ifc.dns }}
>>> ###################### end
>>> {%- endfor %}
>>>
>>> 3. Have my own script mount /dev/disk/by-label/config-2 and parse
>>> openstack/latest/meta_data.json for domain name and network info file
>>>
>>>
>>>
>>> On Tue, Nov 19, 2013 at 12:19 PM, Cristian Falcas
>>> <cristi.falcas at gmail.com> wrote:
>>>> Hi again,
>>>>
>>>> After all it seems that no IP is put in the config drive files.
>>>>
>>>> I'm using flat networking with neutron.
>>>>
>>>> Does anybody know how the instances IP is retrieved for config drive?
>>>>
>>>> Best regards,
>>>> Cristian
>>>>
>>>>
>>>>
>>>> On Mon, Nov 18, 2013 at 7:16 PM, Cristian Falcas
>>>> <cristi.falcas at gmail.com> wrote:
>>>>> Hello list,
>>>>>
>>>>> I'm trying to setup an oracle linux 6.4 to take the networking
>>>>> information from config drive instead of metadata server (no dhsp
>>>>> server allowed).
>>>>>
>>>>> The iso is attached to the image and i can access it after boot.
>>>>>
>>>>> But cloud-init (0.7.2) doesn't do anything with the information from
>>>>> there and after boot there is no IP assigned.
>>>>>
>>>>> Can someone help me with understanding what configuration is needed for this?
>>>>>
>>>>> Best regards,
>>>>> Cristian Falcas
>>>
>>> _______________________________________________
>>> Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>>> Post to : openstack at lists.openstack.org
>>> Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
More information about the Openstack
mailing list