Skip to content

cloudera.cloud.env failing when environment already exists #59

@nmarian85

Description

@nmarian85

I have one question on the behavior below. I re-ran the same pipeline that created this environment and, when the environment is present, it fails. From what I saw, the environment is the only component where this happens. When trying to install a CDE/CML/etc, cluster that is already installed, the same warnings appear but the module does not fail.
Any insights on this ? I could go around it by tweaking the failed_when: never flag and having another task which checks if the installation went fine by querying the environment status. However, that is not oki since, in case of an environment creation failure, the failed_when will hide the error.

TASK [env : Install CDP environment ] ********************************
Friday 29 April 2022  13:56:09 +0000 (0:00:00.039)       0:00:00.039 ********** 
[WARNING]: Environment SSH tunneling specified. Currently, the SSH tunnel
setting cannot be reconciled. To update the tunneling setting, explicitly
delete and recreate the environment.
[WARNING]: Environment workload analytics specified. Currently, the
environment's workload analytics setting cannot be reconciled. To update the
workload analytics setting for theenvironment, explicitly delete and recreate
the environment.
[WARNING]: Environment tags specified. Currently, tags cannot be reconciled. To
update tags, explicitly delete and recreate the environment.
fatal: [localhost]: FAILED! => {
    "changed": false,
    "violations": [
        [
            "public_key_text",
            "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDZkgFHHkJltjGKOM93SwPQ+qM16zBh7rXLdgvwGhoLUDIqJgtqTBW03i8w8q4LxjZLTCV2LEiLTQIog+CcuzOPK9XWadzCW1LkovlZ5nG4Me+F0aN8I9jupYvMe1f8+xk4ZAKHLeI14gWmti+fJkTN4q1cK8cX0gzG1pEPXMdYtStkjVBk65z/VsqmqjinoQnuDSaa6Xd16dXMbbID9y2qRgAM91MWGKS0DGyH0YTSjkid3ZADQKgUblYdMRNSoaktSKhV68BLUtuWM0MfCbAk4LSxO5L9dB6RCjPVybrHcRmb5wtJvBeHdIcKdTQdnDPsi6w4SziRlgtcw+aec2+v cloudbreak"
        ]
    ]
}
MSG:
Environment exists and differs from expected:
Parameter 'public_key_text' found to be 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDZkgFHHkJltjGKOM93SwPQ+qM16zBh7rXLdgvwGhoLUDIqJgtqTBW03i8w8q4LxjZLTCV2LEiLTQIog+CcuzOPK9XWadzCW1LkovlZ5nG4Me+F0aN8I9jupYvMe1f8+xk4ZAKHLeI14gWmti+fJkTN4q1cK8cX0gzG1pEPXMdYtStkjVBk65z/VsqmqjinoQnuDSaa6Xd16dXMbbID9y2qRgAM91MWGKS0DGyH0YTSjkid3ZADQKgUblYdMRNSoaktSKhV68BLUtuWM0MfCbAk4LSxO5L9dB6RCjPVybrHcRmb5wtJvBeHdIcKdTQdnDPsi6w4SziRlgtcw+aec2+v cloudbreak'

Metadata

Metadata

Assignees

Labels

bugPOINT - Bugfix entry in the CHANGELOG

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions