During upgrade from Q to R, rename ceph-ansible fetch directory tarball in Swift
Bug #1795513 reported by
John Fulton
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Fix Released
|
Medium
|
John Fulton |
Bug Description
tripleo-common fixes for LP bug 1769769 store a tarball in Swift with different names for different OpenStack versions. For example:
Q: temporary_
R: temporary_
During upgrade from Q to R, TripleO should check if the Swift container ceph_ansible_
To post a comment you must log in.
Extra background info on the timestamp.
It was originally used in Queens:
https:/ /github. com/openstack/ tripleo- common/ blob/master/ tripleo_ common/ actions/ files.py# L111-L112
but had to be removed in Rocky so that we could refer to the tarball with consistent GET/PUT URL:
https:/ /github. com/openstack/ tripleo- common/ commit/ 5a55202258c009d 65885170080885d 16645144ee
More info on the timestamp format below:
1. Python: common. utils import time_functions as timeutils dir-%s. tar.gz' % timeutils. timestamp( ) dir-20180915- 190055. tar.gz'
"""
(undercloud) [stack@undercloud ~]$ python
Python 2.7.5 (default, Apr 11 2018, 07:36:10)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-28)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from tripleo_
>>> 'temporary_
'temporary_
>>>
"""
2. YAQL 'temporary_ dir-', now().format( "%Y%m%d- %H%M%S" ), '.tar.gz') dir-20180915- 191756. tar.gz"
"""
yaql> concat(
"temporary_
yaql>
"""
3. Ansible date_time. date }} date_time. year }}{{ ansible_ date_time. month }}{{ ansible_ date_time. day }} date_time. hour }}{{ ansible_ date_time. minute }}{{ ansible_ date_time. second }}
"""
{{ ansible_
{{ ansible_
{{ ansible_
"""