Ask Your Question

kong's profile - activity

2018-07-05 06:29:52 -0500 received badge  Notable Question (source)
2018-07-05 06:29:52 -0500 received badge  Popular Question (source)
2016-01-21 09:56:15 -0500 received badge  Notable Question (source)
2016-01-21 09:56:15 -0500 received badge  Famous Question (source)
2014-07-24 01:22:14 -0500 received badge  Popular Question (source)
2014-01-06 00:49:00 -0500 received badge  Famous Question (source)
2013-11-08 08:05:26 -0500 received badge  Famous Question (source)
2013-11-08 08:05:26 -0500 received badge  Notable Question (source)
2013-09-23 08:32:13 -0500 received badge  Teacher (source)
2013-09-23 01:19:18 -0500 answered a question Multiple Network Use Cases in one

I am afraid you can only use FLAT or VLAN style at the same time base on current Neutron's implementaion.

2013-09-23 01:14:30 -0500 answered a question Nova scheduling

there is a queue base on AMPQ protocol(usually RabbitMQ), it process messages immediately in event driven fashion, as you said.

2013-09-01 05:02:52 -0500 answered a question How do you make the iptables work compatibly with Open Vswitch?

安装OVS的时候不要安装br-compat模块,这样OVS就能与iptables配合使用,经测,安全组功能正常。

2013-07-28 04:39:13 -0500 received badge  Notable Question (source)
2013-07-26 19:50:21 -0500 received badge  Scholar (source)
2013-07-26 08:39:17 -0500 commented answer "ICLA contributor agreement requires current contact information" error while using git review

zhiyan, thanks very much!

2013-07-25 21:05:43 -0500 received badge  Popular Question (source)
2013-07-25 13:06:40 -0500 received badge  Famous Question (source)
2013-07-25 10:46:58 -0500 asked a question "ICLA contributor agreement requires current contact information" error while using git review

Hi all:

I run 'git review' in git-bash, but got something error:

$ git review

fatal: ICLA contributor agreement requires current contact information.

Please review your contact information:

https://review.openstack.org/#/settings/contact

fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists.

I have signed ICLA, and information as follows:

my launchpad information

my git config list is:

my git configuration

any hints are appreciated!

2013-07-01 00:39:55 -0500 received badge  Good Question (source)
2013-06-15 09:21:38 -0500 received badge  Notable Question (source)
2013-06-07 22:27:36 -0500 received badge  Popular Question (source)
2013-06-07 00:44:34 -0500 answered a question Can multiple l3-agent instances run on one host?

Thanks yong sheng gong, that solved my question.

2013-06-06 06:45:01 -0500 answered a question Can multiple l3-agent instances run on one host?

to yongsheng:

Thanks for your reply!

But I'm still confused. The algorithm in auto_schedule_routers may choose another l3-agent using the same 'host', right?code here: ... query = context.session.query(agents_db.Agent) query = query.filter(agents_db.Agent.agent_type == constants.AGENT_TYPE_L3, agents_db.Agent.host == host, agents_db.Agent.admin_state_up == True) try: l3_agent = query.one() ...

and if each l3-agent has different 'host' configuration, why not send message to the agent directly, rather than randomly choose one? I think it's contradictory.

--Lingxian Kong

2013-06-06 06:39:15 -0500 received badge  Nice Question (source)
2013-06-05 08:39:59 -0500 asked a question Can multiple l3-agent instances run on one host?

Hi all:

When I read the code of the latest quantum master brantch, I found that the behavior of "add_network_to_dhcp_agent" and "add_router_to_l3_agent" is not the same. Because I have not the newest installation for now, so I came here to ask for help!

"add_network_to_dhcp_agent": after some verifacation, will directly add a record in the NetworkDhcpAgentBinding table;

"add_router_to_l3_agent": after some verifacation, method 'auto_schedule_routers' is called: result = self.auto_schedule_routers(context, agent_db.host, router_id) the parameter 'agent_db.host' means that there are some l3-agent instances on the host(if not, I think this method will not make sense), then the code will pick one that may be different with the agent you want host the router, so strange!

I wander whether it's a bug. Please let me know if I am missing something here.

--Lingxian Kong

2013-06-05 08:16:19 -0500 received badge  Student (source)
2013-06-05 03:45:51 -0500 asked a question Can multiple l3-agent instances run on one host?

Hi all:

When I read the code of the latest quantum master brantch, I found that the behavior of "add network to dhcp agent" and "add router to l3 agent" is not the same. Because I have not the newest installation for now, so I came here to ask for help!

'add network to dhcp agent': after some verifacation, will directly add a record in the NetworkDhcpAgentBinding table;

"add router to l3 agent": after some verifacation, method 'autoschedulerouters' is called:

        result = self.auto_schedule_routers(context,
                                            agent_db.host,
                                            router_id)

the parameter 'agent_db.host' means that there are some l3-agent instances on the host(if not, I think this method will not make sense), then the code will pick one that may be different with the agent you want host the router, so strange!

I wander whether it's a bug. Please let me know if I am missing something here.

--Lingxian Kong

2013-04-30 13:50:12 -0500 received badge  Popular Question (source)
2013-04-22 20:21:36 -0500 answered a question cinder type-key failed
def _extract_metadata(args):
    metadata = {}
    for metadatum in args.metadata:
        # unset doesn't require a val, so we have the if/else
        print type(metadatum)
        if '=' in metadatum:
            print "True"
            (key, value) = metadatum.split('=', 1)
        else:
            print "False"
            key = metadatum
            value = None
        metadata[key] = value
    return metadata

I found the type of "metadatum" is <type 'list'="">, list is not hashable. Am I right?

2013-04-22 19:55:22 -0500 received badge  Editor (source)
2013-04-22 19:50:49 -0500 asked a question cinder type-key failed

I used Grizzly in my setup. I follow the steps below:

1. create a volume type named 'lvm'
root@openstack:~# cinder type-list
+--------------------------------------+------+
| ID | Name |
+--------------------------------------+------+
| fb18bbb9-7989-4b5d-b4d6-f61e5d071338 | lvm |
+--------------------------------------+------+

2. I want to add a extraspec, I got error messages below:
root@openstack:~# *cinder --debug type-key fb18bbb9-7989-4b5d-b4d6-f61e5d071338 set volume
backendname=LVMiSCSI*

REQ: curl -i http://182.168.61.50:5000/v2.0/tokens -X POST -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python-cinderclient"

RESP: [200] {'date': 'Tue, 23 Apr 2013 00:43:45 GMT', 'content-type': 'application/json', 'content-length': '2527', 'vary': 'X-Auth-Token'} RESP BODY: {"access": {"token": {"issuedat": "2013-04-23T00:43:45.874472", "expires": "2013-04-24T00:43:45Z", "id": "ccee44c55d984709bba7953b4023e1fc", "tenant": {"description": null, "enabled": true, "id": "0bfe6a094db14ab6859146b3ad04aa0b", "name": "admin"}}, "serviceCatalog": [{"endpoints": [{"adminURL": "http://182.168.61.21:8774/v2/0bfe6a094db14ab6859146b3ad04aa0b", "region": "RegionOne", "internalURL": "http://182.168.61.21:8774/v2/0bfe6a094db14ab6859146b3ad04aa0b", "id": "76896678112445ed9c5c8a1184ec000f", "publicURL": "http://182.168.61.50:8774/v2/0bfe6a094db14ab6859146b3ad04aa0b"}], "endpointslinks": [], "type": "compute", "name": "nova"}, {"endpoints": [{"adminURL": "http://182.168.61.21:9696/", "region": "RegionOne", "internalURL": "http://182.168.61.21:9696/", "id": "011781d8487b428e8eeaf2d6c327c2b3", "publicURL": "http://182.168.61.50:9696/"}], "endpointslinks": [], "type": "network", "name": "quantum"}, {"endpoints": [{"adminURL": "http://182.168.61.21:9292/v2", "region": "RegionOne", "internalURL": "http://182.168.61.21:9292/v2", "id": "1452ccfaccf642e18067648009a3658c", "publicURL": "http://182.168.61.50:9292/v2"}], "endpointslinks": [], "type": "image", "name": "glance"}, {"endpoints": [{"adminURL": "http://182.168.61.21:8776/v1/0bfe6a094db14ab6859146b3ad04aa0b", "region": "RegionOne", "internalURL": "http://182.168.61.21:8776/v1/0bfe6a094db14ab6859146b3ad04aa0b", "id": "74acf246e96646b69c8201da993623ba", "publicURL": "http://182.168.61.50:8776/v1/0bfe6a094db14ab6859146b3ad04aa0b"}], "endpointslinks": [], "type": "volume", "name": "cinder"}, {"endpoints": [{"adminURL": "http://182.168.61.21:8773/services/Admin", "region": "RegionOne", "internalURL": "http://182.168.61.21:8773/services/Cloud", "id": "75e1a71917dd4993a71d4e010e83852a", "publicURL": "http://182.168.61.50:8773/services/Cloud"}], "endpointslinks": [], "type": "ec2", "name": "ec2"}, {"endpoints": [{"adminURL": "http://182.168.61.21:35357/v2.0", "region": "RegionOne", "internalURL": "http://182.168.61.21:5000/v2.0", "id": "44576f97ccdf4fcca39721072c07cc41", "publicURL": "http://182.168.61.50:5000/v2.0"}], "endpointslinks": [], "type": "identity", "name": "keystone"}], "user": {"username": "admin", "roleslinks": [], "id": "e20e552df6cf4340ac8f89ac5f4aa3ac", "roles": [{"name": "admin"}, {"name": "KeystoneServiceAdmin"}, {"name": "KeystoneAdmin"}], "name": "admin"}, "metadata": {"is_admin": 0, "roles": ["33a701e2e15541cea0311070ad6db1be", "b175dbd7bb6f4dee94680fd637dbe9fe", "695a5c7be0f849de8a40a3b5e712a67e"]}}}

REQ: curl -i http://182.168.61.50:8776/v1/0bfe6a094db14ab6859146b3ad04aa0b/types/fb18bbb9-7989-4b5d-b4d6-f61e5d071338 -X GET -H "X-Auth-Project-Id: admin" -H "User-Agent: python-cinderclient" -H "Accept: application/json" -H "X-Auth-Token: ccee44c55d984709bba7953b4023e1fc"

RESP: [200] {'date': 'Tue, 23 Apr 2013 00:43:45 GMT', 'x-compute-request-id': 'req-c15489c9-43dd-40dc-925f-13905edd6937', 'content-type': 'application/json', 'content-length': '97'} RESP BODY: {"volumetype": {"extraspecs": {}, "name": "lvm", "id": "fb18bbb9-7989-4b5d-b4d6-f61e5d071338"}}

DEBUG (shell:491) unhashable type: 'list' Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/cinderclient/shell.py", line 488, in main OpenStackCinderShell().main(sys.argv[1:]) File "/usr/lib/python2.7/dist-packages/cinderclient/shell.py", line 439, in main args.func(self.cs, args) File "/usr/lib/python2.7/dist-packages/cinderclient/v1/shell.py", line 481, in dotypekey keypair = extractmetadata(args) File "/usr/lib/python2.7/dist-packages/cinderclient/v1/shell.py", line 105, in extractmetadata ... (more)

2013-02-01 00:41:14 -0500 answered a question what is the difference between 'Domain', 'Group', 'Tenant' and 'Project'?

Thanks gordon chung, that solved my question.

2013-01-26 02:26:47 -0500 asked a question what is the difference between 'Domain', 'Group', 'Tenant' and 'Project'?

In Grizzly~2, I found that in file 'keystone/identity/core.py', there are CRUD operations for 'Domain', 'Group', 'Tenant' and 'Project'.

What I want to known is that what's the difference between them?

2013-01-25 01:06:22 -0500 answered a question Why does OVS agent creates three "qbr..." interfaces every time that a VM is created?

It seems that what you said in your question was wrong, you said "OVS seems to creste three "qbr.."".

In fact, for every VIF, only one "qbr-XXX" brdge is created("qbr5c8cf1d6-7d" above), and at the same time, two veth devices named "qvb5c8cf1d6-7d" and "qvo5c8cf1d6-7d" are created for the connection between bridge and OVS integration bridge("br-int").

2013-01-24 02:47:42 -0500 answered a question Why does OVS agent creates three "qbr..." interfaces every time that a VM is created?

I think you must have three networks. When you create VM without --nic parameter, Quantum will create three ports on the three networks separatly.

For every port attached to VM, nova vifDriver will create a bridge with the name "qbr-XXX", then link that bridge to the OVS integration bridge via a veth device. Then boot the VIF on the linux bridge using standard libvirt mechanisms

2013-01-24 02:40:08 -0500 answered a question Does anyone knows a good blog or document explaining the VM booting process with Quantum?