/srv/irclogs.ubuntu.com/2017/06/08/#cloud-init.txt

smoserblackboxsw, http://paste.ubuntu.com/24804339/00:04
=== rangerpb is now known as rangerpbzzzz
smoserrharper, where does the setuptools depends come from ?04:36
rharperno where, we need to explicitly depend on it04:36
rharperin el6, it gets pulled in via some other package dep but we BuildRequires we should also just Requires it as well04:37
rharperwe had it fixed earlier today04:37
smoseri dont know.. i dont think i ever had that in there.04:38
rharperhrm04:38
smoseri think that requirements.txt file is getting written with it in there.04:38
smoserwhile we do not need it04:38
rharpertest-requirements.txt:setuptools04:39
rharper 04:39
rharpernot sure if that's getting picked up; in any case, we *do* need it since the loader requires it (/usr/bin/cloud-init calls it for pkg_resource)04:39
smoserhm..04:40
smosertest-requirements.txt says04:40
smoser# Only really needed on older versions of python04:40
smosercontextlib204:40
smosersetuptools04:40
rharperI'm just grepping around, I don't know how we got setuptools into the previous build that worked, but it's not installed now via yum install cloud-init04:42
rharperI thought we agreed it's a requirement as long as we're using setup.py04:42
smoserno. i think that was pkg_resources04:43
smoseri forget.04:43
smoserwhat a pain04:43
rharperpkg_resources comes from setuptools04:44
smoserok. i added that to spec04:56
smoserand pushed04:56
smoserrharper, ^05:04
rharperk05:04
smoserand wih that... /me goes to bed.05:04
smoserci is happy with it now too.05:04
smosergood night05:04
rharperk05:04
rharperhttps://copr.fedorainfracloud.org/coprs/g/cloud-init/cloud-init/build/562783/05:12
rharpersmoser: that's working on el6 and el7 =)05:12
=== frickler_ is now known as frickler
=== sambetts|afk is now known as sambetts
smoserrharper, i split into 2 merge proposals14:36
smoserhttps://code.launchpad.net/~smoser/cloud-init/+git/cloud-init/+merge/32531114:36
smoserhttps://code.launchpad.net/~smoser/cloud-init/+git/cloud-init/+merge/32519214:36
rharperok14:36
smoserie, cloud-config in one and redhat spec in another.14:36
rharperack14:36
smoserone question... i dont know if we need the centos variant.14:36
smoserdo we?14:36
* smoser walks down14:36
rharperyes, for the cloud-config14:36
rharperwe use the distro.variant to set the distro value as well as the default user name (and Gecos values)14:37
larskssmoser: dumb question: should I expect cloud-init to handle network_data.json when booting with a network data source, rather than config drive?16:30
smoserlarsks, not yet16:36
smoserreally, really want to do that...16:36
smoserbut not at the moment :-(16:36
larskssmoser: thanks, just wanted to make sure I wasn't crazy.16:36
smoserlarsks, the goal is to make the openstack datasource work like the digital ocean one does.16:38
smoserwe'd identify (via dmi data) that we are running on penstack.16:38
smoserand then raise an interface with the link local address, and hit the metadata service16:38
smoserget the network data16:38
smosertake the nic down16:38
smoserapply the network_data.json16:38
larsksThat makes sense.16:39
smoserrharper,16:49
smoserhttps://code.launchpad.net/~smoser/cloud-init/+git/cloud-init/+merge/32519216:49
smoseraddressed all your things there16:49
=== sambetts is now known as sambetts|afk
rharpersmoser: ok, trunk needs this http://paste.ubuntu.com/24809440/18:00
rharpersmoser: http://paste.ubuntu.com/24809461/  look ok ?18:02
smoserpowersj, http://paste.ubuntu.com/24809515/18:13
smoserpowersj, http://paste.ubuntu.com/24809682/18:48
powersjrharper: https://paste.ubuntu.com/24810376/20:43
rharperpowersj: nice!20:46
=== cpaelzer_ is now known as cpaelzer
smoserlarsks, we're trying to get spec file going in trunk. it builds happily now in copr and we get rpms out.23:03
smoserhoray!23:03
smoserbut we would also like the things to actually *work*. :)23:04
smoserand that is causing a problem in that right now we're not getting systemd stuff enabled in the spec file.23:04
larskssmoser: "not getting enabled" == "you are running systemctl enable but service isn't starting"? Or something else?23:05
rharper%define use_systemd (0%{?fedora} && 0%{?fedora} >= 18) || (0%{?rhel} && 0%{?rhel} >= 7) || (0%{?suse_version} && 0%{?suse_version} >=1210)23:05
rharperso, in specfile, that sets a flag to use systemd based on the dist version23:06
larsksSure.23:06
rharperI think we need that23:06
rharperlarsks: does that look sane  to add ?23:06
rharperthen we do an if %use_systemd and BuildRequires systemd23:07
smoserhttp://paste.ubuntu.com/24811338/23:07
larsksrharper: It seems like a reasonable idea.  Is it not working?23:07
smoserspec ends up looking like ^23:07
* larsks looks23:07
rharperlarsks: using what smoser posted23:07
rharperbut I thought that rhel7 builder chroots would have systemd in it by default23:07
rharperif we switch to my post, then we need to buildrequires systemd23:07
rharperbased on version, I think we'll need to do that23:07
powersjCOPR builds pushed by jenkins: https://jenkins.ubuntu.com/server/job/cloud-init-build-rpm/1/console I'll do the testing of the rpm's tomorrow.23:09
larsksrharper: I can take a closer look later this evening; kids go to sleep by 9pm (us/eastern).23:09
rharperlarsks: sure, thanks23:09
rharperpowersj: \o/23:09
larsksWill you be around then? And/or are you using a spec file different from what smoser posted?23:10
rharperI'll be out though23:11
smoserlarsks, well ^ is in trunk now.23:11
smoseryou can 'make srpm'23:11
larsksCool.23:11
larsksWill do.23:11
rharperPYVER=python2 make srpm23:11
rharperone of the two23:11
smoserit seems odd to me that one would need from cent6 to cent7 people would have to change every package that had systemd scripts23:12
smoseri guess maybe over time in fedora that just happened.23:12
smoserblackboxsw,23:39
smoser    return json.dumps(data, indent=1, sort_keys=True,23:39
smoser                      separators=(',', ': ')).encode('utf-8')23:39
smoserformat the json with that json.dumps23:39
blackboxswthanks23:41
rharpersmoser: larsks: this looks to work http://paste.ubuntu.com/24811524/23:49
rharperre: specfile updates23:49

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