OpenNebula Federation Usage¶
A user will have access to all the Zones where at least one of her groups has VDC resources in. This access be can done through Sunstone or the CLI.
Using a Zone Through Sunstone¶
In the upper right corner of the Sunstone page, users will see a globe icon next to the name of the Zone you are currently using. If the user clicks on that, she will get a dropdown with all the Zones she has access to. Clicking on any of the Zones in the dropdown will get the user to that Zone.
What’s happening behind the scenes is that the Sunstone server you are using is redirecting its requests to the OpenNebula oned process present in the other Zone. In the example above, if the user clicks on ZoneB, Sunstone contacts the OpenNebula listening at
Uploading an image functionality is limited to the zone where the Sunstone instance the user is connecting to, even if it can switch to other federated zones.
Using a Zone Through CLI¶
Users can switch Zones through the command line using the onezone command. The following session can be examined to understand the Zone management through the CLI.
onezone list C ID NAME ENDPOINT * 0 OpenNebula http://localhost:2633/RPC2 104 ZoneB http://ultron.c12g.com:2634/RPC2
We can see in the above command output that the user has access to both “OpenNebula” and “ZoneB”, and it is currently in the “OpenNebula” Zone. The active Zone can be changed using the ‘set’ command of onezone:
$ onezone set 104 Endpoint changed to "http://ultron.c12g.com:2634/RPC2" in /home/<username>/.one/one_endpoint $ onezone list C ID NAME ENDPOINT 0 OpenNebula http://localhost:2633/RPC2 * 104 ZoneB http://ultron.c12g.com:2634/RPC2
All the subsequent CLI commands executed would connect to the OpenNebula listening at