]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
qa/tasks/openssl_keys.py: sort cert configs before creating certs
authorKefu Chai <kchai@redhat.com>
Wed, 8 Apr 2020 11:22:06 +0000 (19:22 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 3 Jun 2020 11:57:00 +0000 (19:57 +0800)
commitc22cd5e8a20b021e7faf8043b8cf4032c3b7f98b
treec1487030d256c0bb7cbfab0ae7a928f70ef4e54d
parent0a46347f680314c060e89b5fd0d1d9f16b0f59db
qa/tasks/openssl_keys.py: sort cert configs before creating certs

we cannot rely on the order in which items are arranged in a dict, the
order varies from version to another. in Python2, it happens to work,
and we can always have the self-signed cert added first. but in Python3,
it does not. and an exception is thrown
```
teuthology.exceptions.ConfigError: ssl: ca root not found for
certificate rgw.client.0
```

in this change, before creating certs, the settings are reordered so
that the self-signed ones are created first.

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit f28a5fef3b8ddb97962f91cc78174fd6e1431fed)
qa/tasks/openssl_keys.py