You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Current »

I see from time to time people having issues to run demo.sh on an vanilla Openstack (vOS for short) environment. Here are the steps which helped us to get demo.sh running on Ocata:

Rackspace Authentication endpoint

If the first FAIL is mentioned as "access", you might try to authenticate against Rackspace, even if you are using your own vOS instance

  • ssh into the robot_vm
  • Edit /opt/eteshare/config/integration_robot_properties.py
  • at about line 30, there is an assignment to GLOBAL_OPENSTACK_KEYSTONE_SERVER
  • change this to GLOBAL_OPENSTACK_KEYSTONE_SERVER=http://<your-controller-ip>:5000
    • be careful to use the correct scheme (the  original scheme is https, your controller might use http)
    • be careful to add the port number

Change POST data template

The Rackspage API seems to differ a bit from the vOS API as it adds a some extra fields in the returned JSON. To get the same from vOS, you need to change the template used for the token request to vOS

SSL error during run

Sometimes demo.sh fails with ssl errors. If that happens, you can add two lines in the python file to avoid this.


AAI bulk add request getting failed


Rackspace needs tenant id( or may be name and id is same hence doesn’t make a difference in Rackspace) for authentication whereas Openstack Mitaka (we are using Mitaka for Other openstack version this might not be the case ) is using the tenant name for authentication.

Because of which at the Heat Bridge step we were getting authentication error. We changed few python files to overcome this error.

  1.   robot\library\heatbridge\HeatBridge.py (adding extra parameter tenantName )

   Before :

    def init_bridge(self, openstack_identity_url, username, password, tenant, region, owner):

        self.om = OpenstackManager(openstack_identity_url, OpenstackContext(username, password, tenant, region, owner));

        self.am = AAIManager(OpenstackContext(username, password, tenant, region, owner));

  After :

           def init_bridge(self, openstack_identity_url, username, password, tenant, region, owner, tenantName):

           self.om = OpenstackManager(openstack_identity_url, OpenstackContext(username, password, tenantName, region, owner,tenantName));

           self.am = AAIManager(OpenstackContext(username, password, tenant, region, owner,tenantName));

2. robot\library\heatbridge\OpenstackContext.py (adding extra parameter tenantName )

class OpenstackContext:

    """OpenstackContext is a simple class that holds the provided information that heatbridge uses."""   

    #this holds the info of the openstack clients

    username = None;

    password = None;

    tenant = None;

    region = None;

    owner = None;

    tenantName= None;

    def __init__(self, username, password, tenant, region, owner,tenantName):

        self.username = username;

        self.password = password;

        self.tenant = tenant;

        self.region = region;

        self.owner = owner;

        self.tenantName = tenantName;

3. \robot\resources\heatbridge.robot

Init Bridge    ${openstack_identity_url}    ${user}    ${pass}    ${tenant_id}    ${region}   ${GLOBAL_AAI_CLOUD_OWNER}   ${GLOBAL_VM_PROPERTIES['openstack_tenant']}

4. /share/config/vm_properties.py

"openstack_tenant" : "<your tenant Name>",


API version Error

 \robot\library\heatbridge\OpenstackManager.py (adding api version) 

self.__neutron_client.action_prefix = "/v2.0"; 




/opt/demo.sh appc <DemoModule>

Running ./demo.sh appc DemoModule you might also end up with an error like "error KeyError: 'tenantId'". See a solution from kranthi here: ./demo.sh appc DemoModule returns an error KeyError: 'tenantId'

Running ./demo.sh appc DemoModule you might also end up with an error like "error KeyError: 'public'". See a solution from kranthi here: ./demo.sh appc DemoModule returns an error KeyError: u'public'



asdc.rar


  • No labels