=== msg is now known as Guest97815 === msg is now known as Guest66785 === msg is now known as Guest10545 === msg is now known as Guest88639 [08:53] I am back. I am running that on openstack of my team. [08:53] http://paste.ubuntu.com/24053660/ btw === freakynl is now known as Guest88990 === msg is now known as Guest32972 [14:04] If I pass to runcmd some commands, ie. Ansible, then even if I try to run as ubuntu user, then user is root. Can I force that cmd is launched as non root user? [14:04] pasasap_, what openstack ? [14:05] Neutron. [14:06] pasasap_, ok. so in that paste above 2453660 [14:06] you have only Ec2 datasource enabled. [14:06] i suspect you possibly have a config drive attached. [14:06] and that cluod-init would/should get networking configuration from taht config drive. [14:07] then... either you have a broken metadata service (which used to be quite common on openstack with neutron) [14:07] It one time can get metadata, another time cannot. [14:07] or you have no metadata service. [14:07] in the log there, you have only configured cloud-init to look for Ec2. [14:08] do you have a config drive attached do you know ? [14:08] I dont know, possibly not. [14:08] ie, there might be a small disk attached. [14:08] so definitely you need to fix cloud-init config so that it looks for OpenStack and ConfigDrive [14:08] That was installed with packstack if I remember. [14:08] (run dpkg-reconfigure cloud-init) [14:09] i dont know about packstack, i dont particularly have an interest in knowing about image building tools... [14:09] i generally think they're silly [14:09] we make images that "just work", and if they dont then we will fix them. [14:09] (i view building images the same way as I view building glibc or kernel... sure you can do it, but why?) [14:10] so i'd much rather focus on trouble shooting the official ubuntu images to start. [14:10] then you have somethign that works and you can compare. [14:10] I tried official image, xenial-server-cloudimg-amd64-disk1.img also has the same problem. [14:10] with regard to running as non-root, cloud-init runs as root, so runcmd runs as root. you can execute things as other users using 'su' or 'sudo' [14:11] here is 'my-userdata' that i launch vms with generally [14:11] http://paste.ubuntu.com/24058888/ [14:11] see 'as_def_user' for a way to run things as non-root [14:12] its more complicated then you need, but basically it goes looking for a user in a list (smoser , ubuntu, azuser....) and executes as that user... the reason for the searching is that some clouds have different default user and this just finds whatever that user is. [14:12] pasasap_, the official image may well have a problem for you, but it will have more than just the Ec2 datasource enabled. [14:12] so that is at least one problem that we can avoid trouble shooting. [14:12] that make sense ? [14:13] lets get *something* working, then you can have a reference that works and figure out the differences. [14:16] OK, but which datasources should be enabled? [14:25] well, in the official image, all of them are [14:25] but most likely you need ConfigDrive and OpenStack [14:26] but ... lets just go with the official image. [14:26] i suggest: [14:26] a.) download that to an ubuntu system some where [14:27] b.) backdoor it: (run backdoor-image --user=backdoor --password-auth --password=passw0rd your.image) [14:27] http://bazaar.launchpad.net/~smoser/+junk/backdoor-image/files [14:27] then upload that. [14:27] then if it fails, you'll still be able to ssh in as 'backdoor' with 'passw0rd' [14:28] and then you can poke around that way and see what failed. [14:43] pasasap_, does that make sense ? === rangerpbzzzz is now known as rangerpb [14:44] Yes. [20:10] smoser: around? [20:10] here [20:10] wanted to hangout for like 10 minutes to talk networkd during boot issues [20:12] https://hangouts.google.com/hangouts/_/canonical.com/hangout-rharper?authuser=1 [20:13] ok [20:13] can i have 5 m inutes ? [20:14] htne meet [20:14] yeah [20:24] 3:30 (2:30 central) [20:24] i'll join then [20:24] rharper, https://code.launchpad.net/~smoser/cloud-init/+git/cloud-init/+merge/318282 [20:25] if you want to take a read of that i'd appreciate it. [20:25] better commit messages needed, and some doc, and test :) [20:25] ok [20:30] smoser: I've got 5 mins then I'll be back at the top of the hour [20:33] I'll re-ping in 30 [20:33] ok.s orry [20:56] https://hangouts.google.com/hangouts/_/canonical.com/hangout-rharper?authuser=1 [20:59] smoser: ^^ [21:25] rharper, https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1667735 === rangerpb is now known as rangerpbzzzz [23:34] I am trying to build cloud-init deb package and got 'Unmet build dependencies: python3-coverage' error. Any idea how I can get this resolved