]> git.apps.os.sepia.ceph.com Git - ceph-ci.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, 8 Apr 2020 13:07:07 +0000 (21:07 +0800)
commitf28a5fef3b8ddb97962f91cc78174fd6e1431fed
treeb13c5fb033c6354b061c6474e538ae099da9af6c
parent77ec9ce88df54b7758e56eeef1b3cf3f14952513
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>
qa/tasks/openssl_keys.py