Software Defined Networking
1826775 Members
1487 Online
109702 Solutions
New Discussion

How to create a region?

 
ameconi
Occasional Contributor

How to create a region?

Hello.

I'm moving first steps with SDN controller using virtual machines. I have created a team with three hosts (without license) and now I want to create a region. The Admin Guide shows how but these commands do not work on my lab?

Where I can find more examples?

Thanks. Regards.

Andrea

 

7 REPLIES 7
J-Padinhakara
Visitor

Re: How to create a region?

Chapter 5 of the Admin guide provides the REST invocation illustration using CURL command to "create a region".

 

Did you try using the same method?. What kind of error are you getting.

 

An example to create a  simple one-device, one-slave region with a master is provided for reference:

 

{
"region": {
      "master": {
                            "ip": "15.146.194.78",
                             "name": "Controller_1"
                         },
"slaves": [
                      {
                         "ip": "15.146.194.38",
                         "name": "Controller_2"
                      }
                 ],
"devices": [
                        {
                             "ip": "10.250.100.8"
                       }
                  ]
           }
}

 

In the curl command, you may need to prefix each of the above words with a "\" as a escape character to pass through the command line, but otherwise the syntax is more or less same.

 

You may want to double check the syntax? Better still if you post across the error ( snapshot, dump etc) over here,  we can probably get closer to a solution to the problem you are facing..

Javed Padinhakara
ameconi
Occasional Contributor

Re: How to create a region?

Hello Javed.

Yes, I'm using the same method. Simply, copy the command from the guide, change IPs and names and paste.

Attached you can find it.

I believe I'm wrong with curl syntax! Too many "\"!

Regards.

Andrea

vandewilly
Advisor

Re: How to create a region?

I think your curls syntax is wrong. Take a look in the shell script (in attachment) that I made to help you.

 

Regards.

ameconi
Occasional Contributor

Re: How to create a region?

Many many thanks for your help.

I need to insert some new commands to show token and team configuration because the script terminates with this message

 

{"error":"java.lang.IllegalArgumentException","message":"No controller is configured in the team with the specified IP, cannot configure region."}

 

Team seems to be ok.

 

{"team":{"name":"MyTeam","ip":"192.168.0.100","version":"1389611134065","systems":[{"name":"ctrl-1","ip":"192.168.0.1","priority":10},{"name":"ctrl-2","ip":"192.168.0.2","priority":20},{"name":"ctrl-3","ip":"192.168.0.3","priority":30}]}}

 

I'm going to investigate.

Thanks.

Regards.

Andrea

raullima
New Member

Re: How to create a region?

Hello, I am experiencing some similar problems.

I've successfully created my Team with 3 controllers, but when I try to create a Region with at least one controller as a Slave I get this error message: 

 

{
"error": "java.lang.IllegalArgumentException",
"message": "No controller is configured in the team with the specified IP, cannot configure region."
}

 

Here is the JSON that I posted:

 

{
"region": {
"master": {
"ip": "192.168.1.147",
"name": "ctrl-3"
},
"slaves": [
{
"ip": "192.168.1.145",
"name": "ctrl-1"
},
{
"ip": "192.168.1.146",
"name": "ctrl-2"
}
],
"devices": [
{
"ip": "192.168.1.2"
}
]
}
}

 

If I post the same JSON with a blank Array as Slaves, as below, it creates a Region without any errors.

 

{
"region": {
"master": {
"ip": "192.168.1.147",
"name": "ctrl-3"
},
"slaves": [

],
"devices": [
{
"ip": "192.168.1.2"
}
]
}
}

 

Keep in mind that in my case the Controllers IPs were: 192.168.1.145, 192.168.1.146 and 192.168.1.147.

 

Any thoughts?

 

Thanks in advance.

ameconi
Occasional Contributor

Re: How to create a region?

Hello.

I don't have any update for this issue.

Regards.

Andrea

sdnindia
Trusted Contributor

Re: How to create a region?

Hello raullima,

 

Apologies for the delay.

Please let us know if your problem is solved or you still facing some issue.


If you have more questions on the same topic please do reply on the same thread or open a new post if new topic.

 

Thanks,
HP SDN Team