Skip to content

openshift ex registry and similar should enable easy updating #1175

Closed

Description

@sosiouxme

Should someone make a mistake, like say not adding the right --images when creating the infrastructure component, it should be easy and obvious how to back that out.

Right now, for the registry, it means deleting the DC, the service, and the pod, and then restarting the master to clear the service cache if you tried to use it at any point before realizing your mistake. This is far from obvious to the uninitiated. It should at least be possible to display what was created so the user can figure it out for themself. Better if there is a --delete or --recreate option (which also handles the service cache).

Of course, if it were possible to recreate without deleting the service, it wouldn't be necessary to clear that cache.

Activity

  1. derekwaynecarr commented on Feb 26, 2015

    @derekwaynecarr
    Member

    +1 - I ran into this many times over the past week.

  2. sosiouxme commented on Feb 27, 2015

    @sosiouxme
    MemberAuthor

    Forgot to mention, ImageRepositories get the docker-registry service inserted as the default as well. So definitely best to re-create while keeping the same service.

  3. smarterclayton commented on Feb 28, 2015

    @smarterclayton
    Contributor

    It should be trivially easy to edit a dc from the cli. That's the real problem here. We should show more info about what you are creating (types as part of the output) and allow the normal "it exists" to tell you how to change them. Once config reconciliation is possible, we should allow that to be applied.

  4. sosiouxme commented on Mar 2, 2015

    @sosiouxme
    MemberAuthor

    Good point; regardless of what mechanism gets us to the desired state, updating is what we really want.

  5. changed the title [-]`openshift ex registry` and similar should enable easy delete and recreate[/-] [+]`openshift ex registry` and similar should enable easy updating[/+] on Mar 2, 2015
  6. smarterclayton commented on Mar 9, 2015

    @smarterclayton
    Contributor

    As a side node I think we should invert --create and make it the default, with --dry-run or --check being the optional behavior.

  7. ncdc commented on May 18, 2015

    @ncdc
    Contributor

    At worst, this can be a docs-only fix, where we describe what osadm registry creates and how to edit it. Better would maybe be an --edit flag to osadm registry or something along those lines. @smarterclayton @danmcp any preference?

  8. smarterclayton commented on May 18, 2015

    @smarterclayton
    Contributor

    Post 3.0

  9. 6 remaining items

  10. smarterclayton commented on Mar 1, 2016

    @smarterclayton
    Contributor
  11. assigned and unassigned on Mar 1, 2016
  12. 0xmichalis commented on Mar 2, 2016

    @0xmichalis
    Contributor

    actually, can you look at why apply is broken on the output of oadm registry -o yaml?

    We need to cherry-pick kubernetes/kubernetes#20948. I just tested it in Kube (working), cherry-picked and tested in Origin (working), and will submit a PR shortly.

  13. 0xmichalis commented on Apr 4, 2016

    @0xmichalis
    Contributor

    patch and apply work, and we have oc set {triggers,env,volume,probe} for updating a dc

    So to summarize what's left here:

  14. smarterclayton commented on Apr 4, 2016

    @smarterclayton
    Contributor

    oc rollout image is probably the alternate for oc set image.

    I'm not aware of others.

    On Mon, Apr 4, 2016 at 12:51 PM, Michail Kargakis [email protected]
    wrote:

    patch and apply work, and we have oc set {triggers,env,volume,probe} for
    updating a dc

    So to summarize what's left here:

    —
    You are receiving this because you were mentioned.
    Reply to this email directly or view it on GitHub
    #1175 (comment)

  15. 0xmichalis commented on Jun 12, 2016

    @0xmichalis
    Contributor

    And we also have paused now, so we will be able to run updates more efficiently.
    For example, for securing the docker registry, we currently run 4 deployments. We should run one instead:

    oc rollout pause dc/registry
    oc set volume dc/registry --add --type=secret --secret-name=registry-secret -m /etc/secrets
    oc set env dc/registry \
        REGISTRY_HTTP_TLS_CERTIFICATE=/etc/secrets/registry.crt \
        REGISTRY_HTTP_TLS_KEY=/etc/secrets/registry.key
    oc patch (probes)
    oc rollout resume dc/registry
    

    https://docs.openshift.org/latest/install_config/install/docker_registry.html#securing-the-registry

  16. 0xmichalis commented on Jul 15, 2016

    @0xmichalis
    Contributor

    @JacobTanenbaum all the required commands except oc set resources are in master. Handing this issue to you until the command you are working on (kubernetes/kubernetes#27206) is picked up in Origin.

  17. pweil- commented on Jun 26, 2017

    @pweil-

    oc set resources is in now, closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions