Ask Your Question

darren-wang's profile - activity

2016-11-20 04:43:56 -0500 received badge  Famous Question (source)
2016-11-20 04:43:56 -0500 received badge  Notable Question (source)
2016-10-20 10:16:15 -0500 received badge  Famous Question (source)
2015-12-13 21:47:48 -0500 received badge  Famous Question (source)
2015-12-13 21:47:48 -0500 received badge  Popular Question (source)
2015-12-13 21:47:48 -0500 received badge  Notable Question (source)
2015-10-19 15:39:29 -0500 received badge  Notable Question (source)
2015-10-17 07:02:50 -0500 received badge  Famous Question (source)
2015-10-16 03:37:30 -0500 received badge  Popular Question (source)
2015-10-15 13:51:03 -0500 commented question how can I configure glance to work with swift with Keystone v3 API?

OK, I'll have a try

2015-10-15 13:46:53 -0500 asked a question basic neutron configuration questions

Hi,

VM's on our kilo platform won't ping through their gateways yet vm's in the same subnet can ping through each other.

Physically, I have 3 interfaces on my network node, used for external network(202.112.abc.0), management network(10.0.0.0) and tunnel network(10.0.1.0). I'm using OVS as plugin and our external IP is allocated and we only have several real external IP's.

Now I wonder what's the CIDR I should set for the external_network in neutron, should it be the real external network that our network node is on or it can be some self-defined network? And what's the CIDR of tenant networks, should them be in the form like 10.0.. due to my tunnel network configuration?

What I want is that 1. vm's in one subnet can connect to each other, 2. vm in different subnet connected with router can ping through each other, 3. vm's can get access to external network, 4. vm's can be accessed from external network.

Yet now only the first goal is achieved, and vm's in the subnet can not even ping through their gateway! The content in the installation guide seems useless for my environment, can someone help me to see my environment run? Thanks a lot!

2015-10-14 09:42:31 -0500 commented question How to setup openstack working with rsyslog?

well this is funny, when I changed *.conf in the /etc/init/ directory to change uid to root:root of processes in Ubuntu, all the LOCALn facility can now be used!

2015-10-09 20:25:41 -0500 received badge  Popular Question (source)
2015-10-09 20:25:41 -0500 received badge  Notable Question (source)
2015-10-09 15:53:18 -0500 received badge  Famous Question (source)
2015-10-08 00:17:52 -0500 received badge  Notable Question (source)
2015-10-07 13:58:36 -0500 asked a question How to setup openstack working with rsyslog?

My problem is funny, I can now collect nova's log to one central node with facility LOG_LOCAL1, but the same configuration of rsyslog and glance with :

use_syslog = true
syslog_log_facility = LOG_LOCAL2

doesn't work, but when "syslog_log_facility" is changed to LOG_USER, glance could route its log to syslog. also, keystone and cinder don't unstand LOG_LOCAL3 and LOG_LOCAL4.

I red this kind of configuraion in the official openration guide, it's so weird that these services don't understand LOCALn.

Does anyone has experience on OpenStack's working with rsyslog, please healp me!

Thanks a lot!

2015-09-01 04:14:50 -0500 received badge  Popular Question (source)
2015-08-31 10:27:37 -0500 asked a question can NOT configure glance work with swift

While I'm trying to configure glance work with swift with options below, I can not use "openstack" CLI nor "glance" CLI:

this is my options in glance-api.conf

swift_store_auth_version = 2
swift_store_auth_address = 10.0.0.11:5000/v2.0
swift_store_user = service:glance
swift_store_key = PASSWORD
swift_store_container = glance
swift_store_create_container_on_put = true
swift_store_large_object_size = 5120
swift_store_large_object_chunk_size = 200

value of "swift_store_key" is the password user glance used to log into keystone,

I used command :

openstack   image create --disk-format qcow2 --container-format bare --public --file /tmp/cirros-0.3.4-x86_64-disk.img cirros_glance_swift

to upload image, and the cirros image is in the folder.

However, I get error message like this:

    2015-08-31 23:17:47.242 4999 INFO eventlet.wsgi.server [req-4cb5f27b-ef9c-419c-b7a0-1c8a5f04642b 0cd6bf51acb3414dabcbe107a69a5b2b e60d3de4313d471d9db6ee0180a34315 - - -] 10.0.0.11 - - [31/Aug/2015 23:17:47] "GET /v1/images/detail?is_public=None&limit=20 HTTP/1.1" 200 1736 0.204253
2015-08-31 23:17:48.436 4999 ERROR glance.registry.client.v1.client [req-43ed4214-1caf-4a49-baa6-11ac25e19db4 dc2e86856119444290103ae97deb4af8 22e519b81ca8489ca38a2fd82350260b - - -] Registry client request GET /images/cirros_glance_swift raised NotFound
2015-08-31 23:17:48.436 4999 ERROR glance.registry.client.v1.client Traceback (most recent call last):
2015-08-31 23:17:48.436 4999 ERROR glance.registry.client.v1.client   File "/usr/lib/python2.7/dist-packages/glance/registry/client/v1/client.py", line 117, in do_request
2015-08-31 23:17:48.436 4999 ERROR glance.registry.client.v1.client     **kwargs)
2015-08-31 23:17:48.436 4999 ERROR glance.registry.client.v1.client   File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 71, in wrapped
2015-08-31 23:17:48.436 4999 ERROR glance.registry.client.v1.client     return func(self, *args, **kwargs)
2015-08-31 23:17:48.436 4999 ERROR glance.registry.client.v1.client   File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 376, in do_request
2015-08-31 23:17:48.436 4999 ERROR glance.registry.client.v1.client     headers=copy.deepcopy(headers))
2015-08-31 23:17:48.436 4999 ERROR glance.registry.client.v1.client   File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 88, in wrapped
2015-08-31 23:17:48.436 4999 ERROR glance.registry.client.v1.client     return func(self, method, url, body, headers)
2015-08-31 23:17:48.436 4999 ERROR glance.registry.client.v1.client   File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 523, in _do_request
2015-08-31 23:17:48.436 4999 ERROR glance.registry.client.v1.client     raise exception.NotFound(res.read())
2015-08-31 23:17:48.436 4999 ERROR glance.registry.client.v1.client NotFound: 404 Not Found
2015-08-31 23:17:48.436 4999 ERROR glance.registry.client.v1.client 
2015-08-31 23:17:48.436 4999 ERROR glance.registry.client.v1.client The resource could not be found.
2015-08-31 23:17:48.436 4999 ERROR glance.registry.client.v1.client 
2015-08-31 23:17:48.436 4999 ERROR glance.registry.client.v1.client    
2015-08-31 23:17:48.436 4999 ERROR glance.registry.client.v1.client 
2015-08-31 23:17:48.438 4999 INFO eventlet.wsgi.server [req-43ed4214-1caf-4a49-baa6-11ac25e19db4 dc2e86856119444290103ae97deb4af8 22e519b81ca8489ca38a2fd82350260b - - -] 10.0.0.11 - - [31/Aug/2015 23:17:48] "HEAD /v1 ...
(more)
2015-08-31 10:02:22 -0500 asked a question how can I configure glance to work with swift with Keystone v3 API?

we are currently using v3 Identity API now, how can I configure glance to work with swift with Keystone v3 API?

2015-08-05 19:19:14 -0500 received badge  Famous Question (source)
2015-07-23 04:36:34 -0500 received badge  Famous Question (source)
2015-07-21 13:20:37 -0500 received badge  Notable Question (source)
2015-07-21 13:20:37 -0500 received badge  Famous Question (source)
2015-07-21 13:20:37 -0500 received badge  Popular Question (source)
2015-07-15 06:52:26 -0500 received badge  Notable Question (source)
2015-07-14 03:17:19 -0500 received badge  Notable Question (source)
2015-07-14 03:17:19 -0500 received badge  Famous Question (source)
2015-07-13 00:06:49 -0500 received badge  Famous Question (source)
2015-07-11 03:39:26 -0500 commented answer what is the intended use for domain in keystone?

that's true, thanks a lot.

2015-07-11 00:34:07 -0500 commented answer what is the intended use for domain in keystone?

OK, great, so I can also manage project-scoped resources via domain admin panel, and only through domain admin panel can I manage domain-scoped resources, your answer is really helpful!

2015-07-10 23:29:28 -0500 commented answer what is the intended use for domain in keystone?

Thanks for your reply and information, I didn't thought it was a pure Keystone concept, now I see. So if I want to mange vm's, networks, images, I still need to login as a project-scoped user, and only when I want to manage users, projects do I need to login as domain-scoped, am I right?

2015-07-10 23:25:50 -0500 commented answer what is the intended use for domain in keystone?

thanks, so the original intent of domain is not to allow domain-scoped user to manage other resources like images or vm's, instead, these users are assumed to manage users, projects in their domain. But we have "os_inherit" right? Domain users may still manage its projects' resource, am i right?

2015-07-10 15:51:40 -0500 received badge  Notable Question (source)
2015-07-10 09:36:07 -0500 received badge  Popular Question (source)
2015-07-09 22:28:30 -0500 asked a question what is the intended use for domain in keystone?

As my title, I'm not clear of the necessity of domain in keystone, more specifically, the necessity of the division of "domain-scoped" and "project-scoped" token,

As far as I know, Horizon does not allow user to specify their login scope as domain, and, does other services like Nova, Glance et al support the concept of domain?

In my understanding, ordinary users sign in to Horizon then get project-scoped token, if Horizon let them spceify scope and choose corresponding domain/project they want to login to, this really complicates the login process(actually, I think the parameters provided to Keystone v3 API to authenticate for token has been superfluous enough).

Although I've been using v3 identity API for a while, I'm not clear if other openstack services actually support the domain concept, and what is the intended use of this concept. Could some one explain it to me?

2015-07-05 17:50:42 -0500 received badge  Popular Question (source)
2015-06-23 12:34:31 -0500 asked a question Heat Error: image 'NoneType' object has no attribute 'replace'

I followed the installation guide to verify my heat installation, however, I can't create a stack. My template is exactly the same as "installation guide for Ubuntu 14.04 LTS":

heat_template_version: 2014-10-16
description: A simple server.

parameters:
  ImageID:
    type: string
    description: Image use to boot a server
  NetID:
    type: string
    description: Network ID for the server

resources:
  server:
    type: OS::Nova::Server
    properties:
      image: { get_param: ImageID }
      flavor: m1.tiny
      networks:
      - network: { get_param: NetID }

outputs:
  private_ip:
    description: IP address of the server in the private network
    value: { get_attr: [ server, first_address ] }

The command I used to create a stack is:

# NET_ID=$(nova net-list | awk '/ darren-net / { print $2 }')
# heat stack-create -f test-stack.yml -P "ImageID=cirros-0.3.3-x86_64;NetID=$NET_ID" testStack

The imageID is a little different from installation guide because in our openstack, we are still using cirros-0.3.3 for testing.

This is the error I get:

    2015-06-24 01:21:41.435 8092 DEBUG heat.common.serializers [req-7d0fee69-93ef-4ad9-857d-c99acdd81ba6 admin admin] JSON response : {"explanation": "The server could not comply with the request since it is either malformed or otherwise incorrect.", "code": 400, "error": {"message": "Property error : server: image 'NoneType' object has no attribute 'replace'", 
"traceback": "Traceback (most recent call last):\n\n  
File \"/usr/lib/python2.7/dist-packages/heat/common/context.py\", line 300, in wrapped\n    return func(self, ctx, *args, **kwargs)\n\n  
File \"/usr/lib/python2.7/dist-packages/heat/engine/service.py\", line 669, in create_stack\n    parent_resource_name)\n\n  
File \"/usr/lib/python2.7/dist-packages/heat/engine/service.py\", line 577, in _parse_template_and_validate_stack\n    stack.validate()\n\n  
File \"/usr/lib/python2.7/dist-packages/osprofiler/profiler.py\", line 105, in wrapper\n    return f(*args, **kwargs)\n\n  
File \"/usr/lib/python2.7/dist-packages/heat/engine/stack.py\", line 613, in validate\n    raise ex\n\nStackValidationFailed: Property error : server: image 'NoneType' object has no attribute 'replace'\n", "type": "StackValidationFailed"}, "title": "Bad Request"} to_json /usr/lib/python2.7/dist-packages/heat/common/serializers.py:42

Our glance, nova and neutron are working well.

It seems like stack validation failed, can anyone tell me how to solve this problem? Thanks a lot!

2015-06-19 13:12:10 -0500 asked a question Can not launch instances: Build of instance was re-scheduled

Hi all,

We are deploying OpenStack with 4 compute nodes, after all the installing and configuration, we tried to launch instances yet it failed.

The logs from nova-api, nova-scheduler seem normal, all the error information we can get is from nova-conductor on controller node:

 2015-06-20 02:02:12.280 2096 ERROR nova.scheduler.utils [req-772b0756-1ac1-45a7-a173-13152118b9e1 dc2e86856119444290103ae97deb4af8 22e519b81ca8489ca38a2fd82350260b - - -] [instance: 1c305380-0ba5-43d7-a2ae-04fad76a2abc] Error from last host: ISeR-Server6 (node ISeR-Server6): [u'Traceback (most recent call last):\n', u'  File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 2219, in _do_build_and_run_instance\n    filter_properties)\n', u'  File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 2362, in _build_and_run_instance\n    instance_uuid=instance.uuid, reason=six.text_type(e))\n', u'RescheduledException: Build of instance 1c305380-0ba5-43d7-a2ae-04fad76a2abc was re-scheduled: HTTPInternalServerError (HTTP 500)\n']
2015-06-20 02:02:12.282 2096 INFO oslo_messaging._drivers.impl_rabbit [req-772b0756-1ac1-45a7-a173-13152118b9e1 dc2e86856119444290103ae97deb4af8 22e519b81ca8489ca38a2fd82350260b - - -] Connecting to AMQP server on controller1:5672
2015-06-20 02:02:12.296 2096 INFO oslo_messaging._drivers.impl_rabbit [req-772b0756-1ac1-45a7-a173-13152118b9e1 dc2e86856119444290103ae97deb4af8 22e519b81ca8489ca38a2fd82350260b - - -] Connected to AMQP server on controller1:5672
2015-06-20 02:02:13.891 2097 ERROR nova.scheduler.utils [req-772b0756-1ac1-45a7-a173-13152118b9e1 dc2e86856119444290103ae97deb4af8 22e519b81ca8489ca38a2fd82350260b - - -] [instance: 1c305380-0ba5-43d7-a2ae-04fad76a2abc] Error from last host: ISeR-Server5 (node ISeR-Server5): [u'Traceback (most recent call last):\n', u'  File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 2219, in _do_build_and_run_instance\n    filter_properties)\n', u'  File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 2362, in _build_and_run_instance\n    instance_uuid=instance.uuid, reason=six.text_type(e))\n', u'RescheduledException: Build of instance 1c305380-0ba5-43d7-a2ae-04fad76a2abc was re-scheduled: HTTPInternalServerError (HTTP 500)\n']

The error message is simple but we can't fix it. Can anyone help me on this? I can provide More information and logs if they are useful!

2015-06-19 13:00:10 -0500 commented question Unknown column 'volumes.instance_uuid' in 'field list'

I handle this problem in a savage way, I added those missing columns into DB tables and now it works.

2015-06-19 12:59:04 -0500 received badge  Notable Question (source)
2015-06-06 20:44:38 -0500 received badge  Popular Question (source)
2015-06-03 07:53:23 -0500 asked a question Unknown column 'volumes.instance_uuid' in 'field list'

when we finish installation of cinder on block storage node, when type '# cinder-volume' to start cinder-volume, error came like this:

2015-06-03 20:50:12.969 25254 TRACE cinder.openstack.common.threadgroup Traceback (most recent call last):
2015-06-03 20:50:12.969 25254 TRACE cinder.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/cinder/openstack/common/threadgroup.py", line 143, in wait
2015-06-03 20:50:12.969 25254 TRACE cinder.openstack.common.threadgroup     x.wait()
2015-06-03 20:50:12.969 25254 TRACE cinder.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/cinder/openstack/common/threadgroup.py", line 47, in wait
2015-06-03 20:50:12.969 25254 TRACE cinder.openstack.common.threadgroup     return self.thread.wait()
2015-06-03 20:50:12.969 25254 TRACE cinder.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line 168, in wait
2015-06-03 20:50:12.969 25254 TRACE cinder.openstack.common.threadgroup     return self._exit_event.wait()
2015-06-03 20:50:12.969 25254 TRACE cinder.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/eventlet/event.py", line 116, in wait
2015-06-03 20:50:12.969 25254 TRACE cinder.openstack.common.threadgroup     return hubs.get_hub().switch()
2015-06-03 20:50:12.969 25254 TRACE cinder.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/eventlet/hubs/hub.py", line 187, in switch
2015-06-03 20:50:12.969 25254 TRACE cinder.openstack.common.threadgroup     return self.greenlet.switch()
2015-06-03 20:50:12.969 25254 TRACE cinder.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line 194, in main
2015-06-03 20:50:12.969 25254 TRACE cinder.openstack.common.threadgroup     result = function(*args, **kwargs)
2015-06-03 20:50:12.969 25254 TRACE cinder.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/cinder/openstack/common/service.py", line 500, in run_service
2015-06-03 20:50:12.969 25254 TRACE cinder.openstack.common.threadgroup     service.start()
2015-06-03 20:50:12.969 25254 TRACE cinder.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/cinder/service.py", line 141, in start
2015-06-03 20:50:12.969 25254 TRACE cinder.openstack.common.threadgroup     self.manager.init_host()
2015-06-03 20:50:12.969 25254 TRACE cinder.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/osprofiler/profiler.py", line 105, in wrapper
2015-06-03 20:50:12.969 25254 TRACE cinder.openstack.common.threadgroup     return f(*args, **kwargs)
2015-06-03 20:50:12.969 25254 TRACE cinder.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/cinder/volume/manager.py", line 261, in init_host
2015-06-03 20:50:12.969 25254 TRACE cinder.openstack.common.threadgroup     volumes = self.db.volume_get_all_by_host(ctxt, self.host)
2015-06-03 20:50:12.969 25254 TRACE cinder.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/cinder/db/api.py", line 222, in volume_get_all_by_host
2015-06-03 20:50:12.969 25254 TRACE cinder.openstack.common.threadgroup     return IMPL.volume_get_all_by_host(context, host)
2015-06-03 20:50:12.969 25254 TRACE cinder.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/cinder/db/sqlalchemy/api.py", line 154, in wrapper
2015-06-03 ...
(more)
2015-04-17 11:05:57 -0500 received badge  Popular Question (source)