{"action":"created","issue":{"url":"https://api.github.com/repos/QubesOS/qubes-issues/issues/3951","repository_url":"https://api.github.com/repos/QubesOS/qubes-issues","labels_url":"https://api.github.com/repos/QubesOS/qubes-issues/issues/3951/labels{/name}","comments_url":"https://api.github.com/repos/QubesOS/qubes-issues/issues/3951/comments","events_url":"https://api.github.com/repos/QubesOS/qubes-issues/issues/3951/events","html_url":"https://github.com/QubesOS/qubes-issues/issues/3951","id":328800493,"node_id":"MDU6SXNzdWUzMjg4MDA0OTM=","number":3951,"title":"qubes-core-agent /etc/qubes/post-install.d mechanism / qvm-features-request broken","user":{"login":"adrelanos","id":1985040,"node_id":"MDQ6VXNlcjE5ODUwNDA=","avatar_url":"https://avatars3.githubusercontent.com/u/1985040?v=4","gravatar_id":"","url":"https://api.github.com/users/adrelanos","html_url":"https://github.com/adrelanos","followers_url":"https://api.github.com/users/adrelanos/followers","following_url":"https://api.github.com/users/adrelanos/following{/other_user}","gists_url":"https://api.github.com/users/adrelanos/gists{/gist_id}","starred_url":"https://api.github.com/users/adrelanos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adrelanos/subscriptions","organizations_url":"https://api.github.com/users/adrelanos/orgs","repos_url":"https://api.github.com/users/adrelanos/repos","events_url":"https://api.github.com/users/adrelanos/events{/privacy}","received_events_url":"https://api.github.com/users/adrelanos/received_events","type":"User","site_admin":false},"labels":[{"id":184545373,"node_id":"MDU6TGFiZWwxODQ1NDUzNzM=","url":"https://api.github.com/repos/QubesOS/qubes-issues/labels/C:%20core","name":"C: core","color":"cccccc","default":false},{"id":259309399,"node_id":"MDU6TGFiZWwyNTkzMDkzOTk=","url":"https://api.github.com/repos/QubesOS/qubes-issues/labels/P:%20blocker","name":"P: blocker","color":"ff0000","default":false},{"id":183969431,"node_id":"MDU6TGFiZWwxODM5Njk0MzE=","url":"https://api.github.com/repos/QubesOS/qubes-issues/labels/bug","name":"bug","color":"fc2929","default":true},{"id":756561817,"node_id":"MDU6TGFiZWw3NTY1NjE4MTc=","url":"https://api.github.com/repos/QubesOS/qubes-issues/labels/r3.2-buster-cur-test","name":"r3.2-buster-cur-test","color":"ededed","default":false},{"id":499527652,"node_id":"MDU6TGFiZWw0OTk1Mjc2NTI=","url":"https://api.github.com/repos/QubesOS/qubes-issues/labels/r3.2-fc25-cur-test","name":"r3.2-fc25-cur-test","color":"ededed","default":false},{"id":706758851,"node_id":"MDU6TGFiZWw3MDY3NTg4NTE=","url":"https://api.github.com/repos/QubesOS/qubes-issues/labels/r3.2-fc26-cur-test","name":"r3.2-fc26-cur-test","color":"ededed","default":false},{"id":942718902,"node_id":"MDU6TGFiZWw5NDI3MTg5MDI=","url":"https://api.github.com/repos/QubesOS/qubes-issues/labels/r3.2-fc27-cur-test","name":"r3.2-fc27-cur-test","color":"ededed","default":false},{"id":942719007,"node_id":"MDU6TGFiZWw5NDI3MTkwMDc=","url":"https://api.github.com/repos/QubesOS/qubes-issues/labels/r3.2-fc28-cur-test","name":"r3.2-fc28-cur-test","color":"ededed","default":false},{"id":402387501,"node_id":"MDU6TGFiZWw0MDIzODc1MDE=","url":"https://api.github.com/repos/QubesOS/qubes-issues/labels/r3.2-jessie-cur-test","name":"r3.2-jessie-cur-test","color":"ededed","default":false},{"id":864752196,"node_id":"MDU6TGFiZWw4NjQ3NTIxOTY=","url":"https://api.github.com/repos/QubesOS/qubes-issues/labels/r4.0-buster-stable","name":"r4.0-buster-stable","color":"ededed","default":false},{"id":735280442,"node_id":"MDU6TGFiZWw3MzUyODA0NDI=","url":"https://api.github.com/repos/QubesOS/qubes-issues/labels/r4.0-centos7-stable","name":"r4.0-centos7-stable","color":"ededed","default":false},{"id":735282413,"node_id":"MDU6TGFiZWw3MzUyODI0MTM=","url":"https://api.github.com/repos/QubesOS/qubes-issues/labels/r4.0-fc26-stable","name":"r4.0-fc26-stable","color":"ededed","default":false},{"id":962942989,"node_id":"MDU6TGFiZWw5NjI5NDI5ODk=","url":"https://api.github.com/repos/QubesOS/qubes-issues/labels/r4.0-fc27-stable","name":"r4.0-fc27-stable","color":"ededed","default":false},{"id":962943378,"node_id":"MDU6TGFiZWw5NjI5NDMzNzg=","url":"https://api.github.com/repos/QubesOS/qubes-issues/labels/r4.0-fc28-stable","name":"r4.0-fc28-stable","color":"ededed","default":false},{"id":681753769,"node_id":"MDU6TGFiZWw2ODE3NTM3Njk=","url":"https://api.github.com/repos/QubesOS/qubes-issues/labels/r4.0-jessie-stable","name":"r4.0-jessie-stable","color":"ededed","default":false},{"id":681753812,"node_id":"MDU6TGFiZWw2ODE3NTM4MTI=","url":"https://api.github.com/repos/QubesOS/qubes-issues/labels/r4.0-stretch-stable","name":"r4.0-stretch-stable","color":"ededed","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/QubesOS/qubes-issues/milestones/25","html_url":"https://github.com/QubesOS/qubes-issues/milestone/25","labels_url":"https://api.github.com/repos/QubesOS/qubes-issues/milestones/25/labels","id":3158501,"node_id":"MDk6TWlsZXN0b25lMzE1ODUwMQ==","number":25,"title":"Release 4.0 updates","description":"","creator":{"login":"marmarek","id":726704,"node_id":"MDQ6VXNlcjcyNjcwNA==","avatar_url":"https://avatars1.githubusercontent.com/u/726704?v=4","gravatar_id":"","url":"https://api.github.com/users/marmarek","html_url":"https://github.com/marmarek","followers_url":"https://api.github.com/users/marmarek/followers","following_url":"https://api.github.com/users/marmarek/following{/other_user}","gists_url":"https://api.github.com/users/marmarek/gists{/gist_id}","starred_url":"https://api.github.com/users/marmarek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marmarek/subscriptions","organizations_url":"https://api.github.com/users/marmarek/orgs","repos_url":"https://api.github.com/users/marmarek/repos","events_url":"https://api.github.com/users/marmarek/events{/privacy}","received_events_url":"https://api.github.com/users/marmarek/received_events","type":"User","site_admin":false},"open_issues":246,"closed_issues":113,"state":"open","created_at":"2018-03-03T19:22:44Z","updated_at":"2018-07-18T01:07:26Z","due_on":null,"closed_at":null},"comments":13,"created_at":"2018-06-03T05:20:15Z","updated_at":"2018-07-18T16:14:55Z","closed_at":"2018-06-13T23:43:20Z","author_association":"MEMBER","body":"### Qubes OS version:\r\nR4\r\n\r\n### Affected component(s): \r\nall templates\r\n\r\n### Steps to reproduce the behavior:\r\nUpgrade qubes core agent.\r\n\r\nWhen qubesdb is being upgraded (i.e. not running) and at the same time https://github.com/QubesOS/qubes-core-agent-linux/blob/master/qubes-rpc/qubes.PostInstall is processing a ` /etc/qubes/post-install.d/` trigger, \r\n\r\n### Expected behavior:\r\nFunctional.\r\n\r\n### Actual behavior:\r\n\r\nFor example `qvm-features-request whonix-ws=1` won't work, because qubesdb not running.\r\n\r\nOther things from https://github.com/QubesOS/qubes-core-agent-linux/tree/master/post-install.d will also not work.\r\n\r\n```\r\nLeaving 'diversion of /etc/init/tty.conf to /etc/init/tty.conf.qubes-disabled by qubes-core-agent'\r\nLeaving 'diversion of /etc/init/serial.conf to /etc/init/serial.conf.qubes-orig by qubes-core-agent'\r\nNo such key 'auto-update-type' in schema 'org.gnome.settings-daemon.plugins.updates' as specified in override file '/usr/share/glib-2.0/schemas/20_org.gnome.settings-daemon.plugins.updates.qubes.gschema.override'; ignoring override for this key.\r\nFailed connect to local daemon\r\nTraceback (most recent call last):\r\n  File \"/usr/bin/qvm-features-request\", line 81, in <module>\r\n    sys.exit(main())\r\n  File \"/usr/bin/qvm-features-request\", line 70, in main\r\n    qdb = qubesdb.QubesDB()\r\nqubesdb.Error: (2, 'No such file or directory')\r\nTraceback (most recent call last):\r\n  File \"/usr/bin/qvm-features-request\", line 81, in <module>\r\n    sys.exit(main())\r\n  File \"/usr/bin/qvm-features-request\", line 70, in main\r\n    qdb = qubesdb.QubesDB()\r\nqubesdb.Error: (2, 'No such file or directory')\r\nTraceback (most recent call last):\r\n  File \"/usr/bin/qvm-features-request\", line 81, in <module>\r\n    sys.exit(main())\r\n  File \"/usr/bin/qvm-features-request\", line 70, in main\r\n    qdb = qubesdb.QubesDB()\r\nqubesdb.Error: (2, 'No such file or directory')\r\nTraceback (most recent call last):\r\n  File \"/usr/bin/qvm-features-request\", line 81, in <module>\r\n    sys.exit(main())\r\n  File \"/usr/bin/qvm-features-request\", line 70, in main\r\n    qdb = qubesdb.QubesDB()\r\nqubesdb.Error: (2, 'No such file or directory')\r\nSetting up qubes-core-agent-networking (4.0.28-1+deb8u1) ...\r\n```\r\n\r\n### General notes:\r\n\r\nI think the current /etc/qubes/post-install.d implementation is fragile.\r\n\r\n### Related issues:\r\n\r\nAffects Whonix `anon-vm` tag implementation.\r\n\r\nhttps://www.whonix.org/wiki/Dev/Qubes#anon-vm_tag\r\n\r\nhttps://github.com/QubesOS/qubes-issues/issues/3765\r\nhttps://github.com/QubesOS/qubes-issues/issues/3595"},"comment":{"url":"https://api.github.com/repos/QubesOS/qubes-issues/issues/comments/405988790","html_url":"https://github.com/QubesOS/qubes-issues/issues/3951#issuecomment-405988790","issue_url":"https://api.github.com/repos/QubesOS/qubes-issues/issues/3951","id":405988790,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNTk4ODc5MA==","user":{"login":"qubesos-bot","id":24401983,"node_id":"MDQ6VXNlcjI0NDAxOTgz","avatar_url":"https://avatars3.githubusercontent.com/u/24401983?v=4","gravatar_id":"","url":"https://api.github.com/users/qubesos-bot","html_url":"https://github.com/qubesos-bot","followers_url":"https://api.github.com/users/qubesos-bot/followers","following_url":"https://api.github.com/users/qubesos-bot/following{/other_user}","gists_url":"https://api.github.com/users/qubesos-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/qubesos-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qubesos-bot/subscriptions","organizations_url":"https://api.github.com/users/qubesos-bot/orgs","repos_url":"https://api.github.com/users/qubesos-bot/repos","events_url":"https://api.github.com/users/qubesos-bot/events{/privacy}","received_events_url":"https://api.github.com/users/qubesos-bot/received_events","type":"User","site_admin":false},"created_at":"2018-07-18T16:14:55Z","updated_at":"2018-07-18T16:14:55Z","author_association":"NONE","body":"**Automated announcement from [builder-github]**\n\nThe package `qubes-core-agent_3.2.31-1+deb9u1` has been pushed to the `r3.2` testing repository for the Debian template.\nTo test this update, first enable the testing repository in `/etc/apt/sources.list.d/qubes-*.list` by uncommenting the line containing `stretch-testing` (or appropriate equivalent for your template version), then use the standard update command:\n```\nsudo apt-get update && sudo apt-get dist-upgrade\n```\n[Changes included in this update][commits]\n\n[builder-github]: https://github.com/QubesOS/qubes-builder-github\n[commits]: https://github.com/QubesOS/qubes-core-agent-linux/compare/096a18fc964bb89ede8e639af16bf8f6177fbd21...7e0895e2a45d1c6923ce19674efe4ca8bab96267\n"}}
{"actor":{"display_login":"qubesos-bot"}}