fetch-fernet-tokens script doesn't work with python3

Bug #1859047 reported by Michal Nasiadka
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla
Fix Released
High
Michal Nasiadka
Stein
Fix Released
High
Radosław Piliszek
Train
Fix Released
High
Michal Nasiadka
Ussuri
Fix Released
High
Michal Nasiadka

Bug Description

()[root@c7667f605c78 bin]# python3.7 /usr/bin/fetch_fernet_tokens.py -t 86400 -n 4
Traceback (most recent call last):
  File "/usr/bin/fetch_fernet_tokens.py", line 85, in <module>
    main()
  File "/usr/bin/fetch_fernet_tokens.py", line 79, in main
    'populated': tokens_populated(args.number),
  File "/usr/bin/fetch_fernet_tokens.py", line 51, in tokens_populated
    return num_tokens() == int(expected)
  File "/usr/bin/fetch_fernet_tokens.py", line 46, in num_tokens
    _, _, files = os.walk(TOKEN_PATH).next()
AttributeError: 'generator' object has no attribute 'next'

Changed in kolla:
assignee: nobody → Michal Nasiadka (mnasiadka)
milestone: none → 10.0.0
importance: Undecided → High
Changed in kolla:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla (stable/train)

Fix proposed to branch: stable/train
Review: https://review.opendev.org/702370

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla (master)

Reviewed: https://review.opendev.org/701779
Committed: https://git.openstack.org/cgit/openstack/kolla/commit/?id=f284b6852f0036f845130ab4f9ae11cf902aad2f
Submitter: Zuul
Branch: master

commit f284b6852f0036f845130ab4f9ae11cf902aad2f
Author: Michal Nasiadka <email address hidden>
Date: Thu Jan 9 18:32:32 2020 +0100

    Adapt fetch-fernet-tokens script to Python 3

    Backport: train
    Closes-Bug: #1859047
    Change-Id: I9032e43bffa3a3de6c33a4ab59f65bafb0129dd5

Changed in kolla:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla (stable/train)

Reviewed: https://review.opendev.org/702370
Committed: https://git.openstack.org/cgit/openstack/kolla/commit/?id=902f16cb1a8efc44da8669a6707d93d47160ae9d
Submitter: Zuul
Branch: stable/train

commit 902f16cb1a8efc44da8669a6707d93d47160ae9d
Author: Michal Nasiadka <email address hidden>
Date: Thu Jan 9 18:32:32 2020 +0100

    Adapt fetch-fernet-tokens script to Python 3

    Backport: train
    Closes-Bug: #1859047
    Change-Id: I9032e43bffa3a3de6c33a4ab59f65bafb0129dd5

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla 9.0.1

This issue was fixed in the openstack/kolla 9.0.1 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla (stable/stein)

Fix proposed to branch: stable/stein
Review: https://review.opendev.org/711683

Revision history for this message
Radosław Piliszek (yoctozepto) wrote :

rocky also - ubuntu&debian binary :-)

Revision history for this message
Radosław Piliszek (yoctozepto) wrote :

oopsie, I meant ***Stein***

no longer affects: kolla/rocky
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla (stable/stein)

Reviewed: https://review.opendev.org/711683
Committed: https://git.openstack.org/cgit/openstack/kolla/commit/?id=a83173da818e8a4b14812dd111f017b34beb6abc
Submitter: Zuul
Branch: stable/stein

commit a83173da818e8a4b14812dd111f017b34beb6abc
Author: Michal Nasiadka <email address hidden>
Date: Thu Jan 9 18:32:32 2020 +0100

    Adapt fetch-fernet-tokens script to Python 3

    Backport: train
    Closes-Bug: #1859047
    Change-Id: I9032e43bffa3a3de6c33a4ab59f65bafb0129dd5
    (cherry picked from commit 902f16cb1a8efc44da8669a6707d93d47160ae9d)

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.