{"action":"created","issue":{"url":"https://api.github.com/repos/ganto/copr-lxc3/issues/11","repository_url":"https://api.github.com/repos/ganto/copr-lxc3","labels_url":"https://api.github.com/repos/ganto/copr-lxc3/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/ganto/copr-lxc3/issues/11/comments","events_url":"https://api.github.com/repos/ganto/copr-lxc3/issues/11/events","html_url":"https://github.com/ganto/copr-lxc3/issues/11","id":386440797,"node_id":"MDU6SXNzdWUzODY0NDA3OTc=","number":11,"title":"lxd-3.6-0.1 test fails with: container_test.go:55 \"NOT NULL constraint failed: profiles.project_id\"","user":{"login":"ganto","id":1031031,"node_id":"MDQ6VXNlcjEwMzEwMzE=","avatar_url":"https://avatars2.githubusercontent.com/u/1031031?v=4","gravatar_id":"","url":"https://api.github.com/users/ganto","html_url":"https://github.com/ganto","followers_url":"https://api.github.com/users/ganto/followers","following_url":"https://api.github.com/users/ganto/following{/other_user}","gists_url":"https://api.github.com/users/ganto/gists{/gist_id}","starred_url":"https://api.github.com/users/ganto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ganto/subscriptions","organizations_url":"https://api.github.com/users/ganto/orgs","repos_url":"https://api.github.com/users/ganto/repos","events_url":"https://api.github.com/users/ganto/events{/privacy}","received_events_url":"https://api.github.com/users/ganto/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-12-01T09:16:28Z","updated_at":"2018-12-25T20:59:16Z","closed_at":null,"author_association":"OWNER","body":"When building `lxd.spec` with release 3.6, the go test of `github.com/lxc/lxd/lxd` aborts with:\r\n```\r\nExecuting(%check): /bin/sh -e /var/tmp/rpm-tmp.R1L9ov\r\n+ umask 022\r\n+ cd /builddir/build/BUILD\r\n+ cd lxd-3.7\r\n+ export GOPATH=/builddir/build/BUILDROOT/lxd-3.6-0.1.fc28.x86_64//usr/share/gocode:/usr/share/gocode\r\n+ GOPATH=/builddir/build/BUILDROOT/lxd-3.6-0.1.fc28.x86_64//usr/share/gocode:/usr/share/gocode\r\n+ unset LXD_SOCKET\r\n+ export CGO_CPPFLAGS=-I/builddir/build/BUILDROOT/lxd-3.6-0.1.fc28.x86_64/usr/include/lxd/\r\n+ CGO_CPPFLAGS=-I/builddir/build/BUILDROOT/lxd-3.6-0.1.fc28.x86_64/usr/include/lxd/\r\n+ export CGO_LDFLAGS=-L/builddir/build/BUILDROOT/lxd-3.6-0.1.fc28.x86_64/usr/lib64/lxd/\r\n+ CGO_LDFLAGS=-L/builddir/build/BUILDROOT/lxd-3.6-0.1.fc28.x86_64/usr/lib64/lxd/\r\n+ export LD_LIBRARY_PATH=/builddir/build/BUILDROOT/lxd-3.6-0.1.fc28.x86_64/usr/lib64/lxd/\r\n+ LD_LIBRARY_PATH=/builddir/build/BUILDROOT/lxd-3.6-0.1.fc28.x86_64/usr/lib64/lxd/\r\n+ go test -buildmode pie -compiler gc -v -tags=libsqlite3 -ldflags ' -extldflags '\\''-Wl,-z,relro  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld '\\''' github.com/lxc/lxd/lxc\r\n[...]\r\nok      github.com/lxc/lxd/lxc  0.031s\r\n+ go test -buildmode pie -compiler gc -v -tags=libsqlite3 -ldflags ' -extldflags '\\''-Wl,-z,relro  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld '\\''' github.com/lxc/lxd/lxd\r\n[...]\r\n=== RUN   TestContainerTestSuite/TestContainer_findIdmap_mixed\r\n=== RUN   TestContainerTestSuite/TestContainer_findIdmap_raw\r\n--- FAIL: TestContainerTestSuite (1.28s)\r\n    --- PASS: TestContainerTestSuite/TestContainer_IsPrivileged_Privileged (0.08s)\r\n    --- PASS: TestContainerTestSuite/TestContainer_IsPrivileged_Unprivileged (0.06s)\r\n    --- PASS: TestContainerTestSuite/TestContainer_LoadFromDB (0.09s)\r\n    --- PASS: TestContainerTestSuite/TestContainer_LogPath (0.07s)\r\n    --- PASS: TestContainerTestSuite/TestContainer_Path_Regular (0.07s)\r\n    --- PASS: TestContainerTestSuite/TestContainer_Path_Snapshot (0.06s)\r\n    --- PASS: TestContainerTestSuite/TestContainer_ProfilesDefault (0.07s)\r\n    --- FAIL: TestContainerTestSuite/TestContainer_ProfilesMulti (0.04s)\r\n        require.go:765:\r\n                        Error Trace:    container_test.go:55\r\n                        Error:          Expected nil, but got: Failed to create profile: NOT NULL constraint failed: profiles.project_id\r\n                        Test:           TestContainerTestSuite/TestContainer_ProfilesMulti\r\n                        Messages:       Failed to create the unprivileged profile.\r\n    --- PASS: TestContainerTestSuite/TestContainer_ProfilesOverwriteDefaultNic (0.08s)\r\n    --- PASS: TestContainerTestSuite/TestContainer_Rename (0.08s)\r\n    --- PASS: TestContainerTestSuite/TestContainer_findIdmap_isolated (0.11s)\r\n    --- PASS: TestContainerTestSuite/TestContainer_findIdmap_maxed (0.28s)\r\n    --- PASS: TestContainerTestSuite/TestContainer_findIdmap_mixed (0.11s)\r\n    --- PASS: TestContainerTestSuite/TestContainer_findIdmap_raw (0.07s)\r\n[...]\r\nFAIL\r\nFAIL    github.com/lxc/lxd/lxd  30.574s\r\nBUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.R1L9ov (%check)\r\nBUILDSTDERR:     Bad exit status from /var/tmp/rpm-tmp.R1L9ov (%check)\r\n```\r\nThe build system is a Fedora 28 with `golang-1.10.5-1.fc28.x86_64`. Same issue happens with `lxd-3.7` release."},"comment":{"url":"https://api.github.com/repos/ganto/copr-lxc3/issues/comments/449873483","html_url":"https://github.com/ganto/copr-lxc3/issues/11#issuecomment-449873483","issue_url":"https://api.github.com/repos/ganto/copr-lxc3/issues/11","id":449873483,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0OTg3MzQ4Mw==","user":{"login":"ganto","id":1031031,"node_id":"MDQ6VXNlcjEwMzEwMzE=","avatar_url":"https://avatars2.githubusercontent.com/u/1031031?v=4","gravatar_id":"","url":"https://api.github.com/users/ganto","html_url":"https://github.com/ganto","followers_url":"https://api.github.com/users/ganto/followers","following_url":"https://api.github.com/users/ganto/following{/other_user}","gists_url":"https://api.github.com/users/ganto/gists{/gist_id}","starred_url":"https://api.github.com/users/ganto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ganto/subscriptions","organizations_url":"https://api.github.com/users/ganto/orgs","repos_url":"https://api.github.com/users/ganto/repos","events_url":"https://api.github.com/users/ganto/events{/privacy}","received_events_url":"https://api.github.com/users/ganto/received_events","type":"User","site_admin":false},"created_at":"2018-12-25T20:59:16Z","updated_at":"2018-12-25T20:59:16Z","author_association":"OWNER","body":"Reported my struggling upstream in lxc/lxd#5380. Let's see if someone has an idea what's going wrong here."}}
{"actor":{"display_login":"ganto"}}