[Yahoo-eng-team] [Bug 1505942] [NEW] when log in dashboard, error comes

2015-10-14 Thread Sun Jing
Public bug reported:

when login dashboard,after click "Sign in" button, Browser prompt error
message:CSRF 验证失败

** Affects: horizon
 Importance: Undecided
 Status: New

** Attachment added: "CSRFerror.PNG"
   
https://bugs.launchpad.net/bugs/1505942/+attachment/4494205/+files/CSRFerror.PNG

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1505942

Title:
  when log in dashboard,error comes

Status in OpenStack Dashboard (Horizon):
  New

Bug description:
  when login dashboard,after click "Sign in" button, Browser prompt
  error message:CSRF 验证失败

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1505942/+subscriptions

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp


[Yahoo-eng-team] [Bug 1489300] [NEW] when launch vm the step "SelectProjectUserAction" should not display.

2015-08-27 Thread Sun Jing
Public bug reported:

When launch vm with dashboard ,the first workflow "SelectProjectUserAction" 
should be hidden,but it displays.
In file:  
\openstack\horizon\openstack_dashboard\dashboards\project\instances\workflows\create_instance.py

class SelectProjectUserAction(workflows.Action):
project_id = forms.ChoiceField(label=_("Project"))
user_id = forms.ChoiceField(label=_("User"))

def __init__(self, request, *args, **kwargs):
super(SelectProjectUserAction, self).__init__(request, *args, **kwargs)
# Set our project choices
projects = [(tenant.id, tenant.name)
for tenant in request.user.authorized_tenants]
self.fields['project_id'].choices = projects

# Set our user options
users = [(request.user.id, request.user.username)]
self.fields['user_id'].choices = users

class Meta(object):
name = _("Project & User")
# Unusable permission so this is always hidden. However, we
# keep this step in the workflow for validation/verification purposes.
permissions = ("!",)

** Affects: horizon
 Importance: Undecided
 Status: New

** Attachment added: "create vm.PNG"
   
https://bugs.launchpad.net/bugs/1489300/+attachment/4453209/+files/create%20vm.PNG

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1489300

Title:
  when launch vm the step "SelectProjectUserAction" should  not display.

Status in OpenStack Dashboard (Horizon):
  New

Bug description:
  When launch vm with dashboard ,the first workflow "SelectProjectUserAction" 
should be hidden,but it displays.
  In file:  
\openstack\horizon\openstack_dashboard\dashboards\project\instances\workflows\create_instance.py

  class SelectProjectUserAction(workflows.Action):
  project_id = forms.ChoiceField(label=_("Project"))
  user_id = forms.ChoiceField(label=_("User"))

  def __init__(self, request, *args, **kwargs):
  super(SelectProjectUserAction, self).__init__(request, *args, 
**kwargs)
  # Set our project choices
  projects = [(tenant.id, tenant.name)
  for tenant in request.user.authorized_tenants]
  self.fields['project_id'].choices = projects

  # Set our user options
  users = [(request.user.id, request.user.username)]
  self.fields['user_id'].choices = users

  class Meta(object):
  name = _("Project & User")
  # Unusable permission so this is always hidden. However, we
  # keep this step in the workflow for validation/verification purposes.
  permissions = ("!",)

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1489300/+subscriptions

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp


[Yahoo-eng-team] [Bug 1482524] [NEW] volume table filter has an error

2015-08-07 Thread Sun Jing
Public bug reported:

In page admin/volumes ,table filter maybe has an error:
volumes in creating state can not be filted.

** Affects: horizon
 Importance: Undecided
 Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1482524

Title:
  volume table filter has an error

Status in OpenStack Dashboard (Horizon):
  New

Bug description:
  In page admin/volumes ,table filter maybe has an error:
  volumes in creating state can not be filted.

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1482524/+subscriptions

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp


[Yahoo-eng-team] [Bug 1482507] [NEW] launch vm can choose flavor

2015-08-06 Thread Sun Jing
Public bug reported:

when launch instance "instance boot source " choose "Boot from image",
then "Flavor" will show tips: "Some flavors not meeting minimum image 
requirements have been disabled."
and some flavor can not be choosed.

then "instance boot source " choose "Boot from volume",the disabled flavors 
also can not be choosed.

Infact the disabled flavor should turn to be enabled.

** Affects: horizon
 Importance: Undecided
 Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1482507

Title:
  launch vm can choose flavor

Status in OpenStack Dashboard (Horizon):
  New

Bug description:
  when launch instance "instance boot source " choose "Boot from image",
  then "Flavor" will show tips: "Some flavors not meeting minimum image 
requirements have been disabled."
  and some flavor can not be choosed.

  then "instance boot source " choose "Boot from volume",the disabled flavors 
  also can not be choosed.

  Infact the disabled flavor should turn to be enabled.

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1482507/+subscriptions

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp


[Yahoo-eng-team] [Bug 1482505] [NEW] error when login dashboard

2015-08-06 Thread Sun Jing
Public bug reported:

when login dashboard without any operation for 40 minutes,then you need login 
again,and there will be an error :"An unexpected error has occurred. Try 
refreshing the page. If that doesn't "
"help, contact your local administrator."

In file /var/log/horizon/horizon.log , it shows:
2015-07-30 08:10:56,451 26786 INFO openstack_auth.forms Login successful for 
user "admin".
2015-07-30 08:10:56,451 26786 ERROR django.request Internal Server Error: 
/dashboard/auth/login/
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 
132, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/lib/python2.7/site-packages/django/views/decorators/debug.py", 
line 76, in sensitive_post_parameters_wrapper
return view(request, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/django/utils/decorators.py", line 110, 
in _wrapped_view
response = view_func(request, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/django/views/decorators/cache.py", 
line 57, in _wrapped_view_func
response = view_func(request, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/openstack_auth/views.py", line 111, in 
login
**kwargs)
  File "/usr/lib/python2.7/site-packages/django/views/decorators/debug.py", 
line 76, in sensitive_post_parameters_wrapper
return view(request, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/django/utils/decorators.py", line 110, 
in _wrapped_view
response = view_func(request, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/django/views/decorators/cache.py", 
line 57, in _wrapped_view_func
response = view_func(request, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/django/contrib/auth/views.py", line 
51, in login
auth_login(request, form.get_user())
  File "/usr/lib/python2.7/site-packages/django/contrib/auth/__init__.py", line 
102, in login
if _get_user_session_key(request) != user.pk or (
  File "/usr/lib/python2.7/site-packages/django/contrib/auth/__init__.py", line 
59, in _get_user_session_key
return get_user_model()._meta.pk.to_python(request.session[SESSION_KEY])
  File "/usr/lib/python2.7/site-packages/django/db/models/fields/__init__.py", 
line 969, in to_python
params={'value': value},
ValidationError: [u'\u201926dee20cfa504431af61b0e2a7986cdf\u2018 
\u5fc5\u987b\u4e3a\u6574\u6570\u3002']

** Affects: horizon
 Importance: Undecided
 Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1482505

Title:
  error when login dashboard

Status in OpenStack Dashboard (Horizon):
  New

Bug description:
  when login dashboard without any operation for 40 minutes,then you need login 
again,and there will be an error :"An unexpected error has occurred. Try 
refreshing the page. If that doesn't "
  "help, contact your local administrator."

  In file /var/log/horizon/horizon.log , it shows:
  2015-07-30 08:10:56,451 26786 INFO openstack_auth.forms Login successful for 
user "admin".
  2015-07-30 08:10:56,451 26786 ERROR django.request Internal Server Error: 
/dashboard/auth/login/
  Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 
132, in get_response
  response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python2.7/site-packages/django/views/decorators/debug.py", 
line 76, in sensitive_post_parameters_wrapper
  return view(request, *args, **kwargs)
File "/usr/lib/python2.7/site-packages/django/utils/decorators.py", line 
110, in _wrapped_view
  response = view_func(request, *args, **kwargs)
File "/usr/lib/python2.7/site-packages/django/views/decorators/cache.py", 
line 57, in _wrapped_view_func
  response = view_func(request, *args, **kwargs)
File "/usr/lib/python2.7/site-packages/openstack_auth/views.py", line 111, 
in login
  **kwargs)
File "/usr/lib/python2.7/site-packages/django/views/decorators/debug.py", 
line 76, in sensitive_post_parameters_wrapper
  return view(request, *args, **kwargs)
File "/usr/lib/python2.7/site-packages/django/utils/decorators.py", line 
110, in _wrapped_view
  response = view_func(request, *args, **kwargs)
File "/usr/lib/python2.7/site-packages/django/views/decorators/cache.py", 
line 57, in _wrapped_view_func
  response = view_func(request, *args, **kwargs)
File "/usr/lib/python2.7/site-packages/django/contrib/auth/views.py", line 
51, in login
  auth_login(request, form.get_user())
File "/usr/lib/python2.7/site-packages/django/contrib/auth/__init__.py", 
line 102, in login
  if _get_user_session_key(request) != user.pk or (
File "/usr/lib/python2.7/site-packages/django/contrib/auth/__init__.py", 
line 59, in _get_user_session_key
  

[Yahoo-eng-team] [Bug 1482499] [NEW] error found in page /dashboard/admin/aggregates/

2015-08-06 Thread Sun Jing
Public bug reported:

Create a host aggregates with Availability Zone and a host;  then
disable the only host in this zone;  when you open
/dashboard/admin/aggregates/,the  page shows error:   "An unexpected
error has occurred. Try refreshing the page. If that doesn't  help,
contact your local administrator."

In  /var/log/horizon/horizon.log ,it shows: 
2015-08-07 05:15:50,766 26634 ERROR django.request Internal Server Error: 
/dashboard/admin/aggregates/
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 
137, in get_response
response = response.render()
  File "/usr/lib/python2.7/site-packages/django/template/response.py", line 
105, in render
self.content = self.rendered_content
  File "/usr/lib/python2.7/site-packages/django/template/response.py", line 82, 
in rendered_content
content = template.render(context)
  File "/usr/lib/python2.7/site-packages/django/template/base.py", line 140, in 
render
return self._render(context)
  File "/usr/lib/python2.7/site-packages/django/template/base.py", line 134, in 
_render
return self.nodelist.render(context)
  File "/usr/lib/python2.7/site-packages/django/template/base.py", line 840, in 
render
bit = self.render_node(node, context)
  File "/usr/lib/python2.7/site-packages/django/template/base.py", line 854, in 
render_node
return node.render(context)
  File "/usr/lib/python2.7/site-packages/django/template/loader_tags.py", line 
123, in render
return compiled_parent._render(context)
  File "/usr/lib/python2.7/site-packages/django/template/base.py", line 134, in 
_render
return self.nodelist.render(context)
  File "/usr/lib/python2.7/site-packages/django/template/base.py", line 840, in 
render
bit = self.render_node(node, context)
  File "/usr/lib/python2.7/site-packages/django/template/base.py", line 854, in 
render_node
return node.render(context)
  File "/usr/lib/python2.7/site-packages/django/template/loader_tags.py", line 
62, in render
result = block.nodelist.render(context)
  File "/usr/lib/python2.7/site-packages/django/template/base.py", line 840, in 
render
bit = self.render_node(node, context)
  File "/usr/lib/python2.7/site-packages/django/template/base.py", line 854, in 
render_node
return node.render(context)
  File "/usr/lib/python2.7/site-packages/django/template/loader_tags.py", line 
62, in render
result = block.nodelist.render(context)
  File "/usr/lib/python2.7/site-packages/django/template/base.py", line 840, in 
render
bit = self.render_node(node, context)
  File "/usr/lib/python2.7/site-packages/django/template/base.py", line 854, in 
render_node
return node.render(context)
  File "/usr/lib/python2.7/site-packages/django/template/base.py", line 891, in 
render
output = self.filter_expression.resolve(context)
  File "/usr/lib/python2.7/site-packages/django/template/base.py", line 585, in 
resolve
obj = self.var.resolve(context)
  File "/usr/lib/python2.7/site-packages/django/template/base.py", line 735, in 
resolve
value = self._resolve_lookup(context)
  File "/usr/lib/python2.7/site-packages/django/template/base.py", line 789, in 
_resolve_lookup
current = current()
  File "/usr/lib/python2.7/site-packages/horizon/tables/base.py", line 1149, in 
render
return table_template.render(context)
  File "/usr/lib/python2.7/site-packages/django/template/base.py", line 140, in 
render
return self._render(context)
  File "/usr/lib/python2.7/site-packages/django/template/base.py", line 134, in 
_render
return self.nodelist.render(context)
  File "/usr/lib/python2.7/site-packages/django/template/base.py", line 840, in 
render
bit = self.render_node(node, context)
  File "/usr/lib/python2.7/site-packages/django/template/base.py", line 854, in 
render_node
return node.render(context)
  File "/usr/lib/python2.7/site-packages/django/template/defaulttags.py", line 
506, in render
output = self.nodelist.render(context)
  File "/usr/lib/python2.7/site-packages/django/template/base.py", line 840, in 
render
bit = self.render_node(node, context)
  File "/usr/lib/python2.7/site-packages/django/template/base.py", line 854, in 
render_node
return node.render(context)
  File "/usr/lib/python2.7/site-packages/django/template/defaulttags.py", line 
504, in render
six.iteritems(self.extra_context)])
  File "/usr/lib/python2.7/site-packages/django/template/base.py", line 585, in 
resolve
obj = self.var.resolve(context)
  File "/usr/lib/python2.7/site-packages/django/template/base.py", line 735, in 
resolve
value = self._resolve_lookup(context)
  File "/usr/lib/python2.7/site-packages/django/template/base.py", line 789, in 
_resolve_lookup
current = current()
  File "/usr/lib/python2.7/site-packages/horizon/tables/base.py", line 1578, in 
get_rows
row = self._meta.row_class(self, datum)
  File "/usr/lib/python2.7/site-packages/horizon/tables/base.py", line 483, in 
__init__

[Yahoo-eng-team] [Bug 1455397] [NEW] vms which donot winth a project will become garbage data, mybe waste resources

2015-05-15 Thread Sun Jing
Public bug reported:

now,when an user logs in dashboardAs an administrator, he can delete a project 
whitout considering wether the project has vms, further more ,keystone doesn't 
considering that too. 
So, in nova database table 'instance' the vms data will always exist.There will 
be no user can use them again.It is a garbage data.
Maybe will waste resource too.

I think one must delete the vm first,then delete project,or nova check
whether the vms is useful,the ones whitout a effective project should be
deleted.

** Affects: nova
 Importance: Undecided
 Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1455397

Title:
  vms which donot winth a project will  become garbage data,mybe waste
  resources

Status in OpenStack Compute (Nova):
  New

Bug description:
  now,when an user logs in dashboardAs an administrator, he can delete a 
project whitout considering wether the project has vms, further more ,keystone 
doesn't considering that too. 
  So, in nova database table 'instance' the vms data will always exist.There 
will be no user can use them again.It is a garbage data.
  Maybe will waste resource too.

  I think one must delete the vm first,then delete project,or nova check
  whether the vms is useful,the ones whitout a effective project should
  be deleted.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1455397/+subscriptions

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp


[Yahoo-eng-team] [Bug 1430672] [NEW] unit test faield:test_change_password_shows_message_on_login_page

2015-03-11 Thread Sun Jing
Public bug reported:

ERROR: test_change_password_shows_message_on_login_page 
(openstack_dashboard.dashboards.settings.password.tests.ChangePasswordTests)
--
Traceback (most recent call last):
  File 
"/home/openstack/tecs/openstack/horizon/openstack_dashboard/test/helpers.py", 
line 83, in instance_stub_out
return fn(self, *args, **kwargs)
  File 
"/home/openstack/tecs/openstack/horizon/openstack_dashboard/dashboards/settings/password/tests.py",
 line 67, in test_change_password_shows_message_on_login_page
res = self.client.post(INDEX_URL, formData, follow=True)
  File 
"/home/openstack/tecs/openstack/horizon/.venv/lib/python2.7/site-packages/django/test/client.py",
 line 485, in post
response = self._handle_redirects(response, **extra)
  File 
"/home/openstack/tecs/openstack/horizon/.venv/lib/python2.7/site-packages/django/test/client.py",
 line 617, in _handle_redirects
response = self.get(url.path, QueryDict(url.query), follow=False, **extra)
  File 
"/home/openstack/tecs/openstack/horizon/.venv/lib/python2.7/site-packages/django/test/client.py",
 line 473, in get
response = super(Client, self).get(path, data=data, **extra)
  File 
"/home/openstack/tecs/openstack/horizon/.venv/lib/python2.7/site-packages/django/test/client.py",
 line 280, in get
return self.request(**r)
  File 
"/home/openstack/tecs/openstack/horizon/.venv/lib/python2.7/site-packages/django/test/client.py",
 line 444, in request
six.reraise(*exc_info)
  File 
"/home/openstack/tecs/openstack/horizon/.venv/lib/python2.7/site-packages/django/core/handlers/base.py",
 line 112, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/home/openstack/tecs/openstack/horizon/horizon/decorators.py", line 38, 
in dec
return view_func(request, *args, **kwargs)
  File "/home/openstack/tecs/openstack/horizon/horizon/decorators.py", line 54, 
in dec
return view_func(request, *args, **kwargs)
  File "/home/openstack/tecs/openstack/horizon/horizon/decorators.py", line 38, 
in dec
return view_func(request, *args, **kwargs)
  File 
"/home/openstack/tecs/openstack/horizon/.venv/lib/python2.7/site-packages/django/views/generic/base.py",
 line 69, in view
return self.dispatch(request, *args, **kwargs)
  File 
"/home/openstack/tecs/openstack/horizon/.venv/lib/python2.7/site-packages/django/views/generic/base.py",
 line 87, in dispatch
return handler(request, *args, **kwargs)
  File "/home/openstack/tecs/openstack/horizon/horizon/tables/views.py", line 
157, in get
handled = self.construct_tables()
  File "/home/openstack/tecs/openstack/horizon/horizon/tables/views.py", line 
148, in construct_tables
handled = self.handle_table(table)
  File "/home/openstack/tecs/openstack/horizon/horizon/tables/views.py", line 
120, in handle_table
data = self._get_data_dict()
  File "/home/openstack/tecs/openstack/horizon/horizon/tables/views.py", line 
184, in _get_data_dict
self._data = {self.table_class._meta.name: self.get_data()}
  File 
"/home/openstack/tecs/openstack/horizon/openstack_dashboard/dashboards/project/overview/views.py",
 line 57, in get_data
super(ProjectOverview, self).get_data()
  File 
"/home/openstack/tecs/openstack/horizon/openstack_dashboard/usage/views.py", 
line 43, in get_data
self.usage.summarize(*self.usage.get_date_range())
  File 
"/home/openstack/tecs/openstack/horizon/openstack_dashboard/usage/base.py", 
line 200, in summarize
if not api.nova.extension_supported('SimpleTenantUsage', self.request):
  File "/home/openstack/tecs/openstack/horizon/horizon/utils/memoized.py", line 
90, in wrapped
value = cache[key] = func(*args, **kwargs)
  File 
"/home/openstack/tecs/openstack/horizon/openstack_dashboard/api/nova.py", line 
759, in extension_supported
extensions = list_extensions(request)
  File "/home/openstack/tecs/openstack/horizon/horizon/utils/memoized.py", line 
90, in wrapped
value = cache[key] = func(*args, **kwargs)
  File 
"/home/openstack/tecs/openstack/horizon/openstack_dashboard/api/nova.py", line 
750, in list_extensions
return nova_list_extensions.ListExtManager(novaclient(request)).show_all()
  File 
"/home/openstack/tecs/openstack/horizon/.venv/lib/python2.7/site-packages/novaclient/v1_1/contrib/list_extensions.py",
 line 37, in show_all
return self._list("/extensions", 'extensions')
  File 
"/home/openstack/tecs/openstack/horizon/.venv/lib/python2.7/site-packages/novaclient/base.py",
 line 67, in _list
_resp, body = self.api.client.get(url)
  File 
"/home/openstack/tecs/openstack/horizon/.venv/lib/python2.7/site-packages/novaclient/client.py",
 line 487, in get
return self._cs_request(url, 'GET', **kwargs)
  File 
"/home/openstack/tecs/openstack/horizon/.venv/lib/python2.7/site-packages/novaclient/client.py",
 line 465, in _cs_request
resp, body = self._time_request(url, method, **kwargs)
  File 
"/home/opens

[Yahoo-eng-team] [Bug 1430665] [NEW] unit test failed:django.db.utils.DatabaseError: DatabaseWrapper objects created in a thread can only be used in that same thread. The object with alias 'default' w

2015-03-11 Thread Sun Jing
Public bug reported:

Checking environment.
Environment is up to date.
Running Horizon application tests
nosetests horizon --nocapture --nologcapture --exclude-dir=horizon/conf/ 
--exclude-dir=horizon/test/customization --cover-package=horizon 
--cover-inclusive --all-modules 
--exclude-dir=openstack_dashboard/test/integration_tests --verbosity=1
Creating test database for alias 'default'...
...SSS
--
Ran 114 tests in 20.880s

OK (SKIP=3)
Destroying test database for alias 'default'...
Running openstack_dashboard tests

Traceback (most recent call last):
  File "/home/openstack/tecs/openstack/horizon/manage.py", line 23, in 
execute_from_command_line(sys.argv)
  File 
"/home/openstack/tecs/openstack/horizon/.venv/lib/python2.7/site-packages/django/core/management/__init__.py",
 line 399, in execute_from_command_line
utility.execute()
  File 
"/home/openstack/tecs/openstack/horizon/.venv/lib/python2.7/site-packages/django/core/management/__init__.py",
 line 392, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
  File 
"/home/openstack/tecs/openstack/horizon/.venv/lib/python2.7/site-packages/django/core/management/commands/test.py",
 line 50, in run_from_argv
super(Command, self).run_from_argv(argv)
  File 
"/home/openstack/tecs/openstack/horizon/.venv/lib/python2.7/site-packages/django/core/management/base.py",
 line 242, in run_from_argv
self.execute(*args, **options.__dict__)
  File 
"/home/openstack/tecs/openstack/horizon/.venv/lib/python2.7/site-packages/django/core/management/commands/test.py",
 line 71, in execute
super(Command, self).execute(*args, **options)
  File 
"/home/openstack/tecs/openstack/horizon/.venv/lib/python2.7/site-packages/django/core/management/base.py",
 line 285, in execute
output = self.handle(*args, **options)
  File 
"/home/openstack/tecs/openstack/horizon/.venv/lib/python2.7/site-packages/django/core/management/commands/test.py",
 line 88, in handle
failures = test_runner.run_tests(test_labels)
  File 
"/home/openstack/tecs/openstack/horizon/.venv/lib/python2.7/site-packages/django_nose/runner.py",
 line 200, in run_tests
result = self.run_suite(nose_argv)
  File 
"/home/openstack/tecs/openstack/horizon/.venv/lib/python2.7/site-packages/django_nose/runner.py",
 line 147, in run_suite
addplugins=plugins_to_add)
  File 
"/home/openstack/tecs/openstack/horizon/.venv/lib/python2.7/site-packages/nose/core.py",
 line 121, in __init__
**extra_args)
  File "/usr/lib64/python2.7/unittest/main.py", line 95, in __init__
self.runTests()
  File 
"/home/openstack/tecs/openstack/horizon/.venv/lib/python2.7/site-packages/nose/core.py",
 line 207, in runTests
result = self.testRunner.run(self.test)
  File 
"/home/openstack/tecs/openstack/horizon/.venv/lib/python2.7/site-packages/nose/core.py",
 line 50, in run
wrapper = self.config.plugins.prepareTest(test)
  File 
"/home/openstack/tecs/openstack/horizon/.venv/lib/python2.7/site-packages/nose/plugins/manager.py",
 line 99, in __call__
return self.call(*arg, **kw)
  File 
"/home/openstack/tecs/openstack/horizon/.venv/lib/python2.7/site-packages/nose/plugins/manager.py",
 line 167, in simple
result = meth(*arg, **kw)
  File 
"/home/openstack/tecs/openstack/horizon/.venv/lib/python2.7/site-packages/django_nose/plugin.py",
 line 75, in prepareTest
self.old_names = self.runner.setup_databases()
  File 
"/home/openstack/tecs/openstack/horizon/.venv/lib/python2.7/site-packages/django_nose/runner.py",
 line 351, in setup_databases
connection.close()
  File 
"/home/openstack/tecs/openstack/horizon/.venv/lib/python2.7/site-packages/django/db/backends/sqlite3/base.py",
 line 363, in close
self.validate_thread_sharing()
  File 
"/home/openstack/tecs/openstack/horizon/.venv/lib/python2.7/site-packages/django/db/backends/__init__.py",
 line 499, in validate_thread_sharing
% (self.alias, self._thread_ident, thread.get_ident()))
django.db.utils.DatabaseError: DatabaseWrapper objects created in a thread can 
only be used in that same thread. The object with alias 'default' was created 
in thread id 140348464949056 and this is thread id 38484560.
Tests failed.

** Affects: horizon
 Importance: Undecided
 Status: New


** Tags: icehouse unittest

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1430665

Title:
  unit test failed:django.db.utils.DatabaseError: DatabaseWrapper
  objects created in a thread can only be used in that same thread. The
  object with alias 'default' was created in thread id 140348464949056
  and this is thread id 38484560.

Status in OpenStack Dashboard (Horizon):
  New

Bug description:
  Checking environment.
  Environment is u

[Yahoo-eng-team] [Bug 1419622] [NEW] translation error

2015-02-08 Thread Sun Jing
Public bug reported:

there is a translation error in the follow page :project->compute->Access & 
Security->security groups->Manage Rules:"一下“should be "以下”.Maybe the file
\horizon\openstack_dashboard\locale\zh_CN\LC_MESSAGES should be modified.

** Affects: horizon
 Importance: Undecided
 Status: New

** Description changed:

- project->compute->Access & Security->security groups->Manage
- Rules:"一下“should be "以下”
+ there is a translation error in the follow page :project->compute->Access & 
Security->security groups->Manage Rules:"一下“should be "以下”.Maybe the file
+ \horizon\openstack_dashboard\locale\zh_CN\LC_MESSAGES should be modified.

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1419622

Title:
  translation error

Status in OpenStack Dashboard (Horizon):
  New

Bug description:
  there is a translation error in the follow page :project->compute->Access & 
Security->security groups->Manage Rules:"一下“should be "以下”.Maybe the file
  \horizon\openstack_dashboard\locale\zh_CN\LC_MESSAGES should be modified.

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1419622/+subscriptions

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp


[Yahoo-eng-team] [Bug 1369883] [NEW] detach a volume tips translate error

2014-09-16 Thread Sun Jing
Public bug reported:

when detach a volume,the tips showing to be "断开zhong云硬盘",if dashboard language 
choose chinese.It should be "断开中云硬盘".
 Maybe there is a translating error with file 
"openstack\horizon\openstack_dashboard\locale\zh_CN\LC_MESSAGES\django.po".

** Affects: horizon
 Importance: Undecided
 Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1369883

Title:
  detach a volume tips translate error

Status in OpenStack Dashboard (Horizon):
  New

Bug description:
  when detach a volume,the tips showing to be "断开zhong云硬盘",if dashboard 
language choose chinese.It should be "断开中云硬盘".
   Maybe there is a translating error with file 
"openstack\horizon\openstack_dashboard\locale\zh_CN\LC_MESSAGES\django.po".

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1369883/+subscriptions

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp


[Yahoo-eng-team] [Bug 1353344] [NEW] create network success , tips has error

2014-08-06 Thread Sun Jing
Public bug reported:

when I creating a network with name net04_share successfully, the tip s
are: 成功:成果创建 net04_share 网络.

Maybe there is an error with dashboard translation
file:\openstack\horizon\openstack_dashboard\locale\zh_CN\LC_MESSAGES\django.po


It should be changed with :成功:成功创建 net04_share 网络.

** Affects: horizon
 Importance: Undecided
 Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1353344

Title:
  create network success ,tips has error

Status in OpenStack Dashboard (Horizon):
  New

Bug description:
  when I creating a network with name net04_share successfully, the tip
  s are: 成功:成果创建 net04_share 网络.

  Maybe there is an error with dashboard translation
  file:\openstack\horizon\openstack_dashboard\locale\zh_CN\LC_MESSAGES\django.po

  
  It should be changed with :成功:成功创建 net04_share 网络.

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1353344/+subscriptions

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp


[Yahoo-eng-team] [Bug 1287486] [NEW] processutils.execute can not run background task

2014-03-03 Thread Sun Jing
Public bug reported:

This bug is reported from ironic, we are using the --background option
in processutils.execute(), but it hangs, sees  the processutils.execute
which doesn't support running tasks in background because it PIPES the
std{in,out,err} interface causing communicate to hang[1].

A quick test:

In [15]: p = subprocess.Popen("sleep 10&", stdout=subprocess.PIPE,
stderr=subprocess.PIPE, shell=True) In [16]: p.communicate()

hangs...

In [11]: p = subprocess.Popen("sleep 10&", shell=True) In [12]:
p.communicate() Out[12]: (None, None)

doesn't hangs...

[1]
https://github.com/openstack/ironic/blob/master/ironic/openstack/common/processutils.py#L153-L155

Could you please help to fix it? Thx.

** Affects: neutron
 Importance: Undecided
 Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1287486

Title:
  processutils.execute can not run background task

Status in OpenStack Neutron (virtual network service):
  New

Bug description:
  This bug is reported from ironic, we are using the --background option
  in processutils.execute(), but it hangs, sees  the
  processutils.execute which doesn't support running tasks in background
  because it PIPES the std{in,out,err} interface causing communicate to
  hang[1].

  A quick test:

  In [15]: p = subprocess.Popen("sleep 10&", stdout=subprocess.PIPE,
  stderr=subprocess.PIPE, shell=True) In [16]: p.communicate()

  hangs...

  In [11]: p = subprocess.Popen("sleep 10&", shell=True) In [12]:
  p.communicate() Out[12]: (None, None)

  doesn't hangs...

  [1]
  
https://github.com/openstack/ironic/blob/master/ironic/openstack/common/processutils.py#L153-L155

  Could you please help to fix it? Thx.

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1287486/+subscriptions

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp