[Openstack] Hiding a Panel in Dashboard

2013-03-06 Thread Srikanth Kumar Lingala
Hi folks,
I have a doubt.
Generally, if we create a panel, we need to create a new directory under
'.../horizon/dashboard/nova/' and add that in
'.../horizon/dashboards/nova/dashboard.py'.
Let us suppose panel directory name is 'sample_panel'. I created a
directory namely 'sample_panel' under the directory
'.../horizon/dashboard/nova/'. I didn't add that panel in dashboard.py.
When I tried to access that module with the URL:
http://localhost/horizon/nova/sample_panel/, I got the following error:
'The page you were looking for doesn't exist'
If I add that panel name in 'dashboard.py', I am able to access the URL
with out any errors.
Can we hide a panel in dashboard from displaying and use that module at the
same time?
Thanks in advance.
-- 

Srikanth.
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] [openstack-dev] [Horizon] tables.DeleteAction not working

2012-11-12 Thread Srikanth Kumar Lingala
Ok .. I will post there ...

Srikanth.

On Mon, Nov 12, 2012 at 2:06 PM, Gabriel Hurley
wrote:

>  For questions like that it would be **very** helpful if you could post
> your code somewhere (github/gerrit). Debugging them otherwise is basically
> shooting in the dark.
>
> ** **
>
> **-  **Gabriel
>
> ** **
>
> *From:* Srikanth Kumar Lingala [mailto:srikanthkumar.ling...@gmail.com]
> *Sent:* Monday, November 12, 2012 11:51 AM
> *To:* openstack@lists.launchpad.net; openstack-...@lists.openstack.org
> *Subject:* [openstack-dev] [Horizon] tables.DeleteAction not working
>
> ** **
>
> Hi,
> I created a custom table in Quantum DB, and getting rows from that, and
> show as Table in Horizon.
> For each row, I put only action 'Delete', and called subsequent class for
> eg. 'DeleteRow(tables.DeleteAction)'. In this, I wrote 'delete' function,
> in which I am calling quantum API to delete the row from DB.
> But, however, If I click DeleteRow button in horizon,  'delete()' function
> in the class is not triggering. And, as a result, row is not deleting from
> DB. I am not getting any kind of error logs in nova-api.log, apache error
> logs ..etc.
> Can anyone suggest, what went wrong?
>
> Thanks in advance.
>
> --
> 
>
> Srikanth.
>
> ** **
>
> ___
> Mailing list: https://launchpad.net/~openstack
> Post to : openstack@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp
>
>


-- 

Srikanth.
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


[Openstack] [Horizon] tables.DeleteAction not working

2012-11-12 Thread Srikanth Kumar Lingala
Hi,
I created a custom table in Quantum DB, and getting rows from that, and
show as Table in Horizon.
For each row, I put only action 'Delete', and called subsequent class for
eg. 'DeleteRow(tables.DeleteAction)'. In this, I wrote 'delete' function,
in which I am calling quantum API to delete the row from DB.
But, however, If I click DeleteRow button in horizon,  'delete()' function
in the class is not triggering. And, as a result, row is not deleting from
DB. I am not getting any kind of error logs in nova-api.log, apache error
logs ..etc.
Can anyone suggest, what went wrong?

Thanks in advance.

-- 

Srikanth.
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


[Openstack] [Horizon] Error in /var/log/apache2/error.log

2012-11-12 Thread Srikanth Kumar Lingala
Hi,
I created a custom page in horizon. Most of the new page is working fine.
But, when I wanted to load some custom 'quantum' DB table data in horizon,
I am getting the following error in '*/var/log/apache2/error.log*':

*Traceback (most recent call last):
[Mon Nov 12 15:52:58 2012] [error]   File
"/usr/lib/python2.7/dist-packages/horizon/dashboards/nova/services/configs/tabs.py",
line 42, in get_context_data
[Mon Nov 12 15:52:58 2012] [error] config =
api.quantum.dhcp_config_get(self.request, config_id)
[Mon Nov 12 15:52:58 2012] [error]   File
"/usr/lib/python2.7/dist-packages/horizon/api/quantum.py", line 247, in
dhcp_config_get
[Mon Nov 12 15:52:58 2012] [error] **params).get('config')
[Mon Nov 12 15:52:58 2012] [error]   File
"/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 102,
in with_params
[Mon Nov 12 15:52:58 2012] [error] ret = self.function(instance, *args,
**kwargs)
[Mon Nov 12 15:52:58 2012] [error]   File
"/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 330,
in show_config
[Mon Nov 12 15:52:58 2012] [error] return self.get(self.config_path %
(config), params=_params)
[Mon Nov 12 15:52:58 2012] [error]   File
"/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 620,
in get
[Mon Nov 12 15:52:58 2012] [error] headers=headers, params=params)
[Mon Nov 12 15:52:58 2012] [error]   File
"/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 605,
in retry_request
[Mon Nov 12 15:52:58 2012] [error] headers=headers, params=params)
[Mon Nov 12 15:52:58 2012] [error]   File
"/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 550,
in do_request
[Mon Nov 12 15:52:58 2012] [error]
self._handle_fault_response(status_code, replybody)
[Mon Nov 12 15:52:58 2012] [error]   File
"/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 523,
in _handle_fault_response
[Mon Nov 12 15:52:58 2012] [error] exception_handler_v20(status_code,
des_error_body)
[Mon Nov 12 15:52:58 2012] [error]   File
"/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 82,
in exception_handler_v20
[Mon Nov 12 15:52:58 2012] [error] message=message)
[Mon Nov 12 15:52:58 2012] [error] QuantumClientException: 404 Not Found
[Mon Nov 12 15:52:58 2012] [error]
[Mon Nov 12 15:52:58 2012] [error] The resource could not be found.*

Can anybody, please suggest me, what is the error and the fix?

Thanks in advance.
-- 

Srikanth.
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


[Openstack] Creating new resource in quantum + horizon

2012-11-02 Thread Srikanth Kumar Lingala
Hi,
I just want to get data from a custom table created in Quantum and show it
in horizon.(Just like list networks in horizon)
I followed same architecture followed for showing Networks in horizon.
I am able to send the request to quantum-server. And query also executing
fine and getting data as a hash dump. I am able to see those in
quantum-server log.
But, while displaying in horizon, it is showing 'Internal Server Error' in
the browser.
While debugging, I put debug logs to identify where it is getting problem.
>From these debug logs, quantum-server ovs-agent plug-in able to get the
data from DB and sending. But, at quantumclient, I am not able get that
data.
Can you please let me know the steps while getting information from Quantum
DB and sending it to quantumclient and then it in turn passes the
information to organize in Horizon?

-- 

Srikanth.
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


[Openstack] Horizon developers guide

2012-10-30 Thread Srikanth Kumar Lingala
Hi,
To customize Openstack dashboard, any developer's guide available?

-- 

Srikanth.
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


[Openstack] Inserting into custom tables from horizon.

2012-10-25 Thread Srikanth Kumar Lingala
Hi,
I want to create a new custom table in nova database and insert data into
that table from Openstack Dashboard, by creating some custom fields.
I am not able to find any SQL executions in the source code, as it is using
django framework, which is similar to MVC architecture.
Can anyone point me where can I start doing that?

-- 

Srikanth.
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] Not able to get IP address for VM

2012-10-24 Thread Srikanth Kumar Lingala
@janis: How can I check that metadata service is working?

@Salvatore:
DHCP Agent is working fine and I am not seeing any ERROR logs.
I am able to see dnsmasq services. I am able to see those MAC entries in
the hosts file.
tap interface is creating on Host Node, which is attached to br-int.

Regards,
Srikanth.

On Wed, Oct 24, 2012 at 7:24 PM, Salvatore Orlando wrote:

> Srikanth,
>
> from your analysis it seems that L2 connectivity between the compute and
> the controller node is working as expected.
> Before looking further, it is maybe worth ruling out the obvious problems.
> Hence:
> 1) is the dhcp-agent service running (or is it stuck in some error state?)
> 2) Can you see dnsmasq instances running on the controller node? If yes,
> do you see your VM's MAC in the hosts file for the dnsmasq instance?
> 3) If dnsmasq instances are running, can you confirm the relevant tap
> ports are inserted on Open vSwitch instance br-int?
>
> Salvatore
>
>
> On 24 October 2012 14:14, Jānis Ģeņģeris  wrote:
>
>> Hi Srikanth,
>>
>> Can you confirm that metadata service is working and the VMs are able to
>> access it? Usually if VM's can't get network settings is because of
>> inaccessible metadata service.
>>
>> --janis
>>
>> On Wed, Oct 24, 2012 at 4:00 PM, Srikanth Kumar Lingala <
>> srikanthkumar.ling...@gmail.com> wrote:
>>
>>> Here is the *nova.conf* file contents:
>>>
>>> *[DEFAULT]*
>>> *# MySQL Connection #*
>>> *sql_connection=mysql://nova:password@10.232.91.33/nova*
>>> *
>>> *
>>> *# nova-scheduler #*
>>> *rabbit_host=10.232.91.33*
>>> *rabbit_userid=guest*
>>> *rabbit_password=password*
>>> *#scheduler_driver=nova.scheduler.simple.SimpleScheduler*
>>> *#scheduler_default_filters=ImagePropertiesFilter*
>>> *
>>> *
>>> *
>>> *
>>> *scheduler_driver=nova.scheduler.multi.MultiScheduler*
>>> *
>>> compute_scheduler_driver=nova.scheduler.filter_scheduler.FilterScheduler
>>> *
>>> *scheduler_available_filters=nova.scheduler.filters.standard_filters*
>>> *scheduler_default_filters=ImagePropertiesFilter*
>>> *
>>> *
>>> *
>>> *
>>> *# nova-api #*
>>> *cc_host=10.232.91.33*
>>> *auth_strategy=keystone*
>>> *s3_host=10.232.91.33*
>>> *ec2_host=10.232.91.33*
>>> *nova_url=http://10.232.91.33:8774/v1.1/*
>>> *ec2_url=http://10.232.91.33:8773/services/Cloud*
>>> *keystone_ec2_url=http://10.232.91.33:5000/v2.0/ec2tokens*
>>> *api_paste_config=/etc/nova/api-paste.ini*
>>> *allow_admin_api=true*
>>> *use_deprecated_auth=false*
>>> *ec2_private_dns_show_ip=True*
>>> *dmz_cidr=169.254.169.254/32*
>>> *ec2_dmz_host=169.254.169.254*
>>> *metadata_host=169.254.169.254*
>>> *enabled_apis=ec2,osapi_compute,metadata*
>>> *
>>> *
>>> *
>>> *
>>> *# Networking #*
>>> *network_api_class=nova.network.quantumv2.api.API*
>>> *quantum_url=http://10.232.91.33:9696*
>>> *libvirt_vif_type=ethernet*
>>> *linuxnet_vif_driver=nova.network.linux_net.LinuxOVSInterfaceDriver*
>>> *firewall_driver=nova.virt.firewall.NoopFirewallDriver*
>>> *libvirt_use_virtio_for_bridges=True*
>>> *
>>> *
>>> *# Cinder #*
>>> *#volume_api_class=cinder.volume.api.API*
>>> *
>>> *
>>> *# Glance #*
>>> *glance_api_servers=10.232.91.33:9292*
>>> *image_service=nova.image.glance.GlanceImageService*
>>> *
>>> *
>>> *# novnc #*
>>> *novnc_enable=true*
>>> *novncproxy_base_url=http://10.232.91.33:6080/vnc_auto.html*
>>> *vncserver_proxyclient_address=127.0.0.1*
>>> *vncserver_listen=0.0.0.0*
>>> *
>>> *
>>> *# Misc #*
>>> *logdir=/var/log/nova*
>>> *state_path=/var/lib/nova*
>>> *lock_path=/var/lock/nova*
>>> *root_helper=sudo nova-rootwrap /etc/nova/rootwrap.conf*
>>> *verbose=true*
>>> *dhcpbridge_flagfile=/etc/nova/nova.conf*
>>> *dhcpbridge=/usr/bin/nova-dhcpbridge*
>>> *force_dhcp_release=True*
>>> *iscsi_helper=tgtadm*
>>> *connection_type=libvirt*
>>> *libvirt_type=kvm*
>>> *libvirt_ovs_bridge=br-int*
>>> *libvirt_vif_type=ethernet*
>>> *libvirt_vif_driver=nova.virt.libvirt.vif.LibvirtOpenVswitchDriver*
>>>
>>>
>>> Regards,
>>> Srikanth.
>>>
>>>
>>> On Mon, Oct 22, 2012 at 7:48 AM, gong yo

Re: [Openstack] Not able to get IP address for VM

2012-10-24 Thread Srikanth Kumar Lingala
Here is the *nova.conf* file contents:

*[DEFAULT]*
*# MySQL Connection #*
*sql_connection=mysql://nova:password@10.232.91.33/nova*
*
*
*# nova-scheduler #*
*rabbit_host=10.232.91.33*
*rabbit_userid=guest*
*rabbit_password=password*
*#scheduler_driver=nova.scheduler.simple.SimpleScheduler*
*#scheduler_default_filters=ImagePropertiesFilter*
*
*
*
*
*scheduler_driver=nova.scheduler.multi.MultiScheduler*
*compute_scheduler_driver=nova.scheduler.filter_scheduler.FilterScheduler*
*scheduler_available_filters=nova.scheduler.filters.standard_filters*
*scheduler_default_filters=ImagePropertiesFilter*
*
*
*
*
*# nova-api #*
*cc_host=10.232.91.33*
*auth_strategy=keystone*
*s3_host=10.232.91.33*
*ec2_host=10.232.91.33*
*nova_url=http://10.232.91.33:8774/v1.1/*
*ec2_url=http://10.232.91.33:8773/services/Cloud*
*keystone_ec2_url=http://10.232.91.33:5000/v2.0/ec2tokens*
*api_paste_config=/etc/nova/api-paste.ini*
*allow_admin_api=true*
*use_deprecated_auth=false*
*ec2_private_dns_show_ip=True*
*dmz_cidr=169.254.169.254/32*
*ec2_dmz_host=169.254.169.254*
*metadata_host=169.254.169.254*
*enabled_apis=ec2,osapi_compute,metadata*
*
*
*
*
*# Networking #*
*network_api_class=nova.network.quantumv2.api.API*
*quantum_url=http://10.232.91.33:9696*
*libvirt_vif_type=ethernet*
*linuxnet_vif_driver=nova.network.linux_net.LinuxOVSInterfaceDriver*
*firewall_driver=nova.virt.firewall.NoopFirewallDriver*
*libvirt_use_virtio_for_bridges=True*
*
*
*# Cinder #*
*#volume_api_class=cinder.volume.api.API*
*
*
*# Glance #*
*glance_api_servers=10.232.91.33:9292*
*image_service=nova.image.glance.GlanceImageService*
*
*
*# novnc #*
*novnc_enable=true*
*novncproxy_base_url=http://10.232.91.33:6080/vnc_auto.html*
*vncserver_proxyclient_address=127.0.0.1*
*vncserver_listen=0.0.0.0*
*
*
*# Misc #*
*logdir=/var/log/nova*
*state_path=/var/lib/nova*
*lock_path=/var/lock/nova*
*root_helper=sudo nova-rootwrap /etc/nova/rootwrap.conf*
*verbose=true*
*dhcpbridge_flagfile=/etc/nova/nova.conf*
*dhcpbridge=/usr/bin/nova-dhcpbridge*
*force_dhcp_release=True*
*iscsi_helper=tgtadm*
*connection_type=libvirt*
*libvirt_type=kvm*
*libvirt_ovs_bridge=br-int*
*libvirt_vif_type=ethernet*
*libvirt_vif_driver=nova.virt.libvirt.vif.LibvirtOpenVswitchDriver*


Regards,
Srikanth.

On Mon, Oct 22, 2012 at 7:48 AM, gong yong sheng  wrote:

>  can u send out nova.conf file?
>
> On 10/22/2012 07:30 PM, Srikanth Kumar Lingala wrote:
>
> Hi,
> I am using latest devstack I am trying to create a VM with one Ethernet
> interface card. I am able to create the VM successfully, but not able to
> get IP for the ethernet interface.
> I have Openstack Controller running the following:
>
>- nova-api
>- nova-cert
>- nova-consoleauth
>- nova-scheduler
>- quantum-dhcp-agent
>- quantum-openvswitch-agent
>
>
>  And O also have Openstack Host Node running the following:
>
>- nova-api
>- nova-compute
>- quantum-openvswitch-agent
>
>
>  I am not seeing any kind of errors in logs related nova as well as
> quantum.
> I observed that when I execute 'dhclient' in VM, 'br-int' interface in
> 'Openstack Controller' getting DHCP requests, but not sending reply.
> Please let me know, what I am doing wrong here.
> Thanks in advance.
>
>  --
> 
> Srikanth.
>
>
>
> ___
> Mailing list: https://launchpad.net/~openstack
> Post to : openstack@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp
>
>
>


-- 

Srikanth.
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


[Openstack] Not able to get IP address for VM

2012-10-22 Thread Srikanth Kumar Lingala
Hi,
I am using latest devstack I am trying to create a VM with one Ethernet
interface card. I am able to create the VM successfully, but not able to
get IP for the ethernet interface.
I have Openstack Controller running the following:

   - nova-api
   - nova-cert
   - nova-consoleauth
   - nova-scheduler
   - quantum-dhcp-agent
   - quantum-openvswitch-agent


And O also have Openstack Host Node running the following:

   - nova-api
   - nova-compute
   - quantum-openvswitch-agent


I am not seeing any kind of errors in logs related nova as well as quantum.
I observed that when I execute 'dhclient' in VM, 'br-int' interface in
'Openstack Controller' getting DHCP requests, but not sending reply.
Please let me know, what I am doing wrong here.
Thanks in advance.

-- 

Srikanth.
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] Quantum OVS Agent as service

2012-10-17 Thread Srikanth Kumar Lingala
Hi Dan,
I am following Folsom Installation guide provided by Emilien Macchi. In
that document it is mentioned to create a bridge 'br-int' attached to
'eth1' through ovs. And also it suggests to assign this '*br-int*' bridge
as '*integration_bridge*' and '*br-eth1*' as '*bridge_mappings*' in
'/etc/quantum/plugins/openvswitch/ovs_quantum_plugin.ini' like the
following:

*integration_bridge = br-int*
*bridge_mappings = default:br-eth1*
*
*
Please clarify me, is it necessary to enable 'bridge_mappings' field.
*
*
Regards,
Srikanth.

On Wed, Oct 17, 2012 at 10:13 PM, Dan Wendlandt  wrote:

> It sounds like your config file is saying that you have an OVS bridge
> named "br-eth1", but it looks like you do not.
>
> Did you intend to do this, or is this a config copied from somewhere else?
>
> If you actually intended to use VLANs that send traffic out eth1, you
> can do the following:
>
> # create bridge
> ovs-vsctl add-br br-eth1
>
> # add eth1 as a port on this bridge
> ovs-vsctl add-port br-eth1 eth1
>
> dan
>
> On Wed, Oct 17, 2012 at 1:53 AM, Srikanth Kumar Lingala
>  wrote:
> > Hi all,
> > If we run Quantum OVS Agent as a service ... 'service
> > quantum-plugin-openvswitch-agent start', it is unable to start the
> agent. It
> > is throwing the following error to '/var/log/quantum/agent-ovs.log'
> >
> > Stderr: 'Device "br-eth1" does not exist.\n'
> > 2012-10-16 12:48:10ERROR
> > [quantum.plugins.openvswitch.agent.ovs_quantum_agent] Bridge br-eth1 for
> > physical network default does not exist
> >
> > if we run the agent manually like the following command, it is able to
> > start:
> >
> > /usr/bin/quantum-openvswitch-agent --
> > --config-file=/etc/quantum/plugins/openvswitch/ovs_quantum_plugin.ini
> > --log-file=/var/log/quantum/agent-ovs.log
> > --config-file=/etc/quantum/quantum.conf
> >
> > Please suggest.
> > --
> > 
> > Srikanth.
> >
> >
> >
> > ___
> > Mailing list: https://launchpad.net/~openstack
> > Post to : openstack@lists.launchpad.net
> > Unsubscribe : https://launchpad.net/~openstack
> > More help   : https://help.launchpad.net/ListHelp
> >
>
>
>
> --
> ~~~
> Dan Wendlandt
> Nicira, Inc: www.nicira.com
> twitter: danwendlandt
> ~~~
>
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


[Openstack] Quantum OVS Agent as service

2012-10-17 Thread Srikanth Kumar Lingala
Hi all,
If we run Quantum OVS Agent as a service ... '*service
quantum-plugin-openvswitch-agent start*', it is unable to start the agent.
It is throwing the following error to '/var/log/quantum/agent-ovs.log'

*Stderr: 'Device "br-eth1" does not exist.\n'*
*2012-10-16 12:48:10ERROR
[quantum.plugins.openvswitch.agent.ovs_quantum_agent] Bridge br-eth1 for
physical network default does not exist*
*
*
if we run the agent manually like the following command, it is able to
start:

*/usr/bin/quantum-openvswitch-agent --
--config-file=/etc/quantum/plugins/openvswitch/ovs_quantum_plugin.ini
--log-file=/var/log/quantum/agent-ovs.log
--config-file=/etc/quantum/quantum.conf*

Please suggest.
-- 

Srikanth.
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


[Openstack] Creating networks with same subnet across Tenants

2012-10-12 Thread Srikanth Kumar Lingala
Hi all,
Is it possible to create two networks with same subnet across two different
tenants?
I tried this with latest quantum, but got the following error:
* Invalid input for operation: Requested subnet with cidr: 25.25.0.0/24 for
network: 7263582f-cb57-47a2-86cf-97a4ab40de52 overlaps with another subnet.*

I think it is quite possible case across multiple tenants.
Please clarify.
-- 

Srikanth.
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


[Openstack] Adding Custom form field in Openstack Dashboard.

2012-10-09 Thread Srikanth Kumar Lingala
Hi all,
I have added my own custom text box field in the form 'Launch Instance'
page. For that, I modified the following file:

*
/usr/lib/python2.7/dist-packages/horizon/dashboards/nova/instances/workflows.py
*
*
*
Added text box in the above script as follows:

*sample = forms.CharField(max_length=15, label=_("Sample"), required=False)*
*
*
Now, I want to access the posted value of the above field. For that, I am
using *context['sample'] *variable*. *When I clicked on the 'Launch'
button, I am getting a Horizon alert error as the following:
*There was an error submitting the form. Please try again.*
*
*
Please suggest me to fix the issue.
Thanks in advance.

-- 

Srikanth.
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


[Openstack] File Injection through Horizon

2012-10-04 Thread Srikanth Kumar Lingala
Hi,
I am trying to implement File Injection through Openstack Dashboard. That
means, while creating instance from 'Launch Instance', I will give file
path of a file, which I need to inject.
For that, I modified the following file:

*/usr/lib/python2.7/dist-packages/novaclient/v1_1/servers.py*
*
*
In the above file, in the function '*create*', I observed an argument '*
files*' wihch is taking 'None' by default. So, to test the primary
functionality, I gave the '*files*' argument statically in the function.
For that, the first line of that function (Line no. 472) implementation, I
defined '*files' *as below:

*fp = file('/root/inject.txt', 'r')*
*files = {'/root/inject.txt':fp}*
*
*
I followed two methods to create instance:
1. Through Openstack Dashboard
2. Through nova boot command from CLI

*Method 1:*
After that, I restarted apache, and tried to create (launch) an instance
from dashboard. It threw the following AJAX error, by clicking the Launch
button:

*Error: *There was an error submitting the form. Please try again.

*Method 2:*
If I did the same from nova boot command, the instance is creating and file
injection is happening. Both methods are using the same above function '*
create*' in '/usr/lib/python2.7/dist-packages/novaclient/v1_1/servers.py'.

I used the following nova boot command:
*#> nova boot --flavor=1 --image=4671e99b-1c01-42e8-94d6-2405a59bab57
testserver*

Can you please let me know, what I am doing wrong here? And also, If I want
to implement File Injection through Openstack Dashboard, what I need to
modify?
Thanks in advance.
-- 

Srikanth.
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] File Injection through Horizon

2012-10-03 Thread Srikanth Kumar Lingala
Thanks for the information, Kaill.

Srikanth.

On Wed, Oct 3, 2012 at 5:42 PM, Kiall Mac Innes  wrote:

> Hi Srikanth,
>
> File Injection is not available through Horizon.
>
> Atul is describing a different feature that can be used to achieve similar
> results. The contents of "User-Data" will be accessible to the instance via
> "http://169.254.169.254/latest/user-data"; - Ubuntu ships with a tool
> called cloud-init that makes use of this data if available.
>
> Eg One of the simple use cases for cloud-init is, if the data starts with
> "#!", it will assume it's a shell script and download + execute it. This
> can, in a roundabout way, be used to achieve similar results to the file
> injection feature.
>
> Thanks,
> Kiall
>
>
>
> On Wed, Oct 3, 2012 at 12:59 PM, Srikanth Kumar Lingala <
> srikanthkumar.ling...@gmail.com> wrote:
>
>> Hi,
>> I am able to create an instance with the following command (along with
>> File Injection):
>> *
>> *
>> *#> nova boot --file /root/inject.txt=/root/inject.txt --flavor=1
>> --image=4671e99b-1c01-42e8-94d6-2405a59bab57 testserver1*
>> *
>> *
>> Now, what I need is to do the same from the Horizon. I will select a file
>> to inject from Horizon and Launch the Instance, it should inject that file.
>>
>> Regards,
>> Srikanth.
>>
>>
>> On Wed, Oct 3, 2012 at 4:18 PM, Atul Jha  wrote:
>>
>>> Hi,
>>>
>>> The test step followed for user-data as follows.
>>>
>>> 1. Got image from
>>> http://cloud-images.ubuntu.com/precise/current/precise-server-cloudimg-i386-disk1.img
>>>
>>> 2. Booted it from Horizon and passed the script in the file
>>>
>>> #!/bin/sh
>>> mkdir /home/ubuntu/testdir
>>>
>>> 3. Logged in to the machine with
>>>
>>> ssh -i  ubuntu@IP
>>>
>>> And i can see the directory created.
>>>
>>>
>>> File injection via Horizon uses cloud-init and i have tested it on
>>> Ubuntu 12.04 i have no idea about other distributions.
>>>
>>> You can file more about cloud-init here :-
>>> https://help.ubuntu.com/community/CloudInit
>>>
>>> And thanks, i will add this in the doc somewhere. :)
>>>
>>> Hope it helps.
>>>
>>>
>>> Atul jha
>>>
>>> 
>>> From: Shake Chen [shake.c...@gmail.com]
>>> Sent: Wednesday, October 03, 2012 2:28 PM
>>> To: Srikanth Kumar Lingala
>>> Cc: Atul Jha; openstack@lists.launchpad.net
>>> Subject: Re: [Openstack] File Injection through Horizon
>>>
>>> I also have same question.
>>>
>>> can you give us example. how to injection throuth Horizon?
>>>
>>>
>>>
>>> On Wed, Oct 3, 2012 at 3:24 PM, Srikanth Kumar Lingala <
>>> srikanthkumar.ling...@gmail.com<mailto:srikanthkumar.ling...@gmail.com>>
>>> wrote:
>>> Hi Atul,
>>> Can you please guide me how to do File Injection through Horizon?
>>>
>>> Regards,
>>> Srikanth.
>>>
>>> On Wed, Oct 3, 2012 at 12:41 PM, Atul Jha >> atul@csscorp.com>> wrote:
>>> Hi,
>>> 
>>> I have some doubts regarding File Injection.
>>> Can File Injection can be done through Horizon, while creating an
>>> Instance?
>>> While creating an Instance from Horizon, a field called 'User Data'
>>> [text area] is there. Is that field is related to File Injection? Can
>>> anyone tell me, the values we need to give for 'User Data'?
>>> 
>>> Yes.
>>>
>>>
>>> Cheers!!
>>>
>>> Atul Jha
>>> http://www.csscorp.com/common/email-disclaimer.php
>>>
>>>
>>> ___
>>> Mailing list: https://launchpad.net/~openstack
>>> Post to : openstack@lists.launchpad.net>> openstack@lists.launchpad.net>
>>> Unsubscribe : https://launchpad.net/~openstack
>>> More help   : https://help.launchpad.net/ListHelp
>>>
>>>
>>>
>>>
>>> --
>>> Shake Chen
>>>
>>> http://www.csscorp.com/common/email-disclaimer.php
>>>
>>
>>
>>
>> ___
>> Mailing list: https://launchpad.net/~openstack
>> Post to : openstack@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~openstack
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] File Injection through Horizon

2012-10-03 Thread Srikanth Kumar Lingala
Hi,
I am able to create an instance with the following command (along with File
Injection):
*
*
*#> nova boot --file /root/inject.txt=/root/inject.txt --flavor=1
--image=4671e99b-1c01-42e8-94d6-2405a59bab57 testserver1*
*
*
Now, what I need is to do the same from the Horizon. I will select a file
to inject from Horizon and Launch the Instance, it should inject that file.

Regards,
Srikanth.

On Wed, Oct 3, 2012 at 4:18 PM, Atul Jha  wrote:

> Hi,
>
> The test step followed for user-data as follows.
>
> 1. Got image from
> http://cloud-images.ubuntu.com/precise/current/precise-server-cloudimg-i386-disk1.img
>
> 2. Booted it from Horizon and passed the script in the file
>
> #!/bin/sh
> mkdir /home/ubuntu/testdir
>
> 3. Logged in to the machine with
>
> ssh -i  ubuntu@IP
>
> And i can see the directory created.
>
>
> File injection via Horizon uses cloud-init and i have tested it on Ubuntu
> 12.04 i have no idea about other distributions.
>
> You can file more about cloud-init here :-
> https://help.ubuntu.com/community/CloudInit
>
> And thanks, i will add this in the doc somewhere. :)
>
> Hope it helps.
>
>
> Atul jha
>
> ____
> From: Shake Chen [shake.c...@gmail.com]
> Sent: Wednesday, October 03, 2012 2:28 PM
> To: Srikanth Kumar Lingala
> Cc: Atul Jha; openstack@lists.launchpad.net
> Subject: Re: [Openstack] File Injection through Horizon
>
> I also have same question.
>
> can you give us example. how to injection throuth Horizon?
>
>
>
> On Wed, Oct 3, 2012 at 3:24 PM, Srikanth Kumar Lingala <
> srikanthkumar.ling...@gmail.com<mailto:srikanthkumar.ling...@gmail.com>>
> wrote:
> Hi Atul,
> Can you please guide me how to do File Injection through Horizon?
>
> Regards,
> Srikanth.
>
> On Wed, Oct 3, 2012 at 12:41 PM, Atul Jha  atul@csscorp.com>> wrote:
> Hi,
> 
> I have some doubts regarding File Injection.
> Can File Injection can be done through Horizon, while creating an Instance?
> While creating an Instance from Horizon, a field called 'User Data' [text
> area] is there. Is that field is related to File Injection? Can anyone tell
> me, the values we need to give for 'User Data'?
> 
> Yes.
>
>
> Cheers!!
>
> Atul Jha
> http://www.csscorp.com/common/email-disclaimer.php
>
>
> ___
> Mailing list: https://launchpad.net/~openstack
> Post to : openstack@lists.launchpad.net openstack@lists.launchpad.net>
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp
>
>
>
>
> --
> Shake Chen
>
> http://www.csscorp.com/common/email-disclaimer.php
>
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] File Injection through Horizon

2012-10-03 Thread Srikanth Kumar Lingala
Hi Atul,
Can you please guide me how to do File Injection through Horizon?

Regards,
Srikanth.
On Wed, Oct 3, 2012 at 12:41 PM, Atul Jha  wrote:

> Hi,
> 
> I have some doubts regarding File Injection.
> Can File Injection can be done through Horizon, while creating an Instance?
> While creating an Instance from Horizon, a field called 'User Data' [text
> area] is there. Is that field is related to File Injection? Can anyone tell
> me, the values we need to give for 'User Data'?
> 
> Yes.
>
>
> Cheers!!
>
> Atul Jha
> http://www.csscorp.com/common/email-disclaimer.php
>
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


[Openstack] File Injection through Horizon

2012-10-02 Thread Srikanth Kumar Lingala
Hi all,
I have some doubts regarding File Injection.
Can File Injection can be done through Horizon, while creating an Instance?
While creating an Instance from Horizon, a field called 'User Data' [text
area] is there. Is that field is related to File Injection? Can anyone tell
me, the values we need to give for 'User Data'?

Thanks in advance.

-- 

Srikanth.
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


[Openstack] Updating Metadata for an instance.

2012-09-27 Thread Srikanth Kumar Lingala
Hi,
I created an instance with the following command:

*#>   nova boot  --meta creator=srikanth --meta desc='This is a Test
Description' --flavor=1 --image=4671e99b-1c01-42e8-94d6-2405a59bab57
testserver*
*
*
I am able to see  a file - 'meta.js' in '/' directory of instance file
system, with the given metadata values. And, I can be able to see those
meta values under 'Instance Detail' of that particular instance in Horizon.
Now, I want to modify the metadata, for example here...I want to change the
metadata value for the key 'creator'.

I used the following CURL command to modify the metadata

*#>  curl -k -D - -H "X-Auth-Token: fba5f4286dc245b4b3c4112d770afe29" -X
'POST' -v
http://10.232.0.3:8774/v2/7a6bf89048d04871bb9b46b4f8509198/servers/329ead9d-7cb9-425c-a0c6-a6175a23aa88/metadata-d
'{ "metadata" : { "creator" : "kumar" }}'  -H 'Content-type:
application/json'*
*
*
I got HTTP/1.1 200 OK response, with the modified metadata values. I am
able to see the same on Horizon. But, when I reboot the instance, and see
/meta.js, it has the old values. Why it is showing old values? Metadata
really modified? Please let me know.

-- 

Srikanth.
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] VM Instance NOT able to get IP

2012-09-18 Thread Srikanth Kumar Lingala
Hi,
I am able to fix the issue.
The issue is related to quantum-dhcp-agent.
In '/etc/init/quantum-dhcp-agent.conf', I replaced the following
*exec start-stop-daemon --start --chuid quantum --exec
/usr/bin/quantum-dhcp-agent -- --config-file=/etc/quantum/dhcp_agent.ini
--log-file=/var/log/quantum/agent-dhcp.log*

with the following
*exec start-stop-daemon --start --chuid quantum --exec
/usr/bin/quantum-dhcp-agent -- --config-file=/etc/quantum/quantum.conf
--config-file=/etc/quantum/dhcp_agent.ini
--log-file=/var/log/quantum/dhcp-agent.log*
*
*
Then, restarted 'quantum-dhcp-agent'.

Regards,
Srikanth.

On Tue, Sep 18, 2012 at 5:01 PM, Salvatore Orlando wrote:

> Hi Lingala,
>
> the dhcp agent currently only works with dnsmasq. Even if this explain why
> you do not see dhcpd, we still need to investigate why dnsmasq is not
> running.
> From your description, it seems that this is the root cause of your issue.
>
> If no dnsmasq instance is seen on the node where dhcp-agent is running,
> and there are subnets defined in quantum, please check the following:
> - dhcp_enable is set to True for configured subnets
> - the dhcp agent successfully connects to the quantum server for
> retrieving state information. If this does not happen, error should appear
> in the logs. (for instance, rabbit mq auth errors);
>
> Regards,
> Salvatore
>
> On 17 September 2012 12:14, Lingala Srikanth Kumar-B37208 <
> b37...@freescale.com> wrote:
>
>>  Hi,
>>
>> I'm using Folsom Testing Packages on Ubuntu 12.04.,  Quantum V2 with OVS
>> Plugin & Agent running.
>>
>> I created a network with subnet 10.10.0.0/24. I wanted to create an
>> instance with the created network.
>>
>> I am trying to create that instance in the same Controller Node.
>>
>> ** **
>>
>> The following services are up and running.
>>
>> 1.quantum-server
>>
>> 2.quantum-plugin-openvswitch-agent
>>
>> 3.quantum-dhcp-agent
>>
>> 4.nova-api
>>
>> 5.nova-compute
>>
>> 6.nova-cert
>>
>> 7.nova-consoleauth
>>
>> 8.nova-scheduler
>>
>> 9.novnc
>>
>> ** **
>>
>> The thing is, I am able to create an instance and running. I am able to
>> see the IP in the ‘Horizon’ which is getting it from Database. But, I am
>> not able to see that IP, when I VNC to that machine and execute ‘ifconfig’.
>> 
>>
>> When I check the processes running, I am not able to see any 'dnsmasq'
>> and ‘dhcpd’ running with the mentioned subnet.
>>
>> ** **
>>
>> Can anyone please guide me?
>>
>> ** **
>>
>> Regards,
>>
>> Srikanth.
>>
>> ** **
>>
>> ___
>> Mailing list: https://launchpad.net/~openstack
>> Post to : openstack@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~openstack
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>
> ___
> Mailing list: https://launchpad.net/~openstack
> Post to : openstack@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp
>
>
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


[Openstack] VM Instance NOT able to get IP

2012-09-18 Thread Srikanth Kumar Lingala
Hi,

I'm using Folsom Testing Packages on Ubuntu 12.04.,  Quantum V2 with OVS
Plugin & Agent running.

I created a network with subnet 10.10.0.0/24. I wanted to create an
instance with the created network.

I am trying to create that instance in the same Controller Node.



The following services are up and running.

1.quantum-server

2.quantum-plugin-openvswitch-agent

3.quantum-dhcp-agent

4.nova-api

5.nova-compute

6.nova-cert

7.nova-consoleauth

8.nova-scheduler

9.novnc



The thing is, I am able to create an instance and running. I am able to see
the IP in the ‘Horizon’ which is getting it from Database. But, I am not
able to see that IP, when I VNC to that machine and execute ‘ifconfig’.

When I check the processes running, I am not able to see any 'dnsmasq' and
‘dhcpd’ running with the mentioned subnet.



Can anyone please guide me?



Regards,

Srikanth.
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] ERROR in ‘/var/log/quantum/agent-dhcp.log’ for FOLSOM-3

2012-09-18 Thread Srikanth Kumar Lingala
Hi Dan,
Yes, we have mentioned valid rabbit_host, rabbit_userid and rabbit_password
fields in quantum.conf.
And also, we gave the same fields in ovs_quantum_plugin.ini also.
But, we are getting the same errors in agent-dhcp.log

Srikanth.

On Mon, Sep 17, 2012 at 9:56 PM, Dan Wendlandt  wrote:

> Does the quantum.conf on the host that the dhcp agent is running on
> point to a valid rabbit_host and have a valid user/password for that
> rabbit host?
>
> Dan
>
>
> On Mon, Sep 17, 2012 at 4:29 AM, balaji patnala 
> wrote:
> > Hi,
> >
> > I'm using Folsom Testing Packages on Ubuntu 12.04.,  Quantum V2 with OVS
> > Plugin & Agent running.
> >
> >
> >
> > I am getting the following error for every 30 secs in
> > ‘/var/log/quantum/agent-dhcp.log’ in the Openstack Controller:
> >
> >
> >
> > 2012-09-17 12:25:12ERROR [quantum.agent.dhcp_agent] Unable to sync
> > network state.
> >
> > Traceback (most recent call last):
> >
> >   File "/usr/lib/python2.7/dist-packages/quantum/agent/dhcp_agent.py",
> line
> > 112, in sync_state
> >
> > active_networks = set(self.plugin_rpc.get_active_networks())
> >
> >   File "/usr/lib/python2.7/dist-packages/quantum/agent/dhcp_agent.py",
> line
> > 260, in get_active_networks
> >
> > topic=self.topic)
> >
> >   File
> > "/usr/lib/python2.7/dist-packages/quantum/openstack/common/rpc/proxy.py",
> > line 80, in call
> >
> > return rpc.call(context, self._get_topic(topic), msg, timeout)
> >
> >   File
> >
> "/usr/lib/python2.7/dist-packages/quantum/openstack/common/rpc/__init__.py",
> > line 102, in call
> >
> > return _get_impl().call(cfg.CONF, context, topic, msg, timeout)
> >
> >   File
> >
> "/usr/lib/python2.7/dist-packages/quantum/openstack/common/rpc/impl_kombu.py",
> > line 712, in call
> >
> > rpc_amqp.get_connection_pool(conf, Connection))
> >
> >   File
> > "/usr/lib/python2.7/dist-packages/quantum/openstack/common/rpc/amqp.py",
> > line 368, in call
> >
> > rv = list(rv)
> >
> >   File
> > "/usr/lib/python2.7/dist-packages/quantum/openstack/common/rpc/amqp.py",
> > line 329, in __iter__
> >
> > self.done()
> >
> >   File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__
> >
> > self.gen.next()
> >
> >   File
> > "/usr/lib/python2.7/dist-packages/quantum/openstack/common/rpc/amqp.py",
> > line 326, in __iter__
> >
> > self._iterator.next()
> >
> >   File
> >
> "/usr/lib/python2.7/dist-packages/quantum/openstack/common/rpc/impl_kombu.py",
> > line 595, in iterconsume
> >
> > yield self.ensure(_error_callback, _consume)
> >
> >   File
> >
> "/usr/lib/python2.7/dist-packages/quantum/openstack/common/rpc/impl_kombu.py",
> > line 526, in ensure
> >
> > error_callback(e)
> >
> >   File
> >
> "/usr/lib/python2.7/dist-packages/quantum/openstack/common/rpc/impl_kombu.py",
> > line 576, in _error_callback
> >
> > raise rpc_common.Timeout()
> >
> > Timeout: Timeout while waiting on RPC response.
> >
> >
> >
> > Can anybody help me on this
>
>
>
> --
> ~~~
> Dan Wendlandt
> Nicira, Inc: www.nicira.com
> twitter: danwendlandt
> ~~~
>
> ___
> Mailing list: https://launchpad.net/~openstack
> Post to : openstack@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp
>
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp