Commit Graph

23 Commits

Author SHA1 Message Date
Adrian Vladu 2ebfe19a88 requirements: add missing pytz package
`pytz` package was included by oslo.log dependency on
oslo.serialization.
Recently, this commit removed the pytz package for
Python versions >= 3.9:
9aaea368e4

Which means `pytz` needs to be added as a requirement to
be able to support the current mainline Python 3.11.

Change-Id: I3dadbe0ead2369565afd7b7feed7761ff4a7db57
Signed-off-by: Adrian Vladu <avladu@cloudbasesolutions.com>
2024-03-04 13:01:54 +02:00
Adrian Vladu ea5e8da627 crypto: replaced openssl with cryptography module
Use cryptography instead of the flaky openssl libraries loading.
If the libssl DLLs were not present or were present in another order
then the required one, there could be errors when securing the password
before sending it to the metadata service.

Fixes: https://github.com/cloudbase/cloudbase-init/issues/34

Change-Id: I1a2245e199f65f4665071ada9576dcae77a3a432
2022-12-12 14:22:56 +02:00
Adrian Vladu 4a9d260a95 bump untangle to version 1.2.1
Bump untangle package version from 1.1.1 to 1.2.1

Change-Id: I1aa386c6dd5c02e6bc5046899980935a22dc1526
2022-09-19 13:46:53 +03:00
Adrian Vladu b97c36f478 Removed unused requirement 'eventlet'
eventlet is a Python requirement that is no longer used in the current
codebase.

Change-Id: Ic2f5ba7baa5fe0088bf304c94b8427cd26e5e06f
2020-10-01 12:40:05 +03:00
Adrian Vladu 493e57c195 Add support for jinja as userdata template engine
If the userdata starts with the text '## template:jinja',
Jinja2 templating engine will be used to render that
userdata.

This feature leverages the get_instance_data metadata
service implementation and tries to be as close as possible
with the cloud-init's implementation.

Change-Id: I79cb0066f7d65ae27867ac01b443e9be432b4dc3
2020-01-21 14:36:16 +02:00
Alessandro Pilotti 148855f74e Add PyMI as requirement
Since PyMI requires the MI API, available only since Windows 8 /
Windows Server 2012 or as an addon on some previous versions, we
need to ensure that we fall back to the legacy WMI module if PyMI
cannot be loaded.

Partially-Implements: blueprint json-network-config
Change-Id: Ibded4cee3d3d7dc39e53bca12e015c9ef83c7f3d
2018-09-05 20:42:10 +03:00
Alessandro Pilotti ec13226df6 Update pbr version requirements
Change-Id: Ie8926c50a952f1ebe8c59202c3ba4e9ee6129e66
2017-05-23 13:45:54 +03:00
Alessandro Pilotti 1581d6f946 Add Azure metadata service
The following patch implements the support for the Azure metadata service

Co-Authored-By: Paula Madalina Crismaru <pcrismaru@cloudbasesolutions.com>
Change-Id: I5da5152ed04c54a9777191defc10b4d7023313f5
Implements: blueprint azure-metadata-service
2017-05-17 19:10:52 +03:00
Claudiu Popa 3c7fcef51b Use environment markers for platform-specific modules
This patch replaces a removed feature of pbr with PEP 426's environment markers.
Environment markers are a way to do conditional includes in requirements.txt.

Change-Id: Iaef089a32f71d826ff3db41d2832c84213169172
2015-09-10 14:00:58 +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
Claudiu Popa bccc7d5215 Check the latest version of cloudbaseinit
We're hitting an API with the current version and we expect to receive a
response if the current version is not the latest. This helps the user
to see that a new version of cloudbaseinit is available, which is a big
improvement than going to the github page to see the latest version.

Change-Id: Ibfb721973c84474c8fef8e1989dfb7566938134f
2015-07-16 18:01:05 +03:00
Cosmin Poieana 2c8bf90854 Get rid of flake8 compatibility issues due to pbr
The version of pbr package should stay between a restricted
range so that flake8 gate will work as expected.
Details: http://sprunge.us/RDVV?log (L: 92)

Change-Id: Ifeb52fbac28dac40b894923c727b60d56768976d
2015-05-26 17:22:15 +03:00
Claudiu Popa 66a2df7b31 Add temporarily tzlocal to requirements
It seems the change id 30c56082bb9b9bcd80128eedcef17b6beb793cf8
wasn't released in pbr, so this patch adds the tzlocal module
requirement, temporarily, to requirements.txt, until a due release
of pbr will be done. There's no need to add the rest of the libraries,
because they are already provided by the installer.

Change-Id: I03c66bd13ad04e9be2164d8e450cd7c625c731dd
2015-03-30 17:50:46 +03:00
Claudiu Popa a4f4a3c4e0 Replace the oauth library with oauthlib
Because the oauth library we were using doesn't support Python 3,
cloudbase-init could not work on Python 3 for the MaaS metadata service,
the only place in the code base where OAuth is needed. This patch
replaces oauth with oauthlib. oauthlib is better maintained and has support
for Python 2.6-3.4.

Change-Id: Iae2995420697bc305f2724ce038db2f2b3ab51e3
Closes-Bug: #1382572
2015-03-06 16:50:14 +02:00
Alessandro Pilotti 2195a97213 Updates pbr requirements
Removes the version from setup.cfg and moves
Windows platdorm requirements to requirements-windows.txt

Closes-Bug: #1404746

Change-Id: Ieadc67e6c320e9712c57d6adf3f3e6df6ae78b75
2014-12-21 23:37:53 +01:00
Alexandru Coman 9b44bf99ed Add support for yaml user-data
CloudConfigPlugin receives information serialized into YAML format.
The information is deserialized and for each key value pair a
specialized plugin is called for processing this kind of task.

Implements-Blueprint: yaml-userdata

Change-Id: I273bc28415bc7fb37b2ef426868250ad152faec1
2014-10-29 14:20:44 +02:00
Alessandro Pilotti 23ddd33fa4 Fixes requirements on Linux
Platform specific requirements can not be included in requirements.txt

Includes also:

* testr configuration file
* PEP8 fixes
* Unit test fixes for passing OpenStack Jenkins checks

Change-Id: I6f3f367f3316e0b506bb62e66d7671f9e52c72b5
Closes-Bug: #1376816
2014-10-05 22:20:58 +03:00
Alessandro Pilotti 324aadd4bf Replaces _winreg module with six.moves.winreg
The Python 2.x _winreg module is named winreg in Python 3.x
2014-09-07 23:19:23 +03:00
Alessandro Pilotti 73727b8ae9 Adds NTP configuration based on DHCP 2014-05-08 11:14:17 +03:00
Alessandro Pilotti bad73c7abe Adds comtypes to the requirements 2014-02-18 00:24:01 +02:00
Alessandro Pilotti 525b9f41a9 Adds support for MaaS metadata
Adds a MaaS metadata service
2014-02-18 00:24:01 +02:00
Alessandro Pilotti 16798c76b6 Adds six and Babel to the requirements 2014-02-10 07:51:54 +02:00
Alessandro Pilotti 2177b88d14 Move setup to pbr usage 2014-02-10 05:33:17 +02:00