Bug #15009

[virtual-machines-user] bugs on the the user virtual machines page

Added by Ward Vandewege about 3 years ago. Updated about 3 years ago.

Status:
New
Priority:
Normal
Assigned To:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Story points:
-

Description

There are three issues here (e.g. https://workbench2.c97qk.arvadosapi.com/virtual-machines-user):

  • The "log in as" link is hardcoded to point to workbench.c97qk.arvadosapi.com, it should be using a relative link (no hostname) so that the current hostname for the workbench2 instance is used
  • The suggested ssh snippet is hardcoded to "switchyard.api.ardev.roche.com". The site-specific switchyard hostname should be constructed as "switchyard." followed by the configured value for API_HOST from workbench2.json

Related issues

Related to Arvados Workbench 2 - Feature #13864: [Navigation] Virtual machinesResolved

History

#1 Updated by Ward Vandewege about 3 years ago

#2 Updated by Tom Morris about 3 years ago

Here are some suspicious looking magic strings:

$  find . -type f -exec grep -i c97qk {} \; -print
REACT_APP_ARVADOS_API_HOST=c97qk.arvadosapi.com
./.env
        ownerUuid: 'c97qk-j7d0g-s3ngc1z0748hsmf',
            "--project-uuid=c97qk-j7d0g-s3ngc1z0748hsmf",
./src/index.tsx
                        <a href={`https://workbench.c97qk.arvadosapi.com${it.href}/webshell/${getUsername(props.links, props.userUuid)}`} target="_blank" className={props.classes.link}>
./src/views/virtual-machine-panel/virtual-machine-user-panel.tsx

$  find . -type f -exec grep -i qr1hi {} \; -print
        const u = this.renameFile('qr1hi-4zz18-n0sx074erl4p0ph', {
./src/services/collection-files-service/collection-files-service.ts

$  find . -type f -exec grep -i "ardev\." {} \; -print
    ProxyCommand ssh -p2222 turnout@switchyard.api.ardev.roche.com -x -a $SSH_PROXY_FLAGS %h`;
./src/views/virtual-machine-panel/virtual-machine-user-panel.tsx

Also available in: Atom PDF