Giter Site home page Giter Site logo

Comments (9)

kmurudi avatar kmurudi commented on June 8, 2024

corrected typo and a task with - #53

from openshift-ops-workshops.

thoraxe avatar thoraxe commented on June 8, 2024

Is this still an issue @kmurudi @dmesser ?

from openshift-ops-workshops.

dmesser avatar dmesser commented on June 8, 2024

Can't verify because I am running into #62

from openshift-ops-workshops.

kmurudi avatar kmurudi commented on June 8, 2024

Worked for me in earlier deployment, but will have to check for #62 now first

from openshift-ops-workshops.

dmesser avatar dmesser commented on June 8, 2024

Fails for me with the following:

TASK [Checking if all the groups have been created by 'oc adm groups sync'] *****************************************************************************************************************
Friday 04 August 2017  06:49:07 -0400 (0:00:00.565)       0:00:00.657 *********
failed: [master.internal.aws.testdrive.openshift.com] (item=ose-user) => {
    "changed": true,
    "cmd": [
        "oc",
        "get",
        "group",
        "ose-user"
    ],
    "delta": "0:00:00.216769",
    "end": "2017-08-04 06:49:08.254813",
    "failed": true,
    "item": "ose-user",
    "rc": 1,
    "start": "2017-08-04 06:49:08.038044"
}

STDERR:

Error from server (Forbidden): User "teamuser1" cannot get groups at the cluster scope

failed: [master.internal.aws.testdrive.openshift.com] (item=ose-normal-dev) => {
    "changed": true,
    "cmd": [
        "oc",
        "get",
        "group",
        "ose-normal-dev"
    ],
    "delta": "0:00:00.209247",
    "end": "2017-08-04 06:49:08.612416",
    "failed": true,
    "item": "ose-normal-dev",
    "rc": 1,
    "start": "2017-08-04 06:49:08.403169"
}

STDERR:

Error from server (Forbidden): User "teamuser1" cannot get groups at the cluster scope

failed: [master.internal.aws.testdrive.openshift.com] (item=ose-fancy-dev) => {
    "changed": true,
    "cmd": [
        "oc",
        "get",
        "group",
        "ose-fancy-dev"
    ],
    "delta": "0:00:00.206244",
    "end": "2017-08-04 06:49:08.971087",
    "failed": true,
    "item": "ose-fancy-dev",
    "rc": 1,
    "start": "2017-08-04 06:49:08.764843"
}

STDERR:

Error from server (Forbidden): User "teamuser1" cannot get groups at the cluster scope

failed: [master.internal.aws.testdrive.openshift.com] (item=ose-teamed-app) => {
    "changed": true,
    "cmd": [
        "oc",
        "get",
        "group",
        "ose-teamed-app"
    ],
    "delta": "0:00:00.206438",
    "end": "2017-08-04 06:49:09.326905",
    "failed": true,
    "item": "ose-teamed-app",
    "rc": 1,
    "start": "2017-08-04 06:49:09.120467"
}

STDERR:

Error from server (Forbidden): User "teamuser1" cannot get groups at the cluster scope

from openshift-ops-workshops.

thoraxe avatar thoraxe commented on June 8, 2024

This is a common problem when using Ansible to automate/test OpenShift. We forget to choose the right OpenShift user and assume we are running the right one! Looks like you were not a cluster admin.

Kshitija should add a task at the beginning of the play that does a oc login -u system:admin to become the cluster administrator before performing these tests.

from openshift-ops-workshops.

thoraxe avatar thoraxe commented on June 8, 2024

Temporary fix for you @dmesser is to perform that yourself before launching Ansible.

from openshift-ops-workshops.

kmurudi avatar kmurudi commented on June 8, 2024

@thoraxe @dmesser in the automation script - I have assigned role of 'cluster_admin' to group - ose-normal-dev so, teamuser1.2 were able to access all the projects and do the verif tests

from openshift-ops-workshops.

thoraxe avatar thoraxe commented on June 8, 2024

Dunno what fixed this but It's no longer a problem.

from openshift-ops-workshops.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.