[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Export and import questions , I am getting duplicate items



HEllo , I am attempting to export and import a project but if I back the project up wtih 


oc export all -o yaml > project.yaml

destroy my open-shift environment completely  and then restore with 

oc create -f project.yaml I get all kinds of errors , I am not sure why this is 



$ oc create -f 151pm-bk.yml
deploymentconfig "django-ex-151pm-bk" created
buildconfig "django-ex-151pm-bk" created
build "django-ex-151pm-bk-1" created
imagestream "django-ex-151pm-bk" created
route "django-ex-151pm-bk" created
service "django-ex-151pm-bk" created
build "django-ex-151pm-bk-1" created
Error from server (Forbidden): pods "django-ex-151pm-bk-1-build" is forbidden: unable to validate against any security context constraint: [spec.volumes[1]: Invalid value: "hostPath": hostPath volumes are not allowed to be used spec.volumes[2]: Invalid value: "hostPath": hostPath volumes are not allowed to be used provider restricted: .spec.containers[0].securityContext.privileged: Invalid value: true: Privileged containers are not allowed]
Error from server (Forbidden): pods "django-ex-151pm-bk-1-" is forbidden: unable to validate against any security context constraint: [fsGroup: Invalid value: []int64{1000570000}: 1000570000 is not an allowed group seLinuxOptions.level: Invalid value: "s0:c24,c9": seLinuxOptions.level on  does not match required level.  Found s0:c24,c9, wanted s0:c12,c9 securityContext.runAsUser: Invalid value: 1000570000: UID on container django-ex-151pm-bk does not match required range.  Found 1000570000, required min: 1000150000 max: 1000159999 seLinuxOptions.level: Invalid value: "s0:c24,c9": seLinuxOptions.level on django-ex-151pm-bk does not match required level.  Found s0:c24,c9, wanted s0:c12,c9]
Error from server (Forbidden): replicationcontrollers "django-ex-151pm-bk-1" is forbidden: cannot set blockOwnerDeletion if an ownerReference refers to a resource you can't set finalizers on: User "admin" cannot update deploymentconfigs/finalizers.apps.openshift.io in project "151pm-bk", <nil>
Error from server (AlreadyExists): buildconfigs "django-ex-151pm-bk" already exists
Error from server (AlreadyExists): deploymentconfigs "django-ex-151pm-bk" already exists
Error from server (AlreadyExists): imagestreams "django-ex-151pm-bk" already exists
Error from server (AlreadyExists): routes "django-ex-151pm-bk" already exis


--
thanks !


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]