Ask Your Question

sreejithp's profile - activity

2015-08-02 03:05:37 -0600 received badge  Popular Question (source)
2015-08-01 17:05:25 -0600 received badge  Student (source)
2015-07-31 08:36:06 -0600 asked a question unable to vote for presentations in tokyo summit

Hello,

I am unable to vote for presentations in tokyo. I am a registered foundation member. But when i login to vote, i get the following page C:\fakepath\openstack_vote.png

Please let me know what i want to do to get the access. I was able to vote for sessions in last summit

Thanks and Regards, Sreejith P

2015-07-06 04:41:52 -0600 received badge  Notable Question (source)
2015-07-06 04:41:52 -0600 received badge  Famous Question (source)
2015-04-11 15:48:05 -0600 received badge  Famous Question (source)
2015-03-20 12:41:15 -0600 received badge  Notable Question (source)
2015-03-19 04:14:48 -0600 commented answer Heat api stack list

Thanks for pointing the error in the code. I am able to print the stack list. but the return type is still paginate not list. The modified code is below.

Modified: heat_endpoint = ks_client.service_catalog.url_for(service_type='orchestration', endpoint_type='publicURL')

Added: print stack.next()

2015-03-19 04:10:07 -0600 received badge  Popular Question (source)
2015-03-19 04:10:07 -0600 received badge  Popular Question (source)
2015-03-18 07:54:41 -0600 asked a question Heat api stack list

Hello All,

I am learning openstack api programming, trying to get the list of stacks using python-heatclient api. The code is as follows

import sys
import os
from heatclient.client import Client as Heat_Client
from keystoneclient.v2_0 import Client as Keystone_Client


def get_keystone_creds():
    d = {}
    d['username'] = os.environ['OS_USERNAME']
    d['password'] = os.environ['OS_PASSWORD']
    d['auth_url'] = os.environ['OS_AUTH_URL']
    d['tenant_name'] = os.environ['OS_TENANT_NAME']
    return d


cred = get_keystone_creds()
ks_client = Keystone_Client(**cred)
heat_endpoint = ks_client.service_catalog.url_for(service_type='image', endpoint_type='publicURL')
heatclient = Heat_Client('1', heat_endpoint, token=ks_client.auth_token)
stack = heatclient.stacks.list()
print stack

this displays an output <generator object="" paginate="" at="" 0x7fdb0755fa50="">.

Please let me know how can i print the list of available heat stack.

Thanks and Regards, Sreejith P

2015-03-18 07:45:14 -0600 received badge  Popular Question (source)
2015-03-10 05:08:01 -0600 received badge  Scholar (source)
2015-03-10 05:07:49 -0600 commented answer Get the details of a vm using api

Thanks for the answer. The following code added to the existing got the vm flavor details.

for each in server_list: flavorlist = nvclient.flavors.get(each.flavor['id']) print flavorlist.name

2015-03-10 05:04:45 -0600 received badge  Famous Question (source)
2015-03-06 08:08:15 -0600 asked a question Get the details of a vm using api

Hello All,

I am learning openstack api programming, trying to get the flavor details of a running vm but i am not able to find any information's relating to that on python-novaclient api. The code is as follows

import novaclient.v1_1.client as nvclient

def get_nova_creds():
    d = {}
    d['username'] = os.environ['OS_USERNAME']
    d['api_key'] = os.environ['OS_PASSWORD']
    d['auth_url'] = os.environ['OS_AUTH_URL']
    d['project_id'] = os.environ['OS_TENANT_NAME']
    return d

creds = get_nova_creds()
nova = nvclient.Client(**creds)
server_list = nova.servers.list()
print server_list

i need to get the size of the vm in the server_list. but i cannot find any function or attributes. But the same information is displayed in Horizon under instances. Can you please point to any article relating to it?

Thanks in advance Sreejith P

2014-03-04 06:23:24 -0600 received badge  Teacher (source)
2014-03-04 05:59:13 -0600 answered a question Is it possible to enable the router?

Assuming that your PC is running Linux, I suggest you to install openvswitch on it.

The steps to follow will be as following.

  1. install the openvswitch and necessary packages.
  2. Create a bridge interface
  3. Add you interface (one with internet connection) to the bridge
  4. create 2 vlans and assign ips to it.
  5. connect management network nic to one vlan and the floating ip interface to another vlan
  6. setup the ip forwarding and routing table accordingly.

then you can access the created vm from your pc. This is by far the simplest solution i have found to setup openstack on a laptop

Note: i am also trying to do the same setup on my laptop. once all the task is done and connection is working fine, i will update my blog and will provide the link.

2014-03-04 05:37:04 -0600 received badge  Notable Question (source)
2014-03-04 05:35:28 -0600 answered a question Instance build Error

as per my understanding, you are trying to use KVM/Qemu inside virtualbox. if that is the case then it will not work because virtualbox doesn't support nested virtualization please refer https://www.virtualbox.org/ticket/4032 . I suggest you to try using VMware player or kvm on the host machine. also please post the output of nova show

2014-03-03 22:37:08 -0600 answered a question Instances Created through Ubuntu Openstack not displayed in ESXi

No, you will not be able to view the ins1 on vSphere client. vSphere client is used only to manage ESX/ESXi hypervisor. Mostly the single node openstack will be running kvm as the hypervisor until and unless you have configure the openstack node to create vms in ESXi via vCentre. you will have to use virsh list --all command to check the vms in kvm.

you can also use Virtual Machine Manager based on libvirt to view and manage virtual machines in most of the hypervisors

2014-03-03 06:30:23 -0600 commented question Instance build Error

as per my understanding, you are trying to use KVM/Qemu inside virtualbox. if that is the case then it will not work because virtualbox doesn't support nested virtualization please refer https://www.virtualbox.org/ticket/4032. I suggest you to try using VMware player or kvm on the host machine. also please post the output of nova show <instance id="">

2014-02-12 04:29:20 -0600 received badge  Popular Question (source)
2013-10-10 02:24:08 -0600 commented answer Modify keystone id

Thanks for the replay.. if i am trying to troubleshoot some errors.. i am finding it difficult to check the details related to one service... because for the different instance id.. is it possible to change the ID at the mysql DB level?

2013-10-10 02:05:32 -0600 answered a question how to set-up cloud in multi-node openstack environment

Hello Suhas,

If you are using a redhat based distro you can check out the RDO project at http://Openstack.redhat.com or you can follow the below this documentation from redhat

https://access.redhat.com/site/documentation/en-US/Red_Hat_OpenStack/3/pdf/Installation_and_Configuration_Guide/Red_Hat_OpenStack-3-Installation_and_Configuration_Guide-en-US.pdf

if you are new to openstack, then i will suggest you to use the RDO project and setup the nodes using the packstack. it uses preconfigured puppet based scripts to setup your environment.

you can also follow the documentation from http://docs.openstack.org

2013-10-10 01:28:49 -0600 asked a question Modify keystone id

Hello,

When creating users, role and tenant in keystone, an id is automatically generated.

Please let me know whether we can change or manually specify the ID at the time of creation of users, roles and tenants.

Regards, Hamerins