I created user glance on compute nodes:
glance:x:161:161:OpenStack Glance Daemons:/var/lib/glance:/sbin/nologin
Then I've added nova user to glance group: $ groups nova nova : nova nobody qemu glance
And I'm still getting same permission error in the compute log: 2013-12-30 16:39:55.117 10058 TRACE nova.image.glance Command: cp /gpfs/images/f7164998-3fb7-4175-ab08-88ba90f666af /var/lib/nova/instances/_base/ab788f9cda6df158f429306ee2b467e54e6dd604.part 2013-12-30 16:39:55.117 10058 TRACE nova.image.glance Exit code: 1 2013-12-30 16:39:55.117 10058 TRACE nova.image.glance Stdout: '' 2013-12-30 16:39:55.117 10058 TRACE nova.image.glance Stderr: "cp: cannot open `/gpfs/images/f7164998-3fb7-4175-ab08-88ba90f666af' for reading: Permission denied\n"
I logged in as nova user and tried to execute failing command - it works! Seems like that command is executed on behalf of another user, not nova...
I created user glance on compute nodes:
glance: x:161:161: OpenStack Glance Daemons: /var/lib/ glance: /sbin/nologin
Then I've added nova user to glance group:
$ groups nova
nova : nova nobody qemu glance
And I'm still getting same permission error in the compute log: f7164998- 3fb7-4175- ab08-88ba90f666 af /var/lib/ nova/instances/ _base/ab788f9cd a6df158f429306e e2b467e54e6dd60 4.part images/ f7164998- 3fb7-4175- ab08-88ba90f666 af' for reading: Permission denied\n"
2013-12-30 16:39:55.117 10058 TRACE nova.image.glance Command: cp /gpfs/images/
2013-12-30 16:39:55.117 10058 TRACE nova.image.glance Exit code: 1
2013-12-30 16:39:55.117 10058 TRACE nova.image.glance Stdout: ''
2013-12-30 16:39:55.117 10058 TRACE nova.image.glance Stderr: "cp: cannot open `/gpfs/
I logged in as nova user and tried to execute failing command - it works!
Seems like that command is executed on behalf of another user, not nova...