[Openstack] Fwd: [Quantum] Public Network spec proposal

2012-07-12 Thread Yong Sheng Gong
If we just use one flag, it can represent just two values True or False. If we want to represent three values True, False or not specified, we have to use --public True or --public False or nothing at all.So it is a three-values logic.-openstack-bounces+gongysh=cn.ibm@lists.launchpad.net wrote: -To: openstack@lists.launchpad.netFrom: Endre Karlson Sent by: openstack-bounces+gongysh=cn.ibm@lists.launchpad.netDate: 07/12/2012 07:53PMSubject: [Openstack] Fwd:  [Quantum] Public Network spec proposalWhy not just --public or not ? Why do you need --public True ? That just adds confusion...Endre.
2012/7/12 Gary Kotton gkot...@redhat.com


  

  
  
Hi,
1. Is this also applicable to the agents? Say for example a user
wants to ensure that a public network is attached to network
interface em1 and the private network attached to em2. Is this
something that will be addressed by the blueprint?
2. I prefer option #3. This seems to be a cleaner approach for the
user interface.
Thanks
Gary

On 07/12/2012 01:52 AM, Salvatore Orlando wrote:
Hi,
  
  
  A proposal for the implementation of the public networks
feature has been published.
  It can be reached from the quantum-v2-public-networks
blueprint page [1].
  Feedback is more than welcome!
  
  
  Regards,
  Salvatore
  
  
  [1]:https://blueprints.launchpad.net/quantum/+spec/quantum-v2-public-networks
  ___Mailing list: https://launchpad.net/~openstackPost to   : openstack@lists.launchpad.netUnsubscribe : https://launchpad.net/~openstackMore 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/~openstackPost to   : openstack@lists.launchpad.netUnsubscribe : https://launchpad.net/~openstackMore 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] About glance API v2.0 spec

2012-07-12 Thread Yong Sheng Gong
 Hi,Who can tell me where glance API v2.0 spec is?ThanksYong Sheng Gong

___
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] help me with the xenapi test

2012-07-02 Thread Yong Sheng Gong
 hi,In my change at https://review.openstack.org/#/c/8916/, some xenapi tests alway fail:nova.tests.test_xenapi.XenAPIMigrateInstance.test_finish_migrateLoading...10 sec1nova.tests.test_xenapi.XenAPIMigrateInstance.test_finish_migrate_no_local_storageLoading...10 sec1nova.tests.test_xenapi.XenAPIMigrateInstance.test_finish_migrate_no_resize_vdiLoading...10 sec1nova.tests.test_xenapi.XenAPIMigrateInstance.test_revert_migrate Who can help me find the reason?ThanksYong Sheng Gong

___
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] help me with the xenapi test

2012-07-02 Thread Yong Sheng Gong
Many thanks for the findings.The Jenkins pass now.I removed the setAttr(FLAGS, 'injected', True)-Salvatore Orlando sorla...@nicira.com wrote: -To: Yong Sheng Gong/China/IBM@IBMCNFrom: Salvatore Orlando sorla...@nicira.comDate: 07/03/2012 06:29AMCc: "openstack@lists.launchpad.net" openstack@lists.launchpad.netSubject: Re: [Openstack] help me with the xenapi testSincere apologies for cluttering this thread with another post.I think I probably found the root cause of the test failure.It seems that a setattr on FLAGS.flat_injected was causing the problem.
I don't know exactly why, and probably that does not even matter, as setattr globally alters the value of flag, and we probably don't want this to happen anyway.The value of the flag can be altered for a single test case using the following syntax:self.flags(flat_injected=True)
The full diff for test_quantumv2.py - which executes correctly the tests - is available here:http://paste.openstack.org/show/19204/Regards,
SalvatoreOn 2 July 2012 22:53, Salvatore Orlando sorla...@nicira.com wrote:
Hi Yong,I have been able to reproduce the error on my dev machine - I couldn't earlier on because I was tesyinh the test_xenapi module only, and no failure occured.It seems that test_quantumv2 is the root cause. If you look at gerrit, Jenkins started complaining when you first added that module.

Indeed, if you rename it to _test_quantumv2, the error disappears.I guess the problem is that quantum_v2 apparently is the only test modules whose test cases do not inherit from nova.test. I am trying to understand what exactly causes then the failure in test_xenapi. My gut says it must have something to do with mox, but I will let you know soon - unfortunately each test run takes almost 10 minutes!

SalvatoreOn 2 July 2012 19:18, Salvatore Orlando sorla...@nicira.com wrote:

Hi Yong,I do not see any obvious reason for these failures, especially as they appear to occur when the vdi is created. If I recall it correctly, that code is stubbed out for unit tests, and it does not seem your patch un-stubs it.


Do you see the failures also on your dev machine?SalvatoreOn 2 July 2012 14:30, Yong Sheng Gong gong...@cn.ibm.com wrote:


 hi,
In my change at https://review.openstack.org/#/c/8916/, some xenapi tests alway fail:
nova.tests.test_xenapi.XenAPIMigrateInstance.test_finish_migrate


Loading...10 sec1nova.tests.test_xenapi.XenAPIMigrateInstance.test_finish_migrate_no_local_storage


Loading...10 sec1nova.tests.test_xenapi.XenAPIMigrateInstance.test_finish_migrate_no_resize_vdi


Loading...10 sec1nova.tests.test_xenapi.XenAPIMigrateInstance.test_revert_migrate 


Who can help me find the reason?ThanksYong Sheng Gong

___
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] how to add python-quantumclient dependency into nova/tools/test-requires

2012-06-27 Thread Yong Sheng Gong
 Hi,I am implementing the nova network api call to quantum API 2.0. The new nova network api for quantum will use python-quantumclient to call Quantum API 2.0.The test cases need add python-quantumclient dependency into nova/tools/tests-requires.Who can tell me how to write?ThanksYong Sheng Gong

___
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] [Netstack] [Quantum] Review days for Quantum core devs

2012-06-11 Thread Yong Sheng Gong
 +1-netstack-bounces+gongysh=cn.ibm@lists.launchpad.net wrote: -To: openstack@lists.launchpad.netFrom: Salvatore Orlando Sent by: netstack-bounces+gongysh=cn.ibm@lists.launchpad.netDate: 06/11/2012 05:26PMCc: netst...@lists.launchpad.netSubject: [Netstack] [Quantum] Review days for Quantum core devsHi,During our last project meeting there was some interest in introducing "review days" for Quantum core devs.I see multiple benefits in this approach:1) Contributors would know which core member the need to contact on a given days for soliciting a review for their patches
2) Predictable code review effort for core devs3) The PTL knows who should be whipped!I think we can leverage the fact that our core devs span several time zones. So for each day we can have, for instance, an EMEA core reviewer on duty between 1AM and 9AM PST, an US core reviewer on duty between 9AM and 5PM PST, and an APAC core reviewer on duty between 5PM and 1AM PST.
Of course the plan needs to be flexible especially around milestone release, where all the devs which are not busy coding should probably dedicate more time to code review.I am going to start a wiki page with a 5x3 grid, with days on the rows and zones on the columns. If you like this idea, +1 this email and add your name to the grid :)
Otherwise, please let me have your feedback and concerns.Salvatore
-- Mailing list: https://launchpad.net/~netstackPost to   : netst...@lists.launchpad.netUnsubscribe : https://launchpad.net/~netstackMore 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] dhcp snat

2012-05-23 Thread Yong Sheng Gong
 As far as I know, OpenStack snated just one network specified by:fixed_range=10.0.0.0/24 in nova/nova.conf. It is done when the nova-network starts.-openstack-bounces+gongysh=cn.ibm@lists.launchpad.net wrote: -To: openstack@lists.launchpad.netFrom: William Herry Sent by: openstack-bounces+gongysh=cn.ibm@lists.launchpad.netDate: 05/23/2012 04:26PMSubject: [Openstack]  dhcp snatHiI use FlatDHCP network and I create two provate network which is 10.0.0.0/24 and 10.0.1.0/24I launched a instance and give him a public ip address, but can't ping to it, (it is very odd that I can mtr it)
after debug I find that the vm's default gateway is set to 10.0.1.1, and on host only have a SNAT of 10.0.0.0after change gateway, it start to work,my question is that, does the SNAT of 10.0.0.0 is hard coded? or other way to solve my problem(use two private network)
Thanks in advanceBest Regards-- ===
William Herrywilliamherrych...@gmail.com

___Mailing list: https://launchpad.net/~openstackPost to   : openstack@lists.launchpad.netUnsubscribe : https://launchpad.net/~openstackMore 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] [Netstack] nova+quantum vm does bind ip

2012-05-18 Thread Yong Sheng Gong
Can you use virt-viewer to see vnc console?-netstack-bounces+gongysh=cn.ibm@lists.launchpad.net wrote: -To: openstack@lists.launchpad.net, netst...@lists.launchpad.netFrom: Yi Sun <beyo...@gmail.com>Sent by: netstack-bounces+gongysh=cn.ibm@lists.launchpad.netDate: 05/19/2012 07:52AMSubject: [Netstack] nova+quantum vm does bind ip
  


  
All, 
My issue is close to what reported by Emilien and others in
https://answers.launchpad.net/quantum/+question/197701. Only
difference is that instead of not receiving DHCP reply, I do see
the DHCP reply from GW interface, but I still can not ping/ssh to
the VM.
My server configuration is same as what Emilien has described in his
document here

https://github.com/EmilienM,
the only difference is that I'm using a third interface (eth2) to
connect quantum networks on two servers. And the eth1 is used for
management traffic.

My network configuration is 
id  IPv4  IPv6  start address 
DNS1  DNS2  VlanID 
project  uuid 
1  10.0.0.0/24  None  10.0.0.2 
8.8.4.4  None  None 
61868ec0fd63486db3dbf1740e7111e9
6f765203-7fd8-425e-92b8-cf72b5c1c6cd


I launched VM in network 1 and it is running on the nova-compute
server (essex-2), I can see following tcpdump message from the tap
interface for the VM

16:19:06.183240 IP 0.0.0.0.bootpc  255.255.255.255.bootps:
BOOTP/DHCP, Request from fa:16:3e:7f:f1:69 (oui Unknown), length 395
16:19:06.184146 IP 10.0.0.1.bootps  10.0.0.4.bootpc: BOOTP/DHCP,
Reply, length 312
16:19:07.165572 IP 0.0.0.0.bootpc  255.255.255.255.bootps:
BOOTP/DHCP, Request from fa:16:3e:7f:f1:69 (oui Unknown), length 395
16:19:07.165955 IP 10.0.0.1.bootps  10.0.0.4.bootpc: BOOTP/DHCP,
Reply, length 312
16:19:08.299928 IP6 fe80::2429:e5ff:fed4:8ad5  ip6-allrouters:
ICMP6, router solicitation, length 16
16:19:08.411921 IP6 fe80::2429:e5ff:fed4:8ad5  ff02::16: HBH
ICMP6, multicast listener report v2, 1 group record(s), length 28
16:19:09.143041 IP 0.0.0.0.bootpc  255.255.255.255.bootps:
BOOTP/DHCP, Request from fa:16:3e:7f:f1:69 (oui Unknown), length 407
16:19:09.143507 IP 10.0.0.1.bootps  10.0.0.4.bootpc: BOOTP/DHCP,
Reply, length 312
16:19:14.143971 ARP, Request who-has 10.0.0.4 tell 10.0.0.1, length
42
16:19:15.143784 ARP, Request who-has 10.0.0.4 tell 10.0.0.1, length
42
16:19:16.143843 ARP, Request who-has 10.0.0.4 tell 10.0.0.1, length
42


No ARP response from the VM. I tried to login to the VM console by
virsh console instance-0003 so that I can do tcpdump inside the
VM. But I got following error message:

root@openstack-2:/etc/libvirt/qemu/networks# virsh console
instance-0003
Connected to domain instance-0003
Escape character is ^]
error: internal error
/var/lib/nova/instances/instance-0003/console.log: Cannot
request read and write flags together


Could some one suggest on how to debug this issue?
Thanks
Yi
PS: my nova.conf files are attached.

  -- Mailing list: https://launchpad.net/~netstackPost to   : netst...@lists.launchpad.netUnsubscribe : https://launchpad.net/~netstackMore help  : https://help.launchpad.net/ListHelp[attachment "nova.conf.server" removed by Yong Sheng Gong/China/IBM][attachment "nova.conf.compute" removed by Yong Sheng Gong/China/IBM]

___
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] About openstack common client

2012-05-17 Thread Yong Sheng Gong
 Hi,I just want to ask about the relationship among openstackclient https://launchpad.net/python-openstackclient and other clients.Will openstackclient replace other clients ( such as quantum client, keystone client, nova client, xx) or just a supplement?by now, the openstackclient is calling codes from other clients, so it seems it is just another client wrapper. In this case, we will have to implement two set of front codes to call specific client. One will be in openstackclient, and one will be in separate client itself.ThanksYong Sheng Gong

___
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] [Netstack] Want to start Keystone support for Quantum Client

2012-05-14 Thread Yong Sheng Gong
Hi, 
How can I help with the common openstack client? I think quantum needs 
its own client to be implemented first and then common openstack client 
(just as a thin wrapper) can call the client module if we have quantum 
client designed as nova client.
Thanks -netstack-bounces+gongysh=cn.ibm@lists.launchpad.net wrote: -To: netst...@lists.launchpad.netFrom: Jason Kölker Sent by: netstack-bounces+gongysh=cn.ibm@lists.launchpad.netDate: 05/12/2012 08:06AMSubject: Re: [Netstack] Want to start Keystone support for Quantum ClientOn Fri, 2012-05-11 at 18:44 -0500, Jason Kölker wrote: On Sat, 2012-05-12 at 07:21 +0800, Yong Sheng Gong wrote:  Hi,  I want to start a blueprint to implement the "Keystone support for  Quantum Client" listed in http://wiki.openstack.org/QuantumStarterBugs   I would recommend helping the common client guys out with their implementation.Finally found the bluprint urlhttps://blueprints.launchpad.net/python-openstackclient/+spec/quantum-clientIt looks to be wide open as far as actual implementation details in thelibrary side.Happy Hacking!7-11-- Mailing list: https://launchpad.net/~netstackPost to   : netst...@lists.launchpad.netUnsubscribe : https://launchpad.net/~netstackMore help  : https://help.launchpad.net/ListHelpHi,I want to start a blueprint to implement the "Keystone support for Quantum Client" listed in http://wiki.openstack.org/QuantumStarterBugsWorkflows:My idea is to make an initial workable quantum client with keystone service support.Quantum client's workflow will look like:1. To send auth request to keystone and get token and related service catalog and other stuff2. To send request to quantum server with X-Auth-Token in headerworkflow on Quantum server side:1. keystone's authtoken filter will auth and cache this token, and then will populate the related stuff into http headers2. context filter will create context according to the populated http headersNext
 step is to use this context to check policy. I have not seen any 
functions which have context as first parameter just like what we do in 
nova project. How will we use the populated context? Use is as a thread 
variable or modify all the related functions? Also how about the agent? 
Do agents need auth?What will happen to quantum client:present: [root@robinlinux glance]# quantum Usage: quantum [OPTIONS] command [args]Options: -h, --help show this help message and exit -H HOST, --host=HOST ip address of api host -p PORT, --port=PORT api poort -s, --ssl use ssl -v, --verbose turn on verbose logging -f LOGFILE, --logfile=LOGFILE log file path -t TOKEN, --token=TOKEN authentication token --version=VERSION Accepts 1.1 and 1.0, defaults to env[QUANTUM_VERSION].Commands: list_nets tenant-id [filterspec ...] create_net tenant-id net-name  unplug_iface tenant-id net-id port-id  plug_iface tenant-id net-id port-id iface-id  update_port tenant-id net-id port-id params  show_port_detail tenant-id net-id port-id  show_net tenant-id net-id  delete_port tenant-id net-id port-id  delete_net tenant-id net-id  list_nets_detail tenant-id [filterspec ...] show_net_detail tenant-id net-id  show_iface tenant-id net-id port-id  update_net tenant-id net-id new-name  show_port tenant-id net-id port-id  list_ports_detail tenant-id net-id [filterspec ...] create_port tenant-id net-id  list_ports tenant-id net-id [filterspec ...]after
we will have 
quantum [--debug] [--os_username OS_USERNAME] [--os_password OS_PASSWORD]
 [--os_tenant_name OS_TENANT_NAME] [--os_auth_url OS_AUTH_URL]
 [--os_region_name OS_REGION_NAME] [--os_auth_token OS_AUTH_TOKEN]
 [--region_name REGION_NAME] 
 [--endpoint_url url] command argsSo the first tenant-id parameter will be replaced by value returned from keystone.Question is how to deal with 'default' tenant?What will happen to quantum server1. Context filter is added and can be used as filterOther question:If it is ok, should I add one new blueprint or just do it under blueprint https://blueprints.launchpad.net/quantum/+spec/new-cli?ThanksYong Sheng Gong

___
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] Problem with attaching disks to an instance

2012-05-14 Thread Yong Sheng Gong
Hi,consider to change catalog.RegionOne.volume.publicURL = http://volumenode:8776/v1/$(tenant_id)scatalog.RegionOne.volume.adminURL = http://volumenode:8776/v1/$(tenant_id)scatalog.RegionOne.volume.internalURL = http://v:8776/v1/$(tenant_id)scatalog.RegionOne.volume.name = Volume ServiceIt seems your openstack is looking for the volume on wrong volume server.-openstack-bounces+gongysh=cn.ibm@lists.launchpad.net wrote: -To: Razique Mahroua razique.mahr...@gmail.comFrom: Shashank Sahni Sent by: openstack-bounces+gongysh=cn.ibm@lists.launchpad.netDate: 05/14/2012 09:20PMCc: openstack@lists.launchpad.netSubject: Re: [Openstack] Problem with attaching disks to an instance
  

  
Hi,

I set this option in the configuration files of both compute and
controller. Restarted the service, but unfortunately same result.

Regards,
Shashank Sahni

On 05/14/2012 05:58 PM, Razique Mahroua wrote:

  
  Hi,
  do you have the flag iscsi_ip_prefix configured in your
  nova.conf ?
  Razique


  

  
  
Shashank Sahni
  
14
mai 2012 14:22

  
  Hi everyone,

I'm trying to configure a multi-node installation. Here is a
brief overview.

1) controller - api+network+scheduler+novnc+glance+keystone
(nova.conf - http://paste.openstack.org/show/17470/)
2) compute node (nova.conf - http://paste.openstack.org/show/17469)
3) volume node(single)

Compute and vnc are working fine. I'm able to create and
delete volumes. Iscsi discovery from the compute nodes is
working too. But when I try to attach a volume, the compute
node tries to connect to the controller node instead of
volume and hence crashes with the following error.

2012-05-14 17:32:13 TRACE nova.rpc.amqp
ProcessExecutionError: Unexpected error while running
command.
2012-05-14 17:32:13 TRACE nova.rpc.amqp Command: sudo
nova-rootwrap iscsiadm -m node -T
iqn.2010-10.org.openstack:volume-0003 -p controller:3260
--rescan
2012-05-14 17:32:13 TRACE nova.rpc.amqp Exit code: 255
2012-05-14 17:32:13 TRACE nova.rpc.amqp Stdout: ''
2012-05-14 17:32:13 TRACE nova.rpc.amqp Stderr: 'iscsiadm:
No portal found.\n'

Any suggestions?

Kind Regards,
Shashank Sahni
___
  Mailing list: https://launchpad.net/~openstack
  Post to : openstack@lists.launchpad.net
  Unsubscribe : https://launchpad.net/~openstack
  More help : https://help.launchpad.net/ListHelp

  


-- 
  Nuage  Co
  - Razique Mahroua 
  razique.mahr...@gmail.com
  
  

  
  
  

  


  ___Mailing list: https://launchpad.net/~openstackPost to   : openstack@lists.launchpad.netUnsubscribe : https://launchpad.net/~openstackMore 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] Understanding Integration Bridge and MACs

2012-05-14 Thread Yong Sheng Gong
 Hi,You observation is right. We keep different parts of quantum network info in nova db and quantum db. Quantum client just removes record in quantum db, while nova-manage network way will removes record in nova db, after that it will call quantum server's api to delete record in quantum. As far as I know, the whole quantum network will move to quantum totally, after that you will not have this problem. Thanks-openstack-bounces+gongysh=cn.ibm@lists.launchpad.net wrote: -To: openstack@lists.launchpad.netFrom: Salman Malik Sent by: openstack-bounces+gongysh=cn.ibm@lists.launchpad.netDate: 05/15/2012 06:20AMSubject: Re: [Openstack] Understanding Integration Bridge and MACs

In addition to the mail that follows, I am having some problem with quantum networks as well. When I create a network using :sudo nova-manage network create --label=$tenant0 --fixed_range_v4=$iprange0 --project_id=$tenant0I can see the network using both "quantum list_nets $tenant0" and "nova-manage network list", but when I delete the network using "quantum delete_net $tenant0 $netID", the nova-manage network list still shows the network and when I try to use the same CIDR for another network,I get an error saying CIDR already in use. Shouldn't deleting "quantum list_nets" and "nova-manage network list" be consistent with each other ?From: salma...@live.comTo: openstack@lists.launchpad.netSubject: Understanding Integration Bridge and MACsDate: Sun, 13 May 2012 19:42:14 -0500Hi Dan and Others,I am trying to understand the actions taken by Ryu when the new instance sends DHCP discover message to dnsmasq. When I launch new instannce it keeps on sending discover messages and controller keeps on dropping these messages. But looking at the traffic I couldn't exactly map which MAC address belonged to which entity. Can someone help me with my understanding of the MAC addresses. Using ifconfig , "ovs-ofctl show br-int" and "ovs-ofctl snoop br-int" (output shown after MAC addresses), I know exactly about some MAC addresses and can't figure out some of them:Interfaces  |  HWAddress   |  IP-addr-eth0  |  08:00:27:7a:ff:65 | 10.0.3.15eth1   |  08:00:27:16:d5:09 | 10.0.0.10 plugged into br-intgw-82bd3a73-dc | fa:16:3e:49:57:1b | 10.0.0.1 plugged into br-int (this is the --listen-address of my two dnsmasqs)br-int   |  08:00:27:16:d5:09 | why doesn't bridge have no IP ?new-instance   |  02:d8:47:48:35:26 == MAC address of newly launched instance? (see output below)Unkown  | fa:16:3e:5e:02:17 ==Seemingly unknown MAC address(which is related to the new instance?)Unkown  | 33:33:00:00:00:16 == MAC address related to multicast ?Questions:1. What is gw-82bd3a73-dc interface ?2. I am kind of unsure why br-int is so useful? 3. Why doesn't br-int don't have any IP address?4. Why do we need to plugin a compute node's interface to br-int? (so that guest instances on remote host can communicate with each other?)5. What is the relationship b/w 02:d8:47:48:35:26 and fa:16:3e:5e:02:17 MAC addresses in the following output?=Output of : ovs-ofctl snoop br-int =OFPT_ECHO_REQUEST (xid=0x0): 0 bytes of payloadOFPT_ECHO_REPLY (xid=0x0): 0 bytes of payloadOFPT_PORT_STATUS (xid=0x0): ADD: 7(tap76127847-b1): addr:02:d8:47:48:35:26 config: 0 state: LINK_DOWN current: 10MB-FD COPPEROFPT_FLOW_MOD (xid=0x491662da): DEL priority=0 buf:0x0 actions=dropOFPT_BARRIER_REQUEST (xid=0x491662db):OFPT_BARRIER_REPLY (xid=0x491662db):OFPT_PORT_STATUS (xid=0x0): MOD: 7(tap76127847-b1): addr:02:d8:47:48:35:26 config: 0 state: 0 current: 10MB-FD COPPEROFPT_ECHO_REQUEST (xid=0x0): 0 bytes of payloadOFPT_ECHO_REPLY (xid=0x0): 0 bytes of payloadOFPT_PACKET_IN (xid=0x0): total_len=90 in_port=7 data_len=90 buffer=0x0167tunnel0:in_port0007:tci(0) macfa:16:3e:5e:02:17-33:33:00:00:00:16 type86dd proto58 tos0 ipv6::-ff02::16 port143-0fa:16:3e:5e:02:17  33:33:00:00:00:16, ethertype IPv6 (0x86dd), length 90: ::  ff02::16: HBH ICMP6, multicast listener report v2, 1 group record(s), length 28OFPT_PACKET_OUT (xid=0x491662dc): in_port=7 actions_len=0 actions=drop buffer=0x0167OFPT_PACKET_IN (xid=0x0): total_len=322 in_port=7 data_len=128 buffer=0x0168tunnel0:in_port0007:tci(0) macfa:16:3e:5e:02:17-ff:ff:ff:ff:ff:ff type0800 proto17 tos0 ip0.0.0.0-255.255.255.255 port68-67fa:16:3e:5e:02:17  ff:ff:ff:ff:ff:ff, ethertype IPv4 (0x0800), length 128: truncated-ip - 194 bytes missing! 0.0.0.0.68  255.255.255.255.67: BOOTP/DHCP, Request from fa:16:3e:5e:02:17, length 280OFPT_PACKET_OUT (xid=0x491662dd): in_port=7 actions_len=0 actions=drop buffer=0x0168OFPT_PACKET_IN (xid=0x0): total_len=78 in_port=7 data_len=78 buffer=0x0169fa:16:3e:5e:02:17  ff:ff:ff:ff:ff:ff, ethertype IPv4 (0x0800), length 128: truncated-ip - 194 bytes missing! 0.0.0.0.68  255.255.255.255.67: BOOTP/DHCP, 

Re: [Openstack] Cannot get ssh-key in instance

2012-05-10 Thread Yong Sheng Gong
have you started the instance with keypair?-openstack-bounces+gongysh=cn.ibm@lists.launchpad.net wrote: -To: livemoon mwjpi...@gmail.comFrom: Razique Mahroua razique.mahr...@gmail.comSent by: openstack-bounces+gongysh=cn.ibm@lists.launchpad.netDate: 05/10/2012 06:29PMCc: openstack@lists.launchpad.netSubject: Re: [Openstack] Cannot get ssh-key in instance

Hey
 livememon, is it possible to see the content of the rc.local. Also,
 are other instances able to reach the metadata server ?
   livemoon  
  10 mai 2012 12:24I running an 
instance(ubuntu or centos), and it cannot get keypair.In
 ubuntu12.04, I have install cloud-init and in centos I have add some 
command into /etc/rc.local
There is some of instance's logs about cloud-init:cloud-init start-local 
running: Thu, 10 May 2012 10:17:33 +. up 4.47 seconds
no instance data found in 
start-local
ci-info: lo  : 1 127.0.0.1 
   255.0.0.0.
ci-info: eth0 : 1 10.0.200.5 
  255.255.255.224 fa:16:3e:6a:30:7c
ci-info: route-0: 0.0.0.0   
  10.0.200.1   0.0.0.0 eth0  UG
ci-info: route-1: 10.0.200.0 
  0.0.0.0 255.255.255.224 eth0  U
cloud-init start running: Thu,
 10 May 2012 10:17:33 +. up 5.00 seconds
no instance data found in 
start
I
 think it maybe some missing in nova host, How to fix it?-- 非淡薄无以明志,非宁静无以致远

___Mailing list: 
https://launchpad.net/~openstackPost to : 
openstack@lists.launchpad.netUnsubscribe : 
https://launchpad.net/~openstackMore help   : 
https://help.launchpad.net/ListHelp-- Razique
 Mahroua
Nuage  Co - Razique Mahroua 
razique.mahr...@gmail.com

___Mailing list: https://launchpad.net/~openstackPost to   : openstack@lists.launchpad.netUnsubscribe : https://launchpad.net/~openstackMore 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] Accessing VMs in Flat DHCP mode with multiple host

2012-05-10 Thread Yong Sheng Gong
HI,First you have to make sure the network between your control node's br100 and your compute node's br100 are connected. and then can you show the output on control node:ps -ef | grep dnsmasqbrctl showifconfig2. can you login to your vm by vnc to see the eth0 configuration and then try to run udhcpc?Thanks-openstack-bounces+gongysh=cn.ibm@lists.launchpad.net wrote: -To: "openstack@lists.launchpad.net" openstack@lists.launchpad.netFrom: Michaël Van de Borne michael.vandebo...@cetic.beSent by: openstack-bounces+gongysh=cn.ibm@lists.launchpad.netDate: 05/10/2012 09:03PMSubject: [Openstack] Accessing VMs in Flat DHCP mode with multiple host
  


  
Hello,

I'm running into troubles accessing my instances.
I have 3 nodes:
1. proxmox that virtualizes in KVM my controller node
 1.1 the controller node (10.10.200.50) runs keystone, nova-api,
network, scheduler, vncproxy and volumes but NOT compute as it is
already a VM
2. glance in a physical node
3. compute in a physical node

my nova.conf network config is:
--dhcpbridge_flagfile=/etc/nova/nova.conf
  --dhcpbridge=/usr/bin/nova-dhcpbridge
  --routing_source_ip=10.10.200.50
  --libvirt_use_virtio_for_bridges=true
  --network_manager=nova.network.manager.FlatDHCPManager
  --public_interface=eth0
  --flat_interface=eth1
  --flat_network_bridge=br100
  --fixed_range=192.168.200.0/24
  --floating_range=10.10.200.0/24 
  --network_size=256
  --flat_network_dhcp_start=192.168.200.5
  --flat_injected=False
  --force_dhcp_release
  --network_host=10.10.200.50

I even explicitly allows icmp and tcp port 22 traffic like this:
euca-authorize -P icmp -t -1:-1 defaulteuca-authorize -P tcp -p 22 default
before setting
  these rules, I was getting 'Operation not permitted' when pinging
  the VM from the compute node. After setting these, I just get no
  output at all (not even 'Destination Host Unreachable')

  
  The network was created like this:
  nova-manage network create private
  --fixed_range_v4=192.168.200.0/24 --bridge=br100
  --bridge_interface=eth1 --num_networks=1 --network_size=256
  
  However I cannot ping or ssh my instances once they're active. I
  have already set up such an Essex environment but the controller
  node was physical. Morevover, every examples in the doc presents a
  controller node that runs nova-compute.
  
  So I'm wondering if either:
  - having the controller in a VM
  - or not running compute on the controller
  would prevent things to work properly.
  
  What can I check? iptables? is dnsmasq unable to give the VM an
  address? 
  
  I'm running out of ideas. Any suggestion would be highly
  appreciated.
  
  Thank you,
  
  michaël




-- Michaël Van de BorneRD Engineer, SOA team, CETICPhone: +32 (0)71 49 07 45 Mobile: +32 (0)472 69 57 16, Skype: mikemowgliwww.cetic.be, rue des Frères Wright, 29/3, B-6041 Charleroi
  ___Mailing list: https://launchpad.net/~openstackPost to   : openstack@lists.launchpad.netUnsubscribe : https://launchpad.net/~openstackMore 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] [nova-scheduler] Question

2012-05-07 Thread Yong Sheng Gong
hi,see my blog post: https://www.ibm.com/developerworks/mydeveloperworks/blogs/e93514d3-c4f0-4aa0-8844-497f370090f5/entry/openstack_nova_scheduler_and_its_algorithm27?lang=enyou will have a good understand of the nova scheduler.enjoy it.-openstack-bounces+gongysh=cn.ibm@lists.launchpad.net wrote: -To: openstack@lists.launchpad.netFrom: Leander Bessa leande...@gmail.comSent by: openstack-bounces+gongysh=cn.ibm@lists.launchpad.netDate: 05/04/2012 09:01PMSubject: [Openstack] [nova-scheduler] QuestionHello,I have a question about nova-scheduler. I believe that, in order to have viable values supplied to the scheduler filters, it gathers the most recent state from each of the compute host. However, i've read through the documentation and haven't found any explicit statement which confirm my suspicious.
Long story short, is this thebehaviorof nova-scheduler?Regards,Leander
___Mailing list: https://launchpad.net/~openstackPost to   : openstack@lists.launchpad.netUnsubscribe : https://launchpad.net/~openstackMore 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] questions about IP addressing and network config

2012-05-07 Thread Yong Sheng Gong
Thanks-Jimmy Tsai cmi...@gmail.com wrote: -To: Yong Sheng Gong/China/IBM@IBMCNFrom: Jimmy Tsai cmi...@gmail.comDate: 05/05/2012 01:13AMCc: Mike Scherbakov mih...@gmail.com, openstack@lists.launchpad.netSubject: Re: [Openstack] questions about IP addressing and network configI find the way to change the nova-base rule, use the command "virsh nwfilter-edit
nova-base" will allow to edit the xml file, and will take effect immediately. : )Thanks guys for your help.-Jimmy2012/5/4 Jimmy Tsai cmi...@gmail.com
I tried with following tests: 1) add "firewall_driver = nova.virt.firewall.IptablesFirewallDriver" to nova.conf
restart nova-computeChange the following lines in /usr/share/pyshared/nova/virt/libvirt/firewall.py
 self._define_filter(self._filter_container('nova-base', ['no-mac-spoofing', 'no-ip-spoofing',

 'no-arp-spoofing', 'allow-dhcp-server']))to  self._define_filter(self._filter_container('nova-base',


 ['allow-dhcp-server']))then flush ebtables ruleset : ebtables -t nat -Fstop libvirt-bin  start libvirt-binStill generate the anti-spoofing rules
2) change the action='' with 'accept' to following XML filessed
-i "s/action=''/ action=''/g" /etc/libvirt/nwfilter/no-arp-ip-spoofing.xml
sed -i "s/action=''/ action=''/g" /etc/libvirt/nwfilter/no-arp-mac-spoofing.xml


sed -i "s/action=''/ action=''/g" /etc/libvirt/nwfilter/no-ip-spoofing.xml


sed -i "s/action=''/ action=''/g" /etc/libvirt/nwfilter/no-mac-broadcast.xml


sed -i "s/action=''/ action=''/g" /etc/libvirt/nwfilter/no-mac-spoofing.xml


sed -i "s/action=''/ action=''/g" /etc/libvirt/nwfilter/no-other-l2-traffic.xml


sed -i "s/action=''/ action=''/g" /etc/libvirt/nwfilter/no-other-rarp-traffic.xml

then flush ebtables ruleset : ebtables -t nat -F
stop libvirt-bin  start libvirt-binOkay, I can see accept rules, but the kvm processes is also gone at the same time.Don't know why.still waiting for some help!!-Jimmy
 2012/5/3 Yong Sheng Gong gong...@cn.ibm.com

It seems change https://review.openstack.org/#/c/6569/ can help. Please see how it add a new configuration item to remove some filters.

-openstack-bounces+gongysh=cn.ibm@lists.launchpad.net wrote: -

To: Mike Scherbakov mih...@gmail.comFrom: Jimmy Tsai cmi...@gmail.comSent by: openstack-bounces+gongysh=cn.ibm@lists.launchpad.net

Date: 05/03/2012 01:45AMCc: openstack@lists.launchpad.net, jimmy.t...@104.com.twSubject: Re: [Openstack] questions about IP addressing and network config

Hi Mike,I really need to bind loopback IP on my environment, I use the command "ebtables -t nat -F" will flush the ebtables rule, so I can bind any IP I wish,
but if I do stop libvirt-bin and start libvir-bin, the security rules will be applied again, 
if I remark no-ip-spoofing  no-arp-spoofing on file /etc/libvirt/nwfilter/nova-base.xml, after launching a instance, the file will reset to default, I think I use the wrong way, Is there any way to ignore the nova-base rule on /usr/lib/python2.7/dist-packages/nova/virt/libvirt/firewall.py ? 
Thanks for you help.-Jimmy2012/4/27 Mike Scherbakov mih...@gmail.comJimmy,Nova is designed to manage IP addresses.That means that even with Flat manager it will be allocating IP addresses for you,

storing them in DB. The difference btw FlatDHCP is Flat injects /etc/network/interfaces to the instance,not providing IP by DHCP. So, anti-spoofing rules should be the same (I never checked though for Flat).

If you want to provide your own addresses to instances, I believe you will need to extend nova codeto provide your custom IP address in API request, and then if it's not already allocated, it should get allocated.

Regards,On Fri, Apr 27, 2012 at 3:27 PM, Jimmy Tsai cmi...@gmail.com wrote:

Thanks Vish  Mike.It works very well after flush the anti-spoofing rules , I change the IP address and bind alias IP to an interface, 

but when I restart nova-network and nova-compute , I can't ping neither the IP I changed nor the instances I haven't changed.
I'll try to figure out what happened with that !!Even I change the IP address, I can't not see the correct address on Dashboard, because the record of nova.fixed_ips not changed.I should try with FlatManager to allocate static IP.
Thanks,-Jimmy2012/4/27 Mike Scherbakov mih...@gmail.com


On Thu, Apr 26, 2012 at 10:31 PM, Vishvananda Ishaya vishvana...@gmail.com wrote:

On Apr 25, 2012, at 7:31 PM, Jimmy Tsai wrote:

 Hi everyone,

 I'm running with Essex 2012.1,
 and have some questions about the nova network operation,

 1. Is it possible manually assigned IP address to a launched instance, my situation is :
 after instance boot up (OS: CentOS 6.2), I changed the /etc/sysconfig/network-scripts/ifcfg-eth0 setting
 from dhcp to static (the same subnet as created by command : nova-manage create network), and restart the network service,
 And then I couldn't ssh or ping the ins

Re: [Openstack] questions about IP addressing and network config

2012-05-02 Thread Yong Sheng Gong
It seems change https://review.openstack.org/#/c/6569/ can help. Please see how it add a new configuration item to remove some filters.-openstack-bounces+gongysh=cn.ibm@lists.launchpad.net wrote: -To: Mike Scherbakov mih...@gmail.comFrom: Jimmy Tsai cmi...@gmail.comSent by: openstack-bounces+gongysh=cn.ibm@lists.launchpad.netDate: 05/03/2012 01:45AMCc: openstack@lists.launchpad.net, jimmy.t...@104.com.twSubject: Re: [Openstack] questions about IP addressing and network configHi Mike,I really need to bind loopback IP on my environment, I use the command "ebtables -t nat -F" will flush the ebtables rule, so I can bind any IP I wish,but if I do stop libvirt-bin and start libvir-bin, the security rules will be applied again, 
if I remark no-ip-spoofing  no-arp-spoofing on file /etc/libvirt/nwfilter/nova-base.xml, after launching a instance, the file will reset to default, I think I use the wrong way, Is there any way to ignore the nova-base rule on /usr/lib/python2.7/dist-packages/nova/virt/libvirt/firewall.py ? Thanks for you help.-Jimmy2012/4/27 Mike Scherbakov mih...@gmail.com

Jimmy,Nova is designed to manage IP addresses.That means that even with Flat manager it will be allocating IP addresses for you,storing them in DB. The difference btw FlatDHCP is Flat injects /etc/network/interfaces to the instance,not providing IP by DHCP. So, anti-spoofing rules should be the same (I never checked though for Flat).If you want to provide your own addresses to instances, I believe you will need to extend nova codeto provide your custom IP address in API request, and then if it's not already allocated, it should get allocated.Regards,On Fri, Apr 27, 2012 at 3:27 PM, Jimmy Tsai cmi...@gmail.com wrote:Thanks Vish  Mike.It works very well after flush the anti-spoofing rules , I change the IP address and bind alias IP to an interface, but when I restart nova-network and nova-compute , I can't ping neither the IP I changed nor the instances I haven't changed.
I'll try to figure out what happened with that !!Even I change the IP address, I can't not see the correct address on Dashboard, because the record of nova.fixed_ips not changed.I should try with FlatManager to allocate static IP.Thanks,-Jimmy2012/4/27 Mike Scherbakov mih...@gmail.com
On Thu, Apr 26, 2012 at 10:31 PM, Vishvananda Ishaya vishvana...@gmail.com wrote:On Apr 25, 2012, at 7:31 PM, Jimmy Tsai wrote:

 Hi everyone,

 I'm running with Essex 2012.1,
 and have some questions about the nova network operation,

 1. Is it possible manually assigned IP address to a launched instance, my situation is :
 after instance boot up (OS: CentOS 6.2), I changed the /etc/sysconfig/network-scripts/ifcfg-eth0 setting
 from dhcp to static (the same subnet as created by command : nova-manage create network), and restart the network service,
 And then I couldn't ssh or ping the instance from other server with the same subnet.
 What is the problem ? I checked the iptables policies on the compute host, and find nothing about the DROP packets.
 I also tried to changed the record from nova.fixed_ips table and libvirt.xml of the instance, then reboot the instance, still not worked.
 I used FlatDHCP as my network manager.
You can't do this. Libvirt sets up no mac spoofing and no ip spoofing so the ip address needs to match the dhcp'd one. You should be able to switch to a static and use the same info that you get from dhcp though.
 2. According to the first question, I have another requirement to set up a loopback IP address (lo:0) on the running instance, after setting was completed,I couldn't ping or ssh the loopback IP from the same subnet, and I tried to set a alias IP address with eth0:0, but still not get worked. Any ideas with this ?
Not sureI guess it's the same issue as with setting a different IP from what dnsmasq provided. You can try ebtables -F; ebtables -t nat -F to flush those anti spoofing rules. 


 3. Is there any way to use 2 NICs with different subnets on instances? I want to separate the network traffic.
 Now I'm running with one bridged interface (br100), and it works well. In order to backup the large log files,
 I'm planing to use 2 NICs for the compute hosts, I want use 2 vNICs on instance, one for web service and the other for log backup,
 I think I should create a new network for the second bridged interface, but I can't find any document to guild me.
This is definitely possible with FlatManager (You could use cloud_config drive and some version of contrib/openstack-config converted to work with centos to set up the interfaces)
It was possible at one point with FlatDHCPManager as well by creating multiple networks and using a specific combination of config options like use_single_default_gateway. I don' t know if anyone has tried this for a while so there may be issues with it. You might try creating a second network and setting use_single_default_gateway and see what 

Re: [Openstack] Error in scheduler when create a new instance.

2012-04-27 Thread Yong Sheng Gong
how much free ram left on your compute node?-openstack-bounces+gongysh=cn.ibm@lists.launchpad.net wrote: -To: Flavia Missi flaviami...@gmail.comFrom: Rogerio Goncalves roge...@gmail.comSent by: openstack-bounces+gongysh=cn.ibm@lists.launchpad.netDate: 04/28/2012 04:43AMCc: openstack@lists.launchpad.netSubject: Re: [Openstack] Error in scheduler when create a new instance.Flavia,Thanks, but does not help.

Get the same error.

2012-04-27 17:41:39 WARNING nova.scheduler.manager [req-efb95a01-15f0-4ae7-9f7f-0ec71ff4d12a e53ddc6542c84f0791fd5ff8968162d7 c65c92296bf841c992c895074da03316] Failed to schedule_run_instance: No valid host was found. Is the appropriate service running?

2012-04-27 17:41:39 WARNING nova.scheduler.manager [req-efb95a01-15f0-4ae7-9f7f-0ec71ff4d12a e53ddc6542c84f0791fd5ff8968162d7 c65c92296bf841c992c895074da03316] Setting instance 01a15b65-7807-42b4-95a2-66d64d12f906 to ERROR state.

root@ubuntu0001:/var/log/nova# nova-manage service listBinary  Host Zone   Status   State Updated_Atnova-scheduler  ubuntu0001  nova   enabled  :-)  2012-04-27 20:42:57

nova-compute   ubuntu0001  nova   enabled  XXX  None   nova-volume   ubuntu0001  nova   enabled  :-)  2012-04-27 20:42:52

nova-network   ubuntu0001  nova   enabled  :-)  2012-04-27 20:42:52
On Fri, Apr 27, 2012 at 5:02 PM, Flavia Missi flaviami...@gmail.com wrote:

Rogerio, I had this problem and solved it by setting the following flag:
scheduler_default_filters=AllHostsFilterHope it helps.[]'sOn Fri, Apr 27, 2012 at 12:29 PM, Rogerio Goncalves roge...@gmail.com wrote:


is enabled and not runningmy compute node is virtual machine to test and configured with qemu (2 core, 4gb, 10gb free in nova-volumes)my last log message on nova-compute is:2012-04-27 12:22:25 DEBUG nova.virt.libvirt.connection [-] Connecting to libvirt: qemu:///system from (pid=18588) _get_connection /usr/lib/python2.7/dist-packages/nova/virt/libvirt/connection.py:292
libvirt is running18420 ?Sl   0:00 /usr/sbin/libvirtd -d
On Thu, Apr 26, 2012 at 10:43 PM, heut2008 heut2...@gmail.com wrote:
be sure nova-compute is running and is enabled by using nova-manage
service list,also confirm that the compute node have enough
resources(cpu,mem,disk) .
2012/4/27 Rogerio Goncalves roge...@gmail.com:
 Hello,

 Im getting this error when launching a new instance.

 "Failed to schedule_run_instance: No valid host was found. Is the
 appropriate service running?"

 http://paste.openstack.org/show/14020/

 SO Ubuntu 12.04

 libvirt-bin start/running, process 4153
 nova-network start/running, process 4174
 nova-compute start/running, process 4187
 nova-api start/running, process 4198
 nova-objectstore start/running, process 4210
 nova-scheduler start/running, process 4222
 nova-volume start/running, process 4235
 nova-vncproxy start/running, process 4246

 rabbitmq is up too


 Thanks

 Rogério Gonçalves


 ___
 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-- Flávia Missi@flaviamissiflaviamissi.com.br


https://github.com/flaviamissi


___Mailing list: https://launchpad.net/~openstackPost to   : openstack@lists.launchpad.netUnsubscribe : https://launchpad.net/~openstackMore 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] Error in scheduler when create a new instance.

2012-04-27 Thread Yong Sheng Gong
Seems that your compute is not alive:nova-compute   ubuntu0001  nova   enabled  XXX-openstack-bounces+gongysh=cn.ibm@lists.launchpad.net wrote: -To: openstack@lists.launchpad.netFrom: Rogerio Goncalves roge...@gmail.comSent by: openstack-bounces+gongysh=cn.ibm@lists.launchpad.netDate: 04/28/2012 10:22AMSubject: Re: [Openstack] Error in scheduler when create a new instance.Zhang,I already triad.root@ubuntu0001:~# service libvirt-bin restartlibvirt-bin stop/waitinglibvirt-bin start/running, process 21469root@ubuntu0001:~# service nova-compute restartstop: Unknown instance:

nova-compute start/running, process 21524root@ubuntu0001:~# service nova-scheduler restartnova-scheduler stop/waitingnova-scheduler start/running, process 21540
root@ubuntu0001:~# nova-manage service list2012-04-27 21:36:23 DEBUG nova.utils [req-94ff244b-4fe2-4595-95b8-fea9deef4b22 None None] backend module 'nova.db.sqlalchemy.api' from '/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/api.pyc' from (pid=21547) __get_backend /usr/lib/python2.7/dist-packages/nova/utils.py:658

Binary  Host Zone   Status   State Updated_Atnova-scheduler  ubuntu0001  nova   enabled  :-)  2012-04-28 00:36:06

nova-compute   ubuntu0001  nova   enabled  XXX  None   nova-volume   ubuntu0001  nova   enabled  :-)  2012-04-28 00:36:16

nova-network   ubuntu0001  nova   enabled  :-)  2012-04-28 00:36:15On Fri, Apr 27, 2012 at 11:17 PM, 张华 veryhua2...@gmail.com wrote:

you need reboot libvirtd, yesterday I encounter the same problem2012/4/28 Rogerio Goncalves roge...@gmail.com
Yong,
oot@ubuntu0001:~# free -m  totalusedfree   shared  buffers   cachedMem: 395121212830 0168160-/+ buffers/cache:7923159
Swap: 1951 01951On Fri, Apr 27, 2012 at 8:11 PM, Yong Sheng Gong gong...@cn.ibm.com wrote:
how much free ram left on your compute node?
-openstack-bounces+gongysh=cn.ibm@lists.launchpad.net wrote: -
To: Flavia Missi flaviami...@gmail.comFrom: Rogerio Goncalves roge...@gmail.comSent by: openstack-bounces+gongysh=cn.ibm@lists.launchpad.net
Date: 04/28/2012 04:43AMCc: openstack@lists.launchpad.netSubject: Re: [Openstack] Error in scheduler when create a new instance.
Flavia,Thanks, but does not help.


Get the same error.


2012-04-27 17:41:39 WARNING nova.scheduler.manager [req-efb95a01-15f0-4ae7-9f7f-0ec71ff4d12a e53ddc6542c84f0791fd5ff8968162d7 c65c92296bf841c992c895074da03316] Failed to schedule_run_instance: No valid host was found. Is the appropriate service running?


2012-04-27 17:41:39 WARNING nova.scheduler.manager [req-efb95a01-15f0-4ae7-9f7f-0ec71ff4d12a e53ddc6542c84f0791fd5ff8968162d7 c65c92296bf841c992c895074da03316] Setting instance 01a15b65-7807-42b4-95a2-66d64d12f906 to ERROR state.


root@ubuntu0001:/var/log/nova# nova-manage service listBinary  Host Zone   Status   State Updated_Atnova-scheduler  ubuntu0001  nova   enabled  :-)  2012-04-27 20:42:57


nova-compute   ubuntu0001  nova   enabled  XXX  None   nova-volume   ubuntu0001  nova   enabled  :-)  2012-04-27 20:42:52


nova-network   ubuntu0001  nova   enabled  :-)  2012-04-27 20:42:52
On Fri, Apr 27, 2012 at 5:02 PM, Flavia Missi flaviami...@gmail.com wrote:


Rogerio, I had this problem and solved it by setting the following flag:
scheduler_default_filters=AllHostsFilterHope it helps.[]'sOn Fri, Apr 27, 2012 at 12:29 PM, Rogerio Goncalves roge...@gmail.com wrote:is enabled and not runningmy compute node is virtual machine to test and configured with qemu (2 core, 4gb, 10gb free in nova-volumes)my last log message on nova-compute is:2012-04-27 12:22:25 DEBUG nova.virt.libvirt.connection [-] Connecting to libvirt: qemu:///system from (pid=18588) _get_connection /usr/lib/python2.7/dist-packages/nova/virt/libvirt/connection.py:292

libvirt is running18420 ?Sl   0:00 /usr/sbin/libvirtd -d
On Thu, Apr 26, 2012 at 10:43 PM, heut2008 heut2...@gmail.com wrote:

be sure nova-compute is running and is enabled by using nova-manage
service list,also confirm that the compute node have enough
resources(cpu,mem,disk) .
2012/4/27 Rogerio Goncalves roge...@gmail.com:
 Hello,

 Im getting this error when launching a new instance.

 "Failed to schedule_run_instance: No valid host was found. Is the
 appropriate service running?"

 http://paste.openstack.org/show/14020/

 SO Ubuntu 12.04

 libvirt-bin start/running, process 4153
 nova-network start/running, process 4174
 nova-compute start/running, process 4187
 nova-api start/running, process 4198
 nova-objectstore start/running, process 4210
 nova-scheduler start/running, process 4222
 nova-volume start/running, process 4235
 nova-vncproxy start/running, process 4246

Re: [Openstack] Essex, horizon, floating ip pool and compute node

2012-04-15 Thread Yong Sheng Gong
My two centsI think that depends on who is the customer. Is the one who will use the instance the customer or is the one who can launch the instance the customer?If we need customer be able to launch the instance and config it, we need more work on dashboard.-openstack-bounces+gongysh=cn.ibm@lists.launchpad.net wrote: -To: "Jayashree(Jay) Beltur" jaybel...@yahoo.comFrom: heut2008 heut2...@gmail.comSent by: openstack-bounces+gongysh=cn.ibm@lists.launchpad.netDate: 04/15/2012 10:24AMCc: "openstack@lists.launchpad.net" openstack@lists.launchpad.netSubject: Re: [Openstack] Essex, horizon, floating ip pool and compute nodecurrently,you can not get this info on dashboard,may be in the futureyou can get this info through an admin account.it is not necessary toshow this info to the customer (user).2012/4/14 Jayashree(Jay) Beltur jaybel...@yahoo.com: Hello, I have installed lastest Essex versionon 2 nodes. One controller node (nova-compute/nova-network/nova-api/nova-volume)and the other one is compute node (nova-compute/nova-api/nova-network) in flatDHCP mode. I am able to launch VMs and associate private/floating ips and also ping and ssh to the VMs. My controller node is on one network (16.78.*) and my compute node is another network (16.89.*). So, i created 2 pools of floating ips, one for each network (so that I could associate guest VMs appropriately based on the host they are launched on). From the dashboard, i launched a VM. It was successful and showed the private ip address. But, the UI does not show on which node it was launched on. Without this information, I am not able allocate/associate the floating ip from appropriate pool. I have to go to the command line and run euca-describe-instances to check where it was launched and then, come back todashboard to choose the floating ip from appropriate pool. Is there a way on the horizon dashboard to find which host the guest VMactually gotlaunched on? Thanks, -Jay ___ 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/~openstackPost to   : openstack@lists.launchpad.netUnsubscribe : https://launchpad.net/~openstackMore 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] problem with devstack multinode installation, service list

2012-04-15 Thread Yong Sheng Gong
As far as I know, the dashboard service list is from catalog/endpoint feature of keystone. They are not same as ones listed by nova-manage service command.-openstack-bounces+gongysh=cn.ibm@lists.launchpad.net wrote: -To: openstack@lists.launchpad.netFrom: yuanke wei weiyuanke...@gmail.comSent by: openstack-bounces+gongysh=cn.ibm@lists.launchpad.netDate: 04/15/2012 08:12PMSubject: [Openstack] problem with devstack multinode installation,	service listhi all,I deployed a multi-node openstack with devstack according to the documents listed "http://devstack.org/guides/multinode-lab.html" successfully.


but one problem with this installation is that, I can not see my compute node through the dashboard. services listed are controller node services.like:

Name


Service


Host


Enabled


Compute Service


compute


192.168.136.79


Enabled


S3 Service


s3


192.168.136.79


Enabled


Image Service


image


192.168.136.79


Enabled


Volume Service


volume


192.168.136.79


Enabled


EC2 Service


ec2


192.168.136.79


Enabled


Identity Service


identity (native backend)


192.168.136.79


Enabled


Displaying 6 itemsbut with nova-manage service list, it shows:Binary  Host Zone   Status   State Updated_At


nova-compute   node79nova   enabled  :-)  2012-04-11 03:03:53nova-certnode79nova   enabled  :-)  2012-04-11 03:03:53


nova-volume   node79nova   enabled  :-)  2012-04-11 03:03:54nova-network   node79nova   enabled  :-)  2012-04-11 03:03:56


nova-scheduler  node79nova   enabled  :-)  2012-04-11 03:03:56nova-consoleauth node79nova   enabled  :-)  2012-04-11 03:03:53


nova-compute   node78nova   enabled  :-)  2012-04-11 03:03:56nova-volume   node78nova   enabled  :-)  2012-04-11 03:03:57


nova-network   node78nova   enabled  :-)  2012-04-11 03:03:53thks-


韦远科wei yuanke(wei)gtalk: weiyuanke...@gmail.commsn: weiyuanke...@hotmail.com___Mailing list: https://launchpad.net/~openstackPost to   : openstack@lists.launchpad.netUnsubscribe : https://launchpad.net/~openstackMore 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] Networking Issue (of newly launched instance)

2012-04-15 Thread Yong Sheng Gong
I think the dhcp message is intercepted by your host's dhcp server.-openstack-bounces+gongysh=cn.ibm@lists.launchpad.net wrote: -To: openstack@lists.launchpad.netFrom: Salman Malik salma...@live.comSent by: openstack-bounces+gongysh=cn.ibm@lists.launchpad.netDate: 04/16/2012 12:30AMSubject: [Openstack] Networking Issue (of newly launched instance)

Hi All,I have been able to launch an instance using devstack's dashboard. Now there seems to be networking problem. The log of the launched instance shows the following message repeatedly:cloud-setup: failed 1/30 : up 1.23. request failedwget: can't connect to remote host (169.254.169.254): No route to hostand afterwards, the log shows: debug start # /etc/rc.d/init.d/sshd start/etc/rc3.d/S45-cloud-setup: line 66: /etc/rc.d/init.d/sshd: not found### ifconfig -aeth0   Link encap:Ethernet HWaddr FA:16:3E:28:AB:91 inet addr:10.0.3.19 Bcast:10.0.3.255 Mask:255.255.255.0inet6 addr: fe80::f816:3eff:fe28:ab91/64 Scope:LinkUP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1RX packets:18 errors:0 dropped:0 overruns:0 frame:0TX packets:96 errors:0 dropped:0 overruns:0 carrier:0collisions:0 txqueuelen:1000 RX bytes:3054 (2.9 KiB) TX bytes:4780 (4.6 KiB)Interrupt:11 Base address:0xa000 loLink encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0inet6 addr: ::1/128 Scope:HostUP LOOPBACK RUNNING MTU:16436 Metric:1RX packets:56 errors:0 dropped:0 overruns:0 frame:0TX packets:56 errors:0 dropped:0 overruns:0 carrier:0collisions:0 txqueuelen:0 RX bytes:4928 (4.8 KiB) TX bytes:4928 (4.8 KiB)### route -nKernel IP routing tableDestination   Gateway Genmask Flags Metric Ref  Use Iface0.0.0.0 10.0.3.20.0.0.0 UG  0   00 eth010.0.3.00.0.0.0 255.255.255.0  U   0   00 eth0### cat /etc/resolv.confsearch hsd1.il.comcast.net.nameserver 192.168.1.1### ping -c 5 10.0.3.2PING 10.0.3.2 (10.0.3.2): 56 data bytes--- 10.0.3.2 ping statistics ---5 packets transmitted, 0 packets received, 100% packet loss### pinging nameservers ping -c 5 192.168.1.1PING 192.168.1.1 (192.168.1.1): 56 data bytes--- 192.168.1.1 ping statistics ---5 packets transmitted, 0 packets received, 100% packet lossand after sometime:wget: can't connect to remote host (169.254.169.254): No route to hostinstance-id: public-ipv4: local-ipv4 : wget: can't connect to remote host (169.254.169.254): No route to hostcloud-userdata: failed to read instance idWARN: /etc/rc3.d/S99-cloud-userdata failedAlthough the dashboard shows an IP of 10.0.0.3 for this instance, yet within the logs ifconfig -a is showing 10.0.3.19. I am not sure how this instance is connected to my host (or how it should be connected to my host). Someone help please, I can not even login to the instance using VNC. (Any insights to the networking part would be really helpful)This is my setup:My host VM (which is hosting devstack) has two VNICs: eth0 is NAT (IP:10.0.3.15) and eth1 is host only (IP:192.168.124.2). All devstack's configuration has been done with respect to 10.0.3.15 (i.e all services are bound to this address)
 		 	   		  ___Mailing list: https://launchpad.net/~openstackPost to   : openstack@lists.launchpad.netUnsubscribe : https://launchpad.net/~openstackMore 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] Networking Issue (of newly launched instance)

2012-04-15 Thread Yong Sheng Gong
I remember that in one of companies that I have worked for, any employees are prohibited to run a DHCP server attached to office network. Seems you have to find a way to isolate your host dhcp server with your nova-network dhcp server if you have to run both servers.-Salman Malik salma...@live.com wrote: -To: Yong Sheng Gong/China/IBM@IBMCNFrom: Salman Malik salma...@live.comDate: 04/16/2012 07:55AMCc: openstack@lists.launchpad.netSubject: RE: [Openstack] Networking Issue (of newly launched instance)


Thanks Sheng. I think you are right. But how to resolve the issue ?Subject: Re: [Openstack] Networking Issue (of newly launched instance)From: gong...@cn.ibm.comTo: salma...@live.comCC: openstack@lists.launchpad.netDate: Mon, 16 Apr 2012 07:47:17 +0800I think the dhcp message is intercepted by your host's dhcp server.-openstack-bounces+gongysh=cn.ibm@lists.launchpad.net wrote: -To: openstack@lists.launchpad.netFrom: Salman Malik salma...@live.comSent by: openstack-bounces+gongysh=cn.ibm@lists.launchpad.netDate: 04/16/2012 12:30AMSubject: [Openstack] Networking Issue (of newly launched instance)

Hi All,I have been able to launch an instance using devstack's dashboard. Now there seems to be networking problem. The log of the launched instance shows the following message repeatedly:cloud-setup: failed 1/30 : up 1.23. request failedwget: can't connect to remote host (169.254.169.254): No route to hostand afterwards, the log shows: debug start # /etc/rc.d/init.d/sshd start/etc/rc3.d/S45-cloud-setup: line 66: /etc/rc.d/init.d/sshd: not found### ifconfig -aeth0   Link encap:Ethernet HWaddr FA:16:3E:28:AB:91 inet addr:10.0.3.19 Bcast:10.0.3.255 Mask:255.255.255.0inet6 addr: fe80::f816:3eff:fe28:ab91/64 Scope:LinkUP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1RX packets:18 errors:0 dropped:0 overruns:0 frame:0TX packets:96 errors:0 dropped:0 overruns:0 carrier:0collisions:0 txqueuelen:1000 RX bytes:3054 (2.9 KiB) TX bytes:4780 (4.6 KiB)Interrupt:11 Base address:0xa000 loLink encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0inet6 addr: ::1/128 Scope:HostUP LOOPBACK RUNNING MTU:16436 Metric:1RX packets:56 errors:0 dropped:0 overruns:0 frame:0TX packets:56 errors:0 dropped:0 overruns:0 carrier:0collisions:0 txqueuelen:0 RX bytes:4928 (4.8 KiB) TX bytes:4928 (4.8 KiB)### route -nKernel IP routing tableDestination   Gateway Genmask Flags Metric Ref  Use Iface0.0.0.0 10.0.3.20.0.0.0 UG  0   00 eth010.0.3.00.0.0.0 255.255.255.0  U   0   00 eth0### cat /etc/resolv.confsearch hsd1.il.comcast.net.nameserver 192.168.1.1### ping -c 5 10.0.3.2PING 10.0.3.2 (10.0.3.2): 56 data bytes--- 10.0.3.2 ping statistics ---5 packets transmitted, 0 packets received, 100% packet loss### pinging nameservers ping -c 5 192.168.1.1PING 192.168.1.1 (192.168.1.1): 56 data bytes--- 192.168.1.1 ping statistics ---5 packets transmitted, 0 packets received, 100% packet lossand after sometime:wget: can't connect to remote host (169.254.169.254): No route to hostinstance-id: public-ipv4: local-ipv4 : wget: can't connect to remote host (169.254.169.254): No route to hostcloud-userdata: failed to read instance idWARN: /etc/rc3.d/S99-cloud-userdata failedAlthough the dashboard shows an IP of 10.0.0.3 for this instance, yet within the logs ifconfig -a is showing 10.0.3.19. I am not sure how this instance is connected to my host (or how it should be connected to my host). Someone help please, I can not even login to the instance using VNC. (Any insights to the networking part would be really helpful)This is my setup:My host VM (which is hosting devstack) has two VNICs: eth0 is NAT (IP:10.0.3.15) and eth1 is host only (IP:192.168.124.2). All devstack's configuration has been done with respect to 10.0.3.15 (i.e all services are bound to this address)
 		 	   		  ___Mailing list: https://launchpad.net/~openstackPost to   : openstack@lists.launchpad.netUnsubscribe : https://launchpad.net/~openstackMore 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] Endpoints problems

2012-04-12 Thread Yong Sheng Gong
Maybe, here some codes are worth thouhands of words:keystone.catalog.backends.sql.Catalog:  def get_catalog(self, user_id, tenant_id, metadata=None): d = dict(CONF.iteritems()) d.update({'tenant_id': tenant_id, 'user_id': user_id}) catalog = {} endpoints = [self.get_endpoint(e) for e in self.list_endpoints()] for ep in endpoints: service = self.get_service(ep['service_id']) srv_type = service['type'] srv_name = service['name'] region = ep['region'] if region not in catalog: catalog[region] = {} catalog[region][srv_type] = {} internal_url = ep['internalurl'].replace('$(', '%(') public_url = ep['publicurl'].replace('$(', '%(') admin_url = ep['adminurl'].replace('$(', '%(') catalog[region][srv_type]['name'] = srv_name catalog[region][srv_type]['publicURL'] = public_url % d catalog[region][srv_type]['adminURL'] = admin_url % d catalog[region][srv_type]['internalURL'] = internal_url % d return catalog-openstack-bounces+gongysh=cn.ibm@lists.launchpad.net wrote: -To: Anne Gentle a...@openstack.orgFrom: Pete Zaitcev zait...@redhat.comSent by: openstack-bounces+gongysh=cn.ibm@lists.launchpad.netDate: 04/13/2012 06:44AMCc: Openstack Mail List openstack@lists.launchpad.netSubject: Re: [Openstack] Endpoints problemsOn Thu, 12 Apr 2012 15:28:21 -0500Anne Gentle a...@openstack.org wrote: keystone --token 012345SECRET99TOKEN012345 --endpoint http://192.168.206.130:35357/v2.0endpoint-create \[]--internalurl http://192.168.206.130:8774/v2/$(tenant_id)s  I haven't fixed this yet because I'm not sure if the $(tenant_id)s is literal or which tenant_id specifically to use (the Service tenant for the adminurl possibly)?The _expression_ "$(tenant_id)s" is really contained inside the patternin the database. It is substituded with a specific tennant ID whenan application makes its request. The weird syntax is inherited fromPython, where one can use constructs like %s or %(key)s.-- Pete___Mailing list: https://launchpad.net/~openstackPost to   : openstack@lists.launchpad.netUnsubscribe : https://launchpad.net/~openstackMore 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] How to setup vncproxy with ubuntu precise package?

2012-04-12 Thread Yong Sheng Gong
Hi, please see if following text can help.
			To enable vnc console access VMs started by OpenStack, we need many components to collaborate.
		
Components on control node

		nova-api, which is API server of OpenStack
		nova-consoleauth, which is used to authorize vnc client
		noVNC, which is a VNC proxy for browser. An alternative proxy is 
nova-xvpvncproxy, which can accessed by a Java client at 
https://github.com/cloudbuilders/nova-xvpvncviewer.
			
Components on compute node

		nova-compute, which is nova binary to instantiate VMs
		libvirt driver, which is used by nova-compute to interact with libvirt server
		VNC server, which is part of hypervisor?
			
		
			Steps for user to access VNC console
		
			
			1. user gets the vnc console by command:
		
			

	
		[root@robinlinux utils]# nova get-vnc-console myserver20 novnc
		

			
		
	
	
		nova-api accepts this request, and then sends out "get_vnc_console" message to VM's related compute host
	
		2. nova-compute, running on that compute host accepts that message, 
generate a token and call libvirt driver's get_vnc_console methods.
	
		3. Libvirt driver will connect with libvirt server to get VM's vnc 
port, and look up the vnc host from FLAGS.vncserver_proxyclient_address.
	
		4. nova-api will send out "authorize_console" message to 
nova-consoleauth, which then caches the connection information returned 
by compute-node with token as key
	
		5. user browsers the URL returned the previous command, like below:
	
		
			

	[root@robinlinux utils]# nova get-vnc-console myserver20 novnc
	+---+--+
	| Type | Url |
	+---+--+
	| novnc | http://controlnode:6080/vnc_auto.html?token=34ce7a44-6186-43d8-be14-2ea9e028b8fa |
	+---+--+
	
			
		
	
	
		6. noVNC, which is listening on 6080 HTTP port, accepts the URL request, sends out "check_token" message to nova-consoleauth
	
		7. nova-consoleauth checks the cached connections and returns one according to the requested token key
	
		8. noVNC begins the proxy work, connecting the VNC server
	
		About configuration items in nova.conf
	
		
			

	#read by nova-compute to compose vnc-console URL
	# for novnc
	novncproxy_base_url=http://controlnode:6080/vnc_auto.html
	# for xvpvnc
	xvpvncproxy_base_url=http://controlnode:6081/console
	#read by nova-compute to instantiate VMs
	vncserver_listen=controlnode
	
	#read by libvirt driver to compute vnc-console URL
	vncserver_proxyclient_address=controlnode
	
			
		
	

-openstack-bounces+gongysh=cn.ibm@lists.launchpad.net wrote: -To: openstack@lists.launchpad.netFrom: Nachi Ueno ueno.na...@nttdata-agilenet.comSent by: openstack-bounces+gongysh=cn.ibm@lists.launchpad.netDate: 04/13/2012 08:33AMSubject: [Openstack] How to setup vncproxy with ubuntu precise package?Hi folksI'm trying to setup vncproxy with ubuntu package on precise.But I could'nt find document how to setup them.If you there are information, could you share me?Thank you in advanceNachi___Mailing list: https://launchpad.net/~openstackPost to   : openstack@lists.launchpad.netUnsubscribe : https://launchpad.net/~openstackMore 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] Endpoints problems

2012-04-12 Thread Yong Sheng Gong
Here is one sample keystone default_catalog.templates which defines some services. In fact I think for SQL, we need use keystone client to add them into SQL DB.# config for TemplatedCatalog, using camelCase because I don't want to do# translations for keystone compatcatalog.RegionOne.identity.publicURL = http://controlnode:$(public_port)s/v2.0catalog.RegionOne.identity.adminURL = http://controlnode:$(admin_port)s/v2.0catalog.RegionOne.identity.internalURL = http://controlnode:$(public_port)s/v2.0catalog.RegionOne.identity.name = Identity Service# fake compute service for now to help novaclient tests workcatalog.RegionOne.compute.publicURL = http://controlnode:$(compute_port)s/v1.1/$(tenant_id)scatalog.RegionOne.compute.adminURL = http://controlnode:$(compute_port)s/v1.1/$(tenant_id)scatalog.RegionOne.compute.internalURL = http://controlnode:$(compute_port)s/v1.1/$(tenant_id)scatalog.RegionOne.compute.name = Compute Servicecatalog.RegionOne.volume.publicURL = http://controlnode:8776/v1/$(tenant_id)scatalog.RegionOne.volume.adminURL = http://controlnode:8776/v1/$(tenant_id)scatalog.RegionOne.volume.internalURL = http://controlnode:8776/v1/$(tenant_id)scatalog.RegionOne.volume.name = Volume Servicecatalog.RegionOne.ec2.publicURL = http://controlnode:8773/services/Cloudcatalog.RegionOne.ec2.adminURL = http://controlnode:8773/services/Admincatalog.RegionOne.ec2.internalURL = http://controlnode:8773/services/Cloudcatalog.RegionOne.ec2.name = EC2 Servicecatalog.RegionOne.image.publicURL = http://controlnode:9292/v1catalog.RegionOne.image.adminURL = http://controlnode:9292/v1catalog.RegionOne.image.internalURL = http://controlnode:9292/v1catalog.RegionOne.image.name = Image Service-openstack-bounces+gongysh=cn.ibm@lists.launchpad.net wrote: -To: Pete Zaitcev zait...@redhat.comFrom: Anne Gentle a...@openstack.orgSent by: openstack-bounces+gongysh=cn.ibm@lists.launchpad.netDate: 04/13/2012 12:33PMCc: Openstack Mail List openstack@lists.launchpad.netSubject: Re: [Openstack] Endpoints problemsThanks all! And thanks for not saying "It's a Python Thing You Wouldn't Understand." :)Yeah I do want a definitive answer but it's always good for me to learn to read code. Then again, things like replace('$(', '%(') make me go hmm...

One last clarification, this $(tenant_id)s should be used for both nova and volume endpoints, right?Thanks,AnneOn Thu, Apr 12, 2012 at 5:44 PM, Pete Zaitcev zait...@redhat.com wrote:

On Thu, 12 Apr 2012 15:28:21 -0500
Anne Gentle a...@openstack.org wrote:
 keystone --token 012345SECRET99TOKEN012345 --endpoint
 http://192.168.206.130:35357/v2.0 endpoint-create \
[]
--internalurl
 http://192.168.206.130:8774/v2/$(tenant_id)s

 I haven't fixed this yet because I'm not sure if the $(tenant_id)s is
 literal or which tenant_id specifically to use (the Service tenant for the
 adminurl possibly)?
The _expression_ "$(tenant_id)s" is really contained inside the pattern
in the database. It is substituded with a specific tennant ID when
an application makes its request. The weird syntax is inherited from
Python, where one can use constructs like %s or %(key)s.

-- Pete

___Mailing list: https://launchpad.net/~openstackPost to   : openstack@lists.launchpad.netUnsubscribe : https://launchpad.net/~openstackMore 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] What is the correct config for vnc or novnc tosuccessfully enable VNC CONSOLE in a browser?

2012-04-09 Thread Yong Sheng Gong

		About configuration items in nova.conf
	
		
			

	#read by nova-compute to compose vnc-console URL
	# for novnc
	novncproxy_base_url=http://controlnode:6080/vnc_auto.html
	# for xvpvnc
	xvpvncproxy_base_url=http://controlnode:6081/console
	#read by nova-compute to instantiate VMs
	vncserver_listen=controlnode
	
	#read by libvirt driver to compute vnc-console URL
	vncserver_proxyclient_address=controlnode
	-openstack-bounces+gongysh=cn.ibm@lists.launchpad.net wrote: -To: .。o 0 O泡泡 501640...@qq.comFrom: Anthony Young sleepsonthefl...@gmail.comSent by: openstack-bounces+gongysh=cn.ibm@lists.launchpad.netDate: 04/09/2012 02:23PMCc: openstack openstack@lists.launchpad.netSubject: Re: [Openstack] What is the correct config for vnc or novnc tosuccessfully enable VNC CONSOLE in a browser?See below:
but I get some thing strange for:if I set--vnc_enabled=true--novncproxy_base_url=http://localhost:6080/vnc_auto.html
--vncserver_proxyclient_address=localhost--vncserver_listen=0.0.0.0in nova.conf that it return
Oops! Google Chrome could not connect tolocalhost:6080in dashboard,but work fine when I use commandnova get-vnc-console demo novnc ..It return a url as http://localhost:6080/vnc_auto.html?token=XX..
then I enter this url in chrome withhttp://172.18.187.110:6080/vnc_auto.html?token=XX
ps:172.18.187.110 is the public ip of my openstack server..It can return my VM's screen ..
however,when I set
--vnc_enabled=true--novncproxy_base_url=http://172.18.187.110:6080/vnc_auto.html
--vncserver_proxyclient_address=172.18.187.110--vncserver_listen=0.0.0.0and restart all the services ..
both dashboard and url from commandnova get-vnc-console demo novnc returns server connot connectI am wondering how would localhost and 172.18.187.110 be not the same???
If you launched this instance before you specified --vncserver_listen, then the instance's vnc server will bind 127.0.0.1. Furthermore, this configuration will be baked into the instances libvirt.xml file, so changes to --vncserver_listen in your nova.conf will not have any effect for already existing instances.
Did you happen to launch this instance before you set --vncserver_listen to 0.0.0.0? If so, you may try to launch another instance and see if vnc is working properly.Just for the record, --vncserver_listen is generally set to the hosts management ip, rather than the public ip or 0.0.0.0, for security reasons.

thanksdming
--Original--From:"Kiall Mac Innes"ki...@managedit.ie;
Date:Sat, Apr 7, 2012 07:15 PMTo:"Eric Luo"staywithmyhe...@gmail.com;Cc:"openstack"openstack@lists.launchpad.net;
Subject:Re: [Openstack] What is the correct config for vnc or novnc tosuccessfully enable VNC CONSOLE in a browser?For anyone else who might be hng the same issue.. These two packages, combined with these options will get novnc working on precise..--vnc_enabled=true--novncproxy_base_url=http://78.153.XXX.XXX:6080/vnc_auto.html--vncserver_proxyclient_address=78.153.XXX.XXX
--vncserver_listen=0.0.0.0I've intentionally kept the version numbers identical to the packages currently in the precise repo's. This will hopefully let apt "do the right thing" once an official update is released..
http://dl.dropbox.com/u/1400487/novnc_2012.1~e3%2Bdfsg-1_amd64.debhttp://dl.dropbox.com/u/1400487/python-novnc_2012.1~e3%2Bdfsg-1_all.debThanks,KiallOn Sat, Apr 7, 2012 at 11:14 AM, Kiall Mac Inneski...@managedit.iewrote:

The novnc package included in 12.04 is outdated/broken.I know Chuck is planning to fix it ASAP..In the meantime, I hacked together a fixed .deb.. I can stick it somewhere for you to download if you like?
Thanks,KiallSent from my phone.On Apr 7, 2012 9:31 a.m., "Eric Luo" staywithmyhe...@gmail.com wrote:

Hello ,allI installed Openstack as a all-in-one solution ,I got everything runs correctly ,I can ssh to my VMs etc. But there is a problem here: I can not use the VNC tag in dashboard.
I have installed the nova-consoleauth and novnc by "apt-get" .but I can not statrt the nova-novncproxy service (by the way ,the nova-vncproxy service always runs OK),When I use the command root@ubuntu:~#service novnc start
I got the following with nothing else:* Starting OpenStack NoVNC proxy nova-novncproxyIt only says "starting",but does not say "started"!
actually it is not started ,by commandservice novnc status,it says: * nova-novncproxy is not running.when I use commandnova-novncproxy --flagfile=/etc/nova/nova.conf,I got the following:
WARNING: no 'numpy' module, HyBi protocol support disabledTraceback (most recent call last):File "/usr/bin/nova-novncproxy", line 40, in module
flags.DEFINE_boolean('verbose', False,AttributeError: 'module' object has no attribute 'DEFINE_boolean'When I use commandnova get-vnc-console testVM novnc
+---++| Type | Url 

Re: [Openstack] What is the correct config for vnc or novnctosuccessfully enable VNC CONSOLE in a browser?

2012-04-09 Thread Yong Sheng Gong
I think--vncserver_listen must be one of the ips of compute-node.-openstack-bounces+gongysh=cn.ibm@lists.launchpad.net wrote: -To: "Anthony Young" sleepsonthefl...@gmail.comFrom: ".。o 0 O泡泡" 501640...@qq.comSent by: openstack-bounces+gongysh=cn.ibm@lists.launchpad.netDate: 04/09/2012 06:16PMCc: openstack openstack@lists.launchpad.netSubject: Re: [Openstack] What is the correct config for vnc or	novnctosuccessfully enable VNC CONSOLE in a browser?thanks for your answer.the option of--vncserver_listen is always 0.0.0.0 during I having any change for other vnc's options in nova.confby the way ,if I set--vncserver_listen to controlnote's IP ,can novnc work fine when instance is in compute-note??thanksdming--Original--From: "Anthony Young"sleepsonthefl...@gmail.com;Date: Mon, Apr 9, 2012 02:23 PMTo: ".。o 0 O泡泡"501640...@qq.com; Cc: "openstack"openstack@lists.launchpad.net; Subject: Re: [Openstack] What is the correct config for vnc or novnctosuccessfully enable VNC CONSOLE in a browser?See below:
but I get some thing strange for:if I set --vnc_enabled=true--novncproxy_base_url=http://localhost:6080/vnc_auto.html
--vncserver_proxyclient_address=localhost--vncserver_listen=0.0.0.0in nova.conf that it return 
Oops! Google Chrome could not connect to localhost:6080 in dashboard,but work fine when I use command nova get-vnc-console demo novnc  ..It return a url as http://localhost:6080/vnc_auto.html?token=XX..
then I enter this url in chrome with http://172.18.187.110:6080/vnc_auto.html?token=XX 
ps:172.18.187.110 is the public ip of my openstack server..It can return my VM's screen ..
however,when I set
--vnc_enabled=true--novncproxy_base_url=http://172.18.187.110:6080/vnc_auto.html
--vncserver_proxyclient_address=172.18.187.110--vncserver_listen=0.0.0.0and restart all the services ..
both dashboard and url from command nova get-vnc-console demo novnc returns server connot connect I am wondering how would localhost and 172.18.187.110 be not the same???
If you launched this instance before you specified --vncserver_listen, then the instance's vnc server will bind 127.0.0.1.  Furthermore, this configuration will be baked into the instances libvirt.xml file, so changes to --vncserver_listen in your nova.conf will not have any effect for already existing instances.
Did you happen to launch this instance before you set --vncserver_listen to 0.0.0.0?  If so, you may try to launch another instance and see if vnc is working properly.Just for the record, --vncserver_listen is generally set to the hosts management ip, rather than the public ip or 0.0.0.0, for security reasons.
 
thanksdming 
-- Original --From:  "Kiall Mac Innes"ki...@managedit.ie;
Date:  Sat, Apr 7, 2012 07:15 PMTo:  "Eric Luo"staywithmyhe...@gmail.com;Cc:  "openstack"openstack@lists.launchpad.net;
Subject:  Re: [Openstack] What is the correct config for vnc or novnc tosuccessfully enable VNC CONSOLE in a browser? For anyone else who might be hng the same issue.. These two packages, combined with these options will get novnc working on precise..--vnc_enabled=true--novncproxy_base_url=http://78.153.XXX.XXX:6080/vnc_auto.html--vncserver_proxyclient_address=78.153.XXX.XXX
--vncserver_listen=0.0.0.0I've intentionally kept the version numbers identical to the packages currently in the precise repo's. This will hopefully let apt "do the right thing" once an official update is released..
http://dl.dropbox.com/u/1400487/novnc_2012.1~e3%2Bdfsg-1_amd64.debhttp://dl.dropbox.com/u/1400487/python-novnc_2012.1~e3%2Bdfsg-1_all.deb Thanks,KiallOn Sat, Apr 7, 2012 at 11:14 AM, Kiall Mac Innes ki...@managedit.ie wrote:

The novnc package included in 12.04 is outdated/broken..I know Chuck is planning to fix it ASAP..In the meantime, I hacked together a fixed .deb.. I can stick it somewhere for you to download if you like?
Thanks,KiallSent from my phone.On Apr 7, 2012 9:31 a.m., "Eric Luo" staywithmyhe...@gmail.com wrote:

Hello ,allI installed Openstack as a all-in-one solution ,I got everything runs correctly ,I can ssh to my VMs etc. But there is a problem here: I can not use the VNC tag in dashboard.
I have installed the nova-consoleauth and novnc by "apt-get" .but I can not statrt the nova-novncproxy service (by the way ,the nova-vncproxy service always runs OK),When I use the command root@ubuntu:~# service novnc start
I got the following with nothing else:* Starting OpenStack NoVNC proxy nova-novncproxyIt only says "starting",but does not say "started"!
actually it is not started ,by command service novnc status, it says: * nova-novncproxy is not running.when I use command nova-novncproxy --flagfile=/etc/nova/nova.conf ,I got the following:
WARNING: no 'numpy' module, HyBi protocol support disabledTraceback (most recent call last):File "/usr/bin/nova-novncproxy", line 40, in module
flags.DEFINE_boolean('verbose', False,AttributeError: 'module' object has no attribute 

Re: [Openstack] Instance fails to spawn when instance_path is nfs mounted

2012-04-04 Thread Yong Sheng Gong
Please have a look at my experience to see if it can help.Thanks-openstack-bounces+gongysh=cn.ibm@lists.launchpad.net wrote: -To: Razique Mahroua razique.mahr...@gmail.comFrom: Yong Sheng Gong/China/IBM@IBMCNSent by: openstack-bounces+gongysh=cn.ibm@lists.launchpad.netDate: 03/29/2012 07:39PMCc: "openstack@lists.launchpad.net \(openstack@lists.launchpad.net\)" openstack@lists.launchpad.netSubject: Re: [Openstack] KVM cannot start vm when the disk is on NFSThanks for the reply. I have figured it out.I
 am running nova control node with root account on the side of nfs4 
server side (redhat6.1), while on the side of compute node is ubuntu.So on ubuntu side, I have executed:$sudo bash,#nova-computeIn fact what I need to do is to let kvm binary run under root user id.I found the solution from http://libvirt.org/drvqemu.html.Here are what I did on ubuntu side:#chown root:root /var/run/libvirt/qemu /var/lib/libvirt/qemu /var/cache/libvirt/qemuedit /etc/libvirt/qemu.conf# The user ID for QEMU processes run by the system instance.user = "root"# The group ID for QEMU processes run by the system instance.group = "root"after restarting libvirt-bin, nova-compute can provision vm from the images on NFS share dir now.-Razique Mahroua razique.mahr...@gmail.com wrote: -To: Yong Sheng Gong/China/IBM@IBMCNFrom: Razique Mahroua razique.mahr...@gmail.comDate: 03/29/2012 06:00PMCc: "openstack@lists.launchpad.net (openstack@lists.launchpad.net)" openstack@lists.launchpad.netSubject: Re: [Openstack] KVM cannot start vm when the disk is on NFSHello Yong,as you may understand, the chmod 777 is not the best thing to do.it looks like the files belong to the user root, while it's the user nova which runs the cloud.The first thing to do is to give the rights to the user nova of the directory (755) to nova:nova.Thanks!
Nuage  Co - Razique Mahrouarazique.mahr...@gmail.com
Le 29 mars 2012 à 09:50, Yong Sheng Gong a écrit :I have to run chmod 777 /var/lib/nova/instances/instance-0007 to start the vm on kvm. Appreciate any help from stackers. HostA ( 192.168.1.90): redhat 6.1 nfs4/etc/exports:/var/lib/nova/instances 192.168.1.0/24(rw,sync,fsid=0,no_root_squash)/etc/idmapd:[General]Domain = openstack#service nfs restart#service rpcidmapd restartHostB ( 192.168.1.94): ubuntu 11.10#sudo bash/etc/idmapd:[General]Verbosity = 0Pipefs-Directory = /var/lib/nfs/rpc_pipefsDomain = openstack/etc/fstab:192.168.1.90:/ /var/lib/nova/instances nfs4 defaults 0 0#mount -a -vroot@openubuntu:/var/lib/nova/instances/instance-0007# lltotal 14168drwxr-xr-x 2 root root 4096 2012-03-29 14:23 ./drwxr-xr-x 9 nobody nogroup 4096 2012-03-29 14:21 ../-rw-rw 1 root root 0 2012-03-29 14:17 console.log-rw-r--r-- 1 root root 6291968 2012-03-29 14:18 disk-rw-r--r-- 1 root root 4404752 2012-03-29 14:18 kernel-rw-r--r-- 1 root root 1619 2012-03-29 14:17 libvirt.xml-rw-r--r-- 1 root root 5882349 2012-03-29 14:18 ramdiskroot@openubuntu:/var/lib/nova/instances/instance-0007# virsh start instance-0007error: Failed to start domain instance-0007error: internal error Process exited while reading console log output: chardev: opening backend "file" failedroot@openubuntu:/var/lib/nova/instances/instance-0007# chmod 777 console.logroot@openubuntu:/var/lib/nova/instances/instance-0007# virsh start instance-0007error: Failed to start domain instance-0007error: internal error Process exited while reading console log output: char device redirected to /dev/pts/3kvm:
 -drive 
file=/var/lib/nova/instances/instance-0007/disk,if=none,id=drive-virtio-disk0,format=qcow2,cache=none:
 could not open disk image 
/var/lib/nova/instances/instance-0007/disk: Permission deniedroot@openubuntu:/var/lib/nova/instances/instance-0007# chmod 777 *root@openubuntu:/var/lib/nova/instances/instance-0007# virsh start instance-0007Domain instance-0007 startedThanksYong Sheng Gong

___Mailing list: https://launchpad.net/~openstackPost to : openstack@lists.launchpad.netUnsubscribe : https://launchpad.net/~openstackMore help : https://help.launchpad.net/ListHelp
___Mailing list: https://launchpad.net/~openstackPost to   : openstack@lists.launchpad.netUnsubscribe : https://launchpad.net/~openstackMore help  : https://help.launchpad.net/ListHelp
-openstack-bounces+gongysh=cn.ibm@lists.launchpad.net wrote: -To: Nathanael Burton nathanael.i.bur...@gmail.com, Diego Parrilla Santamaría diego.parrilla.santama...@gmail.comFrom: "Vaze, Mandar" mandar.v...@nttdata.comSent by: openstack-bounces+gongysh=cn.ibm@lists.launchpad.netDate: 04/04/2012 06:28PMCc: "openstack@lists.launchpad.net" openstack@lists.launchpad.netSubject: Re: [Openstack] Instance fails to spawn when instance_path is	nfs	mounted I had a problem like this when the umask was locked down. Setting the 

Re: [Openstack] Instance fails to spawn when instance_path is nfs mounted

2012-04-04 Thread Yong Sheng Gong
Are you sure your libvirtd will start /usr/bin/kvm with libvirtd group?In default, the /usr/bin/kvm is running with libvirt-qemu like user (that depends on how it is built). you can try to check it by running "ps -ef" to see the effective user and group id after starting a VM in your way.-openstack-bounces+gongysh=cn.ibm@lists.launchpad.net wrote: -To: Diego Parrilla Santamaría diego.parrilla.santama...@gmail.comFrom: "Vaze, Mandar" mandar.v...@nttdata.comSent by: openstack-bounces+gongysh=cn.ibm@lists.launchpad.netDate: 04/04/2012 06:43PMCc: "openstack@lists.launchpad.net" openstack@lists.launchpad.netSubject: Re: [Openstack] Instance fails to spawn when instance_path is	nfs	mountedØ
Check if not only root can write on the nfs share (specially libvirt user).It doesn’t look like permissions issue to me. Just to be doubly sure, I “touched” a file, in that folder, edited and deleted the
 file. All operations worked w/o error.
As I have listed below, several files got created with correct user/group settings. In fact, “instance-0005” folder itself
 was created with correct permissions.
mandar@ubuntu-dev-mandar:/nfs_shared_instances_path/instance-0005$ ll
total 10944
drwxrwxr-x 2 mandar libvirtd  4096 2012-04-03 05:42 ./
drwxrwxrwx 4 root  root4096 2012-04-03 05:42 ../
-rw-rw 1 mandar libvirtd0 2012-04-03 05:42 console.log
-rw-r--r-- 1 mandar libvirtd 6291968 2012-04-03 05:42 disk
-rw-rw-r-- 1 mandar libvirtd 4731440 2012-04-03 05:42 kernel
-rw-rw-r-- 1 mandar libvirtd  1067 2012-04-03 05:42 libvirt.xml
-rw-rw-r-- 1 mandar libvirtd 2254249 2012-04-03 05:42 ramdisk
I also moved the mount point from “/” to my home folder – still didn’t help
-Mandar

On Tue, Apr 3, 2012 at 6:43 PM, Mandar Vaze / 
मंदार वझे mandarv...@gmail.com wrote:

I saw an old question posted here :
https://answers.launchpad.net/nova/+question/164689
ButI am not trying live migration.
I have nfs mounted instances_path - so when I try to spawn an instance I
run into the above errors. Especially following :
File "/usr/lib/python2.7/dist-packages/libvirt.py", line 372, in createWithFlags
40842 2012-04-03 05:42:27 TRACE nova.rpc.amqp   if ret == -1: raise libvirtError ('virDomainCreateWithFlags() failed', dom=self)
40843 2012-04-03 05:42:27 TRACE nova.rpc.amqp libvirtError: internal error Process exited while reading console log output: chardev: openingbackend "file" failed
But as you can see below, several files are created in this folder, so I
am not sure if mine if permissions issue (Else none of the files would
get created) The problem is reported when libvirt tries to write to
console.log (File itself is created with correct permissions - just that
this is zero byte file)
mandar@ubuntu-dev-mandar:/nfs_shared_instances_path/instance-0005$ ll
total 10944
drwxrwxr-x 2 mandar libvirtd  4096 2012-04-03 05:42 ./
drwxrwxrwx 4 root  root4096 2012-04-03 05:42 ../
-rw-rw 1 mandar libvirtd0 2012-04-03 05:42 console.log
-rw-r--r-- 1 mandar libvirtd 6291968 2012-04-03 05:42 disk
-rw-rw-r-- 1 mandar libvirtd 4731440 2012-04-03 05:42 kernel
-rw-rw-r-- 1 mandar libvirtd  1067 2012-04-03 05:42 libvirt.xml
-rw-rw-r-- 1 mandar libvirtd 2254249 2012-04-03 05:42 ramdisk
I'm suspecting : 
https://bugs.launchpad.net/ubuntu/maverick/+source/libvirt/+bug/632696
But I the above doesn't show itself in non-NFS setup

Please suggest !!!

-Mandar

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

__
Disclaimer:This email and any attachments are sent in strictest confidence for the sole use of the addressee and may contain legally privileged, confidential, and proprietary data.  If you are not the intended recipient, please advise the sender by replying promptly to this email and then delete and destroy this email and any attachments without any further use, copying or forwarding
___Mailing list: https://launchpad.net/~openstackPost to   : openstack@lists.launchpad.netUnsubscribe : https://launchpad.net/~openstackMore 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] question about keystone and dashboard on RHEL6

2012-04-02 Thread Yong Sheng Gong
try this:http://wiki.openstack.org/NovaInstall/RHEL6Notes-openstack-bounces+gongysh=cn.ibm@lists.launchpad.net wrote: -To: openstack openstack@lists.launchpad.netFrom: Xin Zhao xz...@bnl.govSent by: openstack-bounces+gongysh=cn.ibm@lists.launchpad.netDate: 04/03/2012 03:09AMSubject: [Openstack] question about keystone and dashboard on RHEL6Hello,I am new to OpenStack and trying to install the diablo release on a RHEL6 cluster. I follow instructions here:http://fedoraproject.org/wiki/Getting_started_with_OpenStack_NovaThe instruction doesn't mention how to install and configure Keystone and dashboard services, I wonder:1) are these two services available for RHEL6, in diablo release?2) do I need to go to the latest Essex release, and where the instructions is?Thanks,Xin___Mailing list: https://launchpad.net/~openstackPost to   : openstack@lists.launchpad.netUnsubscribe : https://launchpad.net/~openstackMore 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] Looking for complete keystone endpoint-create example

2012-04-02 Thread Yong Sheng Gong
I think devstack is still using tempalte catalogdevstack/files/keystone.conf[catalog]driver = keystone.catalog.backends.templated.TemplatedCatalogtemplate_file = %KEYSTONE_DIR%/etc/default_catalog.templatesThese are my commands, you can add for other service:keystone service-create --name "Identity Service" --type identity keystone  endpoint-create --region RegionOne --service_id 1d2eb30e5674414884947a33b505d614 --publicurl http://localhost:5000/v2.0 --adminurl http://localhost:35357/v2.0 --internalurl http://localhost:5000/v2.0 keystone service-create --name "Image Service" --type glance keystone  endpoint-create --region RegionOne --service_id 8f2e683b8d8a4dbaa0c84afed1ceb848 --publicurl http://localhost:9292/v1 --adminurl http://localhost:9292/v1 --internalurl http://localhost:9292/v1 keystone
 service-create --name "compute Service" --type compute keystone  
endpoint-create --region RegionOne --service_id 
aca8502b8c5c4936bcf1ee510b34cb43 --publicurl http://localhost:\$\(compute_port\)s/v1.1/\$\(tenant_id\)s --adminurl http://localhost:\$\(compute_port\)s/v1.1/\$\(tenant_id\)s --internalurl http://localhost:\$\(compute_port\)s/v1.1/\$\(tenant_id\)s-openstack-bounces+gongysh=cn.ibm@lists.launchpad.net wrote: -To: "openstack@lists.launchpad.net (openstack@lists.launchpad.net)" openstack@lists.launchpad.netFrom: Lorin Hochstein lo...@nimbisservices.comSent by: openstack-bounces+gongysh=cn.ibm@lists.launchpad.netDate: 04/03/2012 11:13AMSubject: [Openstack] Looking for complete keystone endpoint-create exampleAll:I'm trying to fix the keystone docs in the "Openstack Install and Deploy Manual", which uses a database backend for the catalog instead of a template file. I cannot find a complete example that shows the "endpoint-create" for all of the relevant services. (DevStack usesthe template file backend, not the database backend, so I can't use it for an example).In particular, do we have to create a separate endpoint for each tenant? Are endpointTemplates still around or are they gone now?
Take care,Lorin--Lorin HochsteinLead Architect - Cloud ServicesNimbis Services, Inc.www.nimbisservices.com
___Mailing list: https://launchpad.net/~openstackPost to   : openstack@lists.launchpad.netUnsubscribe : https://launchpad.net/~openstackMore 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] HELP: create VM failure

2012-04-01 Thread Yong Sheng Gong
I am also using ubuntu vm under vmware. I can run this command.check if you enabled the virtual Intel Vt-x/EPT or AMD-V/RVI on Vm setting of this vmware vm.-openstack-bounces+gongysh=cn.ibm@lists.launchpad.net wrote: -To: Leander Bessa leande...@gmail.comFrom: Sam Su susltd...@gmail.comSent by: openstack-bounces+gongysh=cn.ibm@lists.launchpad.netDate: 04/02/2012 07:35AMCc: openstack openstack@lists.launchpad.netSubject: Re: [Openstack] HELP: create VM failureHiLeander,Thank you for you response.I have double checked the value oflibvirt_type in nova.conf, it is kvm, not hvm. I search this problem in Google, it looks like a bug of libvirt before.
https://bugs.launchpad.net/ubuntu/+source/vm-builder/+bug/445253
I tried to changelibvirt_type=qemu and reboot system, nothing was changed.Maybe this problem is because my Ubuntu server is installed in a VMWare VM. I am planning to re-install Openstack in a physical machine.
Thanks,SamOn Sun, Apr 1, 2012 at 3:04 PM, Leander Bessa leande...@gmail.com wrote:
Maybe you specified --libvirt_type=hvm instead of --libvirt_type=kvm in your nova.conf file.
On Sun, Apr 1, 2012 at 8:44 PM, Sam Su susltd...@gmail.com wrote:
Hi,I am trying to deploy Openstack all-in-one environment (Nova, Glance, Keystone, Dashboard ) from scratch in an Ubuntu 12.04 server, After installed Nova, I tried to create a VM with nova command but failed:


root@ubuntu:/etc/nova# nova boot --flavor 1 --image 8e7f9978-86b2-4c75-a0a8-44b0bb2a46e2 --key_name key1 VM2+-+--+


|Property   |Value |+-+--+| OS-DCF:diskConfig  | MANUAL|


| OS-EXT-SRV-ATTR:host| ubuntu|| OS-EXT-SRV-ATTR:hypervisor_hostname | None || OS-EXT-SRV-ATTR:instance_name| instance-0002  |


| OS-EXT-STS:power_state   | 0  || OS-EXT-STS:task_state| scheduling  || OS-EXT-STS:vm_state | building   |


| accessIPv4 |   || accessIPv6 |   || adminPass  | Yj6mVrxaEiX6 |


| config_drive|   || created   | 2012-04-01T19:25:54Z || flavor   | m1.tiny   |


| hostId   |   || id | c15be925-c4d8-4b76-b7c3-e94ebe513cf1 || image| Ubuntu 11.10 cloudimg amd64 |


| key_name  | key1 || metadata  | {}  || name| VM2 |


| progress  | 0  || status   | BUILD|| tenant_id  | 2660dedf826c4510aff873c05d9d506b   |


| updated   | 2012-04-01T19:25:54Z || user_id   | b42c715d94384aa6a66c56df44ac69b2   |+-+--+


root@ubuntu:/etc/nova# nova show VM2+-+--+|Property   |   Value|


+-+--+| OS-DCF:diskConfig  | MANUAL  |


| OS-EXT-SRV-ATTR:host| ubuntu  || OS-EXT-SRV-ATTR:hypervisor_hostname | None   |


| OS-EXT-SRV-ATTR:instance_name| instance-0002|| OS-EXT-STS:power_state   | 0|


| OS-EXT-STS:task_state| spawning || OS-EXT-STS:vm_state | error  |


| accessIPv4 | || accessIPv6 | |


| config_drive| || created   | 2012-04-01T19:25:54Z   |


| fault| {u'message': u'libvirtError', u'code': 500, u'created': u'2012-04-01T19:25:57Z'} || flavor   | m1.tiny |


| hostId   | 05c193a7baf099665d8bd6cb4964e738b424d7224a67603c49d62f4b || id | c15be925-c4d8-4b76-b7c3-e94ebe513cf1   |


| image| Ubuntu 11.10 cloudimg amd64   || key_name  | key1   |


| metadata  | {}|| name| VM2   |


| status   | ERROR 

Re: [Openstack] Installion guide for OpenStack Essex on Ubuntu 12.04

2012-03-31 Thread Yong Sheng Gong
nova-manager project list should output nothing as expected.Try to run:nova-manager flavor listnova-manager network create|ist-openstack-bounces+gongysh=cn.ibm@lists.launchpad.net wrote: -To: Martin Gerhard Loschwitz martin.loschw...@hastexo.comFrom: Shake Chen shake.c...@gmail.comSent by: openstack-bounces+gongysh=cn.ibm@lists.launchpad.netDate: 03/31/2012 03:58PMCc: openstack@lists.launchpad.netSubject: Re: [Openstack] Installion guide for OpenStack Essex on Ubuntu 12.04Hi I have installed and working as expect.Now I run nova list no problem and work well.but # nova-manage project list2012-03-31 15:55:14 DEBUG nova.utils [req-60d5bed3-8bee-49dd-b68a-6eff83af3002 None None] backend module 'nova.db.sqlalchemy.api' from '/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/api.pyc' from (pid=7542) __get_backend /usr/lib/python2.7/dist-packages/nova/utils.py:660All the nova-manage can not working.what is the problem. the bug or config problem.On Mon, Mar 26, 2012 at 9:50 PM, Martin Gerhard Loschwitz martin.loschw...@hastexo.com wrote:
Hi folks,
I've written a guide on how to install OpenStack Essex on Ubuntu 12.04.
It covers the installation and configuration of Keystone, Glance, Nova
and Horizon. By following this guide, even people that haven't collected
much OpenStack experience so far should be able to get the virtualization
environment up and running in a short period of time.
The full document is available from here:
http://www.hastexo.com/resources/docs/installing-openstack-essex-4-ubuntu-1204-precise-pangolin

All feedback and comments are much appreciated -- thanks in advance!
Best regards
Martin

--
Martin Gerhard Loschwitz
Principal Consultant
hastexo Professional Services
___
Mailing list: https://launchpad.net/~openstack
Post to   : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help  : https://help.launchpad.net/ListHelp
-- 陈沙克手机:13661187180msn:shake.c...@hotmail.com
___Mailing list: https://launchpad.net/~openstackPost to   : openstack@lists.launchpad.netUnsubscribe : https://launchpad.net/~openstackMore 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] Code 500 when authenticating with password

2012-03-30 Thread Yong Sheng Gong
First:Make sure you have not set SERVICE_TOKEN and SERVICE_ENDPOINT env since keystone client honours token auth over user/password way.Second: you can use keystone --debug user-list to show what http message sent to serveralso you can see the request body from server log, just like this:2012-03-31 10:16:44 DEBUG [keystone.common.wsgi]  REQUEST BODY 2012-03-31 10:16:44 DEBUG [keystone.common.wsgi] {"auth": {"tenantName": "admin", "passwordCredentials": {"username": "admin", "password": "password"}}}2012-03-31 10:16:44 DEBUG [keystone.common.wsgi] -openstack-bounces+gongysh=cn.ibm@lists.launchpad.net wrote: -To: openstack openstack@lists.launchpad.netFrom: Pete Zaitcev zait...@redhat.comSent by: openstack-bounces+gongysh=cn.ibm@lists.launchpad.netDate: 03/31/2012 09:47AMSubject: [Openstack] Code 500 when authenticating with passwordGreetings:It seems that I am unable to authenticate against the current Keystone,and I am not sure if it is a bug or a local misconfiguration. So, beforeI file in Launchpad, I'd like someone to verify that I am doing theright thing.The problem looks like this:[zaitcev@kvm-rei zaitcev]$ keystone --os_auth_url=http://localhost:35357/v2.0 --os_username=admin --os_password=admpass --os_tenant_name=admten user-listNo handlers could be found for logger "keystoneclient.v2_0.client"Authorization Failed: An unexpected error prevented the server from fulfilling your request. incomplete format (HTTP 500)The server logs this:2012-03-30 21:35:41  ERROR [root] incomplete formatTraceback (most recent call last):File "/usr/lib/python2.7/site-packages/keystone/common/wsgi.py", line 184, in __call__ result = method(context, **params)File "/usr/lib/python2.7/site-packages/keystone/service.py", line 292, in authenticate metadata=metadata_ref)File "/usr/lib/python2.7/site-packages/keystone/common/manager.py", line 48, in _wrapper return f(*args, **kw)File "/usr/lib/python2.7/site-packages/keystone/catalog/backends/sql.py", line 167, in get_catalog catalog[region][srv_type]['publicURL'] = public_url % dValueError: incomplete format2012-03-30 21:35:41  DEBUG [keystone.common.wsgi]  RESPONSE HEADERS 2012-03-30 21:35:41  DEBUG [keystone.common.wsgi] Content-Type = application/json2012-03-30 21:35:41  DEBUG [keystone.common.wsgi] Vary = X-Auth-Token2012-03-30 21:35:41  DEBUG [keystone.common.wsgi] Content-Length = 1612012-03-30 21:35:41  DEBUG [keystone.common.wsgi] 2012-03-30 21:35:41  DEBUG [keystone.common.wsgi]  RESPONSE BODY 2012-03-30 21:35:41  DEBUG [keystone.common.wsgi] {"error": {"message": "An unexpected error prevented the server from fulfilling your request. incomplete format", "code": 500, "title": "Internal Server Error"}}2012-03-30 21:35:41  DEBUG [eventlet.wsgi.server] 127.0.0.1 - - [30/Mar/2012 21:35:41] "POST /v2.0/tokens HTTP/1.1" 500 327 0.260567Yay, a traceback. However, it may be hinting that some kind of publicURLfield is not set somewhere. Does this looks familiar to anyone?BTW, authentication with token works, and produces this:[zaitcev@kvm-rei zaitcev]$ keystone --endpoint http://kvm-rei:35357/v2.0--token=758ce883df47 user-list+--+-+---+-+|id| enabled | email |  name |+--+-+---+-+| 5c3c279d18f541aa859178869584ca40 | True  | None | zaitcev || ed6aa912c28849c0913cb1106bb26b8c | True  | None | admin  |+--+-+---+-+So, the Keystone server kinda-sorta works, just not really.-- Pete___Mailing list: https://launchpad.net/~openstackPost to   : openstack@lists.launchpad.netUnsubscribe : https://launchpad.net/~openstackMore 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] problem ssh-ing into vms

2012-03-28 Thread Yong Sheng Gong
It seems iptables or some other similar software are no running on your host. openstack relies on it to translate 169.254.169.254 to host address.-openstack-bounces+gongysh=cn.ibm@lists.launchpad.net wrote: -To: Pierre Amadio pierre.ama...@canonical.comFrom: Scott Moser smo...@ubuntu.comSent by: openstack-bounces+gongysh=cn.ibm@lists.launchpad.netDate: 03/28/2012 10:16PMCc: openstack openstack@lists.launchpad.netSubject: Re: [Openstack] problem  ssh-ing into vmsOn Wed, 28 Mar 2012, Pierre Amadio wrote: Hi there ! I'm puzzled with a ssh issue. Things used to work "before", and now, i cannot access my vms anymore.Thank you for attaching euca-get-console-output. That provides the realhint here.| cloud-init start-local running: Wed, 28 Mar 2012 13:09:35 +. up 43.07 seconds| no instance data found in start-local| ci-info: lo  : 1 127.0.0.1255.0.0.0| ci-info: eth0 : 1 10.0.0.3255.255.255.0  fa:16:3e:59:63:1b| ci-info: route-0: 0.0.0.0 10.0.0.10.0.0.0 eth0  UG| ci-info: route-1: 10.0.0.00.0.0.0 255.255.255.0  eth0  U| cloud-init start running: Wed, 28 Mar 2012 13:09:48 +. up 56.41 seconds| 2012-03-28 13:09:49,331 - DataSourceEc2.py[WARNING]: 'http://169.254.169.254' failed: url error [[Errno 111] Connection refused]| 2012-03-28 13:09:50,349 - DataSourceEc2.py[WARNING]: 'http://169.254.169.254' failed: url error [[Errno 111] Connection refused]| ...| 2012-03-28 13:11:29,162 - DataSourceEc2.py[WARNING]: 'http://169.254.169.254' failed: url error [[Errno 111] Connection refused]| 2012-03-28 13:11:35,174 - DataSourceEc2.py[CRITICAL]: giving up on md after 105 secondsThe instance was unable to connect to the metadata service to get yourpublic keys and put them into the instance. The Ubuntu images have anannoyance, in that if it can't get to the MD it doesn't even generate sshserver keys, so the ssh server just drops you immediately.But your real problem is that the guests can't see the host.You could potentially debug some more by using a cirros image, which willlet you do password auth in after it fails to reach the data source.___Mailing list: https://launchpad.net/~openstackPost to   : openstack@lists.launchpad.netUnsubscribe : https://launchpad.net/~openstackMore 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] problem ssh-ing into vms

2012-03-28 Thread Yong Sheng Gong
http://docs.openstack.org/trunk/openstack-compute/admin/content/configuring-openstack-compute-basics.html#configuring-multiple-compute-nodes:If you want to use the 10.04 Ubuntu Enterprise Cloud images that are readily available at http://uec-images.ubuntu.com/releases/10.04/release/, you may run into delays with booting. Any server that does not have nova-api running on it needs this iptables entry so that UEC images can get metadata info. On compute nodes, configure the iptables with this next step:# iptables -t nat -A PREROUTING -d 169.254.169.254/32 -p tcp -m tcp --dport 80 -j DNAT --to-destination $NOVA_API_IP:8773-openstack-bounces+gongysh=cn.ibm@lists.launchpad.net wrote: -To: openstack openstack@lists.launchpad.netFrom: Pierre Amadio pierre.ama...@canonical.comSent by: openstack-bounces+gongysh=cn.ibm@lists.launchpad.netDate: 03/28/2012 11:01PMSubject: Re: [Openstack] problem  ssh-ing into vmsHi there ! | 2012-03-28 13:11:29,162 - DataSourceEc2.py[WARNING]: 'http://169.254.169.254' failed: url error [[Errno 111] Connection refused] | 2012-03-28 13:11:35,174 - DataSourceEc2.py[CRITICAL]: giving up on md after 105 seconds  The instance was unable to connect to the metadata service to get your public keys and put them into the instance. The Ubuntu images have an annoyance, in that if it can't get to the MD it doesn't even generate ssh server keys, so the ssh server just drops you immediately.  But your real problem is that the guests can't see the host. Thanks, this helped a lot.The vm was on a node running nova-compute and nova-network only.Turned out the metadata service was available after i have startednova-api on top of that.I though nova-api was not needed on boxes running nova-compute ? (i haveit running on a "manager" node that do not launch vms).Was my assumption wrong or is there something special to do to have themetadata service available without running nova-api ?___Mailing list: https://launchpad.net/~openstackPost to   : openstack@lists.launchpad.netUnsubscribe : https://launchpad.net/~openstackMore 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] Can't delete instances with error status.

2012-03-21 Thread Yong Sheng Gong
why not allow "nova delete" and "euca-terminate " to delete the instance with "error" status?Yong Sheng Gong-openstack-bounces+gongysh=cn.ibm@lists.launchpad.net wrote: -To: Guilherme Birk guib...@hotmail.com, Openstack Mail List openstack@lists.launchpad.netFrom: Mandar Vaze mandar.v...@vertex.co.inSent by: openstack-bounces+gongysh=cn.ibm@lists.launchpad.netDate: 03/22/2012 12:26PMSubject: Re: [Openstack] Can't delete instances with "error" status.I agree user shouldn���t have to update DB. There needs to be some periodic cleanup task that ���fixes��� the vm_state/task_state for ���stuck��� instances.-MandarFrom: openstack-bounces+mandar.vaze=vertex.co...@lists.launchpad.net [mailto:openstack-bounces+mandar.vaze=vertex.co...@lists.launchpad.net] On Behalf Of Guilherme BirkSent: Wednesday, March 21, 2012 6:05 PMTo: Openstack Mail ListSubject: Re: [Openstack] Can't delete instances with "error" status.This is the only option? I've already done that, but it's kind "strange" I update the database row everytime the script identifies a VM with error.Date: Wed, 21 Mar 2012 09:39:03 +0800Subject: Re: [Openstack] Can't delete instances with "error" status.From: mwjpi...@gmail.comTo: guib...@hotmail.comupdate "instances" table in "nova" db, set the vm_status of the instance which you want to delete "active" and set the task_status=NULL.After that, try to use euca-terminate On Wed, Mar 21, 2012 at 1:24 AM, Guilherme Birk guib...@hotmail.com wrote:I'm attempting to make a python script that controls all my virtual machines. Sometimes, when the script identifies that exists an instance with status of "error", he creates a new instance and tries to delete the old one with curl commands, but I'm not getting any response and the VM isn't deleted. When I execute euca-terminate instance i-name I got nothing too. How I should delete instances with error status ? I didn't found any way using nova-manage too. ___Mailing list: https://launchpad.net/~openstackPost to   : openstack@lists.launchpad.netUnsubscribe : https://launchpad.net/~openstackMore help  : https://help.launchpad.net/ListHelp-- ���娣¤�浠ユ��蹇�锛瀹���浠ヨ�磋��___Mailing list: https://launchpad.net/~openstackPost to   : openstack@lists.launchpad.netUnsubscribe : https://launchpad.net/~openstackMore 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