=== alexpilotti_ is now known as alexpilotti | ||
=== frickler_ is now known as frickler | ||
=== smoser` is now known as smoser | ||
niluje | Is there a reason why cloud-init doesn't have a test_requires in its setup.py? | 14:27 |
---|---|---|
smoser | niluje, not a good one. i'm a python-tools neophyte | 14:32 |
niluje | smoser: you are the one who packaged cloud-init? | 14:33 |
niluje | smoser: https://github.com/brmzkw/dyntftpd/blob/master/setup.py | 14:34 |
niluje | I have a basic setup.py here | 14:34 |
smoser | niluje, we use tox, and tox reads requirements and test-requirements | 14:34 |
niluje | tests_require is a nice to have, so you can run "pip install -e ." to install the packaages in editable mode | 14:34 |
niluje | oh | 14:35 |
smoser | so theres probably just some overlap in functionality | 14:35 |
niluje | ok great, I didn't see the tox.ini, only the Makefile and I tried to run nosetests manually | 14:35 |
niluje | I guess make test should install and run nose then | 14:35 |
smoser | niluje, its kind of in both places... | 14:36 |
smoser | i have 2 different thing si need to support | 14:36 |
smoser | a.) running and installing with ubuntu packaging (system python dependencies) | 14:36 |
smoser | b.) testing without installing those packages (tox) | 14:37 |
niluje | ok | 14:37 |
niluje | then adding tests_require in the setup.py seems to be a good idea :p | 14:37 |
=== jroll|dupe is now known as jroll | ||
natorious | smoser: been looking at cloudbase-init for reference. Their using wmi and win32api both which are not part of stdlib. It'd be nice to get everything working using ctypes.windll or similar | 18:10 |
smoser | yeah, agree. | 18:10 |
smoser | want as much as possible to be stdlib | 18:10 |
natorious | did a bit more refactoring and I think moving away from network interfaces content can be better accomplished by using a sources helper to convert that into a similar network json format. As in data source network_config should always return the same type and structure. If static networking is moving towards network json, for backwards compat, it should convert an interfaces content file to network json to return | 18:13 |
natorious | I'm gonna dive into the windows partition label detection and hopefully get something decent soon | 18:14 |
alexpilotti_ | natorious: what is the reason why you want to avoid pywin32? | 18:15 |
natorious | alexpilotti: if were trying to make things as close to stdlib as possible, might as well not start w/ dependencies | 18:17 |
natorious | alexpilotti_: ^^ | 18:17 |
alexpilotti_ | natorious: and for networks, we are already working on the new json format, that’s independent from pywin32 as we use ctypes for all networking stuff | 18:18 |
alexpilotti_ | WMI wont depend on pywin32 for long | 18:18 |
alexpilotti_ | we’re rewriting that module to avoid any COM usage | 18:19 |
alexpilotti_ | most modern APIs dont use Win32, but WMI | 18:19 |
alexpilotti_ | for example storage management is no entirely based on WMI, while previously was based on COM | 18:20 |
natorious | alexpilotti_: right. The networking bit is for linux as much as windows. How the datasources should handle returning either or but return the same type consistently | 18:20 |
alexpilotti_ | there should be an abstraction, with a clear interface | 18:20 |
alexpilotti_ | that’s what we are doing for most stuff in cloud-init V2 | 18:20 |
alexpilotti_ | btw smoser: how’s work going on V2? | 18:21 |
natorious | im at a point of needing to detect configdrive partitions for v2 via datasource | 18:21 |
natorious | and would like to attempt using stdlib before the alternatives | 18:22 |
natorious | fwiw | 18:22 |
natorious | bbiab | 18:22 |
akostadinov1 | Hello, I was wondering how to make cloud-init restart machine after package upgrade? | 19:32 |
akostadinov1 | it is usually required to restart so updates take effect. Like e.g. kernel upgrades/ | 19:32 |
akostadinov1 | otherwise package upgrade is of limited help | 19:33 |
akostadinov1 | is there any switch to request that? | 19:33 |
smoser | akostadinov1, in ubuntu it shoudl generally work. | 19:56 |
smoser | probably not supported in rpm based | 19:57 |
smoser | http://bazaar.launchpad.net/~cloud-init-dev/cloud-init/trunk/view/head:/doc/examples/cloud-config.txt#L16 | 19:57 |
akostadinov1 | smoser: too bad :/ running on RPM | 20:11 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!