ok thanks ,  you can ignore the other question I just posted

thanks!

On Fri, Jun 1, 2018 at 1:32 PM, Fernando Lozano <[email protected]> wrote:

> Hi Brian,
>
> You should not try to export and import the complete set of resources of a
> project. Many of them are supposed to be, in the lack of a better work,
> 'ephemeral', created as a consequence of the configChange trigger of other
> resources. Order matters, too. You should export select resources, such as:
>
> oc export bc,dc,is,svc,cm > project.yaml
>
> Even then, be prepared to manually clean out the project.yaml file because
> it will contain runtime attributes that may not make sense when imported
> back.
>
> []s, Fernando Lozano
>
>
> On Fri, Jun 1, 2018 at 1:16 PM, Brian Keyes <[email protected]> wrote:
>
>> 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 !
>>
>>
>> _______________________________________________
>> users mailing list
>> [email protected]
>> http://lists.openshift.redhat.com/openshiftmm/listinfo/users
>>
>>
>


-- 
Brian Keyes
Systems Engineer, Vizuri
703-855-9074(Mobile)
703-464-7030 x8239 (Office)

FOR OFFICIAL USE ONLY: This email and any attachments may contain
information that is privacy and business sensitive.  Inappropriate or
unauthorized disclosure of business and privacy sensitive information may
result in civil and/or criminal penalties as detailed in as amended Privacy
Act of 1974 and DoD 5400.11-R.
_______________________________________________
users mailing list
[email protected]
http://lists.openshift.redhat.com/openshiftmm/listinfo/users

Reply via email to