Confirmed that the proposed changes do indeed fix the issue:

# Created via `gcloud compute instances create current-plucky --image-project 
ubuntu-os-cloud-devel --image daily-ubuntu-2504-plucky-amd64-v20250409 
--metadata-from-file user-data=hostname.yaml`
````
ubuntu@current-plucky:~$ hostname
current-plucky

ubuntu@current-plucky:~$ hostname -f
current-plucky.c.ubuntu-kajiya.internal
 
ubuntu@current-plucky:~$ dpkg -s google-compute-engine
Package: google-compute-engine
Status: install ok installed
Priority: optional
Section: admin
Installed-Size: 106
Maintainer: Ubuntu Developers <[email protected]>
Architecture: all
Source: gce-compute-image-packages
Version: 20250328.00-0ubuntu1
[...]
````

# Created via `gcloud compute instances create plucky-proposed --image-project 
ubuntu-kajiya --image plucky-proposed --metadata-from-file 
user-data=hostname.yaml` where the `plucky-proposed` image is identical to 
`daily-ubuntu-2504-plucky-amd64-v20250409`, but with this proposed package 
installed instead.
````
ubuntu@cloudinit1:~$ hostname
cloudinit1

ubuntu@cloudinit1:~$ hostname -f

cloudinit2.i9n.cloud-init.io

ubuntu@cloudinit1:~$ dpkg -s google-compute-engine
Package: google-compute-engine
Status: install ok installed
Priority: optional
Section: admin
Installed-Size: 102
Maintainer: Ubuntu Developers <[email protected]>
Architecture: all
Source: gce-compute-image-packages
Version: 20250328.00-0ubuntu2
[...]
````

where in both instances, `hostname.yaml` is as follows:
````
#cloud-config
manage_etc_hosts: true
hostname: cloudinit1
fqdn: cloudinit2.i9n.cloud-init.io
create_hostname_file: true
````

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2106629

Title:
  debian/install still installs google_hostname.sh

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gce-compute-image-packages/+bug/2106629/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to