14 Commits

Author SHA1 Message Date
Adrian Vladu
86fe66a2fd Fix pythoncom thread model error
The pythoncom thread model is set when pythoncom is imported
and cannot be changed afterwards.

The removed code was supposed to fix the Windows Nano server,
which is currently unsupported by cloudbase-init and thus,
no longer necessary.

Error log:
[WinError -2147417850] Cannot change thread mode after it is set

Closes-Bug: #1840659

Change-Id: If278b77a057553c61cada860861e349b2b1fac69
2019-08-19 16:35:56 +03:00
Alessandro Pilotti
0d04300138 Fix COM thread model issue
The following issue happens when trying to extend volumes using VDS:

OSError: [WinError -2147417850] Cannot change thread mode after it
is set

sys.coinit_flags needs to be set before importing pythoncom.

Change-Id: I83877219b9589d9c174fd3a245b644350ea6310a
Closes-Bug: #1787659
2018-08-18 00:25:20 +03:00
Alexandru Coman
6c6ef0e11a
Add support for generating cloudbase-init configuration sample
This package adds a central place where all the config options
of cloudbase-init can be easily maintained.

Change-Id: Idfc1aea2d637a0124be17c90bcf98450769bc76f
2016-09-02 11:19:59 +03:00
Cosmin Poieana
eeaa425123 Make the multithreaded coinitialize only on 64bit
Change-Id: I5d44efb634051f00cd3ca54b99ce0dea806543be
2015-10-19 16:33:52 +03:00
Cosmin Poieana
c8af52e91e Fix py3 x64 crash thread related
Change-Id: Iac00ea2463df4346ad60a17d0ba9a2af089c87cd
2015-09-08 19:48:41 +03:00
Cosmin Poieana
0afbadd3ee Log any uncaught exception thrown by the service
Change-Id: I0e5fb7e382f465bbffab81ac17c8edfa43f11ede
2015-09-07 13:20:34 +03:00
Claudiu Popa
fccf0e6f00 Move to the new oslo_config and oslo_log modules
Since a couple of releases ago, the old oslo.config is now
oslo_config, the same thing happening to oslo.log as well.
This patch also removes the vendorized openstack package,
since it's redundant now that oslo_log is out of the
incubator.

Change-Id: Iae1318aa0d2a9aab2d4f6af7d11ed1dfda51e733
2015-08-12 17:43:45 +03:00
Cosmin Poieana
415bdc7a72 Global mass refactor
* remove unnecessary vim comments
* use unittest.mock first, then mock
* consistent spaces
* ignore *.orig files
* pep8 & flake8 compliant

Change-Id: I48e8b5c13b8ea436a48180f526e97fa8da003b68
2015-01-18 17:51:56 +02:00
Alessandro Pilotti
209592e2d6 Metadata service refactoring
This refeactoring is required in order to support services
that provide metadata in a format which differs from the OpenStack
one.
2014-02-18 00:23:50 +02:00
Alessandro Pilotti
d7dff62e0a Move to oslo.config 2014-02-10 04:47:28 +02:00
Alessandro Pilotti
dfbf133aee Adds serial port logging support
Adds serial port logging to improve troubleshooting.
Serial port settings are confugurable with the option:
"logging_serial_port_settings"
2014-02-09 20:41:39 +02:00
Alessandro Pilotti
ca2878eb8d Minor refactoring in shell.py 2013-10-07 20:53:05 +03:00
Alessandro Pilotti
fcd8271c5b pylint and pep8 2013-03-29 00:10:07 +02:00
Alessandro Pilotti
df6c42aedb Initial commit 2012-12-01 23:50:15 +02:00