← Back to team overview

cloud-init team mailing list archive

Re: Need help in upgrade cloud-init to 22.1

 

Hello Ram,

Instead of running the raw python setup.py we have some machinery to do so:

1) make rpm or make srpm
2) .tools/run-container

I would suggest trying out a prebuilt package:
https://copr.fedorainfracloud.org/coprs/g/cloud-init/el-testing/

If it doesn't work, then please fill up a bug at:
https://bugs.launchpad.net/cloud-init


On Tue, May 31, 2022 at 6:16 AM Ram Naraian <ram.naraian@xxxxxxxxx> wrote:

> Hello Shreenidhi/Alberto,
> I am sharing about what I am doing.
> - I have downloaded *cloud-init-22.1.tar.gz
> <https://launchpad.net/cloud-init/trunk/22.2/+download/cloud-init-22.2.tar.gz> *
> *- *Did necessary changes in cloud-init.spec ( mentioned python3 to
> consider )
> - building it with my internal build script, expected output is*
> cloud-init-22.1.rpm*
> - its building like /usr/bin/python3 cloud-init-22.1/setup.py  < other
> parameter >
> - In the logs we can see entries like below.
>
> package: cloud-init/x86_64
>
>         *requirements:*
>
>         /bin/bash
>
>         /bin/sh
>
>         /bin/sh
>
>         /bin/sh
>
>         /bin/sh
>
>         /usr/bin/python3
>
>         PyYAML
>
>         pyserial
>
>         *python(abi) = 3.6*
>
>         python-jinja2
>
>         python-jsonpatch
>
>         python-netaddr
>
>         python-requests
>
>         python-six
>
>
> - At last we see that its not able to find python(abi)=3.6
>
> error: No RPM satisfies this dependency: python(abi) = 3.6 (arch: x86_64)
>
> error: cloud-init/x86_64 requires python(abi) = 3.6
>
>
> *Setup details:-*
>
> OS: CentOS Linux release 7.4.1708 (Core)
>
>
> *Python installed:-*
>
> [ws6]$ python3
>
> Python 3.6.8 (default, Nov 16 2020, 16:55:22)
>
> [GCC 4.8.5 20150623 (Red Hat 4.8.5-44)] on linux
>
> Type "help", "copyright", "credits" or "license" for more information.
>
> >>>
>
>
> python-abi]# *rpm -qa --provides python3*
>
> *python(abi) = 3.6*
>
> *python(abi) = 3.6*
>
> python3 = 3.6.8-18.el7
>
> python3(x86-64) = 3.6.8-18.el7
>
> python36 = 3.6.8-18.el7
>
> python36(x86-64) = 3.6.8-18.el7
>
>
> Not sure why its not satisfy python(abi) = 3.6, though its already there
> in installed python3.
>
>
> Please let me konw if any other information is needed, I will share.
>
>
> Thanks in advance.
>
>
> Regards,
>
> Ram
>
> +91-9953200862
>
> On Mon, May 30, 2022 at 10:35 PM Shreenidhi Shedi <sshedi@xxxxxxxxxx>
> wrote:
>
>> Hi Ram,
>>
>> Seems like your python3 installation is broken.
>> Try doing $ sudo dnf reinstall python3 and check if python3 is working as
>> expected.
>>
>> --
>> Shedi
>> ------------------------------
>> *From:* Cloud-init <cloud-init-bounces+sshedi=
>> vmware.com@xxxxxxxxxxxxxxxxxxx> on behalf of Ram Naraian <
>> ram.naraian@xxxxxxxxx>
>> *Sent:* 30 May 2022 20:28
>> *To:* cloud-init@xxxxxxxxxxxxxxxxxxx <cloud-init@xxxxxxxxxxxxxxxxxxx>
>> *Subject:* [Cloud-init] Need help in upgrade cloud-init to 22.1
>>
>>
>> *⚠ External Email*
>> Hello Team,
>> I need your help.
>>
>> I am upgrading cloud-init from 19.4 to 22.1. I have python3.6 installed
>> on my dev infrastructure.
>> Getting error :
>>
>> error: No RPM satisfies this dependency: python(abi) = 3.6 (arch: x86_64)
>>
>> error: cloud-init/x86_64 requires python(abi) = 3.6
>>
>>
>> Though this infra already has python(abi)=3.6
>>
>> python-abi]# rpm -qa --provides python3
>>
>> *python(abi) = 3.6*
>>
>> *python(abi) = 3.6*
>>
>> python3 = 3.6.8-18.el7
>>
>> python3(x86-64) = 3.6.8-18.el7
>>
>> python36 = 3.6.8-18.el7
>>
>> python36(x86-64) = 3.6.8-18.el7
>>
>>
>> Could you please let me know where the issue is? and how to fix it?
>>
>>
>> Thanks,
>>
>> Ram Naraian
>>
>> +91-9953200862
>>
>> ------------------------------
>>
>> *⚠ External Email:* This email originated from outside of the
>> organization. Do not click links or open attachments unless you recognize
>> the sender.
>>
>

Kind regards,
-- 
Alberto Contreras
Software Engineer II

References