Xenial - ImportError: cannot import name NUM_CPUS
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Charm Helpers |
Fix Released
|
High
|
James Page | ||
cinder (Juju Charms Collection) |
Fix Released
|
High
|
James Page | ||
glance (Juju Charms Collection) |
Fix Released
|
High
|
James Page | ||
keystone (Juju Charms Collection) |
Fix Released
|
High
|
James Page | ||
neutron-api (Juju Charms Collection) |
Fix Released
|
High
|
James Page | ||
neutron-gateway (Juju Charms Collection) |
Fix Released
|
High
|
James Page | ||
nova-cloud-controller (Juju Charms Collection) |
Fix Released
|
High
|
James Page | ||
nova-compute (Juju Charms Collection) |
Fix Released
|
High
|
James Page | ||
swift-storage (Juju Charms Collection) |
Fix Released
|
High
|
James Page |
Bug Description
glance/next + keystone/next @ xenial-mitaka
Install hook fails:
2016-01-22 17:32:16 INFO install Unpacking python-psutil (3.4.1-1) ...
2016-01-22 17:32:16 INFO install Setting up python-psutil (3.4.1-1) ...
2016-01-22 17:32:16 INFO install Traceback (most recent call last):
2016-01-22 17:32:16 INFO install File "/var/lib/
2016-01-22 17:32:16 INFO install assess_
2016-01-22 17:32:16 INFO install File "/var/lib/
2016-01-22 17:32:16 INFO install configs, REQUIRED_
2016-01-22 17:32:16 INFO install File "/var/lib/
2016-01-22 17:32:16 INFO install incomplete_rel_data = incomplete_
2016-01-22 17:32:16 INFO install File "/var/lib/
2016-01-22 17:32:16 INFO install complete_ctxts = configs.
2016-01-22 17:32:16 INFO install File "/var/lib/
2016-01-22 17:32:16 INFO install for i in six.itervalues(
2016-01-22 17:32:16 INFO install File "/var/lib/
2016-01-22 17:32:16 INFO install self.context()
2016-01-22 17:32:16 INFO install File "/var/lib/
2016-01-22 17:32:16 INFO install _ctxt = context()
2016-01-22 17:32:16 INFO install File "/var/lib/
2016-01-22 17:32:16 INFO install ctxt = {"workers": self.num_cpus * multiplier}
2016-01-22 17:32:16 INFO install File "/var/lib/
2016-01-22 17:32:16 INFO install from psutil import NUM_CPUS
2016-01-22 17:32:16 INFO install ImportError: cannot import name NUM_CPUS
2016-01-22 17:32:17 INFO juju.worker.
2016-01-22 17:32:17 ERROR juju.worker.
2016-01-22 17:32:17 DEBUG juju.worker.uniter modes.go:31 [AGENT-STATUS] failed: run install hook
2016-01-22 17:32:17 INFO juju.worker.uniter modes.go:569 ModeContinue exiting
Related branches
- Liam Young (community): Approve
-
Diff: 73 lines (+30/-7)3 files modifiedcharmhelpers/contrib/openstack/context.py (+11/-7)
test_requirements.txt (+1/-0)
tests/contrib/openstack/test_os_contexts.py (+18/-0)
- Billy Olsen: Approve
- David Ames (community): Needs Fixing
-
Diff: 321 lines (+215/-7)5 files modifiedhooks/nova_cc_hooks.py (+2/-2)
hooks/nova_cc_utils.py (+19/-5)
templates/mitaka/nova.conf (+174/-0)
tests/basic_deployment.py (+7/-0)
unit_tests/test_nova_cc_utils.py (+13/-0)
- David Ames (community): Approve
-
Diff: 190 lines (+185/-0)1 file modifiedtemplates/mitaka/nova.conf (+185/-0)
- David Ames (community): Approve
- Ryan Beisner (community): Approve
-
Diff: 94 lines (+61/-10)2 files modifiedtemplates/mitaka/nova.conf (+34/-0)
tests/basic_deployment.py (+27/-10)
Changed in glance (Juju Charms Collection): | |
status: | New → Triaged |
Changed in keystone (Juju Charms Collection): | |
status: | New → Triaged |
Changed in glance (Juju Charms Collection): | |
milestone: | none → 16.04 |
Changed in keystone (Juju Charms Collection): | |
milestone: | none → 16.04 |
Changed in glance (Juju Charms Collection): | |
importance: | Undecided → Critical |
Changed in keystone (Juju Charms Collection): | |
importance: | Undecided → Critical |
Changed in glance (Juju Charms Collection): | |
assignee: | nobody → David Ames (thedac) |
Changed in keystone (Juju Charms Collection): | |
assignee: | nobody → David Ames (thedac) |
Changed in glance (Juju Charms Collection): | |
status: | Triaged → In Progress |
Changed in keystone (Juju Charms Collection): | |
status: | Triaged → In Progress |
Changed in cinder (Juju Charms Collection): | |
status: | New → Triaged |
Changed in charm-helpers: | |
status: | New → Triaged |
Changed in neutron-api (Juju Charms Collection): | |
status: | New → Triaged |
Changed in nova-cloud-controller (Juju Charms Collection): | |
status: | New → Triaged |
Changed in swift-storage (Juju Charms Collection): | |
status: | New → Triaged |
Changed in charm-helpers: | |
importance: | Undecided → High |
Changed in cinder (Juju Charms Collection): | |
importance: | Undecided → High |
Changed in neutron-api (Juju Charms Collection): | |
importance: | Undecided → High |
Changed in nova-cloud-controller (Juju Charms Collection): | |
importance: | Undecided → High |
Changed in swift-storage (Juju Charms Collection): | |
importance: | Undecided → High |
Changed in cinder (Juju Charms Collection): | |
milestone: | none → 16.04 |
Changed in neutron-api (Juju Charms Collection): | |
milestone: | none → 16.04 |
Changed in nova-cloud-controller (Juju Charms Collection): | |
milestone: | none → 16.04 |
Changed in swift-storage (Juju Charms Collection): | |
milestone: | none → 16.04 |
Changed in charm-helpers: | |
assignee: | nobody → James Page (james-page) |
status: | Triaged → In Progress |
Changed in charm-helpers: | |
status: | In Progress → Fix Committed |
Changed in neutron-api (Juju Charms Collection): | |
assignee: | nobody → James Page (james-page) |
Changed in nova-cloud-controller (Juju Charms Collection): | |
assignee: | nobody → James Page (james-page) |
Changed in swift-storage (Juju Charms Collection): | |
assignee: | nobody → James Page (james-page) |
Changed in glance (Juju Charms Collection): | |
assignee: | David Ames (thedac) → James Page (james-page) |
Changed in keystone (Juju Charms Collection): | |
assignee: | David Ames (thedac) → James Page (james-page) |
Changed in cinder (Juju Charms Collection): | |
assignee: | nobody → James Page (james-page) |
Changed in swift-storage (Juju Charms Collection): | |
status: | Triaged → Fix Committed |
Changed in glance (Juju Charms Collection): | |
status: | In Progress → Fix Committed |
Changed in keystone (Juju Charms Collection): | |
status: | In Progress → Fix Committed |
Changed in cinder (Juju Charms Collection): | |
status: | Triaged → Fix Committed |
Changed in neutron-api (Juju Charms Collection): | |
status: | Triaged → Fix Committed |
Changed in nova-cloud-controller (Juju Charms Collection): | |
status: | Triaged → In Progress |
Changed in nova-compute (Juju Charms Collection): | |
status: | New → In Progress |
assignee: | nobody → James Page (james-page) |
importance: | Undecided → High |
Changed in neutron-gateway (Juju Charms Collection): | |
status: | New → In Progress |
importance: | Undecided → High |
assignee: | nobody → James Page (james-page) |
milestone: | none → 16.04 |
Changed in nova-compute (Juju Charms Collection): | |
milestone: | none → 16.04 |
Changed in keystone (Juju Charms Collection): | |
importance: | Critical → High |
Changed in glance (Juju Charms Collection): | |
importance: | Critical → High |
Changed in nova-cloud-controller (Juju Charms Collection): | |
status: | In Progress → Fix Committed |
Changed in nova-compute (Juju Charms Collection): | |
status: | In Progress → Fix Committed |
Changed in neutron-gateway (Juju Charms Collection): | |
status: | In Progress → Fix Committed |
Changed in glance (Juju Charms Collection): | |
status: | Fix Committed → Fix Released |
Changed in keystone (Juju Charms Collection): | |
status: | Fix Committed → Fix Released |
Changed in neutron-api (Juju Charms Collection): | |
status: | Fix Committed → Fix Released |
Changed in cinder (Juju Charms Collection): | |
status: | Fix Committed → Fix Released |
Changed in nova-cloud-controller (Juju Charms Collection): | |
status: | Fix Committed → Fix Released |
Changed in swift-storage (Juju Charms Collection): | |
status: | Fix Committed → Fix Released |
Changed in nova-compute (Juju Charms Collection): | |
status: | Fix Committed → Fix Released |
Changed in neutron-gateway (Juju Charms Collection): | |
status: | Fix Committed → Fix Released |
Changed in charm-helpers: | |
status: | Fix Committed → Fix Released |
Reference:
Issue 451: Deprecate NUM_CPUS, TOTAL_PHYMEM and BOOT_TIME module constants /code.google. com/p/psutil/ issues/ detail? id=451
https:/