Ask Your Question

Lokesh's profile - activity

2016-03-12 01:17:41 -0600 received badge  Famous Question (source)
2016-01-04 10:11:31 -0600 received badge  Taxonomist
2015-11-25 04:41:23 -0600 received badge  Famous Question (source)
2015-02-17 15:25:00 -0600 received badge  Notable Question (source)
2014-09-04 09:33:23 -0600 received badge  Famous Question (source)
2014-08-20 21:08:40 -0600 received badge  Famous Question (source)
2014-06-12 09:16:28 -0600 received badge  Popular Question (source)
2014-06-12 09:15:47 -0600 received badge  Famous Question (source)
2014-06-12 08:58:40 -0600 received badge  Notable Question (source)
2014-06-06 06:51:25 -0600 received badge  Famous Question (source)
2014-06-05 01:39:07 -0600 marked best answer flavour api

Hi

  May i know how to call an API for creating the flavour in openstack .

Regards , Lokesh.S

2014-05-23 08:56:09 -0600 received badge  Notable Question (source)
2014-05-14 14:32:18 -0600 received badge  Popular Question (source)
2014-05-12 09:24:32 -0600 asked a question Image list of a particular tenant

Hi ,

    I need to filter out the images created by each user through api call , can any one please help me out .I have an api which lists out all the images . i.e 


$url_send='http://'.$url.':9292/v1/images';
$header1="X-Auth-Token:".$tokenid;

$curl = curl_init();
 curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
 curl_setopt($curl, CURLOPT_POST, false);
 curl_setopt($curl, CURLOPT_URL, $url_send);
 curl_setopt($curl, CURLOPT_HTTPHEADER,array($header1));
 curl_setopt($curl, CURLOPT_HEADER, false);
 curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);

    $response = curl_exec($curl);

The response will give me the output of all the images , bt i need the images that are created by a particular user .

Thanks in advance , Regards , Lokesh.S

2014-05-10 01:36:20 -0600 received badge  Famous Question (source)
2014-05-02 01:26:31 -0600 received badge  Notable Question (source)
2014-05-01 09:22:56 -0600 received badge  Notable Question (source)
2014-05-01 02:19:29 -0600 answered a question Create User using Api call in openstack

Hello ,

          Anyone please help me out with the above issue . User is creating with the mentioned username and password .But the problem is i am not able to login with the credentials which i have passed while creating the user . But it works if i update the password from the admin Dashboard .

Regards , Lokesh.S

2014-04-26 11:30:45 -0600 received badge  Popular Question (source)
2014-04-24 01:57:04 -0600 asked a question dns api call

Hello ,

           can anyone help me out in designate api call , i am following the documentation "https://designate.readthedocs.org/en/latest/rest/v1/domains.html#create-domain"

Here is my code

  $url = "mywebsite.com";
  $tokenid = "12313wqw121212121";

  $url_send='http://'.$url.':9001/v2/domains';
  $header1=  "X-Auth-Token:".$tokenid;
  $header2 = "Host: $url"; 
  $header3 = "Accept: application/json";
  $header4 = "Content-Type: application/json";

  $post='{
        "name": "domain1.com",
        "ttl": 3600,
        "email": "test@gmail.com"
    }';  

             $curl = curl_init();
     curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
     curl_setopt($curl, CURLOPT_POST, true);
     curl_setopt($curl, CURLOPT_URL, $url_send);
     curl_setopt($curl, CURLOPT_HTTPHEADER,array($header1,$header2,$header3,$header4));
     curl_setopt($curl, CURLOPT_HEADER, false);
     curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
     curl_setopt($curl, CURLOPT_POSTFIELDS, $post);

     $response = curl_exec($curl);
     curl_close($curl);

The result i am getting here is "Authentication required " . Here i am passing the token-id for authentication bt still its throwing the Authentication error .Can anyone please suggest me where i am going wrong .

Regards , Lokesh.S

2014-04-22 11:03:51 -0600 received badge  Popular Question (source)
2014-04-21 01:39:03 -0600 commented question Ceilometer api to use and it's result parameters

Hello smaffuli ,

                I was able to filter out he records from the last set of result .Below is the filtered array

Cpu Utilization statistics :-

array( (int) 0 => object(stdClass) { counter_name => 'cpu_util' user_id => '0db2b7cef18840d0a30bfe579fe840ee' resource_id => '02ed58de-8015-4b50-b031-2e5e1fae4223' timestamp => '2014-04-18T14:01:10' resource_metadata => object(stdClass) { ramdisk_id => 'None' flavor.vcpus => '1' flavor.ephemeral => '0' display_name => 'hage' flavor.ram => '2048' OS-EXT-AZ:availability_zone => 'nova' ephemeral_gb => '0' flavor.name => 'm1.small' disk_gb => '20' kernel_id => 'None' image.id => 'e6a9ba49-ebbd-45cd-af96-15724635c49d' flavor.id => '2' host => 'aab608be99af3186f64f7ff367869b9042d75dd920ea9685607d766d' image.name => 'ubuntu' image_ref_url => 'http://tenryu.internal.rocketcloud.io:8774/1ee8eeb994334d7698db38f0ffda9bac/images/e6a9ba49-ebbd-45cd-af96-15724635c49d' cpu_number => '1' flavor.disk => '20' root_gb => '20' name => 'instance-0000000e' memory_mb => '2048' instance_type => '2' vcpus => '1' image_ref => 'e6a9ba49-ebbd-45cd-af96-15724635c49d' } source => 'openstack' counter_unit => '%' counter_volume => (float) 0.15474209650582 project_id => '96ac1f99a6174674bf04a304e030ebc4' message_id => 'e4e470b8-c701-11e3-bb7e-002590a18256' counter_type => 'gauge' }, (int) 1 => object(stdClass) { counter_name => 'cpu_util' user_id => '0db2b7cef18840d0a30bfe579fe840ee' resource_id => '02ed58de-8015-4b50-b031-2e5e1fae4223' timestamp => '2014-04-18T13:51:09' resource_metadata => object(stdClass) { ramdisk_id => 'None' flavor.vcpus => '1' flavor.ephemeral => '0' display_name => 'hage' flavor.ram => '2048' OS-EXT-AZ ... (more)

2014-04-18 00:04:13 -0600 received badge  Notable Question (source)
2014-04-17 08:34:33 -0600 asked a question Ceilometer api to use and it's result parameters

Hi,

I was trying to fetch the resource and usage of resources of an instance using ceilometer api. I have used v2/meters/instance , v2/meters/cpu_util and v2/meters/memory. The result these api's return is too large and I'm not able to identify the paramater that needs to be taken to find the resource usage. I need to find the cpu utilization, bandwidth and memory usage of an instance using the ceilometer api. Can anyone please tell me which api I need to use to get the cpu utilization, bandwidth and memory usage of an instance and the parameter that needs to be taken to get the usage.

Thanks for any help in advance.

Thank You.

2014-04-17 02:55:28 -0600 answered a question ceilometer Usage steps Needed

Hello ,

       Can anyone please help me out with the above issue .

Thanks in advacne , Regards , Lokesh.S

2014-04-17 02:54:45 -0600 received badge  Popular Question (source)
2014-04-16 01:56:58 -0600 received badge  Popular Question (source)
2014-04-15 11:31:54 -0600 commented answer list snapshot

Hi Shankar ,

        Thanks for the reply . yeah i can see the snapshots as u said . Bt i need to list those in my application through an API call .

Regards , Lokesh.S

2014-04-15 05:04:42 -0600 asked a question list snapshot

Hello ,

             May i know how to list the snapshots that are created , I have done based on the apis that are showed under the link ...

http://docs.openstack.org/api/opensta...

http://docs.openstack.org/api/opensta...

Please let me know , how can i proceed with this . I am using the port no 9292 .

Regards , Lokesh.S

2014-04-15 04:34:47 -0600 received badge  Notable Question (source)
2014-04-14 10:40:10 -0600 received badge  Popular Question (source)
2014-04-14 09:02:25 -0600 asked a question Create User using Api call in openstack

Hello ,

I have used the code as shown below , here is the post data that i have sent along with the curl

$post='{"user":{"name":"guru", "email":"guru@guru.com", "enabled":true, "OS-KSADM:password":"password123"}}';

Here i am able to create the user and i can map the user to a specific role and to a particular project also .

I am facing using while login into the dashboard using the user that i have created . Here while creating the user i am passing the raw password . Should i convert into some format before passing ( i.e md5 or any other format).Please help me out int his issue . Or am i doing anything wrong ?????

2014-04-03 04:57:14 -0600 received badge  Notable Question (source)
2014-03-31 00:29:27 -0600 received badge  Famous Question (source)
2014-03-26 02:15:57 -0600 commented answer add project_id to a user_id

Hello larsks ,

                First thanks for helping out . Yeah i am able to create the project and the user . May i know how to map user to a project .Please help me out in this .

Regards Lokesh.S

2014-03-24 09:13:47 -0600 commented answer Create User using an API call

Hello Keith ,

                   A small issue am facing here in relating the project_id to a user . If i use "default_project_id":"...", this parameter while creating the user , will this creates a user along with the project that relates the project & user ? or is there any other way of mapping ???
2014-03-24 09:09:52 -0600 asked a question add project_id to a user_id

Hi ,

     May i know how can i relate the project_id to the user . I.e how can add project_id for a particular user .

The issue is i need to create a unique project_id for every user . Can anyone please help me out in this issue .

2014-03-18 16:07:49 -0600 received badge  Notable Question (source)
2014-03-17 02:39:58 -0600 received badge  Notable Question (source)
2014-03-14 01:38:52 -0600 asked a question ceilometer Usage steps Needed

Hello ,

     I went through the ceilometer Api , I could only able to get Meters and resources but i was not able to get meters and resource usage for an instance . Can any one please  help us in finding the Api  to get meters and resource usage for an instance.
2014-03-14 01:35:29 -0600 received badge  Popular Question (source)
2014-02-26 00:29:57 -0600 received badge  Popular Question (source)
2014-02-25 23:04:09 -0600 answered a question Create User using an API call

Helo KeithJ ,

That worked fine ,Thanks for the reply

I have used the code as shown below , here is the post data that i have sent along with the curl

$post='{"user":{"name":"guru", "email":"guru@guru.com", "enabled":true, "OS-KSADM:password":"password123"}}';

Regards , Lokesh.S

2014-02-25 04:26:03 -0600 edited question Create User using an API call

Hi , May i know how to create the Openstack User using the api call .

Regards , Lokesh.S

2014-02-25 04:25:39 -0600 received badge  Editor (source)