experimental-platform / platform-configure-script

Experimental Platform: Installation Script
https://experimental-platform.github.io/
Apache License 2.0
8 stars 1 forks source link

channel mixup in update call in web ui #39

Closed DarkSwoop closed 9 years ago

DarkSwoop commented 9 years ago

As @tiff mentioned in #7 the web ui indicates that there is an update available. I think this is due to the mixup of channels:

{
    "images": {
        "app-manager:alpha": {
            "local": "0477c6ffe16a",
            "remote": "0477c6ff"
        },
        "buildstep:alpha": {
            "local": "f7f121fe9c81",
            "remote": "77c0610f"
        },
        "central-gateway:alpha": {
            "local": "0bfa967f5d9a",
            "remote": "0bfa967f"
        },
        "app-manager:alpha-testing": {
            "local": "b12eb2536006",
            "remote": "0477c6ff"
        },
        "central-gateway:alpha-testing": {
            "local": "263f0957dde2",
            "remote": "0bfa967f"
        },
        "configure:alpha": {
            "local": "030a4ff8c5eb",
            "remote": "030a4ff8"
        },
        "dokku:alpha": {
            "local": "fb6b504784a6",
            "remote": "fb6b5047"
        },
        "dokku:alpha-testing": {
            "local": "76c613fda2c5",
            "remote": "fb6b5047"
        },
        "frontend:alpha-testing": {
            "local": "e2ab2b665cb0",
            "remote": "025c8faf"
        },
        "frontend:alpha": {
            "local": "025c8fafc561",
            "remote": "025c8faf"
        },
        "hostname-avahi:alpha": {
            "local": "de0c9d2f9ed4",
            "remote": "de0c9d2f"
        },
        "hostname-avahi:alpha-testing": {
            "local": "534b99a7f1bc",
            "remote": "de0c9d2f"
        },
        "hostname-smb:alpha": {
            "local": "066479d9a62d",
            "remote": "066479d9"
        },
        "hostname-smb:alpha-testing": {
            "local": "7c946895c621",
            "remote": "066479d9"
        },
        "monitoring:alpha": {
            "local": "cd2cecf9dfcb",
            "remote": "cd2cecf9"
        },
        "ptw:alpha": {
            "local": "2add2d816d59",
            "remote": "2add2d81"
        },
        "monitoring:alpha-testing": {
            "local": "2476194c3f86",
            "remote": "cd2cecf9"
        },
        "skvs:alpha": {
            "local": "bbbb00dc87fa",
            "remote": "bbbb00dc"
        },
        "ptw:alpha-testing": {
            "local": "a8fd6d9eb18b",
            "remote": "2add2d81"
        },
        "skvs:alpha-testing": {
            "local": "34aa0315ac9c",
            "remote": "bbbb00dc"
        },
        "systemd-proxy:alpha": {
            "local": "992ac9f8ff26",
            "remote": "992ac9f8"
        },
        "systemd-proxy:alpha-testing": {
            "local": "01ad5c2dcfc5",
            "remote": "992ac9f8"
        }
    },
    "channel": "alpha",
    "up_to_date": false
}

All *:alpha services are in sync. All *:alpha-testing services are out of sync.

tiff commented 9 years ago

thanks. one more info. did you install the release which we published yesterday?

DarkSwoop commented 9 years ago

if you mean installing it with sudo /opt/bin/platform-configure via ssh... Yep, I did.

tiff commented 9 years ago

and still you got that output where local and remote differ for some services?

DarkSwoop commented 9 years ago

Yep. I did the update again a few minutes ago. Same result.

From the shell:

Using channel 'alpha' from /etc/protonet/system/channel.
alpha: Pulling from experimentalplatform/configure
6e6a100fa147: Already exists
13c0c663a321: Already exists
2bd276ed39d5: Already exists
013f3d01d247: Already exists
9f6bbe8d6e26: Already exists
6d7c117c1978: Already exists
0ad4fa78803e: Already exists
7a906788abc8: Already exists
254f4577b216: Already exists
ae3b9935c4d9: Already exists
c999e751595b: Already exists
85904f3f7a7d: Already exists
c260aec3aaa1: Already exists
2729da808cec: Already exists
38d5e8f64e68: Already exists
fa80beddb035: Already exists
3dc0d84e3aa0: Already exists
92fb2ea43a67: Already exists
bb9d300b7520: Already exists
030a4ff8c5eb: Already exists
Digest: sha256:42e01c86cd4e8b40ce96e69f41eb583c520112e6b1ea74b58a1cb28935cc8623
Status: Image is up to date for experimentalplatform/configure:alpha
Created symlink from /etc/systemd/system/network-online.target.wants/systemd-networkd-wait-online.service to /usr/lib64/systemd/system/systemd-networkd-wait-online.service.
Created symlink from /etc/systemd/system/multi-user.target.wants/hostname-avahi-restart-protonet.path to /etc/systemd/system/hostname-avahi-restart-protonet.path.
Created symlink from /etc/systemd/system/multi-user.target.wants/central-gateway-protonet.service to /etc/systemd/system/central-gateway-protonet.service.
Created symlink from /etc/systemd/system/multi-user.target.wants/init-protonet.service to /etc/systemd/system/init-protonet.service.
Created symlink from /etc/systemd/system/multi-user.target.wants/hostname-protonet.service to /etc/systemd/system/hostname-protonet.service.
Created symlink from /etc/systemd/system/multi-user.target.wants/sproxy-protonet.service to /etc/systemd/system/sproxy-protonet.service.
Created symlink from /etc/systemd/system/multi-user.target.wants/ptw-protonet.service to /etc/systemd/system/ptw-protonet.service.
Created symlink from /etc/systemd/system/multi-user.target.wants/hostname-avahi-restart-protonet.service to /etc/systemd/system/hostname-avahi-restart-protonet.service.
Created symlink from /etc/systemd/system/multi-user.target.wants/skvs-protonet.service to /etc/systemd/system/skvs-protonet.service.
Created symlink from /etc/systemd/system/multi-user.target.wants/hostname-smb-restart-protonet.service to /etc/systemd/system/hostname-smb-restart-protonet.service.
Created symlink from /etc/systemd/system/multi-user.target.wants/dokku-rebuild-apps-protonet.service to /etc/systemd/system/dokku-rebuild-apps-protonet.service.
Created symlink from /etc/systemd/system/multi-user.target.wants/dokku-hostname-protonet.path to /etc/systemd/system/dokku-hostname-protonet.path.
Created symlink from /etc/systemd/system/multi-user.target.wants/monitoring-protonet.service to /etc/systemd/system/monitoring-protonet.service.
Created symlink from /etc/systemd/system/multi-user.target.wants/dokku-protonet.service to /etc/systemd/system/dokku-protonet.service.
Created symlink from /etc/systemd/system/multi-user.target.wants/remove-images-protonet.timer to /etc/systemd/system/remove-images-protonet.timer.
Created symlink from /etc/systemd/system/multi-user.target.wants/hostname-smb-restart-protonet.path to /etc/systemd/system/hostname-smb-restart-protonet.path.
Created symlink from /etc/systemd/system/multi-user.target.wants/hostname-smb-protonet.service to /etc/systemd/system/hostname-smb-protonet.service.
Created symlink from /etc/systemd/system/multi-user.target.wants/hostname-protonet.path to /etc/systemd/system/hostname-protonet.path.
Created symlink from /etc/systemd/system/multi-user.target.wants/trigger-update-protonet.path to /etc/systemd/system/trigger-update-protonet.path.
Created symlink from /etc/systemd/system/multi-user.target.wants/app-manager-protonet.service to /etc/systemd/system/app-manager-protonet.service.
Created symlink from /etc/systemd/system/multi-user.target.wants/remove-images-protonet.service to /etc/systemd/system/remove-images-protonet.service.
Created symlink from /etc/systemd/system/multi-user.target.wants/hostname-avahi-protonet.service to /etc/systemd/system/hostname-avahi-protonet.service.
Created symlink from /etc/systemd/system/multi-user.target.wants/frontend-protonet.service to /etc/systemd/system/frontend-protonet.service.
Created symlink from /etc/systemd/system/multi-user.target.wants/dokku-hostname-protonet.service to /etc/systemd/system/dokku-hostname-protonet.service.
latest: Pulling from experimentalplatform/buildstep
511136ea3c5a: Already exists
5ca11046a9c8: Already exists
d7334489ac75: Already exists
d51ac450e2e2: Already exists
bbe66ecb4d53: Already exists
38d8e8d5810e: Already exists
7b3857296d2c: Already exists
4b4e11201bfd: Already exists
325f54142e12: Already exists
e7c6ba1de61e: Already exists
c9a14ad8ce9e: Already exists
0f5e13476d9b: Already exists
9fd8cf10f978: Already exists
Digest: sha256:7896f5566054c3610b41bf45b0562cd093528d3b8256f4aec174de1bf6081807
Status: Image is up to date for experimentalplatform/buildstep:latest
Pulling repository ibuildthecloud/systemd-docker
a1a20b7ecdf0: Download complete
511136ea3c5a: Download complete
df7546f9f060: Download complete
ea13149945cb: Download complete
4986bf8c1536: Download complete
33a94bff4adb: Download complete
4d6e6c6057dc: Download complete
2d45ac1d2506: Download complete
Status: Image is up to date for ibuildthecloud/systemd-docker:latest
Repository experimentalplatform/app-manager already being pulled by another client. Waiting.
alpha: Pulling from experimentalplatform/central-gateway
6e6a100fa147: Already exists
13c0c663a321: Already exists
2bd276ed39d5: Already exists
013f3d01d247: Already exists
9f6bbe8d6e26: Already exists
6d7c117c1978: Already exists
0ad4fa78803e: Already exists
7a906788abc8: Already exists
254f4577b216: Already exists
ae3b9935c4d9: Already exists
c999e751595b: Already exists
85904f3f7a7d: Already exists
c260aec3aaa1: Already exists
2729da808cec: Already exists
afdfae7e424f: Already exists
762786fcdc52: Already exists
0bfa967f5d9a: Already exists
Digest: sha256:779fb975cb55eab8431061e4d17a639beaee009c77b508c0ad96450e1adef67c
Status: Image is up to date for experimentalplatform/central-gateway:alpha
Repository experimentalplatform/dokku already being pulled by another client. Waiting.
Repository experimentalplatform/frontend already being pulled by another client. Waiting.
Repository experimentalplatform/hostname-avahi already being pulled by another client. Waiting.
Repository experimentalplatform/hostname-smb already being pulled by another client. Waiting.
Repository experimentalplatform/monitoring already being pulled by another client. Waiting.
alpha: Pulling from experimentalplatform/ptw
6e6a100fa147: Already exists
13c0c663a321: Already exists
2bd276ed39d5: Already exists
013f3d01d247: Already exists
9f6bbe8d6e26: Already exists
6d7c117c1978: Already exists
0ad4fa78803e: Already exists
7a906788abc8: Already exists
254f4577b216: Already exists
ae3b9935c4d9: Already exists
c999e751595b: Already exists
85904f3f7a7d: Already exists
c260aec3aaa1: Already exists
2729da808cec: Already exists
dd04ddc484e0: Already exists
8bf9d96cd7f0: Already exists
ee4ea8b02ebd: Already exists
15f1afa3bcda: Already exists
7e97699c006f: Already exists
d16b1d6ede4a: Already exists
5e95f88779f6: Already exists
edef23e32c30: Already exists
74e03ce04ce1: Already exists
dfccc44b4dd0: Already exists
b8016f085e5b: Already exists
e9f35d83251d: Already exists
68148dbb0f67: Already exists
dfb5755f92d1: Already exists
2add2d816d59: Already exists
Digest: sha256:d856642402d5e4d7353f886acf7cc836b852f6765b06f638648c4baed9d654e0
Status: Image is up to date for experimentalplatform/ptw:alpha
alpha: Pulling from experimentalplatform/skvs
6e6a100fa147: Already exists
13c0c663a321: Already exists
2bd276ed39d5: Already exists
013f3d01d247: Already exists
9f6bbe8d6e26: Already exists
6d7c117c1978: Already exists
0ad4fa78803e: Already exists
7a906788abc8: Already exists
254f4577b216: Already exists
ae3b9935c4d9: Already exists
c999e751595b: Already exists
85904f3f7a7d: Already exists
c260aec3aaa1: Already exists
2729da808cec: Already exists
80ffc62c7de6: Already exists
e6660927f61e: Already exists
bbbb00dc87fa: Already exists
Digest: sha256:5bd183ff74da7361d731e91f841b8cade1a90c3cf60d8040b74b808cdf839e21
Status: Image is up to date for experimentalplatform/skvs:alpha
Repository experimentalplatform/systemd-proxy already being pulled by another client. Waiting.

Broadcast message from root@appsandbrains-a09 on  (Fri 2015-09-04 11:49:40 UTC):

Rebooting system for experimental-platform update.
The system is going down for reboot at Fri 2015-09-04 11:50:40 UTC!

docker ps

CONTAINER ID        IMAGE                                        COMMAND                CREATED             STATUS              PORTS                                          NAMES
c02a3ba948b0        dokku/grouple-hubot                          "/start web"           7 minutes ago       Up 7 minutes                                                       hopeful_poitras
35d3086a55db        experimentalplatform/frontend:alpha          "/bin/sh -c 'node bi   8 minutes ago       Up 8 minutes        127.0.0.1:9002->3000/tcp                       frontend
d090429fa503        experimentalplatform/ptw:alpha               "start_publish_to_we   8 minutes ago       Up 8 minutes                                                       ptw
78417038b4da        experimentalplatform/skvs:alpha              "/skvs --port 80 --w   8 minutes ago       Up 8 minutes        80/tcp                                         skvs
7d1ca24bf098        experimentalplatform/dokku:alpha             "start_dokku"          8 minutes ago       Up 8 minutes        0.0.0.0:8022->22/tcp, 127.0.0.1:9001->80/tcp   dokku
b973089959b0        experimentalplatform/central-gateway:alpha   "/central-gateway --   8 minutes ago       Up 8 minutes                                                       central-gateway
860f97a25a16        experimentalplatform/systemd-proxy:alpha     "/sproxy -port 80"     8 minutes ago       Up 8 minutes        80/tcp                                         sproxy
af84d14f96ce        experimentalplatform/monitoring:alpha        "/monitoring --port    8 minutes ago       Up 8 minutes        80/tcp                                         monitoring
6e7b5cc77b65        experimentalplatform/hostname-smb:alpha      "/usr/sbin/nmbd -F -   8 minutes ago       Up 8 minutes                                                       hostname-smb
e8fe457823ba        experimentalplatform/app-manager:alpha       "/app-manager --port   8 minutes ago       Up 8 minutes        80/tcp                                         app-manager
f92a7e7b173a        experimentalplatform/hostname-avahi:alpha    "/bin/bash -c 'sleep   8 minutes ago       Up 8 minutes                                                       hostname-avahi
DarkSwoop commented 9 years ago

Ok. I think I found the "bug".

https://github.com/experimental-platform/platform-frontend/blob/development/management-proxy/session-manager/routes/system.js#L62 compares the key agains the specified channel. In my case the skvs returns keys like app-manager:alpha and app-manager:alpha-testing. The check returns true for both. But the platform-configure-script only updates the alpha channel.

tiff commented 9 years ago

wow thx for debugging. @hinnerk can you check if we can fix this easily?

hinnerk commented 9 years ago

Yup, see experimental-platform/platform-frontend#38 – Kudos to @DarkSwoop!