Use python3 instead of python2 in heat fragments for fedora ironic

Bug #1676439 reported by yatin
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Magnum
In Progress
Undecided
yatin

Bug Description

python binary doesn't exist in fedora-ironic image, due to this cert creation fails. We should use python3 binary instead and update code as per python3

[fedora@k8-lr56snxfpn-0-do2uu73wo3jp-kube-master-zyjc3hibmfe3 ~]$ cat /etc/redhat-release
Fedora release 25 (Twenty Five)
[fedora@k8-lr56snxfpn-0-do2uu73wo3jp-kube-master-zyjc3hibmfe3 ~]$ uname -a
Linux k8-lr56snxfpn-0-do2uu73wo3jp-kube-master-zyjc3hibmfe3.novalocal 4.9.5-200.fc25.x86_64 #1 SMP Fri Jan 20 12:24:16 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
[fedora@k8-lr56snxfpn-0-do2uu73wo3jp-kube-master-zyjc3hibmfe3 ~]$ python3
python3 python3.5 python3.5m python3-chardetect
[fedora@k8-lr56snxfpn-0-do2uu73wo3jp-kube-master-zyjc3hibmfe3 ~]$ python
-bash: python: command not found

yatin (yatinkarel)
Changed in magnum:
assignee: nobody → yatin (yatinkarel)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to magnum (master)

Fix proposed to branch: master
Review: https://review.openstack.org/450240

Changed in magnum:
status: New → In Progress
Revision history for this message
Spyros Trigazis (strigazi) wrote :

The ironic image don't contain python?

I had explicitly added python2 in my build. I must have skipped it in my latest build.

Revision history for this message
Spyros Trigazis (strigazi) wrote :

We need a ci for this image.

Revision history for this message
Spyros Trigazis (strigazi) wrote :
Revision history for this message
yatin (yatinkarel) wrote :

The ironic image don't contain python?
Yes python2 is not there. I used: https://fedorapeople.org/groups/magnum/fedora-25-kubernetes-ironic.tar.gz

We need a ci for this image. There, I missed it https://review.openstack.org/#/c/417457/3/magnum/drivers/k8s_fedora_ironic_v1/image/kubernetes/package-installs.yaml
Ok we should update the image. Also, i think we can start using python3 with this patch.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on magnum (master)

Change abandoned by yatin (<email address hidden>) on branch: master
Review: https://review.openstack.org/450240
Reason: Can pickup later if required.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.