/srv/irclogs.ubuntu.com/2016/03/03/#cloud-init.txt

smoserharlowja_at_home, still in bzr. will be for the next month or so at leas.t00:52
harlowja_at_homek00:52
smoserjust ahve too many othe rthings at the moment to get there.00:52
smoseran deven to bothe rtyping well00:52
harlowja_at_homelol00:53
=== lunarlamp is now known as mariusv
=== Odd_Blok1 is now known as Odd_Bloke
=== rcj` is now known as rcj
rharpersmoser: when did you want to chat about cloud-init networking bits?19:00
suro-patzdoes tox tests for cloud-init(0.7.x) succeeds for py27?19:02
suro-patzsmoser: harlowja_at_home: ^^19:02
suro-patzI am getting ImportError19:04
suro-patz(py27) [suro@oxy-dev cloud-init (0.7.x)]$ python -c "from cloudinit import log as logging; import logging.config"19:04
suro-patzTraceback (most recent call last):19:04
suro-patz  File "<string>", line 1, in <module>19:04
suro-patz  File "cloudinit/log.py", line 24, in <module>19:04
suro-patz    import logging.config19:04
suro-patzImportError: No module named config19:04
suro-patz(py27) [suro@oxy-dev cloud-init (0.7.x)]$19:04
harlowja_at_homesuro-patz, ok, no idea why that happens19:07
harlowja_at_homeprobably the order u importing things19:08
harlowja_at_homesince u just overwrote the logging import19:08
harlowja_at_hometo be cloudinit.log19:08
suro-patzexactly19:08
suro-patzI was wondering it should be observed by others too19:09
suro-patzwanted to confirm19:09
suro-patzon master-branch it works fine19:09
suro-patzis it possible that on branch-0.7.x it is not maintained?19:09
harlowja_at_homelol19:10
harlowja_at_homesuro-patz, so u yourself are causing that issue19:11
harlowja_at_homeask yourself what your code does there19:11
harlowja_at_homeit renames cloud.init log as logging19:11
harlowja_at_homethen tries to import logging.config from that19:11
harlowja_at_homewhich will obviously fail19:11
harlowja_at_homeor afaik that's what its doing19:11
harlowja_at_homeso in other words, idk why u doing that19:12
harlowja_at_homebbl19:12
suro-patzharlowja_at_home: I just mimicked what cloud-init was failing at19:13
suro-patzERROR: Failure: ImportError (No module named config)19:13
suro-patz----------------------------------------------------------------------19:13
suro-patzTraceback (most recent call last):19:13
suro-patz  File "/home/suro/cloudInit/cloud-init/.tox/py27/lib/python2.7/site-packages/nose/loader.py", line 418, in loadTestsFromName19:13
suro-patz    addr.filename, addr.module)19:13
suro-patz  File "/home/suro/cloudInit/cloud-init/.tox/py27/lib/python2.7/site-packages/nose/importer.py", line 47, in importFromPath19:13
suro-patz    return self.importFromDir(dir_path, fqname)19:13
suro-patz  File "/home/suro/cloudInit/cloud-init/.tox/py27/lib/python2.7/site-packages/nose/importer.py", line 94, in importFromDir19:13
suro-patz    mod = load_module(part_fqname, fh, filename, desc)19:13
suro-patz  File "/home/suro/cloudInit/cloud-init/tests/unittests/test_util.py", line 12, in <module>19:13
suro-patz    from cloudinit import importer, util19:13
suro-patz  File "/home/suro/cloudInit/cloud-init/cloudinit/util.py", line 55, in <module>19:13
suro-patz    from cloudinit import log as logging19:13
smoserrharper, 90 minutes ?19:27
rharpersmoser: sure19:27
suro-patzharlowja_at_home: never mind, this error happened on repo where I had run tox for master branch once and then switched to 0.7.x. As I created a fresh repo, I do not see the issue any more - tox works for 0.7.x for py2719:30
smoserrharper, i have added fix and test for lxd.20:18
smoserthat was busted. pushing that now20:18
rharpersmoser: nice!20:18
rharperdid you get the fix on the init_cmd dict ?20:18
rharperused unknown variable20:18
* rharper is preparing a pep8/pylint/pyflakes MP 20:18
smoseroh. i just enabled pyflakes20:22
smosertrunk runs that on package build and in tox now20:22
rharpersmoser: cool20:28
smoserpushed that and lxd to trunk.20:30
smoserif you wanted to clean up ./tools/run-pep8 i'd be fine with that.20:30
smoserpep8 is such a freaking moving target.t ahts the biggest pain.20:30
smoserit has been clean before, and then we get a newer version in new ubuntu release and starts failing.20:31
rharperwell, I doubt it's been that clea20:33
rharperwith the I am the King, do what I say20:33
rharperbut yeah; I like curtin's make check20:33
rharperI think it keeps the source tidy;  it does move, but I don't think that much20:33
rharperthe first thing that seems challenging is that cloud-init is doing module path insertion in bin/cloud-init instead of the shell wrapper like in curtin (py2or3) would be useful here20:34
rharperbut not sure how much of the world you want to move/touch w.r.t that sort of thing20:34
kwadronauthttp://netfilter.org/projects/nftables/21:59
kwadronautoops21:59
kwadronautwrong window21:59

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