Enable git clone depth override in opentstack-origin-git
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cinder (Juju Charms Collection) |
Fix Released
|
Undecided
|
Corey Bryant | ||
glance (Juju Charms Collection) |
Fix Released
|
Undecided
|
Corey Bryant | ||
keystone (Juju Charms Collection) |
Fix Released
|
Undecided
|
Corey Bryant | ||
neutron-api (Juju Charms Collection) |
Fix Released
|
Undecided
|
Corey Bryant | ||
neutron-gateway (Juju Charms Collection) |
Fix Released
|
Undecided
|
Corey Bryant | ||
nova-cloud-controller (Juju Charms Collection) |
Fix Released
|
Undecided
|
Corey Bryant | ||
nova-compute (Juju Charms Collection) |
Fix Released
|
Undecided
|
Corey Bryant | ||
openstack-dashboard (Juju Charms Collection) |
Fix Released
|
Undecided
|
Corey Bryant |
Bug Description
This bug has been updated from it's original intent. The original bug description details are at the end of this section.
The deploy from source support in the OpenStack charms performs shallow git clones (e.g. git clone --depth 1) by default. This increases the speed of a git clone significantly. However, there is a side-effect of shallow clones when they are pip installed, in that it causes pip to list the package version as 0.0.0, when in actuality the package version may have been 11.0.0. The next time a pip installed package needs a minimum version of that package (e.g. let's say it needs >= 10.0.0), it'll see that 0.0.0 is installed and it'll install the latest package from pypi.
Non-shallow git clones enable pip to see the actual version and prevent this issue. The openstack-
-------
Here's the original bug description, which is really a dup of upstream bug https:/
"Missing dependency on testrepository"
I had the source bundle at https:/
(adapted from http://
, basically flattened to v4 format to allow for machine allocation/
The relevant unit error log is at https:/
Related branches
- Liam Young (community): Approve
-
Diff: 135 lines (+13/-22)4 files modifiedcharmhelpers/contrib/openstack/utils.py (+6/-9)
charmhelpers/fetch/giturl.py (+0/-3)
tests/contrib/openstack/test_openstack_utils.py (+5/-5)
tests/fetch/test_giturl.py (+2/-5)
description: | updated |
summary: |
- Missing dependency on testrepository + Enable git clone depth override in opentstack-origin-git |
no longer affects: | keystone (Ubuntu) |
Changed in cinder (Juju Charms Collection): | |
assignee: | nobody → Corey Bryant (corey.bryant) |
Changed in glance (Juju Charms Collection): | |
assignee: | nobody → Corey Bryant (corey.bryant) |
Changed in keystone (Juju Charms Collection): | |
assignee: | nobody → Corey Bryant (corey.bryant) |
Changed in neutron-api (Juju Charms Collection): | |
assignee: | nobody → Corey Bryant (corey.bryant) |
Changed in neutron-gateway (Juju Charms Collection): | |
assignee: | nobody → Corey Bryant (corey.bryant) |
Changed in nova-cloud-controller (Juju Charms Collection): | |
assignee: | nobody → Corey Bryant (corey.bryant) |
Changed in nova-compute (Juju Charms Collection): | |
assignee: | nobody → Corey Bryant (corey.bryant) |
Changed in openstack-dashboard (Juju Charms Collection): | |
assignee: | nobody → Corey Bryant (corey.bryant) |
Changed in cinder (Juju Charms Collection): | |
status: | New → In Progress |
Changed in glance (Juju Charms Collection): | |
status: | New → In Progress |
Changed in keystone (Juju Charms Collection): | |
status: | New → In Progress |
Changed in neutron-api (Juju Charms Collection): | |
status: | New → In Progress |
Changed in neutron-gateway (Juju Charms Collection): | |
status: | New → In Progress |
Changed in nova-cloud-controller (Juju Charms Collection): | |
status: | New → In Progress |
Changed in nova-compute (Juju Charms Collection): | |
status: | New → In Progress |
Changed in openstack-dashboard (Juju Charms Collection): | |
status: | New → In Progress |
Changed in glance (Juju Charms Collection): | |
status: | In Progress → Fix Committed |
Changed in neutron-gateway (Juju Charms Collection): | |
status: | In Progress → Fix Committed |
Changed in nova-cloud-controller (Juju Charms Collection): | |
status: | In Progress → Fix Committed |
Changed in neutron-api (Juju Charms Collection): | |
status: | In Progress → Fix Committed |
Changed in openstack-dashboard (Juju Charms Collection): | |
status: | In Progress → Fix Committed |
Changed in cinder (Juju Charms Collection): | |
status: | In Progress → Fix Committed |
Changed in keystone (Juju Charms Collection): | |
status: | In Progress → Fix Committed |
Changed in nova-compute (Juju Charms Collection): | |
status: | In Progress → Fix Committed |
Should add that if I manually run "pip install testrepository", and then manually retry the failed command ("pip install /mnt/openstack- git/neutron" ) it works.