/srv/irclogs.ubuntu.com/2013/10/08/#cloud-init.txt

smoseralright, utlemming uploaded.00:16
smoseri kind of am planning on doing an 0.7.4 release to just tie this fix in and anything else that flushes out in the nexst 36 hours.00:17
utlemmingsmoser: ack01:26
smoserutlemming, it just made it through02:05
smoserso please get builds in if you can02:05
pedroalvarezRunning 2 OS, in the same OpenStack system, Ubuntu gets the userdata through Ec2 and the other OS doesn't receive anything..12:35
pedroalvarezI've got the two log files: 13:34
pedroalvarez-Ubuntu: http://paste.ubuntu.com/6209011/13:35
pedroalvarez-The other: http://paste.ubuntu.com/6209024/13:35
pedroalvarezI even downgraded my cloud-init version to 0.7.2, but still not working13:49
smoserneat that btrfs resize worked. that was mostly theoretical13:53
smoser:)13:53
pedroalvarez:)13:55
smoserOct 08 11:15:33 baserock cloud-init[196]: [CLOUDINIT] __init__.py[DEBUG]: Searching for data source in: ['DataSourceNoCloudNet', 'DataSourceConfigDriveNet', 'DataSourceAltCloud', 'DataSourceOVFNet', 'DataSourceNone']13:59
smoserthat is your problem13:59
smoseri'm not sure whats causing it, but for some reason its not looknig for the DataSourceEc2, while it seems like you've configured that.14:01
smoserOct 08 11:15:33 baserock cloud-init[196]: [CLOUDINIT] __init__.py[DEBUG]: Looking for for data source in: ['NoCloud', 'ConfigDrive', 'AltCloud', 'OVF', 'MAAS', 'Ec2', 'None'], via packages ['', 'cloudinit.sources'] that matches dependencies ['FILESYSTEM', 'NETWORK']14:01
pedroalvarezThat's exactly what I was checking right now14:02
pedroalvarezyes, it is on my cfg file: datasource_list: [ NoCloud, ConfigDrive, AltCloud, OVF, MAAS, Ec2, None ]14:03
pedroalvarezsmoser: there is a module called "disable-ec2-metadata"14:09
pedroalvarezI have tried to make it works with and without it14:11
pedroalvarezSeems like the importer can't import it:  importer.py[DEBUG]: Found DataSourceEc2 with attributes ['get_datasource_list'] in []14:21
smoserpedroalvarez, disable-ec2-metdata not related.14:23
smoserwell... disable-ec2-metadata would most certainly disable your ec2metadata14:24
smoserpedroalvarez, what is your python version ?14:24
pedroalvarezsmoser: Python 2.7.214:25
pedroalvarezand I have already disabled the "disable-ec2-metadata" module14:26
smoserthat wont affect cloud-init14:26
smoserthat runs late in the boot process14:26
smoserand if it is enabled by user data 14:26
smoserthen it routes the url off14:26
pedroalvarezIs the python version enough?14:26
smoseri think so14:26
smoseri thought it might have an issue if it was 2.6 or 2.614:27
smosererr 2.514:27
pedroalvarezsmoser: I could try using configDrive instead Ec2, but I don't know how to configure OpenStack to do it14:28
smoserno. yo ushoudl fix ec2.14:29
smoseri'm not sure why you're not finding that datasource, though.14:30
smosercan you let me into an instance?14:30
pedroalvarezIt's not visible from outside I think14:31
pedroalvarezLet me ask14:31
pedroalvarezI can't, but maybe I can try to upload it to a free Openstack online14:40
pedroalvarez(trystack)14:40
pedroalvarezhmm.. do you know another alternative than trystack?15:01
smoserpedroalvarez, i dont know. 15:11
smoseryou could put it on amazon15:11
smoseroh, or even do a devstack *in* amazon15:12
smoseror tunnel out of theinstance15:12
smosercan you let me into the bootstrap node ?15:31
smoserssh-import-id smoser15:31
pedroalvarezsmoser: found the problem I think. I didn't import boto, essential for run Ec2. I will let you know. Thanks16:18
smoserhum.. i'd have thoguht we'd see a traceback log there.16:19
smosermaybe there was on the consoel16:19
pedroalvarezthere isn't:16:21
pedroalvarez        except ImportError:16:21
pedroalvarez            pass16:21
smoserboooo16:22
pedroalvarezSolution:16:23
pedroalvarez        except ImportError, e:16:23
pedroalvarez            LOG.debug("Failed to import %s: %r", full_path, e)16:23
smoseri'd use util.logexc16:24
smoserbut yeah16:24
smoserharlowja, pedroalvarez hit a but that was hidden somewhat by the fact that the datasource loader hides import errors20:10
harlowja:-/20:45
harlowjahmmm20:45
smoserso the datsource loading21:19
smosertried to load ddatasourceec221:19
smoserwhich eneeded boto21:19
smoserand so tboto import-errored21:19
smoserand then the laoder just swallowd that up.21:19
smoserso i couldn't figure out from his log why he wasn't seeing the datasource ec2 (or attempting to use it)21:20
harlowjahmmm22:03
harlowjaya durn imports of imports failing22:03
harlowjathose are tough ones22:03
harlowjamaybe we should log something at least22:03
harlowjamaybe to start a debug message22:04
harlowjaaround try:22:04
harlowja            mod = import_module(full_path)22:04
harlowja        except ImportError:22:04
harlowja            pass22:04
harlowjaexcept its hard to tell the difference between import not existing (which might be ok) and import having a dependency that is failing22:07
harlowjaboth come out as import errors22:07

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