osm/N2VC.git
7 years agoMinor fix to get_metrics
Simon Kollberg [Wed, 30 Nov 2016 08:21:39 +0000 (09:21 +0100)]
Minor fix to get_metrics

json -> dict

7 years agoMerge pull request #24 from juju/placement-fix
Tim Van Steenburgh [Wed, 30 Nov 2016 00:10:18 +0000 (19:10 -0500)]
Merge pull request #24 from juju/placement-fix

NoneType and style fixes for placement parsing lib

7 years agoNoneType and style fixes for placement parsing lib
Cory Johns [Tue, 29 Nov 2016 23:44:34 +0000 (18:44 -0500)]
NoneType and style fixes for placement parsing lib

7 years agoGet ModelInfo when Model connected
Tim Van Steenburgh [Tue, 29 Nov 2016 18:22:21 +0000 (13:22 -0500)]
Get ModelInfo when Model connected

7 years agoMerge pull request #23 from petevg/bug/instance-placement-bug
Tim Van Steenburgh [Tue, 29 Nov 2016 15:09:30 +0000 (10:09 -0500)]
Merge pull request #23 from petevg/bug/instance-placement-bug

Added Placement parser.

7 years agoAdded Placement parser.
Pete Vander Giessen [Mon, 28 Nov 2016 21:36:50 +0000 (16:36 -0500)]
Added Placement parser.

Interim workaround for https://bugs.launchpad.net/juju/+bug/1645480,
where the websocket API will not accept the placement string that the
planner generates.

7 years agoMerge pull request #21 from petevg/bug/add-machines-params-passing
Tim Van Steenburgh [Mon, 28 Nov 2016 23:47:26 +0000 (18:47 -0500)]
Merge pull request #21 from petevg/bug/add-machines-params-passing

Fixed addMachines.

7 years agoFixed docstring for addMachines.
Pete Vander Giessen [Mon, 28 Nov 2016 22:41:30 +0000 (17:41 -0500)]
Fixed docstring for addMachines.

Container_type -> container_type

7 years agoClarified that params are optional.
Pete Vander Giessen [Mon, 28 Nov 2016 22:02:50 +0000 (17:02 -0500)]
Clarified that params are optional.

7 years agoAdded deprecation notice, and a bit of forwards compatibilty.
Pete Vander Giessen [Mon, 28 Nov 2016 21:39:31 +0000 (16:39 -0500)]
Added deprecation notice, and a bit of forwards compatibilty.

7 years agoAddressed comments in PR.
Pete Vander Giessen [Mon, 28 Nov 2016 19:57:14 +0000 (14:57 -0500)]
Addressed comments in PR.

7 years agolxd init must be run as root
Tim Van Steenburgh [Mon, 28 Nov 2016 18:29:54 +0000 (13:29 -0500)]
lxd init must be run as root

7 years agoFixed addMachines.
Pete Vander Giessen [Mon, 28 Nov 2016 18:26:51 +0000 (13:26 -0500)]
Fixed addMachines.

We now accept a single dict called params, which is what we get back
from the planner, rather than expecting expanded arguments.

We do some parsing of constraints, to put them in a format that should
make juju core happy.

7 years agoTry newgrp alternative
Tim Van Steenburgh [Mon, 28 Nov 2016 18:25:32 +0000 (13:25 -0500)]
Try newgrp alternative

newgrp only works in interactive mode. Try another means
of running commands in the lxd group.

7 years agoAdd user to group before switching
Tim Van Steenburgh [Mon, 28 Nov 2016 17:07:44 +0000 (12:07 -0500)]
Add user to group before switching

7 years agoAvoid password prompt on newgrp
Tim Van Steenburgh [Mon, 28 Nov 2016 16:48:47 +0000 (11:48 -0500)]
Avoid password prompt on newgrp

7 years agoSwitch to lxd group
Tim Van Steenburgh [Mon, 28 Nov 2016 16:39:14 +0000 (11:39 -0500)]
Switch to lxd group

7 years agoInstall juju from daily ppa for now
Tim Van Steenburgh [Mon, 28 Nov 2016 16:27:14 +0000 (11:27 -0500)]
Install juju from daily ppa for now

7 years agoMerge pull request #20 from simonklb/get-metrics
Tim Van Steenburgh [Thu, 24 Nov 2016 15:13:53 +0000 (10:13 -0500)]
Merge pull request #20 from simonklb/get-metrics

Add get metrics

7 years agoMerge pull request #19 from sfeole/destroy-models-libjuju
Tim Van Steenburgh [Thu, 24 Nov 2016 15:06:05 +0000 (10:06 -0500)]
Merge pull request #19 from sfeole/destroy-models-libjuju

added juju.controller.destroy_models()

7 years agoAdd get metrics
Simon Kollberg [Thu, 24 Nov 2016 14:23:37 +0000 (15:23 +0100)]
Add get metrics

7 years agoUpdated juju.controller.destroy_models(), prepend 'model-' to UUID and pass a single...
Sean Feole [Wed, 23 Nov 2016 15:23:04 +0000 (10:23 -0500)]
Updated juju.controller.destroy_models(), prepend 'model-' to UUID and pass a single string of objects rather than individual objects

7 years agoMerge pull request #16 from petevg/bug/keyerror-in-is-leader
Tim Van Steenburgh [Tue, 22 Nov 2016 21:20:29 +0000 (16:20 -0500)]
Merge pull request #16 from petevg/bug/keyerror-in-is-leader

Added a catch for the case where we call is_leader_from_status on a destroyed unit.

7 years agoMerge pull request #18 from juju/bug/17/keyerror-deploy-expose
Tim Van Steenburgh [Tue, 22 Nov 2016 21:19:27 +0000 (16:19 -0500)]
Merge pull request #18 from juju/bug/17/keyerror-deploy-expose

Wait for apps during bundle deploy

7 years agoWait for apps during bundle deploy
Cory Johns [Tue, 22 Nov 2016 19:24:52 +0000 (14:24 -0500)]
Wait for apps during bundle deploy

This ensures subsequent operations, such as expose, have the ModelEntity
to work with.

Fixes #17

7 years agoadded juju.controller.destroy_models()
Sean Feole [Tue, 22 Nov 2016 20:59:39 +0000 (15:59 -0500)]
added juju.controller.destroy_models()

7 years agoAdded a catch for the case where we call is_leader_from_status on a
Pete Vander Giessen [Tue, 22 Nov 2016 18:07:44 +0000 (13:07 -0500)]
Added a catch for the case where we call is_leader_from_status on a
destroyed unit.

7 years agoMerge pull request #15 from juju/run-action
Tim Van Steenburgh [Tue, 22 Nov 2016 13:49:19 +0000 (08:49 -0500)]
Merge pull request #15 from juju/run-action

Implement Unit.run_action

7 years agoImplement Unit.run_action
Cory Johns [Mon, 21 Nov 2016 21:46:32 +0000 (16:46 -0500)]
Implement Unit.run_action

7 years agoMerge pull request #13 from petevg/feature/unit-is-leader
Tim Van Steenburgh [Mon, 21 Nov 2016 22:08:35 +0000 (17:08 -0500)]
Merge pull request #13 from petevg/feature/unit-is-leader

Added .is_leader method to Unit class.

7 years agoAdded .is_leader method to Unit class.
Pete Vander Giessen [Mon, 21 Nov 2016 21:49:40 +0000 (16:49 -0500)]
Added .is_leader method to Unit class.

As leadership is not exposed via deltas in the current version of the
juju websocket api, we have to spin up a ClientFacade and dig through
FullStatus for the information we need.

A ticket for adding leadership info to the deltas lives here:
https://bugs.launchpad.net/juju/+bug/1643691

7 years agoInstall juju-2.0 instead of juju on trusty
Tim Van Steenburgh [Mon, 21 Nov 2016 18:32:01 +0000 (13:32 -0500)]
Install juju-2.0 instead of juju on trusty

7 years agoDebug getting travis user into lxd group
Tim Van Steenburgh [Mon, 21 Nov 2016 18:10:03 +0000 (13:10 -0500)]
Debug getting travis user into lxd group

7 years agonewgrp prompted for password, use sudo
Tim Van Steenburgh [Mon, 21 Nov 2016 18:01:11 +0000 (13:01 -0500)]
newgrp prompted for password, use sudo

7 years agoAdd travis-ci config
Tim Van Steenburgh [Mon, 21 Nov 2016 17:50:52 +0000 (12:50 -0500)]
Add travis-ci config

7 years agoMerge pull request #12 from sfeole/master
Tim Van Steenburgh [Fri, 18 Nov 2016 16:53:40 +0000 (11:53 -0500)]
Merge pull request #12 from sfeole/master

Adding comment in example/controller.py regarding cloudcred format

7 years agocloudcred updated in examples/controller.py
Sean Feole [Fri, 18 Nov 2016 14:51:23 +0000 (09:51 -0500)]
cloudcred updated in examples/controller.py

7 years agoReverted cloudcred example back to original syntax and Added 2 lines in the example.
Sean Feole [Fri, 18 Nov 2016 14:48:46 +0000 (09:48 -0500)]
Reverted cloudcred example back to original syntax and Added 2 lines in the example.

7 years agoFix typo in example/controller.py
Sean Feole [Thu, 17 Nov 2016 23:00:03 +0000 (18:00 -0500)]
Fix typo in example/controller.py

7 years agoAdd Controller.add_model() with example
Tim Van Steenburgh [Thu, 17 Nov 2016 21:26:45 +0000 (16:26 -0500)]
Add Controller.add_model() with example

7 years agoMerge pull request #11 from sfeole/add-connect_model
Tim Van Steenburgh [Thu, 17 Nov 2016 21:01:28 +0000 (16:01 -0500)]
Merge pull request #11 from sfeole/add-connect_model

Added juju.model.connect_model()

7 years agoAdded juju.model.connect_model()
Sean Feole [Thu, 17 Nov 2016 20:53:44 +0000 (15:53 -0500)]
Added juju.model.connect_model()

7 years agoAdd Model.connect() for connecting to arbitrary endpoint
Tim Van Steenburgh [Thu, 17 Nov 2016 14:56:01 +0000 (09:56 -0500)]
Add Model.connect() for connecting to arbitrary endpoint

7 years agoAllow auth with macaroons
Tim Van Steenburgh [Thu, 17 Nov 2016 14:49:34 +0000 (09:49 -0500)]
Allow auth with macaroons

If there's no password, attempt macaroon auth using macaroons
in ~/.go-cookies.

7 years agoRegen client against juju-2.0.2
Tim Van Steenburgh [Wed, 16 Nov 2016 16:49:12 +0000 (11:49 -0500)]
Regen client against juju-2.0.2

7 years agoMerge pull request #5 from juju/name-conflict
Tim Van Steenburgh [Tue, 8 Nov 2016 16:55:39 +0000 (11:55 -0500)]
Merge pull request #5 from juju/name-conflict

Fixed name conflict in auto-generated code

7 years agoFixed name conflict in auto-generated code
Cory Johns [Tue, 8 Nov 2016 16:53:01 +0000 (11:53 -0500)]
Fixed name conflict in auto-generated code

7 years agoAdd ModelState tests
Tim Van Steenburgh [Sun, 6 Nov 2016 01:47:29 +0000 (21:47 -0400)]
Add ModelState tests

7 years agoAdd Observer tests
Tim Van Steenburgh [Sun, 6 Nov 2016 00:32:25 +0000 (20:32 -0400)]
Add Observer tests

7 years agoMerge pull request #4 from petevg/bug/fix-action-wait
Tim Van Steenburgh [Fri, 4 Nov 2016 15:06:46 +0000 (11:06 -0400)]
Merge pull request #4 from petevg/bug/fix-action-wait

Fixed status to check for for failed messages in unit.run

7 years agoFixed status to check for for failed messages in unit.run
Pete Vander Giessen [Fri, 4 Nov 2016 15:04:23 +0000 (11:04 -0400)]
Fixed status to check for for failed messages in unit.run

error -> failed

7 years agoMerge pull request #3 from petevg/feature/wait-for-action-complete
Tim Van Steenburgh [Wed, 2 Nov 2016 19:28:14 +0000 (15:28 -0400)]
Merge pull request #3 from petevg/feature/wait-for-action-complete

Added observer + callback for unit.run.

7 years agoFixed call to self._wait in _wait_for_new
Pete Vander Giessen [Wed, 2 Nov 2016 19:25:18 +0000 (15:25 -0400)]
Fixed call to self._wait in _wait_for_new

Added 'add'

7 years agoAddressed PR comments.
Pete Vander Giessen [Wed, 2 Nov 2016 19:10:27 +0000 (15:10 -0400)]
Addressed PR comments.

Made a more generic _wait method in the model, and wrapped
_wait_for_new, and a new public method called wait_for_action around it.

unit.run now returns an action object, with .results that can be unpacked.

7 years agoAdded observer + callback for unit.run.
Pete Vander Giessen [Tue, 1 Nov 2016 21:28:21 +0000 (17:28 -0400)]
Added observer + callback for unit.run.

Allows us to wait until an action has actually been completed before
returning a result.

7 years agoImplement Application.run()
Tim Van Steenburgh [Tue, 1 Nov 2016 22:39:40 +0000 (18:39 -0400)]
Implement Application.run()

7 years agoAdd set config/constraints for Application
Tim Van Steenburgh [Tue, 1 Nov 2016 20:17:11 +0000 (16:17 -0400)]
Add set config/constraints for Application

7 years agoAdd get_config() and get_constraints() for Application
Tim Van Steenburgh [Tue, 1 Nov 2016 19:48:44 +0000 (15:48 -0400)]
Add get_config() and get_constraints() for Application

7 years agoIf deploying a single app, return the App instead of a list
Tim Van Steenburgh [Tue, 1 Nov 2016 19:10:40 +0000 (15:10 -0400)]
If deploying a single app, return the App instead of a list

7 years agoRun bundle app waits concurrently
Tim Van Steenburgh [Tue, 1 Nov 2016 19:08:50 +0000 (15:08 -0400)]
Run bundle app waits concurrently

7 years agoWire up more Application apis
Tim Van Steenburgh [Tue, 1 Nov 2016 18:47:16 +0000 (14:47 -0400)]
Wire up more Application apis

7 years agoAdd application status and message property
Cory Johns [Tue, 25 Oct 2016 21:35:00 +0000 (17:35 -0400)]
Add application status and message property

7 years agoAdd agent and workload status properties to Unit
Cory Johns [Tue, 25 Oct 2016 18:41:16 +0000 (14:41 -0400)]
Add agent and workload status properties to Unit

7 years agoReturn app ModelEntities from bundle deploy
Cory Johns [Mon, 24 Oct 2016 19:02:59 +0000 (15:02 -0400)]
Return app ModelEntities from bundle deploy

Match behavior when deploying a single charm.

7 years agoWait for entity if it doesn't exist yet
Tim Van Steenburgh [Tue, 18 Oct 2016 20:20:18 +0000 (16:20 -0400)]
Wait for entity if it doesn't exist yet

7 years agoFix copy-paste bug
Tim Van Steenburgh [Tue, 18 Oct 2016 20:11:11 +0000 (16:11 -0400)]
Fix copy-paste bug

7 years agoMove set_annotations to Application, Machine
Tim Van Steenburgh [Tue, 18 Oct 2016 14:13:46 +0000 (10:13 -0400)]
Move set_annotations to Application, Machine

7 years agoMove add_unit logic into Application
Tim Van Steenburgh [Tue, 18 Oct 2016 13:37:26 +0000 (09:37 -0400)]
Move add_unit logic into Application

7 years agoMove expose() logic to Application
Tim Van Steenburgh [Tue, 18 Oct 2016 12:14:39 +0000 (08:14 -0400)]
Move expose() logic to Application

7 years agoMove add_relation logic from BundleHandler up into Model
Tim Van Steenburgh [Tue, 18 Oct 2016 11:57:44 +0000 (07:57 -0400)]
Move add_relation logic from BundleHandler up into Model

7 years agoAdd predicate support for observers and Model._wait_for_new()
Tim Van Steenburgh [Mon, 17 Oct 2016 22:39:45 +0000 (18:39 -0400)]
Add predicate support for observers and Model._wait_for_new()

7 years agoFix URL for theblues req
Cory Johns [Mon, 17 Oct 2016 17:56:54 +0000 (13:56 -0400)]
Fix URL for theblues req

7 years agoAdd ModelEntity callbacks and async return values.
Tim Van Steenburgh [Mon, 17 Oct 2016 17:41:52 +0000 (13:41 -0400)]
Add ModelEntity callbacks and async return values.

- Change callbacks can now be registered directly on ModelEntity
  objects.
- Coroutines that create new objects in the model can (and should)
  now return the new ModelEntity by using Model._wait_for_new(). Only
  implemented for app = Model.deploy() so far but should be easy to
  add for others.

7 years agoAdded temporary requirements.txt to point to theblues fork
Cory Johns [Fri, 14 Oct 2016 20:07:17 +0000 (16:07 -0400)]
Added temporary requirements.txt to point to theblues fork

7 years agoAdd support for deploying bundles
Cory Johns [Fri, 14 Oct 2016 00:23:56 +0000 (20:23 -0400)]
Add support for deploying bundles

7 years agoRefactor model state management.
Tim Van Steenburgh [Fri, 14 Oct 2016 16:15:26 +0000 (12:15 -0400)]
Refactor model state management.

Maintain entity state history in the model, not in the entities.
Add methods for navigating an entity's history.

7 years agoMinor cleanups. Added todo list of next work.
Tim Van Steenburgh [Fri, 7 Oct 2016 16:52:53 +0000 (12:52 -0400)]
Minor cleanups. Added todo list of next work.

7 years agoFix unitrun example
Tim Van Steenburgh [Fri, 7 Oct 2016 16:40:37 +0000 (12:40 -0400)]
Fix unitrun example

7 years agoFix livemodel example
Tim Van Steenburgh [Fri, 7 Oct 2016 16:11:06 +0000 (12:11 -0400)]
Fix livemodel example

7 years agoFix the deploy example
Tim Van Steenburgh [Fri, 7 Oct 2016 16:02:50 +0000 (12:02 -0400)]
Fix the deploy example

7 years agoMake observers async; make model.reset() blocking
Tim Van Steenburgh [Wed, 14 Sep 2016 00:21:26 +0000 (20:21 -0400)]
Make observers async; make model.reset() blocking

7 years agoAdd relate example
Tim Van Steenburgh [Sat, 10 Sep 2016 03:43:53 +0000 (23:43 -0400)]
Add relate example

7 years agoClean up deploy example
Tim Van Steenburgh [Thu, 8 Sep 2016 23:04:27 +0000 (19:04 -0400)]
Clean up deploy example

7 years agoDeploy/destroy example
Tim Van Steenburgh [Thu, 8 Sep 2016 20:40:35 +0000 (16:40 -0400)]
Deploy/destroy example

7 years agoFixes for latest juju-2 beta
Tim Van Steenburgh [Thu, 1 Sep 2016 15:43:05 +0000 (11:43 -0400)]
Fixes for latest juju-2 beta

7 years agoGet everything working on juju-2.0beta11
Tim Van Steenburgh [Fri, 15 Jul 2016 15:07:54 +0000 (11:07 -0400)]
Get everything working on juju-2.0beta11

7 years agoUpdate readme
Tim Van Steenburgh [Fri, 1 Jul 2016 20:33:56 +0000 (16:33 -0400)]
Update readme

7 years agoHook up Unit.run() to api
Tim Van Steenburgh [Sat, 25 Jun 2016 01:03:26 +0000 (21:03 -0400)]
Hook up Unit.run() to api

7 years agoAsync model updates
Tim Van Steenburgh [Fri, 24 Jun 2016 21:38:02 +0000 (17:38 -0400)]
Async model updates

7 years agoFullStatus example
Tim Van Steenburgh [Fri, 10 Jun 2016 02:25:03 +0000 (22:25 -0400)]
FullStatus example

7 years agoWorking async AllWatcher example
Tim Van Steenburgh [Thu, 9 Jun 2016 18:08:52 +0000 (14:08 -0400)]
Working async AllWatcher example

7 years agoDon't create objects for None params
Tim Van Steenburgh [Wed, 8 Jun 2016 14:37:35 +0000 (10:37 -0400)]
Don't create objects for None params

7 years agoDeserialize api results back to Types
Tim Van Steenburgh [Wed, 8 Jun 2016 14:04:54 +0000 (10:04 -0400)]
Deserialize api results back to Types

7 years agofix test name
Tim Van Steenburgh [Wed, 25 May 2016 00:22:59 +0000 (20:22 -0400)]
fix test name

7 years agoadd simple (currently failing) client test
Tim Van Steenburgh [Tue, 24 May 2016 14:59:53 +0000 (10:59 -0400)]
add simple (currently failing) client test

7 years agoactually add tests/
Tim Van Steenburgh [Mon, 23 May 2016 21:09:16 +0000 (17:09 -0400)]
actually add tests/

7 years agoconnection test
Tim Van Steenburgh [Mon, 23 May 2016 20:36:01 +0000 (16:36 -0400)]
connection test

7 years agoAdd client code from bcsaller
Tim Van Steenburgh [Mon, 23 May 2016 15:37:10 +0000 (11:37 -0400)]
Add client code from bcsaller

7 years agodoc skeleton
Tim Van Steenburgh [Thu, 19 May 2016 15:56:06 +0000 (11:56 -0400)]
doc skeleton

7 years agoUpdate readme
Tim Van Steenburgh [Thu, 19 May 2016 15:07:13 +0000 (11:07 -0400)]
Update readme