osrf / cloudsim-widgets

Other
0 stars 1 forks source link

SASC: Insufficient permissions when launching payloads #41

Closed osrf-migration closed 7 years ago

osrf-migration commented 7 years ago

Original report (archived issue) by Tully Foote (Bitbucket: Tully Foote, GitHub: tfoote).


After launching a few payloads I got insufficient permissions. This is the tftest round.

Error updating "sascround-151": insufficient permission for user "tfoote@osrfoundation.org" to access resource "sascround-151

insufficient_permission.png

osrf-migration commented 7 years ago

Original comment by Louise Poubel (Bitbucket: chapulina, GitHub: chapulina).


Note that this can also mean that there is no resource called sascround-151

osrf-migration commented 7 years ago

Original comment by Hugo Boyer (Bitbucket: hugomatic, GitHub: hugomatic).


I found it:

#!javascript

{
  "name": "sascround-151",
  "data": {
    "name": "tftest",
    "admin": "tfoote@osrfoundation.org",
    "blueuser": "tfoote@osrfoundation.org",
    "golduser": "tfoote@osrfoundation.org",
    "payloadcount": "3",
    "arbiterami": "ami-fe99c49e",
    "payloadami": "ami-fe99c49e",
    "arbiterhardware": "c4.xlarge",
    "payloadhardware": "m4.xlarge",
    "arbiter": {
      "public": {
        "status": "RUNNING",
        "machine_ip": "52.53.192.57"
      },
      "secure": {
        "status": "RUNNING",
        "region": "us-west-1",
        "hardware": "c4.xlarge",
        "image": "ami-fe99c49e",
        "sshkey": "sshkey-007",
        "options": {
          "role": "arbiter",
          "blue_route": "https://keys.cloudsim.io/tap/sasc/server/vpn-268",
          "gold_route": "https://keys.cloudsim.io/tap/sasc/server/vpn-269",
          "blue_subnet": "192.168.2",
          "gold_subnet": "192.168.3",
          "payload_count": "3",
          "token": "ey...kopw",
          "ssh": "https://portal.cloudsim.io/sshkeys/sshkey-007",
          "resources": [
            {
              "name": "simulations",
              "data": {},
              "permissions": [
                {
                  "username": "sasc-admins",
                  "permissions": {
                    "readOnly": false
                  }
                },
                {
                  "username": "tfoote@osrfoundation.org",
                  "permissions": {
                    "readOnly": false
                  }
                }
              ]
            },
            {
              "name": "downloads",
              "data": {
                "path": "/home/ubuntu/code/cloudsim-sim/server/keys.zip"
              },
              "permissions": [
                {
                  "username": "tfoote@osrfoundation.org",
                  "permissions": {
                    "readOnly": false
                  }
                },
                {
                  "username": "sasc-admins",
                  "permissions": {
                    "readOnly": false
                  }
                }
              ]
            }
          ]
        },
        "creator": "tfoote@osrfoundation.org",
        "launch_date": "2017-02-01T22:27:29.026Z",
        "termination_date": null,
        "machine_ip": "52.53.192.57",
        "machine_id": "i-02b123a3511508972",
        "id": "simulator-492"
      }
    },
    "blueServerRoute": "https://keys.cloudsim.io/tap/sasc/server/vpn-268",
    "blueKeyResourceId": "vpn-268",
    "goldServerRoute": "https://keys.cloudsim.io/tap/sasc/server/vpn-269",
    "goldKeyResourceId": "vpn-269",
    "sshArbiter": "sshkey-007",
    "sshBlue": "sshkey-008",
    "sshGold": "sshkey-009",
    "bluepayloads": [
      {
        "status": "RUNNING",
        "region": "us-west-1",
        "hardware": "m4.xlarge",
        "image": "ami-fe99c49e",
        "sshkey": "sshkey-008",
        "options": {
          "role": "payload",
          "team": "blue",
          "count": 0,
          "client_route": "https://keys.cloudsim.io/tap/sasc/client/vpn-268",
          "server_ip": "52.53.192.57",
          "client_id": "payload0",
          "token": "ey....kopw",
          "ssh": "https://portal.cloudsim.io/sshkeys/sshkey-008",
          "resources": [
            {
              "name": "simulations",
              "data": {},
              "permissions": [
                {
                  "username": "tfoote@osrfoundation.org",
                  "permissions": {
                    "readOnly": false
                  }
                },
                {
                  "username": "sasc-admins",
                  "permissions": {
                    "readOnly": false
                  }
                },
                {
                  "username": "tfoote@osrfoundation.org",
                  "permissions": {
                    "readOnly": false
                  }
                }
              ]
            },
            {
              "name": "downloads",
              "data": {
                "path": "/home/ubuntu/code/cloudsim-sim/server/keys.zip"
              },
              "permissions": [
                {
                  "username": "tfoote@osrfoundation.org",
                  "permissions": {
                    "readOnly": false
                  }
                },
                {
                  "username": "sasc-admins",
                  "permissions": {
                    "readOnly": false
                  }
                },
                {
                  "username": "tfoote@osrfoundation.org",
                  "permissions": {
                    "readOnly": false
                  }
                }
              ]
            }
          ]
        },
        "creator": "tfoote@osrfoundation.org",
        "launch_date": "2017-02-01T22:30:18.793Z",
        "termination_date": null,
        "machine_ip": "54.183.130.193",
        "machine_id": "i-0c9e990261a4260b9",
        "id": "simulator-493"
      },
      {
        "status": "RUNNING",
        "region": "us-west-1",
        "hardware": "m4.xlarge",
        "image": "ami-fe99c49e",
        "sshkey": "sshkey-008",
        "options": {
          "role": "payload",
          "team": "blue",
          "count": 1,
          "client_route": "https://keys.cloudsim.io/tap/sasc/client/vpn-268",
          "server_ip": "52.53.192.57",
          "client_id": "payload1",
          "token": "ey.....kopw",
          "ssh": "https://portal.cloudsim.io/sshkeys/sshkey-008",
          "resources": [
            {
              "name": "simulations",
              "data": {},
              "permissions": [
                {
                  "username": "tfoote@osrfoundation.org",
                  "permissions": {
                    "readOnly": false
                  }
                },
                {
                  "username": "sasc-admins",
                  "permissions": {
                    "readOnly": false
                  }
                },
                {
                  "username": "tfoote@osrfoundation.org",
                  "permissions": {
                    "readOnly": false
                  }
                }
              ]
            },
            {
              "name": "downloads",
              "data": {
                "path": "/home/ubuntu/code/cloudsim-sim/server/keys.zip"
              },
              "permissions": [
                {
                  "username": "tfoote@osrfoundation.org",
                  "permissions": {
                    "readOnly": false
                  }
                },
                {
                  "username": "sasc-admins",
                  "permissions": {
                    "readOnly": false
                  }
                },
                {
                  "username": "tfoote@osrfoundation.org",
                  "permissions": {
                    "readOnly": false
                  }
                }
              ]
            }
          ]
        },
        "creator": "tfoote@osrfoundation.org",
        "launch_date": "2017-02-01T22:30:18.803Z",
        "termination_date": null,
        "machine_ip": "54.183.210.171",
        "machine_id": "i-03943d4a8a608d2a0",
        "id": "simulator-495"
      },
      {
        "status": "RUNNING",
        "region": "us-west-1",
        "hardware": "m4.xlarge",
        "image": "ami-fe99c49e",
        "sshkey": "sshkey-008",
        "options": {
          "role": "payload",
          "team": "blue",
          "count": 2,
          "client_route": "https://keys.cloudsim.io/tap/sasc/client/vpn-268",
          "server_ip": "52.53.192.57",
          "client_id": "payload2",
          "token": "ey...kopw",
          "ssh": "https://portal.cloudsim.io/sshkeys/sshkey-008",
          "resources": [
            {
              "name": "simulations",
              "data": {},
              "permissions": [
                {
                  "username": "tfoote@osrfoundation.org",
                  "permissions": {
                    "readOnly": false
                  }
                },
                {
                  "username": "sasc-admins",
                  "permissions": {
                    "readOnly": false
                  }
                },
                {
                  "username": "tfoote@osrfoundation.org",
                  "permissions": {
                    "readOnly": false
                  }
                }
              ]
            },
            {
              "name": "downloads",
              "data": {
                "path": "/home/ubuntu/code/cloudsim-sim/server/keys.zip"
              },
              "permissions": [
                {
                  "username": "tfoote@osrfoundation.org",
                  "permissions": {
                    "readOnly": false
                  }
                },
                {
                  "username": "sasc-admins",
                  "permissions": {
                    "readOnly": false
                  }
                },
                {
                  "username": "tfoote@osrfoundation.org",
                  "permissions": {
                    "readOnly": false
                  }
                }
              ]
            }
          ]
        },
        "creator": "tfoote@osrfoundation.org",
        "launch_date": "2017-02-01T22:30:18.802Z",
        "termination_date": null,
        "machine_ip": "52.53.165.178",
        "machine_id": "i-0fa95bf946f73e012",
        "id": "simulator-494"
      }
    ],
    "goldpayloads": [
      {
        "status": "RUNNING",
        "region": "us-west-1",
        "hardware": "m4.xlarge",
        "image": "ami-fe99c49e",
        "sshkey": "sshkey-009",
        "options": {
          "role": "payload",
          "team": "gold",
          "count": 0,
          "client_route": "https://keys.cloudsim.io/tap/sasc/client/vpn-269",
          "server_ip": "52.53.192.57",
          "client_id": "payload0",
          "token": "ey....kopw",
          "ssh": "https://portal.cloudsim.io/sshkeys/sshkey-009",
          "resources": [
            {
              "name": "simulations",
              "data": {},
              "permissions": [
                {
                  "username": "tfoote@osrfoundation.org",
                  "permissions": {
                    "readOnly": false
                  }
                },
                {
                  "username": "sasc-admins",
                  "permissions": {
                    "readOnly": false
                  }
                },
                {
                  "username": "tfoote@osrfoundation.org",
                  "permissions": {
                    "readOnly": false
                  }
                }
              ]
            },
            {
              "name": "downloads",
              "data": {
                "path": "/home/ubuntu/code/cloudsim-sim/server/keys.zip"
              },
              "permissions": [
                {
                  "username": "tfoote@osrfoundation.org",
                  "permissions": {
                    "readOnly": false
                  }
                },
                {
                  "username": "sasc-admins",
                  "permissions": {
                    "readOnly": false
                  }
                },
                {
                  "username": "tfoote@osrfoundation.org",
                  "permissions": {
                    "readOnly": false
                  }
                }
              ]
            }
          ]
        },
        "creator": "tfoote@osrfoundation.org",
        "launch_date": "2017-02-01T22:30:19.694Z",
        "termination_date": null,
        "machine_ip": "54.153.6.219",
        "machine_id": "i-0fdbdaa6432f70399",
        "id": "simulator-496"
      },
      {
        "status": "RUNNING",
        "region": "us-west-1",
        "hardware": "m4.xlarge",
        "image": "ami-fe99c49e",
        "sshkey": "sshkey-009",
        "options": {
          "role": "payload",
          "team": "gold",
          "count": 1,
          "client_route": "https://keys.cloudsim.io/tap/sasc/client/vpn-269",
          "server_ip": "52.53.192.57",
          "client_id": "payload1",
          "token": "ey...kopw",
          "ssh": "https://portal.cloudsim.io/sshkeys/sshkey-009",
          "resources": [
            {
              "name": "simulations",
              "data": {},
              "permissions": [
                {
                  "username": "tfoote@osrfoundation.org",
                  "permissions": {
                    "readOnly": false
                  }
                },
                {
                  "username": "sasc-admins",
                  "permissions": {
                    "readOnly": false
                  }
                },
                {
                  "username": "tfoote@osrfoundation.org",
                  "permissions": {
                    "readOnly": false
                  }
                }
              ]
            },
            {
              "name": "downloads",
              "data": {
                "path": "/home/ubuntu/code/cloudsim-sim/server/keys.zip"
              },
              "permissions": [
                {
                  "username": "tfoote@osrfoundation.org",
                  "permissions": {
                    "readOnly": false
                  }
                },
                {
                  "username": "sasc-admins",
                  "permissions": {
                    "readOnly": false
                  }
                },
                {
                  "username": "tfoote@osrfoundation.org",
                  "permissions": {
                    "readOnly": false
                  }
                }
              ]
            }
          ]
        },
        "creator": "tfoote@osrfoundation.org",
        "launch_date": "2017-02-01T22:30:19.695Z",
        "termination_date": null,
        "machine_ip": "52.53.207.231",
        "machine_id": "i-0e5a65ca377ede7b8",
        "id": "simulator-497"
      },
      {
        "status": "RUNNING",
        "region": "us-west-1",
        "hardware": "m4.xlarge",
        "image": "ami-fe99c49e",
        "sshkey": "sshkey-009",
        "options": {
          "role": "payload",
          "team": "gold",
          "count": 2,
          "client_route": "https://keys.cloudsim.io/tap/sasc/client/vpn-269",
          "server_ip": "52.53.192.57",
          "client_id": "payload2",
          "token": "ey...kopw",
          "ssh": "https://portal.cloudsim.io/sshkeys/sshkey-009",
          "resources": [
            {
              "name": "simulations",
              "data": {},
              "permissions": [
                {
                  "username": "tfoote@osrfoundation.org",
                  "permissions": {
                    "readOnly": false
                  }
                },
                {
                  "username": "sasc-admins",
                  "permissions": {
                    "readOnly": false
                  }
                },
                {
                  "username": "tfoote@osrfoundation.org",
                  "permissions": {
                    "readOnly": false
                  }
                }
              ]
            },
            {
              "name": "downloads",
              "data": {
                "path": "/home/ubuntu/code/cloudsim-sim/server/keys.zip"
              },
              "permissions": [
                {
                  "username": "tfoote@osrfoundation.org",
                  "permissions": {
                    "readOnly": false
                  }
                },
                {
                  "username": "sasc-admins",
                  "permissions": {
                    "readOnly": false
                  }
                },
                {
                  "username": "tfoote@osrfoundation.org",
                  "permissions": {
                    "readOnly": false
                  }
                }
              ]
            }
          ]
        },
        "creator": "tfoote@osrfoundation.org",
        "launch_date": "2017-02-01T22:30:19.705Z",
        "termination_date": null,
        "machine_ip": "54.153.124.140",
        "machine_id": "i-0a8a0c070f6f94253",
        "id": "simulator-498"
      }
    ]
  },
  "permissions": [
    {
      "username": "sasc-admins",
      "permissions": {
        "readOnly": false,
        "authority": "tfoote@osrfoundation.org"
      }
    },
    {
      "username": "tfoote@osrfoundation.org",
      "permissions": {
        "readOnly": false
      }
    }
  ]
}
osrf-migration commented 7 years ago

Original comment by Louise Poubel (Bitbucket: chapulina, GitHub: chapulina).


osrf-migration commented 7 years ago

Original comment by Louise Poubel (Bitbucket: chapulina, GitHub: chapulina).


SASC is over