cephadm RGW deploy fails with "The Parameter (CephCertificateKeySize) was not provided"

Bug #1925069 reported by John Fulton
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
High
John Fulton

Bug Description

Attempted a standalone deployment using the tripleo main branch with the following parameters:

```
sudo openstack tripleo deploy \
  --templates ~/templates \
  --local-ip=$IP/$NETMASK \
  --control-virtual-ip $VIP \
  -r ~/templates/roles/Standalone.yaml \
  -e ~/templates/environments/standalone/standalone-tripleo.yaml \
  -e ~/templates/environments/cephadm/cephadm.yaml \
  -e ~/templates/environments/cephadm/ceph-rgw.yaml \
  -e cephadm_overrides.yaml \
  -e ~/containers-prepare-parameters.yaml \
  -e standalone_parameters.yaml \
  --output-dir $HOME \
  --standalone
```
Deployment failed with:

```
Deployment Failed!

ERROR: Heat log files: /var/log/heat-launcher/undercloud_deploy-ttvlls0l

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Exception: ERROR: UserParameterMissing: resources.StandaloneServiceChain<file:///home/stack/tripleo-heat-i
nstaller-templates/common/services/standalone-role.yaml>.resources.ServiceChain<nested_stack>.resources.4<
file:///home/stack/tripleo-heat-installer-templates/deployment/cephadm/ceph-rgw.yaml>: The Parameter (Ceph
CertificateKeySize) was not provided.
None
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/tripleoclient/v1/tripleo_deploy.py", line 1427, in take_action
    self._standalone_deploy(parsed_args)
  File "/usr/lib/python3.6/site-packages/tripleoclient/v1/tripleo_deploy.py", line 1260, in _standalone_de
ploy
    parsed_args)
  File "/usr/lib/python3.6/site-packages/tripleoclient/v1/tripleo_deploy.py", line 805, in _deploy_tripleo
_heat_templates
    stack = orchestration_client.stacks.create(**stack_args)
  File "/usr/lib/python3.6/site-packages/heatclient/v1/stacks.py", line 171, in create
    data=kwargs, headers=headers)
  File "/usr/lib/python3.6/site-packages/heatclient/common/http.py", line 292, in post
    return self.client_request("POST", url, **kwargs)
  File "/usr/lib/python3.6/site-packages/heatclient/common/http.py", line 282, in client_request
    resp, body = self.json_request(method, url, **kwargs)
  File "/usr/lib/python3.6/site-packages/heatclient/common/http.py", line 271, in json_request
    resp = self._http_request(url, method, **kwargs)
  File "/usr/lib/python3.6/site-packages/heatclient/common/http.py", line 234, in _http_request
    raise exc.from_response(resp)
heatclient.exc.HTTPBadRequest: ERROR: UserParameterMissing: resources.StandaloneServiceChain<file:///home/
stack/tripleo-heat-installer-templates/common/services/standalone-role.yaml>.resources.ServiceChain<nested
_stack>.resources.4<file:///home/stack/tripleo-heat-installer-templates/deployment/cephadm/ceph-rgw.yaml>:
 The Parameter (CephCertificateKeySize) was not provided.
None
None
ERROR: UserParameterMissing: resources.StandaloneServiceChain<file:///home/stack/tripleo-heat-installer-te
mplates/common/services/standalone-role.yaml>.resources.ServiceChain<nested_stack>.resources.4<file:///hom
e/stack/tripleo-heat-installer-templates/deployment/cephadm/ceph-rgw.yaml>: The Parameter (CephCertificate
KeySize) was not provided.
None
```

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-heat-templates (master)
Changed in tripleo:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (master)

Reviewed: https://review.opendev.org/c/openstack/tripleo-heat-templates/+/786953
Committed: https://opendev.org/openstack/tripleo-heat-templates/commit/30e071b576d5651cab52765256711e0fbd81b503
Submitter: "Zuul (22348)"
Branch: master

commit 30e071b576d5651cab52765256711e0fbd81b503
Author: John Fulton <email address hidden>
Date: Mon Apr 19 19:57:04 2021 +0000

    Use CephRgwCertificateKeySize, not CephCertificateKeySize, for RGW

    When using key_size_override_unset to choose either CertificateKeySize
    or CephRgwCertificateKeySize, base the setting of the condition
    key_size_override_unset on if CephRgwCertificateKeySize is empty,
    not on if CephCertificateKeySize is empty.

    Closes-Bug: #1925069
    Change-Id: Iac4a4424a21af0ab851e387a381747c413621009

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-heat-templates 14.1.0

This issue was fixed in the openstack/tripleo-heat-templates 14.1.0 release.

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.