Broken test in test_maas_certificates
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Medium
|
Lee Trager | ||
2.8 |
Fix Released
|
Medium
|
Alberto Donato |
Bug Description
This test is currently failing and will be marked as a expected failure in https:/
=======
ERROR: provisioningser
-------
testtools.
Twisted logs
Traceback (most recent call last):
File "/home/
result = function(*args, **kwargs)
File "/home/
return self._get_
File "/home/
self.
File "/home/
elif _cert_mtime and _cert_mtime != os.path.
File "/usr/lib/
return os.stat(
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/tmpm5mo4k
Related branches
- Dougal Matthews (community): Approve
-
Diff: 36 lines (+9/-3)1 file modifiedsrc/provisioningserver/tests/test_maas_certificates.py (+9/-3)
- Lee Trager (community): Approve
-
Diff: 36 lines (+9/-3)1 file modifiedsrc/provisioningserver/tests/test_maas_certificates.py (+9/-3)
Changed in maas: | |
assignee: | Dougal Matthews (d0ugal) → Lee Trager (ltrager) |
Changed in maas: | |
status: | Triaged → Fix Committed |
no longer affects: | maas/2.8 |
Changed in maas: | |
milestone: | 2.8.0 → 2.9.0b1 |
status: | Fix Committed → Triaged |
no longer affects: | maas/2.8 |
Changed in maas: | |
milestone: | 2.9.0b1 → none |
no longer affects: | maas/2.8 |
Changed in maas: | |
milestone: | none → 2.9.0b1 |
status: | Triaged → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
This might be related to the globals in maas_certificat es.py
_cert_not_before = None
_cert_not_after = None
_cert_mtime = None
We should investigate not caching those values, unless it's really expensive not to do so.