Re: [Openstack] Unexpected error in OpenStack Nova

2014-09-03 Thread nithish B
Hi all,
I guess it is a keystone issue. Can you please post the output of
$keystone user-list ?
Thanks.

Regards,
Nitish B.


On Thu, Sep 4, 2014 at 1:28 AM, Chris Buccella <
chris.bucce...@antallagon.com> wrote:

> Have you checked the nova-api log?
>
>
> -Chris
>
>
> On Wed, Sep 3, 2014 at 10:11 AM, Hossein Zabolzadeh 
> wrote:
>
>> Hi,
>> After successful installation of both keystone and nova, I tried to
>> execute the 'nova list' command by the folllowing env variables(My
>> Deployment Model is single machine deployment):
>> export OS_USERNAME=admin
>> export OS_PASSWORD=...
>> export OS_TENANT_NAME=service
>> export OS_AUTH_URL=http://10.0.0.1:5000
>>
>>  But the following unknown error was occurred:
>> ERROR:  (HTTP
>> 300)
>>
>> My nova.conf has the following configuration to connect to keystone:
>> [keystone_authtoken]
>> auth_uri = localhost:5000
>> auth_host = 10.0.0.1
>> auth_port = 35357
>> auth_protocol = http
>> admin_tenant_name = service
>> admin_user = nova
>> admin_password = nova_pass
>>
>> How can I solve the problem?
>> Thanks in advance.
>>
>> ___
>> Mailing list:
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>> Post to : openstack@lists.openstack.org
>> Unsubscribe :
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>>
>>
>
> ___
> Mailing list:
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> Post to : openstack@lists.openstack.org
> Unsubscribe :
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>
>
___
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack


Re: [Openstack] Help regarding openstack dashboard

2014-09-03 Thread nithish B
Hi Sadia,
Both your config files are wrong. For example, the section
"sql_connection = mysql://root:seecs@127.0.0.1/nova?charset=utf8" in
nova.conf is present under the [DEFAULT] section, but it's supposed to be
under the [database] section and in keystone.conf, it's missing!!! Kindly
change both - well, my guess now would be to change all - conf files
accordingly to get it working.

P.S. If you get this working, then all other components will automatically
work. This I guess, would answer your other mail/question of yours of not
able to load a cirrOS image to glance. This is because glance does not have
an endpoint in keystone.

Regards,
Nitish B.


On Wed, Sep 3, 2014 at 5:07 PM, Sadia Bashir <11msccssbas...@seecs.edu.pk>
wrote:

> Hello Nithish,
>
> Thank you for your reply, I found nova.conf in /etc/nove and keystone.conf
> in /etc/keystone. Pls see attached. I found these two files different from
> what you have told me. Should I change these files accordingly in order to
> make things work?
>
>
> On Wed, Sep 3, 2014 at 2:36 PM, nithish B  wrote:
>
>> Hi Sadia,
>>  If you cannot find nova.conf and keystone.conf in your system, do
>> the following:
>>
>> 1. Copy the following to a file.
>>
>> NOVA_CONF=/etc/nova/nova.conf
>> KEYSTONE_CONF=/etc/keystone/keystone.conf
>>
>> cp ${NOVA_CONF}{,.bak}
>> cat > ${NOVA_CONF} <> [DEFAULT]
>> dhcpbridge_flagfile=/etc/nova/nova.conf
>> dhcpbridge=/usr/bin/nova-dhcpbridge
>> 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
>>
>> use_syslog = True
>> syslog_log_facility = LOG_LOCAL0
>>
>> api_paste_config=/etc/nova/api-paste.ini
>> enabled_apis=ec2,osapi_compute,metadata
>>
>> # Libvirt and Virtualization
>> libvirt_use_virtio_for_bridges=True
>> connection_type=libvirt
>> libvirt_type=qemu
>>
>> # Database
>> sql_connection=mysql://nova:${MYSQL_NOVA_PASS}@${MYSQL_HOST}/nova
>>
>> # Messaging
>> rabbit_host=${MYSQL_HOST}
>>
>> # EC2 API Flags
>> #ec2_host=${MYSQL_HOST}
>> #ec2_dmz_host=${MYSQL_HOST}
>> #ec2_private_dns_show_ip=True
>>
>> # Network settings
>> network_api_class=nova.network.neutronv2.api.API
>> neutron_url=http://${MY_IP}:9696
>> neutron_auth_strategy=keystone
>> neutron_admin_tenant_name=service
>> neutron_admin_username=neutron
>> neutron_admin_password=neutron
>> neutron_admin_auth_url=http://${MY_IP}:5000/v2.0
>> libvirt_vif_driver=nova.virt.libvirt.vif.LibvirtHybridOVSBridgeDriver
>> linuxnet_interface_driver=nova.network.linux_net.LinuxOVSInterfaceDriver
>> #firewall_driver=nova.virt.libvirt.firewall.IptablesFirewallDriver
>> security_group_api=neutron
>> firewall_driver=nova.virt.firewall.NoopFirewallDriver
>>
>> service_neutron_metadata_proxy=true
>> neutron_metadata_proxy_shared_secret=foo
>>
>> #Metadata
>> #metadata_host = ${MYSQL_HOST}
>> #metadata_listen = ${MYSQL_HOST}
>> #metadata_listen_port = 8775
>>
>> # Cinder #
>> volume_driver=nova.volume.driver.ISCSIDriver
>> enabled_apis=ec2,osapi_compute,metadata
>> volume_api_class=nova.volume.cinder.API
>> iscsi_helper=tgtadm
>> iscsi_ip_address=${CONTROLLER_HOST}
>>
>> # Images
>> image_service=nova.image.glance.GlanceImageService
>> glance_api_servers=${GLANCE_HOST}:9292
>>
>> # Scheduler
>> scheduler_default_filters=AllHostsFilter
>>
>> # Auth
>> auth_strategy=keystone
>> #keystone_ec2_url=http://${KEYSTONE_ENDPOINT}:5000/v2.0/ec2tokens
>>
>> # NoVNC
>> novnc_enabled=true
>> novncproxy_host=${MY_IP}
>> novncproxy_base_url=http://${MY_IP}:6080/vnc_auto.html
>> novncproxy_port=6080
>>
>> xvpvncproxy_port=6081
>> xvpvncproxy_host=${MY_IP}
>> xvpvncproxy_base_url=http://${MY_IP}:6081/console
>>
>> vncserver_proxyclient_address=${MY_IP}
>> vncserver_listen=0.0.0.0
>>
>> [keystone_authtoken]
>> service_protocol = http
>> service_host = ${MY_IP}
>> service_port = 5000
>> auth_host = ${MY_IP}
>> auth_port = 35357
>> auth_protocol = http
>> auth_uri = http://${MY_IP}:35357/
>> admin_tenant_name = ${SERVICE_TENANT}
>> admin_user = ${NOVA_SERVICE_USER}
>> admin_password = ${NOVA_SERVICE_PASS}
>>
>>
>> EOF
>>
>> sudo chmod 0640 $NOVA_CONF
>> sudo chown nova:nova $NOVA_CONF
>>
>> sudo nova-manage db sync
>>
>> sudo stop nova-api
>> sudo stop nova-scheduler
>> sudo stop nova-novncproxy
>> sudo stop nova-consoleauth
>> sudo stop nova-conductor
>> sudo stop nova-cert
>>
>>
>> sudo start nova-api
>> sudo start nova-scheduler
>> sudo start nova-conductor
>> sudo start nova-cert
>> sudo start nova-consoleauth
>> sudo start nova-novncproxy
>>
>> #sudo sed -i "s#^connection.*#connection =
>> mysql://keystone:${MYSQL_KEYSTONE_PASS}@${MYSQL_HOST}/keystone#"
>> ${KEYSTONE_CONF}
>> #sudo sed -i 's/^#admin_token.*/admin_token = ADMIN/' ${KEYSTONE_CONF}
>> #sudo sed -i 's,^#log_dir.*,log_dir = /var/log/keystone,' ${KEYSTONE_CONF}
>>
>> #sudo echo "use_syslog = True" >> ${KEYSTONE_CONF}
>> #sudo echo "syslog_log_facility = LOG_LOCAL0" >> ${KEYSTONE_CONF}
>>
>> sudo stop keystone
>> sudo start keystone
>>
>> 

[Openstack] glance cirros image connection error

2014-09-03 Thread Sadia Bashir
Hi everyone,

I have installed devstack on ubuntu14.04 virtual machine. In order to
attach glance cirros image I run following command:

$ glance image-show myCirrosImage

and it gave me following error:

Error finding address for
http://10.0.2.15:9292/v1/images/detail?limit=20&name=myCirrosImage:
HTTPConnectionPool(host='10.0.2.15', port=9292): Max retries exceeded with
url: /v1/images/detail?limit=20&name=myCirrosImage (Caused by : [Errno 111] Connection refused)

Please tell me what steps should I take to resolve this error. Thank you!
-- 
Kind Regards,
Sadia
___
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack


Re: [Openstack] External accessing issue

2014-09-03 Thread abhishek jain
Hi Xianyi

For Openstack VMs to be accessed from external network,your external
interface should reside in br-ex.CAn you provide me the details of
ovs-vsctl show,ifconfig and route -n on your CentOS 6.5 x86_64.






On Wed, Sep 3, 2014 at 6:38 PM, Xianyi Ye  wrote:

> Hi all,
>
>
>
> I’m working on the external accessing configuration inside Virtualbox with
> a CentOS 6.5 x86_64.
>
>
>
> Currently, I find that my Openstack instance can ping the Centos, but
> cannot ping outside.
>
> Likewise, my Centos can ping the Openstack instance, but outside hosts
> cannot.
>
>
>
> Is there anyone encounter same issue with mine?
>
>
>
> BTW, my virtualbox network was using Bridge-Adapter.
>
>
>
> Thanks for any help.
>
>
>
> ___
> Mailing list:
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> Post to : openstack@lists.openstack.org
> Unsubscribe :
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>
>
___
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack


Re: [Openstack] SWIFT AND HORIZON

2014-09-03 Thread Brent Troge
I am able to circumvent compute with the below changes. I am also able to
modify content/containers/users/etc without fail.
So in the end my only views are Swift and Identity. I am sure I committed
all types of heresy with the botched up code modification. I suppose I need
to read up on how to unregister each panel within the panel group. Or I
suppose I could just define my own dashboards with my own panels, etc.
Thoughts?

Distro Ubuntu 14.04
Package: openstack-dashboard
Priority: extra
Section: net
Installed-Size: 13907
Maintainer: Chuck Short 
Architecture: all
Source: horizon
Version: 1:2014.1.2-0ubuntu1p


file -
/usr/share/openstack-dashboard/openstack_dashboard/dashboards/admin/dashboard.py

class Admin(horizon.Dashboard):
name = _("Admin")
slug = "admin"
panels = (IdentityPanels, )
default_panel = 'users'
permissions = ('openstack.roles.admin',)



file -
/usr/share/openstack-dashboard/openstack_dashboard/dashboards/project/dashboard.py

class Project(horizon.Dashboard):
name = _("Project")
slug = "project"
panels = (
ObjectStorePanels, )
default_panel = 'containers'
supports_tenants = True




On Tue, Aug 19, 2014 at 2:53 PM, Brent Troge 
wrote:

> OK.. Thanks for the guidance.. I will mediate on this during tonight's 3
> mile run.
>
> Some people need music to workout or during aerobics. I go headphone-less
> and focus on work related challenges.
>
>
>
>
> On Tue, Aug 19, 2014 at 2:47 PM, Gabriel Hurley  > wrote:
>
>>  That answer is generally correct. Remove all the nova and
>> glance-related panels, change the default view on login to redirect to the
>> swift panel… there may be one or two other tweaks. It’s been a while since
>> I looked at what it would take. Like I said, it’s doable, just not “out of
>> the box”.
>>
>>
>>
>> -  Gabriel
>>
>>
>>
>> *From:* Brent Troge [mailto:brenttroge2...@gmail.com]
>> *Sent:* Tuesday, August 19, 2014 12:45 PM
>> *To:* Gabriel Hurley
>> *Cc:* openstack@lists.openstack.org
>> *Subject:* Re: [Openstack] SWIFT AND HORIZON
>>
>>
>>
>> Right, I saw the minimum requirement list, but figured that was outdated,
>> due to the 'answer' provided on another list.
>>
>> The answer basically stated to remove unused panels and only call panels
>> used in the environment.
>>
>>
>>
>> Maybe that is the right answer and I am just too "unlearned" to make it
>> happen.
>>
>>
>>
>> On Tue, Aug 19, 2014 at 2:17 PM, Gabriel Hurley <
>> gabriel.hur...@nebula.com> wrote:
>>
>>  While you **can** hack things around to make it work, the answer is
>> that out-of-the-box it’s not supported. In the Horizon Quickstart guide it
>> lists “Nova (compute, api, scheduler, and network), Glance, and Keystone”
>> as the minimum required services. All others are optionally supported from
>> there.
>>
>>
>>
>> That said, support for a no-compute setup with Horizon has been a common
>> request since the Essex days, and there’s absolutely no reason it couldn’t
>> happen. It’s not even that hard to do; nobody’s filed the blueprints and
>> done the work. Filing blueprints would be a good first step.
>>
>>
>>
>> Keystone, however, will still be required. Some people have suggested
>> that Horizon should support the old nova-auth and swift-auth mechanisms,
>> but to me that just seems fractious. It sounds like using Keystone isn’t an
>> issue for you though.
>>
>>
>>
>> Hope that helps,
>>
>>
>>
>> -  Gabriel
>>
>>
>>
>> *From:* Brent Troge [mailto:brenttroge2...@gmail.com]
>> *Sent:* Tuesday, August 19, 2014 12:00 PM
>> *To:* openstack@lists.openstack.org
>> *Subject:* [Openstack] SWIFT AND HORIZON
>>
>>
>>
>>
>>
>> Does Horizon support a Keystone + Swift only environment?
>>
>> My Horizon instance can communicate with Keystone, however upon login,
>> Horizon is now complaining about a mis-configured compute service.
>>
>> When I look at the Keystone service list, only Identity and Swift are
>> defined and supposedly Horizon only enables the service panels that have a
>> corresponding keystone service list entry.
>>
>> There is another, older thread on this same topic, but the 'answer' isnt
>> that clear to me.
>> Something about manually disabling Horizon panels, etc.
>>
>> Thanks!
>>
>>
>>
>
>
___
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack


[Openstack] diskconfig issue in icehouse nova

2014-09-03 Thread 张强
Hi,


I am trying the icehouse nova and horizon. When I tried booting an instance in 
the horizon, it fails with the KeyError: 'disk_config'. After checking that, I 
found that the diskConfig was removed in nova 
(https://review.openstack.org/#/c/62227/), but added in 
Horizon(https://review.openstack.org/#/c/74911/).
Has anyone seen that? Is there a bug filed for this?


Thanks,
Qiang___
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack


Re: [Openstack] Query regarding using Openstack

2014-09-03 Thread JuanFra Rodriguez Cardoso
Hi:

As first approach, you could try to look at Security Guide (
http://docs.openstack.org/security-guide/content/) or consider using the
Neutron plugin framework. Anyway, a good point for getting more help in
this area could be the opensatck-dev list (
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev) and
Neutron IRC channel (https://wiki.openstack.org/wiki/IRC)

"OpenStack Networking has an extension framework allowing additional
network services, such as intrusion detection systems (IDS), load
balancing, firewalls and virtual private networks (VPN) to be deployed and
managed."

Regards,
---
JuanFra Rodriguez Cardoso


2014-09-03 8:31 GMT+02:00 Zunayeed Zahir :

>
> We are undergraduate students and for our undergraduate research work we
> are planning to build Openstack Cloud in our Linux machine. For better
> security purpose of our Cloud we are planning to develop a Intrusion
> Detection Technique using Hidden Markov Model. In order to develop the HMM
> we planned to use Hidden Markov Model Toolkit (htk). Will this be a good
> decision? Can you suggest us is there any related work done in this area
> which might help us accomplishing our research.
>
> Thank You
> Zunayeed, Ahsan
>
> ___
> Mailing list:
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> Post to : openstack@lists.openstack.org
> Unsubscribe :
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>
>
___
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack


Re: [Openstack] Unexpected error in OpenStack Nova

2014-09-03 Thread Chris Buccella
Have you checked the nova-api log?


-Chris


On Wed, Sep 3, 2014 at 10:11 AM, Hossein Zabolzadeh 
wrote:

> Hi,
> After successful installation of both keystone and nova, I tried to
> execute the 'nova list' command by the folllowing env variables(My
> Deployment Model is single machine deployment):
> export OS_USERNAME=admin
> export OS_PASSWORD=...
> export OS_TENANT_NAME=service
> export OS_AUTH_URL=http://10.0.0.1:5000
>
> But the following unknown error was occurred:
> ERROR:  (HTTP
> 300)
>
> My nova.conf has the following configuration to connect to keystone:
> [keystone_authtoken]
> auth_uri = localhost:5000
> auth_host = 10.0.0.1
> auth_port = 35357
> auth_protocol = http
> admin_tenant_name = service
> admin_user = nova
> admin_password = nova_pass
>
> How can I solve the problem?
> Thanks in advance.
>
> ___
> Mailing list:
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> Post to : openstack@lists.openstack.org
> Unsubscribe :
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>
>
___
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack


Re: [Openstack] Swift questions

2014-09-03 Thread Marcus White
Just a bump:)

On Mon, Sep 1, 2014 at 1:49 PM, Marcus White  wrote:
> Hello John
> Thanks a lot for all your answers:)
>
> Some more follow up questios
>
> You mentioned you see both deployments..
>
> 1. For the case where there are different IP addresses for different
> regions, I am assuming a different keystone deployment for each site
> with clients knowing the auth endpoints of each site, and getting the
> swift endpoints from the auth endpoints service catalog. They know or
> figure out which one is local themselves..
>
> 2. For the multi geo case with multiple IPs, wanted to query here
> again on the answer you mentioned, that the keystone database is
> synced across sites..For the multi site case you had mentioned you see
> in deployments with multiple IP addresses, how do you guys set up
> keystone so that the user information is the same across all sites?
> Probably related to Question 1.
>
> MW
>
> On Sun, Aug 31, 2014 at 11:41 PM, John Dickinson  wrote:
>>
>> On Aug 31, 2014, at 5:25 AM, Marcus White  wrote:
>>
>>> One last follow up question, hopefully!
>>>
>>> I agree, each proxy server can handle any requests..I wanted to see
>>> what the typical deployment is for the multi geo case.
>>>
>>> For multi region global clusters, for example, each region would have
>>> a separate IP address? Behind each regions IP address you can have
>>> multiple proxy servers in each site, and a customer can connect to any
>>> site?
>>
>> I've seen both. Really it depends on the goals of the global cluster and the 
>> existing infrastructure available. If the goal is a DR story, then often DNS 
>> is pointed at one region, and when the "R" of DR is needed, the DNS entry is 
>> updated to point to the other region. Other times, if the goal is to allow 
>> for lower-latency reads and writes, then then all regions are used for 
>> access all the time. The client either relies on some sort of 
>> geo-dns/anycast system to get to the closest endpoint, or the client chooses 
>> the preferred region from a list of available ones.
>>
>> Yes, I'd normally expect each region to have a separate public IP address 
>> with multiple proxies load balanced behind it.
>>
>>>
>>> In a single site case, keystone would give you one end point, which is
>>> the external load balancer Ip. For the multi site case, what happens
>>> with keystone? Does it provide multiple end points?
>>>
>>> Another question is, does the keystone server itself have a different
>>> external IP for each site?
>>
>> My understanding is that Keystone doesn't really work across wide geographic 
>> areas (I'd be happy to be wrong here--maybe a Keystone dev can jump in). I 
>> think the limitation is around the backing store Keystone uses to manage 
>> tokens and the service catalog.
>>
>> There are a few things to consider when using a central auth system with a 
>> globally distributed Swift cluster. First, note that if the auth token 
>> (identity info) isn't cached in the local region, Swift will need to ask the 
>> Keystone service for the information. Swift will cache it if possible, but 
>> know that the auth lookup will add latency (noticeable latency if the auth 
>> system is across an ocean). Second, make sure memcache and Swift's cache 
>> middleware are configured properly. For example, you don't want a global 
>> memcache pool to result in 50% of the internal "fetch from cache" requests 
>> to go across the WAN. You'd instead want a separate memcache pool for each 
>> region.
>>
>> As a side note, a centralized auth system actually makes the caching 
>> strategies easier, since there's less complexity to deal with when trying to 
>> get and cache and validate auth credentials and tokens.
>>
>>
>>>
>>> Just confused a bit on the deployment basics.
>>
>> Good luck! and feel free to ask more as needed.
>>
>>>
>>> MW.
>>>
>>>
>>> On Fri, Aug 29, 2014 at 7:51 PM, John Dickinson  wrote:

 On Aug 29, 2014, at 2:43 AM, Marcus White  
 wrote:

> Thanks John:)
>
> Some more additional basic questions..
>
> 1. For the multi site case, does Swift present a single end point, or
> is it two separate regions with two separate IP addresses, and the
> client can talk to either to get the data? I think it is the latter?

 Every proxy server in the cluster will be able to handle requests. There 
 isn't a single "control node" that brokers everything. Often times, all of 
 the proxy servers are put behind a load balancer or geo-dns or something 
 to present a single domain for the cluster.


>
> 2. Are keystone databases synced across sites? I didnt know of an
> option in keystone to do that, hence asking..If we need to
> authenticate against keystone on different sites to access the same
> object, it has to be that way?

 That is also my understanding, but I'm not an expert on Keystone options 
 or deployment patterns.

>
> TIA,
>
> MW
>
>>

[Openstack] Hep regarding attach cirrOS image for glance with openstack dashboard

2014-09-03 Thread Sadia Bashir
Hello everyone,

I want to know how to attach cirrOS image for glance with openstack
dashboard: I tried following but it didn't work for me:

Downloaded CirrOS test image from the link:
https://launchpad.net/cirros/+download  and then followed commands from its
ReadMe file:

 * get some build dependencies:
   $ sudo apt-get -y install bison flex texinfo build-essential gettext
ncurses-dev unzip bzr qemu-kvm cvs quilt

 * bzr branch lp:cirros
 * cd cirros

 * download buildroot and setup environment
   $ br_ver="2012.05"
   $ mkdir -p ../download
   $ ln -snf ../download download
   $ ( cd download && wget
http://buildroot.uclibc.org/downloads/buildroot-${br_ver}.tar.gz )
   $ tar -xvf download/buildroot-${br_ver}.tar.gz
   $ ln -snf buildroot-${br_ver} buildroot

 * update ./bin/mkcabundle > src/etc/ssl/certs/ca-certificates.crt
   $ ./bin/mkcabundle > src/etc/ssl/certs/ca-certificates.crt

 * apply any local cirros patches to buildroot
   ( cd buildroot && QUILT_PATCHES=$PWD/../patches-buildroot quilt push -a )

 * download the buildroot sources
   $ make ARCH=i386 br-source

 * Build buildroot for a given arch
   # ARCH should be set to 'i386', 'x86_64' or 'arm'
   $ make ARCH=i386 OUT_D=$PWD/output/i386

   This will do a full buildroot build, which will take a while. The output
   that CirrOS is interested in is output/i386/rootfs.tar.
   That file is the full buildroot filesystem, and is used as input for
   subsequent steps here.

 * Download a kernel to use.
   The kernel input to bundle must be in deb format. The ubuntu '-virtual'
   kernel is used as a starting point.

   $ kver="3.2.0-60.91";
   $ burl="https://launchpad.net/ubuntu/+archive/primary/+files/linux-image";
   $ for arch in i386 x86_64 arm; do
 xarch=$arch; flav="virtual"
 [ "$arch" = "x86_64" ] && xarch="amd64";
 [ "$arch" = "arm" ] && xarch="armel" && flav="omap"
 url="$burl-${kver%.*}-${flav}_${kver}_${xarch}.deb"
 wget "$url" -O download/${url##*/}
 ln -sf ${url##*/} download/kernel-${arch}.deb
   done

 * build disk images using bin/bundle
   $ sudo ./bin/bundle -v output/$ARCH/rootfs.tar download/kernel-$ARCH.deb
output/$ARCH/images

. All commands worked fine untill the last one for building disk images
using bin/bundle which is giving me following error:

preparing kernel overlay dpkg-deb: error: failed to read archive
`download/kernel-.deb': No such file or directory
failed to extract kernel to /tmp/.bundle.gVsIsm/kernel

Please tell me what steps should I follow to attach a cirrOS with the
openstack dashboard. Thank you!
-- 
Kind Regards,
*Sadia*
___
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack


[Openstack] Unexpected error in OpenStack Nova

2014-09-03 Thread Hossein Zabolzadeh
Hi,
After successful installation of both keystone and nova, I tried to execute
the 'nova list' command by the folllowing env variables(My Deployment Model
is single machine deployment):
export OS_USERNAME=admin
export OS_PASSWORD=...
export OS_TENANT_NAME=service
export OS_AUTH_URL=http://10.0.0.1:5000

But the following unknown error was occurred:
ERROR:  (HTTP
300)

My nova.conf has the following configuration to connect to keystone:
[keystone_authtoken]
auth_uri = localhost:5000
auth_host = 10.0.0.1
auth_port = 35357
auth_protocol = http
admin_tenant_name = service
admin_user = nova
admin_password = nova_pass

How can I solve the problem?
Thanks in advance.
___
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack


[Openstack] External accessing issue

2014-09-03 Thread Xianyi Ye
Hi all,

 

I'm working on the external accessing configuration inside Virtualbox with a
CentOS 6.5 x86_64.

 

Currently, I find that my Openstack instance can ping the Centos, but cannot
ping outside.

Likewise, my Centos can ping the Openstack instance, but outside hosts
cannot.

 

Is there anyone encounter same issue with mine?

 

BTW, my virtualbox network was using Bridge-Adapter.

 

Thanks for any help.

 

___
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack


Re: [Openstack] [Openstack Heat] create failed, Bad network format: missing 'uuid' (HTTP 400)

2014-09-03 Thread Khayam Gondal
I was able to solve the problem and I had posted answer here

.


On Wed, Sep 3, 2014 at 3:25 PM, Khayam Gondal 
wrote:

> I already tried with Network Name but still no luck
>
>
> On Wed, Sep 3, 2014 at 1:32 PM, ZHOU TAO A 
> wrote:
>
>>  Try with the network name rather than its ID.
>>
>> On 09/03/2014 02:54 PM, khayam.gon...@gmail.com wrote:
>>
>>
>>   I am using following template to create a Heat Stack.
>>
>> heat_template_version: 2013<
>> /span>-05-23
>>
>>
>> description: Hot Template to deploy a single server
>>
>> parameters:
>>   ImageID:
>> type: string
>> description: Image ID
>>   NetID:
>> type: string
>> description: External Network ID
>>
>> resources:
>>   server_0:
>> type: OS::Nova::Server
>> properties:
>>   name: "server0"
>>   image: { get_param: ImageID }
>>   flavor: "m1.small"
>>   networks:
>>   - network: { get_param: NetID }
>>
>> outputs:
>>   server0_ip:
>> description: IP of the server
>> value: { get_attr: [ server_0, first_address ] }
>>
>> When I create stack. It shows create failed status. *BadRequest: Bad network 
>> format: missing 'uuid' (HTTP 400) (Request-ID: 
>> req-c8360423-e597-495e-9b36-0158177ccd1a)*. I also attached the snapshot of 
>> error.
>>
>>  P.S : I checked and double checked the Network ID and Image ID but
>> error remains. heat logs shows same error *heat.engine.resource
>> BadRequest: Bad network format: missing 'uuid' (HTTP 400).*
>> I had also asked
>> at
>> ask.openstack.org but still have no answers.
>>
>>
>> ___
>> Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>> Post to : openstack@lists.openstack.org
>> Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>>
>>
>>
>> ___
>> Mailing list:
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>> Post to : openstack@lists.openstack.org
>> Unsubscribe :
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>>
>>
>
___
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack


Re: [Openstack] Help regarding openstack dashboard

2014-09-03 Thread Sadia Bashir
Hello Nithish,

Thank you for your reply, I found nova.conf in /etc/nove and keystone.conf
in /etc/keystone. Pls see attached. I found these two files different from
what you have told me. Should I change these files accordingly in order to
make things work?


On Wed, Sep 3, 2014 at 2:36 PM, nithish B  wrote:

> Hi Sadia,
>  If you cannot find nova.conf and keystone.conf in your system, do the
> following:
>
> 1. Copy the following to a file.
>
> NOVA_CONF=/etc/nova/nova.conf
> KEYSTONE_CONF=/etc/keystone/keystone.conf
>
> cp ${NOVA_CONF}{,.bak}
> cat > ${NOVA_CONF} < [DEFAULT]
> dhcpbridge_flagfile=/etc/nova/nova.conf
> dhcpbridge=/usr/bin/nova-dhcpbridge
> 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
>
> use_syslog = True
> syslog_log_facility = LOG_LOCAL0
>
> api_paste_config=/etc/nova/api-paste.ini
> enabled_apis=ec2,osapi_compute,metadata
>
> # Libvirt and Virtualization
> libvirt_use_virtio_for_bridges=True
> connection_type=libvirt
> libvirt_type=qemu
>
> # Database
> sql_connection=mysql://nova:${MYSQL_NOVA_PASS}@${MYSQL_HOST}/nova
>
> # Messaging
> rabbit_host=${MYSQL_HOST}
>
> # EC2 API Flags
> #ec2_host=${MYSQL_HOST}
> #ec2_dmz_host=${MYSQL_HOST}
> #ec2_private_dns_show_ip=True
>
> # Network settings
> network_api_class=nova.network.neutronv2.api.API
> neutron_url=http://${MY_IP}:9696
> neutron_auth_strategy=keystone
> neutron_admin_tenant_name=service
> neutron_admin_username=neutron
> neutron_admin_password=neutron
> neutron_admin_auth_url=http://${MY_IP}:5000/v2.0
> libvirt_vif_driver=nova.virt.libvirt.vif.LibvirtHybridOVSBridgeDriver
> linuxnet_interface_driver=nova.network.linux_net.LinuxOVSInterfaceDriver
> #firewall_driver=nova.virt.libvirt.firewall.IptablesFirewallDriver
> security_group_api=neutron
> firewall_driver=nova.virt.firewall.NoopFirewallDriver
>
> service_neutron_metadata_proxy=true
> neutron_metadata_proxy_shared_secret=foo
>
> #Metadata
> #metadata_host = ${MYSQL_HOST}
> #metadata_listen = ${MYSQL_HOST}
> #metadata_listen_port = 8775
>
> # Cinder #
> volume_driver=nova.volume.driver.ISCSIDriver
> enabled_apis=ec2,osapi_compute,metadata
> volume_api_class=nova.volume.cinder.API
> iscsi_helper=tgtadm
> iscsi_ip_address=${CONTROLLER_HOST}
>
> # Images
> image_service=nova.image.glance.GlanceImageService
> glance_api_servers=${GLANCE_HOST}:9292
>
> # Scheduler
> scheduler_default_filters=AllHostsFilter
>
> # Auth
> auth_strategy=keystone
> #keystone_ec2_url=http://${KEYSTONE_ENDPOINT}:5000/v2.0/ec2tokens
>
> # NoVNC
> novnc_enabled=true
> novncproxy_host=${MY_IP}
> novncproxy_base_url=http://${MY_IP}:6080/vnc_auto.html
> novncproxy_port=6080
>
> xvpvncproxy_port=6081
> xvpvncproxy_host=${MY_IP}
> xvpvncproxy_base_url=http://${MY_IP}:6081/console
>
> vncserver_proxyclient_address=${MY_IP}
> vncserver_listen=0.0.0.0
>
> [keystone_authtoken]
> service_protocol = http
> service_host = ${MY_IP}
> service_port = 5000
> auth_host = ${MY_IP}
> auth_port = 35357
> auth_protocol = http
> auth_uri = http://${MY_IP}:35357/
> admin_tenant_name = ${SERVICE_TENANT}
> admin_user = ${NOVA_SERVICE_USER}
> admin_password = ${NOVA_SERVICE_PASS}
>
>
> EOF
>
> sudo chmod 0640 $NOVA_CONF
> sudo chown nova:nova $NOVA_CONF
>
> sudo nova-manage db sync
>
> sudo stop nova-api
> sudo stop nova-scheduler
> sudo stop nova-novncproxy
> sudo stop nova-consoleauth
> sudo stop nova-conductor
> sudo stop nova-cert
>
>
> sudo start nova-api
> sudo start nova-scheduler
> sudo start nova-conductor
> sudo start nova-cert
> sudo start nova-consoleauth
> sudo start nova-novncproxy
>
> #sudo sed -i "s#^connection.*#connection =
> mysql://keystone:${MYSQL_KEYSTONE_PASS}@${MYSQL_HOST}/keystone#"
> ${KEYSTONE_CONF}
> #sudo sed -i 's/^#admin_token.*/admin_token = ADMIN/' ${KEYSTONE_CONF}
> #sudo sed -i 's,^#log_dir.*,log_dir = /var/log/keystone,' ${KEYSTONE_CONF}
>
> #sudo echo "use_syslog = True" >> ${KEYSTONE_CONF}
> #sudo echo "syslog_log_facility = LOG_LOCAL0" >> ${KEYSTONE_CONF}
>
> sudo stop keystone
> sudo start keystone
>
> sudo keystone-manage db_sync
>
> sudo apt-get -y install python-keystoneclient
>
> export ENDPOINT=${MY_IP}
> export SERVICE_TOKEN=ADMIN
> export SERVICE_ENDPOINT=http://${ENDPOINT}:35357/v2.0
> export PASSWORD=openstack
>
> source .keystonerc
>
>
>
> P.S. Provide the parameters in accord to your setup.
>
>
>
> Regards,
> Nitish B.
>
>
> On Wed, Sep 3, 2014 at 2:31 PM, Sadia Bashir <11msccssbas...@seecs.edu.pk>
> wrote:
>
>> By the way I followed instructions given at www.devstack.org and its
>> installation went smooth.
>>
>>
>> On Wed, Sep 3, 2014 at 1:51 PM, Sadia Bashir <11msccssbas...@seecs.edu.pk
>> > wrote:
>>
>>> Hello everyone,
>>>
>>> I am new here, It is my first email to the list. I successfully
>>> completed installation of openstack on Ubuntu 14.04 LTS and it gave me URLs
>>> for accessing dashboard, admin user password and keystone services as well.
>>> But I am facing followin

[Openstack] Neutron 2-node configuration

2014-09-03 Thread James Harrison
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi all,

Just getting my feet wet with Openstack - I've gone through a number
of test installs and things have gone well with the all-in-one
approach (everything on one host). I'm running neutron/ml2/openvswitch
with a GRE tenant network. The main controller box is running
everything and that all works fine.

The external net is 192.168.88.0/24 with physical hosts on .90 and .91.

I'm now trying to expand my cloud to a second node running
nova-compute, openvswitch and the neutron-plugin-openvswitch-agent.

I've followed the Ubuntu 14.04 install guide to the letter aside from
changing things like my_ip and so on to match.

Connectivity between the boxes is fine, they can ping each other etc.


I can boot a VM on the new compute node, but it cannot get DHCP, nor
can I ping it from any host in its tenant network.


/var/log/openvswitch/ovs-vswitchd.log shows a lot of this:
2014-09-03T10:10:20.144Z|3|tunnel(miss_handler)|WARN|receive
tunnel port not found (192.168.88.91->192.168.88.90, key=0x2, dp
port=3, pkt mark=0)
2014-09-03T10:10:20.144Z|4|ofproto_dpif_upcall(miss_handler)|INFO|received
packet on unassociated datapath port 3

/var/log/neutron/openvswitch-agent.log shows this:
2014-09-03 09:28:12.176 7347 ERROR neutron.agent.linux.ovsdb_monitor
[-] Error received from ovsdb monitor:
2014-09-03T08:28:12Z|1|fatal_signal|WARN|terminating with signal
15 (Terminated)
2014-09-03 09:28:12.532 7347 CRITICAL neutron [-] Trying to re-send()
an already-triggered event.

user@compute:~$ sudo ovs-vsctl show
0dbd7543-210f-48be-a206-ed949cdc61f6
Bridge br-int
fail_mode: secure
Port br-int
Interface br-int
type: internal
Port patch-tun
Interface patch-tun
type: patch
options: {peer=patch-int}
Bridge br-tun
Port br-tun
Interface br-tun
type: internal
Port patch-int
Interface patch-int
type: patch
options: {peer=patch-tun}
Port "gre-c0a8585b"
Interface "gre-c0a8585b"
type: gre
options: {in_key=flow, local_ip="192.168.88.90",
out_key=flow, remote_ip="192.168.88.91"}
ovs_version: "2.0.1"

(No VMs booted at the above time but they show up in br-int as
expected when booted)

On the controller I can see the gre tunnel's other end in ovs-vsctl
show in br-tun, and the patch interface there to br-int looks fine.

I've rebuilt the compute box over a couple of times and I'm utterly
lost at this point - any ideas?

- -- 
Cheers,
James
-BEGIN PGP SIGNATURE-
Version: GnuPG v2

iQIcBAEBAgAGBQJUBuy7AAoJENTyYHL8dmp9OAQP/A9/By+IQArgdng75nzZdQw/
KJsQVtFTXDkW3e1wQAiQleIpIy5h+rWlMnbF32qfu8Kb6hECXIEV2Au4s83MwXIh
6r4x/HoNqLyFj3qGutVVQXRF5kGvGJLHuhBqr5rA/7RNW6SjF7I1IxgajOmuAPzn
bM+b80+QWF8v6q8gkeqh+2zMnFFxDYfkd694PrnS/ytovlsf6a2dlz7BNIhD0o5z
HXofaT/2geIEzQ9BopZRi1bne35zaYS7as0udSGnPVOy5EcX98Z5uFmvCIZxWY0U
mMDeA5yjWPLEasjn0yLt97HtoW7A1Ghvdxxe+lXJQ40QbM4yursHi5Rqiss2CGmA
wvR/bGsX3YGgyekkF+iOwyn2BpB/RspkXfZK2dnKXGbKgYiNW87cvcmPBA0cnDEa
EZnzy30BfYJwGHbks+vubbn7pzY+DpvJ+C22LxfB8F8B/gjf1oolwLIDRjIEs3ie
/ZA1E83rySLeG69K0EeIbXyOqHRRDHjnB0puHfsWByqRTQIltc2Pf3zIUxnbySiC
52KCq2oLAuq3ZqpxQep61oedpfxjdz5bs9UOVcZOOptR279JktQETY+yeeg+kaO8
1CbkYz4o8kcS9ZehiZua38HHZMZ/1QFT2R9L34B4HMX8zJuFYPYffkws4Glmn8El
Hv6lRuPykuye5Mok7H94
=+Oe6
-END PGP SIGNATURE-

___
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack


Re: [Openstack] [Openstack Heat] create failed, Bad network format: missing 'uuid' (HTTP 400)

2014-09-03 Thread Khayam Gondal
I already tried with Network Name but still no luck


On Wed, Sep 3, 2014 at 1:32 PM, ZHOU TAO A 
wrote:

>  Try with the network name rather than its ID.
>
> On 09/03/2014 02:54 PM, khayam.gon...@gmail.com wrote:
>
>
>   I am using following template to create a Heat Stack.
>
> heat_template_version: 2013<
> /span>-05-23
>
>
> description: Hot Template to deploy a single server
>
> parameters:
>   ImageID:
> type: string
> description: Image ID
>   NetID:
> type: string
> description: External Network ID
>
> resources:
>   server_0:
> type: OS::Nova::Server
> properties:
>   name: "server0"
>   image: { get_param: ImageID }
>   flavor: "m1.small"
>   networks:
>   - network: { get_param: NetID }
>
> outputs:
>   server0_ip:
> description: IP of the server
> value: { get_attr: [ server_0, first_address ] }
>
> When I create stack. It shows create failed status. *BadRequest: Bad network 
> format: missing 'uuid' (HTTP 400) (Request-ID: 
> req-c8360423-e597-495e-9b36-0158177ccd1a)*. I also attached the snapshot of 
> error.
>
>  P.S : I checked and double checked the Network ID and Image ID but error
> remains. heat logs shows same error *heat.engine.resource BadRequest: Bad
> network format: missing 'uuid' (HTTP 400).*
> I had also asked
> at
> ask.openstack.org but still have no answers.
>
>
> ___
> Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> Post to : openstack@lists.openstack.org
> Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>
>
>
> ___
> Mailing list:
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> Post to : openstack@lists.openstack.org
> Unsubscribe :
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>
>
___
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack


Re: [Openstack] Heat template works in command line but fails at dashboard

2014-09-03 Thread Steven Hardy
On Wed, Sep 03, 2014 at 05:13:19PM +0800, ZHOU TAO A wrote:
> Hi Steve,
> 
> I tried with your suggestion and it works.
> I am just curious about  what's the difference between launching from
> dashboard and launching from dashboard.
> If my template is wrong, why it works in CLI?

I'm not sure to be honest.

My best guess is that when launching from the dashboard, the default is
extracted from the template and passed as a parameter in the request to
heat, whereas unless you're explicitly passing the parameter to your CLI
call, it is not.

So probably we're handling the parameter validation in a different way to
the validation of the template default.  Possibly there's a bug there as
strictly speaking your template should've failed validation in both cases.

Steve

___
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack


Re: [Openstack] Heat template works in command line but fails at dashboard

2014-09-03 Thread ZHOU TAO A

Hi Steve,

I tried with your suggestion and it works.
I am just curious about  what's the difference between launching from 
dashboard and launching from dashboard.

If my template is wrong, why it works in CLI?



On 09/03/2014 04:42 PM, Steven Hardy wrote:

On Wed, Sep 03, 2014 at 10:23:34AM +0800, ZHOU TAO A wrote:

Hi All,

I can launch a template from CLI by running 'heat stack-create -f
mytemplate.yaml', but I cannot launch it from dashboard because it get the
wrong security group.

I have a security group parameter defined like this:

   my_security_group:
 type: comma_delimited_list
 label: 'Node d Security Group(s)'
 default:
   - default

Then  I used get_param to get this parameter
   security_groups:
 get_param: my_security_group

When launched from dashboard, the value of security_groups becomes
'[u'default']', which is suppose to be 'default'.
Anyone ever had same issue like this?

Isn't the problem that you're defining a list for the default in the
template, when it should be a string?

E.g:

security_group:
  type: comma_delimited_list
  label: 'Node d Security Group(s)'
  default: default

If you need to specify additional items, they are delimted via commas, as
described in the type name, e.g
  
security_group:

  type: comma_delimited_list
  label: 'Node d Security Group(s)'
  default: default,blah

Heat then splits the string into a list when parsing the template.

Hope that helps.

Steve





___
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack


Re: [Openstack] Help regarding openstack dashboard

2014-09-03 Thread nithish B
Hi Sadia,
 If you cannot find nova.conf and keystone.conf in your system, do the
following:

1. Copy the following to a file.

NOVA_CONF=/etc/nova/nova.conf
KEYSTONE_CONF=/etc/keystone/keystone.conf

cp ${NOVA_CONF}{,.bak}
cat > ${NOVA_CONF} > ${KEYSTONE_CONF}
#sudo echo "syslog_log_facility = LOG_LOCAL0" >> ${KEYSTONE_CONF}

sudo stop keystone
sudo start keystone

sudo keystone-manage db_sync

sudo apt-get -y install python-keystoneclient

export ENDPOINT=${MY_IP}
export SERVICE_TOKEN=ADMIN
export SERVICE_ENDPOINT=http://${ENDPOINT}:35357/v2.0
export PASSWORD=openstack

source .keystonerc



P.S. Provide the parameters in accord to your setup.



Regards,
Nitish B.


On Wed, Sep 3, 2014 at 2:31 PM, Sadia Bashir <11msccssbas...@seecs.edu.pk>
wrote:

> By the way I followed instructions given at www.devstack.org and its
> installation went smooth.
>
>
> On Wed, Sep 3, 2014 at 1:51 PM, Sadia Bashir <11msccssbas...@seecs.edu.pk>
> wrote:
>
>> Hello everyone,
>>
>> I am new here, It is my first email to the list. I successfully completed
>> installation of openstack on Ubuntu 14.04 LTS and it gave me URLs for
>> accessing dashboard, admin user password and keystone services as well. But
>> I am facing following issues:
>>
>> 1. After I login to openstack dashboard, I got the following error:
>> Error: Unable to retrieve usage information
>> I am not able to create any instances, volumes or anything there.
>> 2. I tried following this link
>> https://answers.launchpad.net/horizon/+question/181166 to resolve error
>> but I found no nova.conf and keystone.conf in my system.
>>
>> Pls tell me how do I resolve these errors. Any useful link, suggestion or
>> help will be appreciated. Thank you in advance!
>>
>>
>> --
>> Regards,
>> Sadia
>>
>>
>>
>
>
>
> --
>
>
>
> ___
> Mailing list:
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> Post to : openstack@lists.openstack.org
> Unsubscribe :
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>
>
___
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack


[Openstack] Ceilometer expirer doesn't work?!

2014-09-03 Thread Heiko Krämer

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi guys,

i noticed my mongoDB will grow fast with massively samples and meters of
ceilometer. That's normal with a mass on tracking data but i need to
drop samples after a while o held my db clean so i take a look on
ceilometer-expirer (no documentation present).

I've found the option
time_to_life = 

ceilometer-expirer will check this option and drop all samples
>time_to_live ... so the theory ...

My database is now 96GB and i test the expirer with different
time_to_live values but i can't see any drop in my database.
I've checked it with mongostats to look wich operations are triggered
but i see only inserts, updates and selects.


Is there any trick  because i can't find any doc, troubleshoot or bug
report about this issue. I need to clean my db otherwise i can't get
data because my search queries with the ceilometer client times out.


System:
* Ubuntu 12.04
* Havana release
* MongoDB  2.6.4 (replicaSet)


Cheers and Thanks
Heiko


- -- 
anynines.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1

iQEcBAEBAgAGBQJUBt2GAAoJELxFogM4ixOFc1oH/RhzhvIcLiO3fjNHhSqd/wa0
ECofYxNaLNgYi7ikHPtYLQ/QU2n9xM6fvY9gU48PJq/ykM713CigmgiRQ5iAlqaL
cpcEqSoT0MogG3F+gfnEkwh7LilxQ8clxz9oyNj6zdoGG1Cjr+9c4t+0NZHgAOHp
V3XQMrmTvPdTSOO+oMeUFkvvNSznEOzxiDkOTXuoJY4Z4HIPOsjhQguf25TRxti8
XYZi2QkgtbxBwbV+KvORGCeIFE7gb9Txm3JmlUYd6xA9nPgntRjk3/KKoAT3E5gU
70ZRlJzH9O6XP+jIjHAcDvLTzRHOO0pArrEPZS4HrPNGM+Nhz3BCp8oQURgVNeA=
=WrcO
-END PGP SIGNATURE-



___
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack


Re: [Openstack] Help regarding openstack dashboard

2014-09-03 Thread Sadia Bashir
Got the files there in /etc/nova/api-paste-ini but got no following
sections there:

[pipeline:openstackapi10]

# pipeline = faultwrap noauth ratelimit osapiapp10
# NOTE(vish): use the following pipeline for deprecated auth
#pipeline = faultwrap auth ratelimit osapiapp10

[pipeline:openstackapi11]
# pipeline = faultwrap noauth ratelimit extensions osapiapp11
# NOTE(vish): use the following pipeline for deprecated auth
pipeline = faultwrap auth ratelimit extensions osapiapp11
[pipeline:ec2cloud]
# pipeline = logrequest ec2noauth cloudrequest authorizer ec2executor
# NOTE(vish): use the following pipeline for deprecated auth
pipeline = logrequest authenticate cloudrequest authorizer ec2executor

[pipeline:ec2admin]
# pipeline = logrequest ec2noauth adminrequest authorizer ec2executor
# NOTE(vish): use the following pipeline for deprecated auth
pipeline = logrequest authenticate adminrequest authorizer ec2executor

Please tell me how to fix it to move further. Thank you!


On Wed, Sep 3, 2014 at 2:01 PM, Sadia Bashir <11msccssbas...@seecs.edu.pk>
wrote:

> By the way I followed instructions given at www.devstack.org and its
> installation went smooth.
>
>
> On Wed, Sep 3, 2014 at 1:51 PM, Sadia Bashir <11msccssbas...@seecs.edu.pk>
> wrote:
>
>> Hello everyone,
>>
>> I am new here, It is my first email to the list. I successfully completed
>> installation of openstack on Ubuntu 14.04 LTS and it gave me URLs for
>> accessing dashboard, admin user password and keystone services as well. But
>> I am facing following issues:
>>
>> 1. After I login to openstack dashboard, I got the following error:
>> Error: Unable to retrieve usage information
>> I am not able to create any instances, volumes or anything there.
>> 2. I tried following this link
>> https://answers.launchpad.net/horizon/+question/181166 to resolve error
>> but I found no nova.conf and keystone.conf in my system.
>>
>> Pls tell me how do I resolve these errors. Any useful link, suggestion or
>> help will be appreciated. Thank you in advance!
>>
>>
>> --
>> Regards,
>> Sadia
>>
>>
>>
>
>
>
> --
>
>
>



--
___
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack


Re: [Openstack] Help regarding openstack dashboard

2014-09-03 Thread Sadia Bashir
By the way I followed instructions given at www.devstack.org and its
installation went smooth.


On Wed, Sep 3, 2014 at 1:51 PM, Sadia Bashir <11msccssbas...@seecs.edu.pk>
wrote:

> Hello everyone,
>
> I am new here, It is my first email to the list. I successfully completed
> installation of openstack on Ubuntu 14.04 LTS and it gave me URLs for
> accessing dashboard, admin user password and keystone services as well. But
> I am facing following issues:
>
> 1. After I login to openstack dashboard, I got the following error:
> Error: Unable to retrieve usage information
> I am not able to create any instances, volumes or anything there.
> 2. I tried following this link
> https://answers.launchpad.net/horizon/+question/181166 to resolve error
> but I found no nova.conf and keystone.conf in my system.
>
> Pls tell me how do I resolve these errors. Any useful link, suggestion or
> help will be appreciated. Thank you in advance!
>
>
> --
> Regards,
> Sadia
>
>
>



--
___
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack


Re: [Openstack] Heat template works in command line but fails at dashboard

2014-09-03 Thread Steven Hardy
On Wed, Sep 03, 2014 at 10:23:34AM +0800, ZHOU TAO A wrote:
> Hi All,
> 
> I can launch a template from CLI by running 'heat stack-create -f
> mytemplate.yaml', but I cannot launch it from dashboard because it get the
> wrong security group.
> 
> I have a security group parameter defined like this:
> 
>   my_security_group:
> type: comma_delimited_list
> label: 'Node d Security Group(s)'
> default:
>   - default
> 
> Then  I used get_param to get this parameter
>   security_groups:
> get_param: my_security_group
> 
> When launched from dashboard, the value of security_groups becomes
> '[u'default']', which is suppose to be 'default'.
> Anyone ever had same issue like this?

Isn't the problem that you're defining a list for the default in the
template, when it should be a string?

E.g:

security_group:
 type: comma_delimited_list
 label: 'Node d Security Group(s)'
 default: default

If you need to specify additional items, they are delimted via commas, as
described in the type name, e.g 
 
security_group:
 type: comma_delimited_list
 label: 'Node d Security Group(s)'
 default: default,blah

Heat then splits the string into a list when parsing the template.

Hope that helps.

Steve

___
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack


Re: [Openstack] [Openstack Heat] create failed, Bad network format: missing 'uuid' (HTTP 400)

2014-09-03 Thread ZHOU TAO A

Try with the network name rather than its ID.
On 09/03/2014 02:54 PM, khayam.gon...@gmail.com wrote:


I am using following template to create a Heat Stack.


|heat_template_version:  2013-05-23

 description:  Hot  Template  to deploy a single server

 parameters:
   ImageID:
 type:  string
 description:  Image  ID
   NetID:
 type:  string
 description:  External  Network  ID

 resources:
   server_0:
 type:  OS::Nova::Server
 properties:
   name:  "server0"
   image:  {  get_param:  ImageID  }
   flavor:  "m1.small"
   networks:
   -  network:  {  get_param:  NetID  }

 outputs:
   server0_ip:
 description:  IP of the server
 value:  {  get_attr:  [  server_0,  first_address]  }|
When I create stack. It shows create failed status.*BadRequest: Bad network 
format: missing 'uuid' (HTTP 400) (Request-ID: 
req-c8360423-e597-495e-9b36-0158177ccd1a)*. I also attached the snapshot of 
error.
P.S : I checked and double checked the Network ID and Image ID but 
error remains. heat logs shows same error*heat.engine.resource 
BadRequest: Bad network format: missing 'uuid' (HTTP 400).*
I had also asked 
at 
ask.openstack.org but still have no answers.



___
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack


___
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack


[Openstack] Help regarding openstack dashboard

2014-09-03 Thread Sadia Bashir
Hello everyone,

I am new here, It is my first email to the list. I successfully completed
installation of openstack on Ubuntu 14.04 LTS and it gave me URLs for
accessing dashboard, admin user password and keystone services as well. But
I am facing following issues:

1. After I login to openstack dashboard, I got the following error:
Error: Unable to retrieve usage information
I am not able to create any instances, volumes or anything there.
2. I tried following this link
https://answers.launchpad.net/horizon/+question/181166 to resolve error but
I found no nova.conf and keystone.conf in my system.

Pls tell me how do I resolve these errors. Any useful link, suggestion or
help will be appreciated. Thank you in advance!


-- 
Regards,
Sadia
___
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack


[Openstack] openstack

2014-09-03 Thread 黄卓
openstack___
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack


Re: [Openstack] [Openstack Heat] create failed, Bad network format: missing 'uuid' (HTTP 400)

2014-09-03 Thread Steven Hardy
On Wed, Sep 03, 2014 at 06:54:14AM +, khayam.gon...@gmail.com wrote:
>I am using following template to create a Heat Stack.
> 
>  heat_template_version: 2013-05-23
> 
>  description: Hot Template to deploy a single server
> 
>  parameters:
>ImageID:
>  type: string
>  description: Image ID
>NetID:
>  type: string
>  description: External Network ID
> 
>  resources:
>server_0:
>  type: OS::Nova::Server
>  properties:
>name: "server0"
>image: { get_param: ImageID }
>flavor: "m1.small"
>networks:
>- network: { get_param: NetID }
> 
>  outputs:
>server0_ip:
>  description: IP of the server
>  value: { get_attr: [ server_0, first_address ] }
> 
>  When I create stack. It shows create failed status. BadRequest: Bad network 
> format: missing 'uuid' (HTTP 400) (Request-ID: 
> req-c8360423-e597-495e-9b36-0158177ccd1a). I also attached the snapshot of 
> error.
> 

I believe you either need to use NetID to create a port, then pass that to
the OS::Nova::Server resource, or pass a fully qualified network definition
in via networks (e.g a map, containing the port):

http://docs.openstack.org/developer/heat/template_guide/openstack.html#OS::Nova::Server

https://github.com/openstack/heat-templates/blob/master/hot/servers_in_existing_neutron_net.yaml#L38

Steve

___
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack


Re: [Openstack] [openstack-dev] [H][Neutron][IPSecVPN]Cannot tunnel two namespace Routers

2014-09-03 Thread Germy Lure
Hi,

Thanks for your response.
I just disabled SEG function(deployed in compute nodes).
The ICMP packets even hadn't leave network node. I cannot tcpdump packet on
qr-xx interface.

Can you introduce your demo? Havana or Icehouce? Network node kernel
version? etc.


2014-09-03 12:38 GMT+08:00 Akihiro Motoki :

> Hi,
>
> I did the same in the past for demo, and it worked well.
> Does secgroup of VM2 allow connections from VM1?
>
>
> 2014年9月3日水曜日、Germy Lureさんは書きました:
>
>> Hi Stackers,
>>
>> Network TOPO like this: VM1(net1)--Router1---IPSec VPN
>> tunnel---Router2--VM2(net2)
>> If left and right side deploy on different OpenStack environments, it
>> works well. But in the same environment, Router1 and Router2 are namespace
>> implement in the same network node. I cannot ping from VM1 to VM2.
>>
>> In R2(Router2), tcpdump tool tells us that R2 receives ICMP echo request
>> packets but doesnt send them out.
>>
>> *7837C113-D21D-B211-9630-**00821800:~ # ip netns exec
>> qrouter-4fd2e76e-37d0-4d05-**b5a1-dd987c0231ef tcpdump -i any *
>> *tcpdump: verbose output suppressed, use -v or -vv for full protocol
>> decode*
>> *listening on any, link-type LINUX_SLL (Linux cooked), capture size 65535
>> bytes*
>> * 11:50:14.853470 IP 10.10.5.2 > 10.10.5.3 :
>> ESP(spi=0xc6d65c02,seq=0x1e6), length 132*
>> *11:50:14.853470 IP 128.6.25.2 > 128.6.26.2 : ICMP
>> echo request, id 44567, seq 486, length 64*
>> * 11:50:15.853475 IP 10.10.5.2 > 10.10.5.3 :
>> ESP(spi=0xc6d65c02,seq=0x1e7), length 132*
>> *11:50:15.853475 IP 128.6.25.2 > 128.6.26.2 : ICMP
>> echo request, id 44567, seq 487, length 64*
>> * 11:50:16.853461 IP 10.10.5.2 > 10.10.5.3 :
>> ESP(spi=0xc6d65c02,seq=0x1e8), length 132*
>> *11:50:16.853461 IP 128.6.25.2 > 128.6.26.2 : ICMP
>> echo request, id 44567, seq 488, length 64*
>> * 11:50:17.853447 IP 10.10.5.2 > 10.10.5.3 :
>> ESP(spi=0xc6d65c02,seq=0x1e9), length 132*
>> *11:50:17.853447 IP 128.6.25.2 > 128.6.26.2 : ICMP
>> echo request, id 44567, seq 489, length 64*
>> * ^C*
>> *8 packets captured*
>> *8 packets received by filter*
>> *0 packets dropped by kernel*
>>
>> ip addr in R2:
>>
>> 7837C113-D21D-B211-9630-00821800:~ # ip netns exec
>> qrouter-4fd2e76e-37d0-4d05-b5a1-dd987c0231ef ip addr
>> 187: lo:  mtu 16436 qdisc noqueue state UNKNOWN
>> group default
>> link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
>> inet 127.0.0.1/8 scope host lo
>> inet6 ::1/128 scope host
>>valid_lft forever preferred_lft forever
>> 206: qr-4bacb61c-72:  mtu 1500 qdisc noqueue state
>> UNKNOWN group default
>> link/ether fa:16:3e:23:10:97 brd ff:ff:ff:ff:ff:ff
>> inet 128.6.26.1/24 brd 128.6.26.255 scope global qr-4bacb61c-72
>> inet6 fe80::f816:3eff:fe23:1097/64 scope link
>>valid_lft forever preferred_lft forever
>> 208: qg-4abd4bb0-21:  mtu 1500 qdisc noqueue state
>> UNKNOWN group default
>> link/ether fa:16:3e:e6:cd:1a brd ff:ff:ff:ff:ff:ff
>> inet 10.10.5.3/24 brd 10.10.5.255 scope global qg-4abd4bb0-21
>> inet6 fe80::f816:3eff:fee6:cd1a/64 scope link
>>valid_lft forever preferred_lft forever
>>
>>
>> In addition, the kernel counter "/proc/net/snmp" in namespace is
>> unchanged. These couters do not work well with namespace?
>>
>>
>> BR,
>> Germy
>>
>
> ___
> Mailing list:
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> Post to : openstack@lists.openstack.org
> Unsubscribe :
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>
>
___
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack


[Openstack] [Openstack Heat] create failed, Bad network format: missing 'uuid' (HTTP 400)

2014-09-03 Thread khayam.gondal





I am using following template to create a Heat Stack.

heat_template_version: 2013-05-23

description: Hot Template to deploy a single server

parameters:
  ImageID:
type: string
description: Image ID
  NetID:
type: string
description: External Network ID

resources:
  server_0:
type: OS::Nova::Server
properties:
  name: "server0"
  image: { get_param: ImageID }
  flavor: "m1.small"
  networks:
  - network: { get_param: NetID }

outputs:
  server0_ip:
description: IP of the server
value: { get_attr: [ server_0, first_address ] }
When I create stack. It shows create failed status. BadRequest: Bad network 
format: missing 'uuid' (HTTP 400) (Request-ID: 
req-c8360423-e597-495e-9b36-0158177ccd1a). I also attached the snapshot of 
error.

P.S : I checked and double checked the Network ID and Image ID but error 
remains. heat logs shows same error heat.engine.resource BadRequest: Bad 
network format: missing 'uuid' (HTTP 400).

I had also asked at ask.openstack.org but still have no answers.___
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack