bundle stream permissions problem

Bug #1298607 reported by Anders Roxell
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
LAVA Server
Fix Released
High
Neil Williams

Bug Description

this is the failing lava submission:
https://ci.linaro.org/jenkins/job/post-build-lava/18563/console

However, if I change the:
"stream": "/public/team/linaro/ci-linux-lng/",
to this:
"stream": "/anonymous/aroxell/",

it works

Anders Roxell (aroxell)
description: updated
Changed in lava-project:
assignee: nobody → Neil Williams (codehelp)
importance: Undecided → High
status: New → Confirmed
Neil Williams (codehelp)
affects: lava-project → lava-server
Neil Williams (codehelp)
Changed in lava-server:
status: Confirmed → Incomplete
Revision history for this message
Neil Williams (codehelp) wrote :

I cannot reproduce this. I've tried:
* localhost - packaging branch
* playground.validation.linaro.org - tip
* unit tests

In each case, submitting as a user who is a member of a group which owns a public but not anonymous bundle stream works and the jobs run.

http://playground.validation.linaro.org/scheduler/job/1661

http://playground.validation.linaro.org/dashboard/streams/public/team/example/example/bundles/f396e88fc563e81ca52e675a77b81a361210c089/

Revision history for this message
Anders Roxell (aroxell) wrote :
Download full text (3.2 KiB)

You need to use this specific bundle stream, this fails from the CI-job post-build-lava, from the command line "lava scheduler submit-job..." and from the web interface.

I've tried to change the bundle stream to "/anonymous/aroxell/" and then it works fine, see link: https://validation.linaro.org/scheduler/job/118762/multinode_definition

see the definition I used when It didn't work:

{
    "timeout": 800,
    "job_name": "https://ci.linaro.org/jenkins/job/lng-multinode/39/",
    "logging_level": "INFO",
    "device_group": [
        {
            "role": "client",
            "count": 1,
            "device_type": "lng-keystone"
        },
        {
            "role": "server",
            "count": 1,
            "device_type": "lng-x86"
        }
    ],
    "actions": [
        {
            "command": "deploy_linaro_kernel",
            "parameters": {
                "bootloadertype": "ipxe",
                "kernel": "http://snapshots.linaro.org/openembedded/pre-built/lng-x86-64/latest/bzImage--3.10+git0+9ce234e1ee-r0-lng-x86-64-20140320094403.bin",
                "ramdisk": "http://snapshots.linaro.org/openembedded/images/lng-x86-gcc-4.8/latest/linaro-image-lng-qemux86-20140325-37.rootfs.cpio.gz",
                "role": "server"
            }
        },
        {
            "command": "deploy_linaro_kernel",
            "metadata": {
                "multinode.build": "39",
                "hwpack.build": "122",
                "hwpack.endian": "le",
                "linux.hash": "c406f28"
            },
            "parameters": {
                "dtb": "https://snapshots.linaro.org/kernel-hwpack/linux-lng-keystone2/122/keystone2-evm.dtb",
                "firmware": "http://community.validation.linaro.org/images/keystone/skern-keystone-evm.bin",
                "kernel": "https://snapshots.linaro.org/kernel-hwpack/linux-lng-keystone2/122/uImage-keystone2",
                "nfsrootfs": "http://snapshots.linaro.org/openembedded/images/lng-armv7a-gcc-4.8/239/linaro-image-lng-genericarmv7a-20140325-239.rootfs.tar.gz",
                "role": "client"
            }
        },
        {
            "command": "lava_test_shell",
            "parameters": {
                "testdef_repos": [
                    {
                        "git-repo": "git://git.linaro.org/qa/test-definitions.git",
                        "testdef": "openembedded/netperf-client-multinode.yaml"
                    }
                ],
                "timeout": 1800,
                "role": "client"
            }
        },
        {
            "command": "lava_test_shell",
            "parameters": {
                "testdef_repos": [
                    {
                        "git-repo": "git://git.linaro.org/qa/test-definitions.git",
                        "testdef": "openembedded/netperf-server-multinode.yaml"
                    }
                ],
                "timeout": 1800,
                "role": "server"
            }
        },
        {
            "command": "submit_results_on_host",
            "parameters": {
                "server": "http://validation.linaro.org/RPC2/",
                "stream": "/public/team/linaro/ci-linux-lng/"...

Read more...

Revision history for this message
Neil Williams (codehelp) wrote :

There's nothing special about that bundle stream, it is just a public bundle stream owned by a group. There are eight other public/team streams owned by the same group and lots of others owned by various groups.

If it's not working for a particular user, one thing which can go wrong is that the user has not ticked the group access when logging in with Launchpad. Check the My Profile page and ensure you are in the linaro group. Beyond that, it would be down to how the linaro-lava-access group is configured on Launchpad.

As far as I can test at the moment, this is not a bug in LAVA - it could be an error during login or a problem in the Launchpad groups.

Revision history for this message
Tyler Baker (tyler-baker) wrote :
Changed in lava-server:
status: Incomplete → Fix Committed
Changed in lava-server:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.