Feature resources #4569

Merged
merged 129 commits into from Mar 1, 2016

Conversation

Projects
None yet
5 participants
Contributor

sinzui commented Mar 1, 2016

This branch is good to merge. The failures seen on
http://reports.vapour.ws/releases/3675
are all attributed to master (which is the last merge into this branch)

There are no bugs reported against feature resources, there never was
https://bugs.launchpad.net/juju-core/feature-resources

(Review request: http://reviews.vapour.ws/r/4007/)

jujubot and others added some commits Feb 19, 2016

Merge pull request #4475 from natefinch/new-fire-upgrade
Fire upgrade charm when resources change

This PR adds code to cause the upgrade-charm hook to fire when a service's resources change (generally through `juju push-resource`). 

To do this, we added a CharmModifiedVersion field on the Service, which is an integer that gets incremented every time one of the resources is changed, or any time the charmURL changes.  The uniter code then considers changes to that as well as to charmURL when considering whether to fire upgrade-charm.

http://reviews.vapour.ws/r/3910/

ericsnowcurrently and others added some commits Feb 22, 2016

Merge pull request #4456 from ericsnowcurrently/resources-worker-poll…
…-charm-store

Add a worker that polls the charm store for changes in resources.

There are a number of efficiencies that may be applied, but this patch gets the ball rolling.

(Review request: http://reviews.vapour.ws/r/3891/)
Merge pull request #4509 from natefinch/resource-updates
Add support for showing updates to resources in the store

This PR adds logic to display any resources in the store that are at a different revision from the resource the service is currently using, when using `juju resources foo`.

(Review request: http://reviews.vapour.ws/r/3945/)
Merge pull request #4525 from natefinch/charmres-serviceres
add CharmStoreResources to the API and the listresources test

This was forgotten in the last patch... we needed to add the CharmStoreResources to the ListResources API call... also updates the listresources test so we test unitresources, since that was missing from earlier.

(Review request: http://reviews.vapour.ws/r/3961/)
Merge pull request #4513 from natefinch/unitresource-4-all
return unitresources for all units

This code changes the behavior of ListResources such that it returns a UnitResources for every unit in the system.  Thus, the client code can differentiate between a unit that has no resources and one that doesn't exist.

(Review request: http://reviews.vapour.ws/r/3949/)
Merge pull request #4510 from ericsnowcurrently/resources-persistence…
…-in-state

Move resource persistence into the state package to help model migration.

The model migration work relies on access to the mongo doc structs and expects them to all be in the state package.  Consequently we must move resource persistence out of the component package.  Later we can look into how to move it back.

(Review request: http://reviews.vapour.ws/r/3946/)
Merge pull request #4538 from natefinch/charm-upgrade-resources
support --resource on upgrade-charm

This change reuses the infrastructure written for `juju deploy --resource` to add a --resource flag to upgrade-charm.  

There's a key difference for upgrade-charm, though.  During deploy, we need to upload metadata for all resources, but during upgrade-charm, we already have metadata for all the resources, and we only need to upload metadata for resources that are being changed.

(Review request: http://reviews.vapour.ws/r/3974/)
Contributor

sinzui commented Mar 1, 2016

$$merge$$ JFDI

Contributor

jujubot commented Mar 1, 2016

Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju

jujubot added a commit that referenced this pull request Mar 1, 2016

Merge pull request #4569 from juju/feature-resources
Feature resources

This branch is good to merge. The failures seen on
     http://reports.vapour.ws/releases/3675
are all attributed to master (which is the last merge into this branch)

There are no bugs reported against feature resources, there never was
    https://bugs.launchpad.net/juju-core/feature-resources

(Review request: http://reviews.vapour.ws/r/4007/)

@jujubot jujubot merged commit d19009b into master Mar 1, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment