[Bug 1050592] Re: exceptions.TypeError: object of type 'NoneType' has no len() from relation-get

2012-10-03 Thread Jim Baker
** Changed in: juju
   Status: In Progress = Fix Committed

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to juju in Ubuntu.
https://bugs.launchpad.net/bugs/1050592

Title:
  exceptions.TypeError: object of type 'NoneType' has no len() from
  relation-get

To manage notifications about this bug go to:
https://bugs.launchpad.net/juju/+bug/1050592/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1053669] Re: Relation not found when running relation-list

2012-10-03 Thread Jim Baker
** Changed in: juju
   Status: In Progress = Fix Committed

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to juju in Ubuntu.
https://bugs.launchpad.net/bugs/1053669

Title:
  Relation not found when running relation-list

To manage notifications about this bug go to:
https://bugs.launchpad.net/juju/+bug/1053669/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1050592] Re: exceptions.TypeError: object of type 'NoneType' has no len() from relation-get

2012-10-01 Thread Jim Baker
This bug is fixed by lp:~jimbaker/juju/hook-command-error-cases,
currently under review

** Changed in: juju
   Status: Confirmed = In Progress

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to juju in Ubuntu.
https://bugs.launchpad.net/bugs/1050592

Title:
  exceptions.TypeError: object of type 'NoneType' has no len() from
  relation-get

To manage notifications about this bug go to:
https://bugs.launchpad.net/juju/+bug/1050592/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1053669] Re: Relation not found when running relation-list

2012-09-30 Thread Jim Baker
** Branch linked: lp:~jimbaker/juju/hook-command-error-cases

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to juju in Ubuntu.
https://bugs.launchpad.net/bugs/1053669

Title:
  Relation not found when running relation-list

To manage notifications about this bug go to:
https://bugs.launchpad.net/juju/+bug/1053669/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1034837] Re: authentication token expiry with openstack provider

2012-09-27 Thread Jim Baker
** Changed in: juju
   Status: In Progress = Fix Committed

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to juju in Ubuntu.
https://bugs.launchpad.net/bugs/1034837

Title:
  authentication token expiry with openstack provider

To manage notifications about this bug go to:
https://bugs.launchpad.net/juju/+bug/1034837/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1053669] Re: Relation not found when running relation-list

2012-09-26 Thread Jim Baker
** Changed in: juju
   Status: Confirmed = In Progress

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to juju in Ubuntu.
https://bugs.launchpad.net/bugs/1053669

Title:
  Relation not found when running relation-list

To manage notifications about this bug go to:
https://bugs.launchpad.net/juju/+bug/1053669/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1034837] Re: authentication token expiry with openstack provider

2012-09-26 Thread Jim Baker
** Changed in: juju
   Status: Confirmed = Won't Fix

** Changed in: juju
   Status: Won't Fix = In Progress

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to juju in Ubuntu.
https://bugs.launchpad.net/bugs/1034837

Title:
  authentication token expiry with openstack provider

To manage notifications about this bug go to:
https://bugs.launchpad.net/juju/+bug/1034837/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1034837] Re: authentication token expiry with openstack provider

2012-09-25 Thread Jim Baker
** Branch linked: lp:~jimbaker/juju/reauth-on-token-expiry

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to juju in Ubuntu.
https://bugs.launchpad.net/bugs/1034837

Title:
  authentication token expiry with openstack provider

To manage notifications about this bug go to:
https://bugs.launchpad.net/juju/+bug/1034837/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1053669] Re: Relation not found when running relation-list

2012-09-21 Thread Jim Baker
** Changed in: juju
 Assignee: (unassigned) = Jim Baker (jimbaker)

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to juju in Ubuntu.
https://bugs.launchpad.net/bugs/1053669

Title:
  Relation not found when running relation-list

To manage notifications about this bug go to:
https://bugs.launchpad.net/juju/+bug/1053669/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1050592] Re: exceptions.TypeError: object of type 'NoneType' has no len() from relation-get

2012-09-21 Thread Jim Baker
** Changed in: juju
 Assignee: (unassigned) = Jim Baker (jimbaker)

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to juju in Ubuntu.
https://bugs.launchpad.net/bugs/1050592

Title:
  exceptions.TypeError: object of type 'NoneType' has no len() from
  relation-get

To manage notifications about this bug go to:
https://bugs.launchpad.net/juju/+bug/1050592/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1034837] Re: authentication token expiry with openstack provider

2012-09-21 Thread Jim Baker
** Changed in: juju
 Assignee: (unassigned) = Jim Baker (jimbaker)

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to juju in Ubuntu.
https://bugs.launchpad.net/bugs/1034837

Title:
  authentication token expiry with openstack provider

To manage notifications about this bug go to:
https://bugs.launchpad.net/juju/+bug/1034837/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1034837] Re: authentication token expiry with openstack provider

2012-09-21 Thread Jim Baker
According to http://docs.openstack.org/api/quick-
start/content/index.html#Getting-Credentials-a00665, code using the
OpenStack REST API should request a new token upon receiving a 401
status code, then retry.

In the OpenStack provider, for every client request, the
`_OpenStackClient.is_authenticated` method is checked to see if a token
needs to be first requested. However, as currently implemented, this
method will never reset to being False. So solving this bug simply
requires ensuring that any 401 status code does in fact do that;
something as simple as setting `self.token = None` in the `_empty` and
`_json` result processing methods should suffice. (We can also return a
better exception too, so as to improve the logging in the provisioning
agent, just to indicate this expiration is to be occasionally expected.)

With that change, the provisioning agent will retry as it always does
when it encounters provider errors, thus fufilling the requirements of
the above link, and thereby fixing this bug.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to juju in Ubuntu.
https://bugs.launchpad.net/bugs/1034837

Title:
  authentication token expiry with openstack provider

To manage notifications about this bug go to:
https://bugs.launchpad.net/juju/+bug/1034837/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs