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

question about backing up via export



it the proper way to export and restore an app ?


1. create the app 
2. on the command line switch to your project
3. export the project with "oc export all -o yaml > project.yaml"
4. delete the project 
5. manually recreate the project 
6. switch to the project 
7. restore the project with  "oc create -f project.yaml"
8. ignore the duplication errors 


$ oc create -f sample-py.yml
deploymentconfig "django-ex" created
deploymentconfig "ruby-ex" created
buildconfig "django-ex" created
buildconfig "ruby-ex" created
build "ruby-ex-1" created
imagestream "django-ex" created
imagestream "ruby-22-centos7" created
imagestream "ruby-ex" created
route "django-ex" created
route "ruby-ex" created
service "django-ex" created
service "ruby-ex" created
build "ruby-ex-1" created
Error from server (AlreadyExists): builds "django-ex-1" already exists
Error from server (Forbidden): pods "django-ex-1-" is forbidden: unable to validate against any security context constraint: [fsGroup: Invalid value: []int64{1000180000}: 1000180000 is not an allowed group seLinuxOptions.level: Invalid value: "s0:c13,c12": seLinuxOptions.level on  does not match required level.  Found s0:c13,c12, wanted s0:c14,c4 securityContext.runAsUser: Invalid value: 1000180000: UID on container django-ex does not match required range.  Found 1000180000, required min: 1000190000 max: 1000199999 seLinuxOptions.level: Invalid value: "s0:c13,c12": seLinuxOptions.level on django-ex does not match required level.  Found s0:c13,c12, wanted s0:c14,c4]
Error from server (Forbidden): pods "django-ex-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 "ruby-ex-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 "ruby-ex-1-" is forbidden: unable to validate against any security context constraint: [fsGroup: Invalid value: []int64{1000180000}: 1000180000 is not an allowed group seLinuxOptions.level: Invalid value: "s0:c13,c12": seLinuxOptions.level on  does not match required level.  Found s0:c13,c12, wanted s0:c14,c4 securityContext.runAsUser: Invalid value: 1000180000: UID on container ruby-ex does not match required range.  Found 1000180000, required min: 1000190000 max: 1000199999 seLinuxOptions.level: Invalid value: "s0:c13,c12": seLinuxOptions.level on ruby-ex does not match required level.  Found s0:c13,c12, wanted s0:c14,c4]
Error from server (Forbidden): replicationcontrollers "django-ex-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 "sample-py", <nil>
Error from server (Forbidden): replicationcontrollers "ruby-ex-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 "sample-py", <nil>
Error from server (AlreadyExists): buildconfigs "django-ex" already exists
Error from server (AlreadyExists): buildconfigs "ruby-ex" already exists
Error from server (AlreadyExists): builds "django-ex-1" already exists
Error from server (AlreadyExists): deploymentconfigs "django-ex" already exists
Error from server (AlreadyExists): deploymentconfigs "ruby-ex" already exists
Error from server (AlreadyExists): imagestreams "django-ex" already exists
Error from server (AlreadyExists): imagestreams "ruby-22-centos7" already exists
Error from server (AlreadyExists): imagestreams "ruby-ex" already exists
Error from server (AlreadyExists): routes "django-ex" already exists
Error from server (AlreadyExists): routes "ruby-ex" already exists



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