Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,11 @@ weight: "3"

A user will have access to all the Zones where at least one of his or her groups has VDC resources. This access be can done through Sunstone or the CLI.

## Sunstone

{{< tabpane text=true right=false >}}
{{% tab header="**Interfaces**:" disabled=true /%}}

{{% tab header="Sunstone"%}}
In the upper right corner of the Sunstone page, users will see a globe icon next to the name of the Zone currently being used. If the user clicks on that, he or she will get a dropdown with all the accessible Zones. 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 `http://zoneb.opennebula.front-end.server:2633/RPC2`.
Expand All @@ -25,14 +28,12 @@ What’s happening behind the scenes is that the Sunstone server you are using i

{{< alert title="Warning" color="warning" >}}
Uploading Virtual Machine Images over Sunstone works only for the main Zone to which the particular Sunstone instance belongs, not with other Zones users can switch to.{{< /alert >}}
{{% /tab %}}

<a id="cli-federation-usage"></a>

## CLI

{{% tab header="CLI"%}}
Users can show and switch Zones through the command line using the [onezone](https://docs.opennebula.io/doc/{{< version >}}/cli/onezone.1.html) command. See following examples to understand the Zone management through the CLI.

```default
```bash
$ onezone list
C ID NAME ENDPOINT
* 0 OpenNebula http://localhost:2633/RPC2
Expand All @@ -41,7 +42,7 @@ C ID NAME ENDPOINT

We can see in the above command output that the user has access to Zones **OpenNebula** and **ZoneB**, and is currently using the **OpenNebula** Zone. The active Zone can be changed by `set` subcommand of [onezone](https://docs.opennebula.io/doc/{{< version >}}/cli/onezone.1.html):

```none
```bash
$ onezone set 104
Endpoint changed to "http://ultron.c12g.com:2634/RPC2" in /home/<username>/.one/one_endpoint

Expand All @@ -52,3 +53,7 @@ C ID NAME ENDPOINT
```

All the subsequent CLI commands executed would connect to the OpenNebula listening at `http://zoneb.opennebula.front-end.server:2633/RPC2`.

{{% /tab %}}

{{< /tabpane >}}