UbuntuIRC / 2020 /02 /11 /#cloud-init.txt
niansa
Initial commit
4aa5fce
=== cpaelzer__ is now known as cpaelzer
=== cpaelzer__ is now known as cpaelzer
[13:31] <malasfar> GoodMorning Folks. i have two questions.. in VMware KBs it states to enable cloud-init customization use “disable_vmware_customization: false” . shouldn't t his be set to true.. otherwise what does this property do if it was set to true when you define in /etc/cloud/cloud.cfg ?
[13:41] <malasfar> 2nd Questions i have when you set “disable_vmware_customization: false” the datasource changes from being OVF which is the only datasource configured to seed=vmware-tools ?
[13:44] <malasfar> any help is appreciated answering the above two questions. i m very close. like when provisioning a VM from vRA ( vRealize Automation ) our automation tool with static IP assignment it connects the NIC and customize the machine without rebooting it , I just have no user data coming in with my cloud config code because datasource is changing to
[13:44] <malasfar> vmware-tools for some reason
[14:19] <meena> malasfar: link to those docs?
[14:54] <malasfar> @meena https://kb.vmware.com/s/article/59557
[14:59] <Odd_Bloke> malasfar: seed=vmware-tools is something that the OVF data source would display, could you pastebin the output of `cloud-init status --long` before and after making your change, please?
[15:07] <malasfar> @odd_bloke before status is none.. after its status: donetime: Tue, 11 Feb 2020 13:40:08 +0000detail:DataSourceOVF [seed=vmware-tools]
[15:08] <malasfar> running sudo cloud-init query userdata doesn't return anything . so i have no userdata present
[15:08] <Odd_Bloke> malasfar: Please pastebin the output, I want to see it exactly.
[15:08] <Odd_Bloke> malasfar: (And by pastebin I mean use https://paste.ubuntu.com/, for example.)
[15:10] <malasfar> cloudadmin@vra-vmwlab-mysql-892:~$ sudo cloud-init status --longsudo: unable to resolve host vra-vmwlab-mysql-892: Connection timed out[sudo] password for cloudadmin:status: donetime: Tue, 11 Feb 2020 13:40:08 +0000detail:DataSourceOVF [seed=vmware-tools]
[15:10] <Odd_Bloke> malasfar: OK, I'm going to ask a third time: please use a pastebin.
[15:11] <malasfar> i dont know what that is.. do you want me to paste the content in pastebin
[15:11] <malasfar> excuse my ignorance
[15:12] <Odd_Bloke> malasfar: 10:08:46 @Odd_Bloke | malasfar: (And by pastebin I mean use https://paste.ubuntu.com/, for example.)
[15:12] <Odd_Bloke> I don't mind ignorance, but I would like to feel like you're reading the messages I send. :p
[15:15] <malasfar> you could have said .. paste in there and send me the url . if this what i think it is . all you said is use pastebin .. https://paste.ubuntu.com/p/hd8mjH7CWz/
[15:17] <malasfar> anyway i think i got it now.. appreciate your help in understanding the behaviour i m experiencing
[15:20] <Odd_Bloke> malasfar: Cool, thanks for pasting. :) It sounded like you were seeing the datasource _change_. Is that pastebin from before or after the "change"?
[15:20] <malasfar> thats after.. before is usually none since i use cloud-init clean --logs before shutting down the VM and converting to a template
[15:22] <malasfar> the template is configured with dpgk-reconfigure cloud-init selecting only OVF as the datasource just not sure why it keeps changing to vmware-tools
[15:22] <Odd_Bloke> It is using OVF, that's what "DataSourceOVF" is telling you. :)
[15:22] <Odd_Bloke> The OVF data source, that is.
[15:23] <malasfar> the type usually is ISO from the testing i have seen before .. this only happens if i m using cloud-init as the customization engine
[15:23] <malasfar> thats when i can actually see the userdata using the query userdata command
[15:25] <Odd_Bloke> malasfar: Can we take a step back to help me understand the problem? What are you trying to achieve by changing the value of disable_vmware_customization?
[15:26] <malasfar> i m trying to use cloud-init as the Guest OS customization engine based on this KB https://kb.vmware.com/s/article/59557
[15:27] <malasfar> setting disable_vmware_customization: false to enable Guest OS customization with cloud-init
[15:28] <malasfar> looks like from my research so far Setting this to false invokes the Cloud-Init GOS customization workflow.Setting this to true invokes the traditional GOSC script based customization workflow. would you agree ?
[15:35] <malasfar> there is an interesting blog that came up recently talks about how to hack cloud-init for it work with vSphere when provision VMs with an automation tool like vRealize Automation. here it is for reference https://vnuggets.com/2020/01/29/vra-with-cloud-init-and-static-networking/
[15:35] <malasfar> would love to know your opinion on what's being proposed here in the article
[15:37] <Odd_Bloke> I'm out of my depth with this level of VMWare stuff, I'm afraid.
[15:37] <malasfar> i can help there . i just need someone not he cloud-init side.. i m happy to do a workshop
[15:38] <malasfar> someone on the cloud-init side *** correction
[15:38] <malasfar> we can have a zoom if you can spare an hour, you will be doing the community a favour :)
[15:39] <malasfar> i can explain what i m facing here , which similar to what other people are experiencing working with VMware
[15:39] <Odd_Bloke> The VMWare data source was mostly contributed by VMWare, so the core team don't have a depth of knowledge there, I'm afraid. I suggest taking this up with your VMWare contacts, to ask them to improve the experience.
[15:39] <Odd_Bloke> There's only so much we can do when working with proprietary platforms. :)
[15:40] <malasfar> no one knows .. its already with engineering for the passed year
[15:41] <malasfar> like i would love to use cloud-init with vSphere and our automation tool and i already spent a lot hours trying to get it to work .. i guess no light at the tunnel for this here
[15:42] <malasfar> end of the tunnel that is *.. okay anyway i ll continue on my own .. thanks
[15:43] <malasfar> cheers all .. thank you for your time
[19:48] <meena> anyone fixed all my bugs yet?
[19:58] <smoser> Odd_Bloke: around ?
[19:58] <smoser> you'll know this.
[19:59] <smoser> pip install <something>
[19:59] <smoser> i can use '--no-deps', but that just feels dirty
[19:59] <Odd_Bloke> smoser: Yep, that's how you install with pip.
[19:59] <Odd_Bloke> *runs*
[19:59] <smoser> :)
[19:59] <smoser> is there a way to have it use dpkg provided modules ?
[19:59] <smoser> like... only install deps if you have to ?
[20:00] <smoser> the scenario here is that we know all the dependencies are satisfied (by distro-installed)
[20:01] <Odd_Bloke> So I would _expect_ pip to detect the system-installed packages and know that the dependencies are already satisfied.
[20:03] * smoser tries that
[20:04] <Odd_Bloke> (If you're in a virtualenv, you'll need to create it with --system-site-packages.)
[20:04] <smoser> right. this is not a virtual env.
[20:04] <smoser> so starting a container :)
[20:04] * smoser afraid of pip
[20:06] <smoser> Odd_Bloke: thank you. you appear to be right. at least in the minimal case that i tested.
[20:06] <Odd_Bloke> \o/
[20:07] <Odd_Bloke> I love to appear correct. ;)