/srv/irclogs.ubuntu.com/2017/02/24/#cloud-init.txt

=== msg is now known as Guest97815
=== msg is now known as Guest66785
=== msg is now known as Guest10545
=== msg is now known as Guest88639
pasasap_I am back. I am running that on openstack of my team.08:53
pasasap_http://paste.ubuntu.com/24053660/ btw08:53
=== freakynl is now known as Guest88990
=== msg is now known as Guest32972
pasasap_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
smoserpasasap_, what openstack ?14:04
pasasap_Neutron.14:05
smoserpasasap_, ok. so in that paste above 245366014:06
smoseryou have only Ec2 datasource enabled.14:06
smoseri suspect you possibly have a config drive attached.14:06
smoserand that cluod-init would/should get networking configuration from taht config drive.14:06
smoserthen... either you have a broken metadata service (which used to be quite common on openstack with neutron)14:07
pasasap_It one time can get metadata, another time cannot.14:07
smoseror you have no metadata service.14:07
smoserin the log there, you have only configured cloud-init to look for Ec2.14:07
smoserdo you have a config drive attached do you know ?14:08
pasasap_I dont know, possibly not.14:08
smoserie, there might be a small disk attached.14:08
smoserso definitely  you need to fix cloud-init config so that it looks for OpenStack and ConfigDrive14:08
pasasap_That was installed with packstack if I remember.14:08
smoser(run dpkg-reconfigure cloud-init)14:08
smoseri dont know about packstack, i dont particularly have an interest in knowing about image building tools...14:09
smoseri generally think they're silly14:09
smoserwe make images that "just work", and if they dont then we will fix them.14:09
smoser(i view building images the same way as I view building glibc or kernel... sure you can do it, but why?)14:09
smoserso i'd much rather focus on trouble shooting the official ubuntu images to start.14:10
smoserthen you have somethign that works and you can compare.14:10
pasasap_I tried official image, xenial-server-cloudimg-amd64-disk1.img also  has the same problem.14:10
smoserwith 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:10
smoserhere is 'my-userdata' that i launch vms with generally14:11
smoser http://paste.ubuntu.com/24058888/14:11
smosersee 'as_def_user' for a way to run things as non-root14:11
smoserits 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
smoserpasasap_, the official image may well have a problem for you, but it will have more than just the Ec2 datasource enabled.14:12
smoserso that is at least one problem that we can avoid trouble shooting.14:12
smoserthat make sense ?14:12
smoserlets get *something* working, then you can have a reference that works and figure out the differences.14:13
pasasap_OK, but which datasources should be enabled?14:16
smoserwell, in the official image, all of them are14:25
smoserbut most likely you need ConfigDrive and OpenStack14:25
smoserbut ... lets just go with the official image.14:26
smoseri suggest:14:26
smoser a.) download that to an ubuntu system some where14:26
smoser b.) backdoor it: (run backdoor-image --user=backdoor --password-auth --password=passw0rd your.image)14:27
smoser http://bazaar.launchpad.net/~smoser/+junk/backdoor-image/files14:27
smoserthen upload that.14:27
smoserthen if it fails, you'll still be able to ssh in as 'backdoor' with 'passw0rd'14:27
smoserand then you can poke around that way and see what failed.14:28
smoserpasasap_, does that make sense ?14:43
=== rangerpbzzzz is now known as rangerpb
pasasap_Yes.14:44
rharpersmoser: around?20:10
smoserhere20:10
rharperwanted to hangout for like 10 minutes to talk networkd during boot issues20:10
rharperhttps://hangouts.google.com/hangouts/_/canonical.com/hangout-rharper?authuser=120:12
smoserok20:13
smosercan i have 5 m inutes ?20:13
smoserhtne meet20:14
rharperyeah20:14
smoser3:30 (2:30 central)20:24
smoseri'll join then20:24
smoserrharper, https://code.launchpad.net/~smoser/cloud-init/+git/cloud-init/+merge/31828220:24
smoserif you want to take a read of that i'd appreciate it.20:25
smoserbetter commit messages needed, and some doc, and test :)20:25
rharperok20:25
rharpersmoser: I've got 5 mins then I'll be back at the top of the hour20:30
rharperI'll re-ping in 3020:33
smoserok.s orry20:33
rharperhttps://hangouts.google.com/hangouts/_/canonical.com/hangout-rharper?authuser=120:56
rharpersmoser: ^^20:59
smoserrharper, https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/166773521:25
=== rangerpb is now known as rangerpbzzzz
stanguturiI am trying to build cloud-init deb package and got 'Unmet build dependencies: python3-coverage' error. Any idea how I can get this resolved23:34

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