Merge latest master #4822

Merged
merged 268 commits into from Mar 21, 2016

Conversation

Projects
None yet

Merge latest master.

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

mjs and others added some commits Feb 22, 2016

cmd/jujud/agent/machine: Introduce stateworkers manifold
"stateworkers" is a temporary manifold that runs workers which have
not yet been converted to run directly under the dependency engine. It
obtains a *state.State from the "state" manifold and passes it to a
function which starts the workers.

As part of this change the old "state-starter" and "state" workers
have been removed from the machine agent. They have been replaced by
equivalent dependency engine manifolds.
worker/state: Change StateTracker to be an interface
This will simplify testing elsewhere.
Merge pull request #4528 from mjs/MADE-state-workers
cmd/jujud/agent/machine: Introduce stateworkers manifold

"stateworkers" is a temporary manifold that runs workers which have not yet been converted to run directly under the dependency engine. It obtains a *state.State from the "state" manifold and passes it to a function which starts the workers.

As part of this change the old "state-starter" and "state" workers have been removed from the machine agent. They have been replaced by equivalent dependency engine manifolds.


(Review request: http://reviews.vapour.ws/r/3964/)
Resync MADE-state-workers to latest blessed master
Merge commit 'e13ffd1c3d751be653dac2a8ed0adc233f8c75d6'

Conflicts:
	cmd/jujud/agent/machine/manifolds_test.go
Resync MADE-state-workers to master
This merges master up to 2564190.

Conflicts:
	cmd/jujud/agent/machine/manifolds.go
	cmd/jujud/agent/machine/manifolds_test.go
Merge pull request #4644 from mjs/MADE-state-workers-resync
Resync MADE-state-workers to master

This merges master up to 2564190.

(Review request: http://reviews.vapour.ws/r/4087/)
Merge pull request #4658 from mjs/StateWorkersSuite-race
cmd/jujud/agent/machine: Fix race in StateWorkersSuite



(Review request: http://reviews.vapour.ws/r/4098/)
Merge pull request #4690 from howbazaar/update-MADE-state-workers
Update made state workers

Merge in tip of master.

(Review request: http://reviews.vapour.ws/r/4129/)
Merge pull request #4696 from natefinch/fix-1556146
Fix bug 1556146

missing a period in the build constraint, fixes https://bugs.launchpad.net/juju-core/+bug/1556146

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

jameinel and others added some commits Mar 17, 2016

Use the stringForwarder in lxdclient.EnsureImageExists.
That way all code paths get the property that the progress messages will be
handled as quickly as they can without slowing anything else down.
As we know they are just 'progress' we can omit them without loss.
Merge pull request #4773 from natefinch/attach
rename push-resource to attach
find some race conditions.
Only 1 was in the actual code, all the rest was the testing code.
Still important to be -race safe.
Add a test which shows a race on setting and then reading discardCount.
Change to using 'atomic' operations for discardCount. This may be a bit overboard,
as the actual count there is never perfectly accurate, but I like having primatives
that are race-safe even when you abuse them.
lp1558158 Rebootstrap if no controllers found
If ControllerInfo returns a list length of 0, then
attempt the rebootstrap as the provider doesn't know
about any controllers for this controller.
Merge pull request #4783 from cherylj/fix-restore
lp1558158 Rebootstrap if no controllers found

If ControllerInfo returns a list length of 0, then
attempt the rebootstrap as the provider doesn't know
about any controllers for this controller.

(Review request: http://reviews.vapour.ws/r/4224/)
Merge pull request #4787 from cherylj/merge-MADE-state-workers
MADE-state-workers

In its last CI run, this branch only exhibited the same known restore failures as master:
http://reports.vapour.ws/releases/3761

Restore failure inherited from master: https://bugs.launchpad.net/juju-core/+bug/1558158

There are no bugs against this branch.

(Review request: http://reviews.vapour.ws/r/4228/)
Merge pull request #4778 from ericsnowcurrently/resources-uniter-down…
…load-progress

Show unit download progress for resources.



(Review request: http://reviews.vapour.ws/r/4219/)
Merge pull request #4792 from ericsnowcurrently/resources-charm-list-…
…resources-channel-flag

Add the --channel flag to "juju charm list-resources".



(Review request: http://reviews.vapour.ws/r/4234/)
Merge upstream/feature-resources.
Conflicts:
    dependencies.tsv
Merge pull request #4763 from wallyworld/interactive-add-credentials
Interactive add credentials

The add-credentials command now supports an ineractive mode (if no file is specified).
We want to be able to control the order of attribute entry, so the environ provider CredentialSchema has been changed to a slice rather than a map.
We also add a FilePath bool to the CredentialAttr so that a value can be validated as being a valid filename.

Example:

$ juju add-credential homestack
  credential name: me
  select auth-type [userpass*, access-key]: 
  username: user
  password: 
  tenant-name: tenant
credentials added for cloud homestack
$

(Review request: http://reviews.vapour.ws/r/4202/)
Merge pull request #4797 from wallyworld/restore-old-deploy-for-now
Restore some old deploy code for now to fix the gui

Removing some deprecated code broke the gui.
Adding back until the gui is updated.

(Review request: http://reviews.vapour.ws/r/4239/)
Merge pull request #4809 from wallyworld/fix-invalid-filepath-windows
Fix invalid filepath windows

Fixes: https://bugs.launchpad.net/juju-core/+bug/1559706
Ensure a test using an absolute filepath works on windows.

(Review request: http://reviews.vapour.ws/r/4251/)
Merge pull request #4805 from cherylj/merge-feature-resources
Merge feature resources

The feature-resources branch is ready for merging.  This branch had a bless on its last CI run:  http://reports.vapour.ws/releases/3782

There are no bugs open against this branch:  https://bugs.launchpad.net/juju-core/feature-resources

(Review request: http://reviews.vapour.ws/r/4247/)
Merge pull request #4811 from anastasiamac/order-bug1558191-part2
Fix ordering issue for unsupported constraints tests.

Trivial:
1. EC2 test: use SameContents check instead of DeepEquals;
2. LXD test: remove redundant sort as we are using SameContents for consistency with similar tests in other providers.

(Review request: http://reviews.vapour.ws/r/4253/)
Merge pull request #4772 from jameinel/lxd-container-status-1558061
Get the right container status even when downloading the image

fixes-1558061

It turns out that our calls to Machine.SetInstanceStatus are *very* slow. My timing information indicates that we can only process them about 1/second. As such, what was happening was the LXD image was copying from cloud-images in only 5s, and we would then start launching the instance. But while all that polling was going on, our goroutine was reading from the LXD socket and seeing "1%"..."2%". LXD was emitting those messages very quickly, but we were being very slow to handle them.

This adds a helper object "utils/stringforwarder" that will take a callback function, and call it as fast as it will allow, but drop the other messages on the floor. And then when we're done with CopyImage() we call Stop() which ensures we won't get any more messages (all are guaranteed to be dropped after that point).

I went ahead and always added the drop logic to EnsureImageExists, because we know those messages are all ephemeral, so whatever is handling them will happily drop one here and there.

There is also 1 small code cleanup, where I added a type for StatusCallback because the existing interface definition required repeating a lot of ugly func() definition in multiple places.

Very strange to think that we can handle 150MB downloaded over the internet faster than we can send 100 SetInstanceStatus() calls. I have the feeling SetInstanceStatus is intentionally rate limited to 1/s.

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

$$merge$$

Contributor

jujubot commented Mar 21, 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 21, 2016

@jujubot jujubot merged commit b1004dd into juju:drop-maas-1.8-support-from-juju2 Mar 21, 2016

@voidspace voidspace deleted the voidspace:drop-maas-1.8-master-merge branch Oct 6, 2016

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