`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>
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
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
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
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
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
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
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
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
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
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
Removes the version from setup.cfg and moves
Windows platdorm requirements to requirements-windows.txt
Closes-Bug: #1404746
Change-Id: Ieadc67e6c320e9712c57d6adf3f3e6df6ae78b75
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
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