Feature #4156
Use user secondary groups to schedule VMs
Status: | Closed | Start date: | 11/13/2015 | ||
---|---|---|---|---|---|
Priority: | Normal | Due date: | |||
Assignee: | Ruben S. Montero | % Done: | 90% | ||
Category: | Scheduler | ||||
Target version: | Release 5.0 | ||||
Resolution: | fixed | Pull request: |
Description
Hello,
I'm unable to shedule VM on cluster authorized by secondary groups.
- OpenNebula 4.10.2
- Share qcow2 images datastore 101 (no cluster for that datastore)
- User “foo” in primary group users (1) and in secondary group “test-group” (id 103)
- Group “test-group” (id 103) has an admin “test-group-admin” and use resources from cluster “101”
- Cluster “101” contains host 4, vnet 486 and system datastore 103
VM template:
- Use qcow2 image from datastore 101 (usable by all hosts)
Starting the VM in cloud view with network 486:
- as user “test-group-admin” => everything is OK, the VM starts and is running
- as user “foo” => sheduling is impossible with the following log
Fri Nov 13 16:26:37 2015 [Z0][VM][D]: Pending/rescheduling VM and capacity requirements: VM CPU Memory System DS Image DS ------------------------------------------------------------ 22228 50 524288 40960 DS 101: 0 Fri Nov 13 16:26:37 2015 [Z0][HOST][D]: Discovered Hosts (enabled): 2 3 4 Fri Nov 13 16:26:37 2015 [Z0][SCHED][D]: VM 22228: Host 2 filtered out. It does not fulfill SCHED_REQUIREMENTS. Fri Nov 13 16:26:37 2015 [Z0][SCHED][D]: VM 22228: Host 3 filtered out. It does not fulfill SCHED_REQUIREMENTS. Fri Nov 13 16:26:37 2015 [Z0][SCHED][D]: VM 22228: Host 4 filtered out. User is not authorized to MANAGE it. Fri Nov 13 16:26:37 2015 [Z0][SCHED][I]: Scheduling Results:
Here are some IRC logs:
<rsmontero> we only take the gid from the VM, but we could include all the groups of the owner
<rsmontero> https://github.com/OpenNebula/one/blob/master/src/scheduler/src/sched/Scheduler.cc#L547
<rsmontero> all the logic is happening around that line
Regards.
Associated revisions
feature #4156: Use secondary groups to schedule. Refactor ObjectXML
class to make use of templates
History
#1 Updated by Ruben S. Montero over 5 years ago
- Tracker changed from Request to Backlog
- Category set to Scheduler
- Target version set to Release 5.0
#2 Updated by Ruben S. Montero over 5 years ago
- Tracker changed from Backlog to Feature
#3 Updated by Ruben S. Montero over 5 years ago
- Status changed from Pending to Assigned
- Assignee set to Ruben S. Montero
- % Done changed from 0 to 90
Just needs to include tests.
#4 Updated by Ruben S. Montero over 5 years ago
- Status changed from Assigned to Closed
- Resolution set to fixed