| === jrm2 is now known as jrm | ||
| caribou | Hello, before pulling my hair any further, I thought I'd come around for a quick question : | 14:40 |
|---|---|---|
| caribou | For 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 |
| caribou | DatasourceScaleway.py modification. | 14:40 |
| caribou | It uses "make srpm; rpm -vih *.src.rpm;rpmbuild --clean -ba /root/rpmbuild/SPECS/cloud-init.spec | 14:40 |
| caribou | Last week it started to fail even if we're building from the same tag. The reason for that is that the tarball is called | 14:40 |
| caribou | cloud-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 |
| caribou | which makes the build fail. | 14:40 |
| caribou | Does it ring a bell to anyone here ? | 14:40 |
| caribou | (this is built on a Fedora 38 docker image) | 14:41 |
| deostroll | Any cloud-init examples which help me understand how to assign static ip assignment? | 14:51 |
| catred | deostroll here are the network docs: https://cloudinit.readthedocs.io/en/latest/reference/network-config.html if you haven't seen them yet | 15:03 |
| catred | Or 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 |
| caribou | s/build/built/ | 15:37 |
| cpaelzer | hi 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 |
| cpaelzer | this format seems not to be on github, nor on launchpad nor in ubuntu | 15:38 |
| cpaelzer | So as catred said, I wondere where did you get that from? | 15:39 |
| cpaelzer | and BTW - long time no see - hi caribou o/ | 15:39 |
| caribou | hello cpaelzer, indeed. | 15:39 |
| caribou | Let me check what the script does | 15:39 |
| caribou | The CI only does that, so if there is a d/l it comes from ./packages/brpm : | 15:42 |
| caribou | git clone https://github.com/canonical/cloud-init.git -b main -b 23.2 | 15:42 |
| caribou | cd cloud-init | 15:42 |
| caribou | make srpm | 15:42 |
| caribou | rpm -vih *.src.rpm | 15:42 |
| caribou | rpmbuild --clean -ba /root/rpmbuild/SPECS/cloud-init.spec | 15:42 |
| caribou | The tarball comes from ./tools/make-tarball | 15:44 |
| caribou | FYI: This works well on main, it just fails if you run it on the 23.2 tag | 15:47 |
| deostroll | catred: I am creating a cloud-init disk (vmdk) to do my provisioning. | 15:54 |
| deostroll | Following these tutorials: https://documentation.ubuntu.com/lxd/en/stable-4.0/cloud-init/ | 15:54 |
| deostroll | confused whether I should put the networking config in user-data or network-config files | 15:55 |
| falcojr | deostroll: it goes in a separate file called `network-config`. See the bottom of https://cloudinit.readthedocs.io/en/latest/reference/datasources/nocloud.html | 16:09 |
| caribou | cpaelzer: 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 output | 16:09 |
| caribou | s/the to directory/the top directory/ | 16:10 |
| cpaelzer | thanks for finding that caribou | 16:13 |
| cpaelzer | This isn't a severe issue, but one we can change going forward | 16:13 |
| cpaelzer | now that you have all the details, would you mind also throwing them into an issue? | 16:14 |
| caribou | indeed, 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 |
| caribou | of course | 16:14 |
| caribou | now that I'm on it, I'll dig a bit further to try to identify the source of the difference | 16:15 |
| caribou | cpaelzer: Here it is with what I think is the fix for the issue : https://github.com/canonical/cloud-init/issues/4976 | 17: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!