Building MSI cloudbase-init

asked 2022-07-14 18:40:22 +0300

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

I'm looking for a solution which provides cloudbase-init NetworkConfig plugin execution on every boot. How I can understand this behaviour may be changed in target script such as cloudbase-init/cloudbaseinit/plugins/common/networkconfig.py : pluginbase.PLUGINEXECUTIONDONE -> pluginbase.PLUGINEXECUTEONNEXTBOOT So, I wish to change script and build new MSI, for doing that I'm using https://github.com/cloudbase/cloudbas... and forked cloudbase-init But I got an error witch connected with requirements:

ERROR: Cannot install cloudbase-init==1.1.3.dev18 because these package versions have conflicting dependencies.

The conflict is caused by:
    cloudbase-init 1.1.3.dev18 depends on oslo.config
    The user requested (constraint) oslo-config===9.0.0

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies
pip install  failed on package: .
At C:\Users\Administrator.W2K19\cloudbase-init-installer\BuildAutomation\BuildUtils.ps1:178 char:26
+ ... astExitCode) { throw "pip install $dev failed on package: $package" }
+                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (pip install  failed on package: .:String) [], RuntimeException
    + FullyQualifiedErrorId : pip install  failed on package: .

I guess it may be connected with environments (VS/python) but I really don't have an idea how to fix it

I'll appreciate any help with debug.

edit retag flag offensive close merge delete