After some more troubleshooting (Ubuntu desktop 22.04) it looks like the
issue comes from cloud-init.service starting before the instance networking
has assigned IP from the DHCP server.

Cloud-init v. 24.1.3-0ubuntu1~22.04.5 running 'init-local' at Mon, 24 Jun
2024 13:31:07 +0000. Up 4.45 seconds.
Cloud-init v. 24.1.3-0ubuntu1~22.04.5 running 'init' at Mon, 24 Jun 2024
13:31:22 +0000. Up 19.87 seconds.
ci-info: +++++++++++++++++++++++++++Net device
info++++++++++++++++++++++++++++
ci-info:
+--------+-------+-----------+-----------+-------+-------------------+
ci-info: | Device |   Up  |  Address  |    Mask   | Scope |     Hw-Address
   |
ci-info:
+--------+-------+-----------+-----------+-------+-------------------+
ci-info: |  eth0  | False |     .     |     .     |   .   |
1e:00:1f:00:01:2e |
ci-info: |   lo   |  True | 127.0.0.1 | 255.0.0.0 |  host |         .
  |
ci-info: |   lo   |  True |  ::1/128  |     .     |  host |         .
  |
ci-info:
+--------+-------+-----------+-----------+-------+-------------------+
ci-info: +++++++++++++++++++Route IPv6 info+++++++++++++++++++
ci-info: +-------+-------------+---------+-----------+-------+
ci-info: | Route | Destination | Gateway | Interface | Flags |
ci-info: +-------+-------------+---------+-----------+-------+

I tried to change cloud-init.service:
- removed:
before=network-online.target
- added:
After=network-online.target
Wants=network-online.target

Unfortunately no change and the interface is still reported as False.

Regards,
Jordan


On Thu, Jun 20, 2024 at 3:10 PM Jayanth Babu A
<jayanth.b...@nxtgen.com.invalid> wrote:

> Just remembered that Ubuntu 24.04 hasn't yet been added as a template.
> Testing this out and will let you know.
>
> Thanks,
> Jayanth
>
> Sent on the move
>
> Sent from Outlook for Android<https://aka.ms/AAb9ysg>
> ________________________________
> From: jordan j <yordan...@gmail.com>
> Sent: Thursday, June 20, 2024 5:30:45 PM
> To: users@cloudstack.apache.org <users@cloudstack.apache.org>
> Subject: cloud-init fails on newer ubuntu?
>
> Hi everyone,
>
> Currently I have a test setup where these 4 OSs are tested with cloud-init
> and  Cloudstack 4.19.0.1 :
> - Ubuntu 22 server - work!
> - Ubuntu 24 server - does not work
> - Ubuntu 22 desktop - does not work
> - Ubuntu 24 desktop - does not work
>
> The config script is the same on all 4 instances.
> All template instances are started in the same network with the same VR.
> The error on the failed ones is:
> 2024-06-20 09:07:18,172 - util.py[WARNING]: Getting data from <class
> 'cloudinit.sources.DataSourceCloudStack.DataSourceCloudStack'> failed
>
> I can query successfully the metadata from the failed instances.
> Do you have any suggestions why those 3 fail while the 22 server is running
> properly? I have been looking at the ins and outs of that for a few days
> now with no success.
>
> Regards,
> Jordan
> Disclaimer *** This e-mail contains PRIVILEGED AND CONFIDENTIAL
> INFORMATION intended solely for the use of the addressee(s). If you are not
> the intended recipient, please notify the sender by e-mail and delete the
> original message. Further, you are not authorised to copy, disclose, or
> distribute this e-mail or its contents to any other person and any such
> actions are unlawful and strictly prohibited. This e-mail may contain
> viruses. NxtGen Datacenter & Cloud Technologies Private Ltd ("NxtGen") has
> taken every reasonable precaution to minimize this risk but is not liable
> for any damage you may sustain as a result of any virus in this e-mail. You
> should carry out your own virus checks before opening the e-mail or
> attachment. NxtGen reserves the right to monitor and review the content of
> all messages sent to or from this e-mail address. Messages sent to or from
> this e-mail address may be stored on the NxtGen e-mail system. *** End of
> Disclaimer ***NXTGEN***
>

Reply via email to