/srv/irclogs.ubuntu.com/2024/02/28/#cloud-init.txt

=== jrm2 is now known as jrm
caribouHello, before pulling my hair any further, I thought I'd come around for a quick question :14:40
caribouFor months, we've been building an RPM version of cloud-init v23.2 since all the RHEL distros do not carry this version with our specific 14:40
caribouDatasourceScaleway.py modification.14:40
caribouIt uses "make srpm; rpm -vih *.src.rpm;rpmbuild --clean -ba /root/rpmbuild/SPECS/cloud-init.spec14:40
caribouLast week it started to fail even if we're building from the same tag. The reason for that is that the tarball is called14:40
cariboucloud-init-23.2-0-gcdc24d864.tar.gz whereas the extracted source is in cloud-init-23.2-0-gcdc24d86 (notice the extra digit in the dir)14:40
caribouwhich makes the build fail.14:40
caribouDoes it ring a bell to anyone here ?14:40
caribou(this is built on a Fedora 38 docker image)14:41
deostrollAny cloud-init examples which help me understand how to assign static ip assignment?14:51
catreddeostroll here are the network docs: https://cloudinit.readthedocs.io/en/latest/reference/network-config.html if you haven't seen them yet15:03
catredOr if you've already read them can you share your current network config that isn't working?15:04
catred~caribou: Where are you downloading your tarball from?15:37
caribou@catred: I'm not, it's build when running `make srpm`15:37
caribous/build/built/15:37
cpaelzerhi caribou - also the version in cloud-init-23.2-0-gcdc24d864.tar.gz looks liek a debian revision (by the -0) which we never had. But then is not an .orig tarball either.15:38
cpaelzerthis format seems not to be on github, nor on launchpad nor in ubuntu15:38
cpaelzerSo as catred said, I wondere where did you get that from?15:39
cpaelzerand BTW - long time no see - hi caribou o/15:39
caribouhello cpaelzer, indeed.15:39
caribouLet me check what the script does15:39
caribouThe CI only does that, so if there is a d/l it comes from ./packages/brpm :15:42
caribougit clone https://github.com/canonical/cloud-init.git -b main -b 23.215:42
cariboucd cloud-init15:42
cariboumake srpm15:42
caribourpm -vih *.src.rpm15:42
caribourpmbuild --clean -ba /root/rpmbuild/SPECS/cloud-init.spec15:42
caribouThe tarball comes from ./tools/make-tarball15:44
caribouFYI: This works well on main, it just fails if you run it on the 23.2 tag15:47
deostrollcatred: I am creating a cloud-init disk (vmdk) to do my provisioning. 15:54
deostrollFollowing these tutorials: https://documentation.ubuntu.com/lxd/en/stable-4.0/cloud-init/15:54
deostrollconfused whether I should put the networking config in user-data or network-config files15:55
falcojrdeostroll: it goes in a separate file called `network-config`. See the bottom of https://cloudinit.readthedocs.io/en/latest/reference/datasources/nocloud.html16:09
cariboucpaelzer: catred: TL;DR : the name of the tarball created by make-tarball comes from "read-version --json" whereas the to directory of the tarball is created from "git describe --abbrev=8 "--match=[0-9]*" --long HEAD" and both generate different output16:09
caribous/the to directory/the top directory/16:10
cpaelzerthanks for finding that caribou16:13
cpaelzerThis isn't a severe issue, but one we can change going forward16:13
cpaelzernow that you have all the details, would you mind also throwing them into an issue?16:14
caribouindeed, we were just surprized that it stopped buildind all of the sudden, especially since it is always being built on the same tag.16:14
caribouof course16:14
caribounow that I'm on it, I'll dig a bit further to try to identify the source of the difference16:15
cariboucpaelzer: Here it is with what I think is the fix for the issue : https://github.com/canonical/cloud-init/issues/497617:11
-ubottu:#cloud-init- Issue 4976 in canonical/cloud-init "'make srpm' may fail to build package due to diff in git commit lengths" [Open]17:11

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!