Ask Your Question

Subeesh KK's profile - activity

2019-06-19 03:55:22 -0500 received badge  Notable Question (source)
2019-06-19 03:55:22 -0500 received badge  Popular Question (source)
2019-04-09 10:57:33 -0500 received badge  Popular Question (source)
2019-04-02 12:25:11 -0500 received badge  Student (source)
2019-04-02 12:17:41 -0500 received badge  Famous Question (source)
2019-03-11 08:37:57 -0500 asked a question Networking problem for Openstack installed inside an instance

Hi,

I have an openstack cloud set up which is up and running. It has an external network publicnet1 configured which is routable. Now, I have spawned an instance and installed openstack in this new instance using devstack (An openstack instance inside the new instance). I can configure internal networks in this new openstack.

Can I use the existing network (publicnet1) configured in the parent cloud and reserve some IP addresses for this instance and use it for all the instances which I am spinning out of this new cloud ? Or can I associate some floating IPs from this publicnet1 network to the instances which will be newly created from the new openstack instance ?

Basically, I dont have a new network range, I need to use the existing network (publicnet1) and use it in the new cloud?

Any guidance please.

Subeesh

2019-02-13 06:57:50 -0500 asked a question Tacker Integration in Openstack

I have an Openstack already installed and running fine. I wanted an orchestration tool to execute TOSCA template and came to know that Openstack Tacker is a good one. Please help me answer below queries on this:

  1. How to integrate Tacker in the already installed Openstack? The current openstack is not installed via Devstack.

  2. I have access to Openstack CLI through which I execute stack create commands and all. Can I install Tacker on this CLI?

  3. Is there any other recommended tools which I can install/integrate to Openstack and execute TOSCA template?

Any help on this would be helpful for me.

Thanks, Subeesh

2019-01-30 00:17:40 -0500 commented answer Adding dynamic network interfaces using HEAT template

Sure. Please check here : https://ask.openstack.org/en/question/119293/circulardependencyexception-accessing-a-property-within-the-resource/

2019-01-30 00:14:35 -0500 received badge  Notable Question (source)
2019-01-24 05:41:42 -0500 asked a question CircularDependencyException - Accessing a property within the resource

Hi all -

I wanted to access a property within the same resource.

extServer:
    type: OS::Nova::Server
    properties:
        image: { get_param: image }
        flavor: { get_param: flavor }
        name:  { get_param: [ vmNames, get_param: index ] }
        networks:         
            repeat:
                for_each:
                    <%port%>: { get_param: allnetworks }
                template:
                    network: <%port%>

      user_data_format: RAW
        user_data_update_policy: IGNORE
        user_data:
            str_replace:
                params:
                    $IPADDRESSES: { get_attr: [extServer, networks] }

I wanted to retrieve the IP address assigned to each network and I am trying to get it via get_attr like above. This throws the circular dependency error.

I know it is possible to get it from the outputs section. But, is there any way to get the networks assigned from within the same resource? Will "addresses" property help within the resource/server ? Or I can only access it from outside that resource?

please help

Thank You, Subeesh

2019-01-24 03:19:39 -0500 received badge  Enthusiast
2019-01-23 09:41:53 -0500 received badge  Editor (source)
2019-01-23 09:12:10 -0500 commented answer Adding dynamic network interfaces using HEAT template

One more question please: If I dynamically create networks, how to assign these IPs to separate stack output variables? Can I use any loop in the "outputs" section, so that I can assign int1 = <ip1>, int2=<ip2> etc.Basically I wanted to get what IP is assigned to what interface from stack output.

2019-01-23 03:06:33 -0500 received badge  Scholar (source)
2019-01-23 03:06:23 -0500 received badge  Popular Question (source)
2019-01-23 01:17:39 -0500 commented answer Adding dynamic network interfaces using HEAT template

Thanks zaneb for the reply. I am using OS:;Nova:Server approach and it is working fine.

2019-01-21 11:40:11 -0500 asked a question Adding dynamic network interfaces using HEAT template

HI - Request a help. I need to add dynamic number of network interfaces to an instance via HEAT template. As of now, I have a template which adds one network interface for an instance using OS::Neutron::Port as below.

    #Create a port on the external public network    
        extPort:
            type: OS::Neutron::Port
            properties:
                network: { get_param: extPublicNetwork }
                port_security_enabled: false

# Create a single signaling server
extServer:
    type: OS::Nova::Server
    depends_on: [ extPort ]
    properties:
        image: { get_param: image }
        flavor: { get_param: flavor }
        name:  { get_param: [ vmNames, get_param: index ] }

        networks:
            - port: { get_resource: extPort }

Now I have a requirement that based on the input via the environment file, I need to add that many number of same network interfaces. I have tried like this:

        environment file:
        # Network name is ext-public
        networklist: ext-public,ext-public,ext-public

        Template file:

        # Create a port on the external public network
        extPort:
            type: OS::Neutron::Port
            properties:
                network: { get_param: extPublicNetwork }
                port_security_enabled: false

        # Create a single signaling server
        extServer:
            type: OS::Nova::Server
            depends_on: [ extPort ]
            properties:
                image: { get_param: image }
                flavor: { get_param: flavor }

                networks:
                    repeat:
                        for_each:
                            <%port%>: { get_param: networklist }      
                        template:
                            port: { get_resource: <%port%> }

This code gives the following error:

ERROR: Failed to validate: Failed to validate: resources[0]: The specified reference "<%port%>" (in signalingServer.Properties.networks.repeat.template.port) is incorrect.

How can I make it work to achieve dynamic number of interfaces from a OS::Neutron::Port resource?

Thank You, Subeesh

UPDATE: I have 2 more questions, related. Kindly help:

1) If I create dynamic number of networks, I have a requirement of making a JSON file and provide these interface details in the json and place it in the created instance via user data. Something like:

etho : ip1, eth1 : ip2, eth2 : ip3, .............

How can I do this? Do we have a "loop" in outputs section also? If yes, can I loop through the networks via get_attr and assign to dynamically created variables in the stack output?

2) My requirement is to create multiple interfaces. Among these, can I make 2 interfaces static. And rest of the networks creation based on the user input from environment file ?

Like , etho = ext-net1 (This is known in advance, and hence I can hard-code this)
eth1 = ext-net2 (This is known in advance, and hence I can hard-code this)
eth2 = To be configured based on the network provided by user in environment file
eth3 = To be configured based on the network provided by user in environment file
.....................................................................................................

Sorry for long questions. Any help/direction will be really helpful. Thank you.

2018-04-29 11:40:42 -0500 asked a question How to do SSH key exchange between VMs via HEAT template (Not only between Control node and VMs)

Hi

I am newbie to openstack. I am creating a stack using HEAT template. In the yaml file I mentioned the key name as

parameters: # Common parameters
key_name: my-key-pair

After the stack is created, I am able to ssh to all VMs from my control node without password, successfully like this:

ssh -i /root/my-key-pair.pem user@instanceip

My requirement here is, similarly I need to do ssh between the VMs also. Just like I did between ControlNode and VMs, I wanted to do ssh without password from VM1 to VM2.

How to key exchange between the VMs? How can I achieve this using HEAT template ? Can someone help please.

Thank You, Subeesh

2018-04-29 11:40:42 -0500 asked a question How to do key exchange between VMs when creating a stack via HEAT template

Hi

I am newbie to openstack. I am creating a stack using HEAT template. In the yaml file I mentioned the key name as

parameters: # Common parameters
key_name: my-key-pair

After the stack is created, I am able to ssh to all VMs from my control node without password, successfully like this:

ssh -i /root/my-key-pair.pem user@instanceip

My requirement here is, similarly I need to do ssh between the VMs also. Just like I did between ControlNode and VMs, I wanted to do ssh without password from VM1 to VM2.

How to key exchange between the VMs? How can I achieve this using HEAT template ? Can someone help please.

Thank You, Subeesh