nova-manage won't work on a compute node

Bug #1464233 reported by Alexander Kurenyshev
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mirantis OpenStack
Won't Fix
Medium
MOS Nova
6.1.x
Won't Fix
Medium
MOS Nova
7.0.x
Won't Fix
Medium
MOS Nova
8.0.x
Won't Fix
Medium
MOS Nova

Bug Description

Steps to reproduce:
1) Install master node
2) Create new environment (Ubuntu, any network)
3) Deploy simple environment includes compute node
4) Go to the compute node after deployment finished and run `nova-manage service list` command

Expected result:
There are a list with running services over the all nodes

Actual behaviour:
There is an error about missing memcahce package:
root@node-2:~# nova-manage service list
Command failed, please check log for more info
2015-06-11 12:00:06.837 2491 CRITICAL nova [req-0d9c39fc-e131-4ee3-bc51-6983a8858bc0 None] ImportError: No module named memcache
2015-06-11 12:00:06.837 2491 TRACE nova Traceback (most recent call last):
2015-06-11 12:00:06.837 2491 TRACE nova File "/usr/bin/nova-manage", line 10, in <module>
2015-06-11 12:00:06.837 2491 TRACE nova sys.exit(main())
2015-06-11 12:00:06.837 2491 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/cmd/manage.py", line 1401, in main
2015-06-11 12:00:06.837 2491 TRACE nova ret = fn(*fn_args, **fn_kwargs)
2015-06-11 12:00:06.837 2491 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/cmd/manage.py", line 705, in list
2015-06-11 12:00:06.837 2491 TRACE nova services = availability_zones.set_availability_zones(ctxt, services)
2015-06-11 12:00:06.837 2491 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/availability_zones.py", line 103, in set_availability_zones
2015-06-11 12:00:06.837 2491 TRACE nova service['host'], az)
2015-06-11 12:00:06.837 2491 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/availability_zones.py", line 126, in update_host_availability_zone_cache
2015-06-11 12:00:06.837 2491 TRACE nova cache = _get_cache()
2015-06-11 12:00:06.837 2491 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/availability_zones.py", line 47, in _get_cache
2015-06-11 12:00:06.837 2491 TRACE nova MC = memorycache.get_client()
2015-06-11 12:00:06.837 2491 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/openstack/common/memorycache.py", line 38, in get_client
2015-06-11 12:00:06.837 2491 TRACE nova import memcache
2015-06-11 12:00:06.837 2491 TRACE nova ImportError: No module named memcache
2015-06-11 12:00:06.837 2491 TRACE nova

Fuel used:
api: '1.0'
astute_sha: 7766818f079881e2dbeedb34e1f67e517ed7d479
auth_required: true
build_id: 2015-06-08_06-13-27
build_number: '521'
feature_groups:
- mirantis
fuel-library_sha: f43c2ae1af3b493ee0e7810eab7bb7b50c986c7d
fuel-ostf_sha: 7c938648a246e0311d05e2372ff43ef1eb2e2761
fuelmain_sha: bcc909ffc5dd5156ba54cae348b6a07c1b607b24
nailgun_sha: 4340d55c19029394cd5610b0e0f56d6cb8cb661b
openstack_version: 2014.2.2-6.1
production: docker
python-fuelclient_sha: 4fc55db0265bbf39c369df398b9dc7d6469ba13b
release: '6.1'
release_versions:
  2014.2.2-6.1:
    VERSION:
      api: '1.0'
      astute_sha: 7766818f079881e2dbeedb34e1f67e517ed7d479
      build_id: 2015-06-08_06-13-27
      build_number: '521'
      feature_groups:
      - mirantis
      fuel-library_sha: f43c2ae1af3b493ee0e7810eab7bb7b50c986c7d
      fuel-ostf_sha: 7c938648a246e0311d05e2372ff43ef1eb2e2761
      fuelmain_sha: bcc909ffc5dd5156ba54cae348b6a07c1b607b24
      nailgun_sha: 4340d55c19029394cd5610b0e0f56d6cb8cb661b
      openstack_version: 2014.2.2-6.1
      production: docker
      python-fuelclient_sha: 4fc55db0265bbf39c369df398b9dc7d6469ba13b
      release: '6.1'

Roman Vyalov (r0mikiam)
Changed in fuel:
assignee: Fuel OSCI Team (fuel-osci) → MOS Nova (mos-nova)
Changed in fuel:
milestone: none → 6.1
importance: Medium → High
tags: added: 6.1rc2
summary: - Missing memcache package on the Ubuntu compute node
+ nova-manage won't work on a compute node
no longer affects: fuel/7.0.x
no longer affects: fuel/6.1.x
no longer affects: fuel
Revision history for this message
Roman Podoliaka (rpodolyaka) wrote :

nova-manage is an auxiliary tool for managing of Nova deployments. Often, it does not use public Nova API, but works directly with a DB instead, which means it can't be used on the compute nodes (as conceptually those don't have direct access to DB, at least from Nova point of view).

Please use `nova service-list` instead.

Still, this can be a valid issue in a sense, that we should not ship nova-manage binary on computes, if it's not usable.

Changed in mos:
milestone: 6.1 → 7.0
tags: removed: 6.1rc2
Revision history for this message
Roman Podoliaka (rpodolyaka) wrote :

No longer fixing medium bugs in 7.0, moving to 8.0

Changed in mos:
status: Triaged → Won't Fix
Revision history for this message
Roman Podoliaka (rpodolyaka) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.