UKCloud / openshift-deployment-ansible

3 stars 1 forks source link

Create tier-1 is not idempotent #25

Open andywis opened 6 years ago

andywis commented 6 years ago

Running the Ansible code a 2nd time, I get this:

TASK [openshiftpostdeployment : create tier-1 class] *********************************************************************************
fatal: [master-0.openstacklocal]: FAILED! => {
    "changed": true, 
    "cmd": [
        "/usr/local/bin/oc", 
        "create", 
        "-f", 
        "~/storage-class-tier1.yml"
    ], 
    "delta": "0:00:01.297562", 
    "end": "2017-11-09 11:51:16.544821", 
    "failed": true, 
    "rc": 1, 
    "start": "2017-11-09 11:51:15.247259"
}

STDERR:

Error from server (AlreadyExists): error when creating "/root/storage-class-tier1.yml": storageclasses.storage.k8s.io "tier-1" already exists

MSG:

non-zero return code
andywis commented 6 years ago

See if the upgrade to 3.6 or 2.7 fixes this issue

gellner commented 5 years ago

As far as I can tell, this is technically still an issue. Do we want a special check to resolve this problem?